A follow-up fixing on cuda-march.cu: Don't match clang to other place.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Haojian Wu 2016-06-16 13:27:02 +00:00
parent 5a69e33da8
commit 896a1ec807
1 changed files with 6 additions and 8 deletions

View File

@ -6,19 +6,17 @@
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// RUN: %clang -### -target x86_64-linux-gnu -c -march=haswell %s 2>&1 | FileCheck %s
// RUN: %clang -no-canonical-prefixes -### -target x86_64-linux-gnu -c \
// RUN: -march=haswell %s 2>&1 | FileCheck %s
// RUN: %clang -no-canonical-prefixes -### -target x86_64-linux-gnu -c \
// RUN: -march=haswell --cuda-gpu-arch=sm_20 %s 2>&1 | FileCheck %s
// RUN: %clang -### -target x86_64-linux-gnu -c -march=haswell --cuda-gpu-arch=sm_20 %s 2>&1 | \
// RUN: FileCheck %s
// CHECK: bin{{/|\\+}}clang
// CHECK: "-cc1"
// CHECK: {{.*}}clang{{.*}}" "-cc1"
// CHECK-SAME: "-triple" "nvptx
// CHECK-SAME: "-target-cpu" "sm_20"
// CHECK: ptxas
// CHECK-SAME: "--gpu-name" "sm_20"
// CHECK: bin{{/|\\+}}clang
// CHECK-SAME: "-cc1"
// CHECK: {{.*}}clang{{.*}}" "-cc1"
// CHECK-SAME: "-target-cpu" "haswell"