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

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 16 06:27:03 PDT 2016


Author: hokein
Date: Thu Jun 16 08:27:02 2016
New Revision: 272890

URL: http://llvm.org/viewvc/llvm-project?rev=272890&view=rev
Log:
A follow-up fixing on cuda-march.cu: Don't match clang to other place.

Modified:
    cfe/trunk/test/Driver/cuda-march.cu

Modified: cfe/trunk/test/Driver/cuda-march.cu
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cuda-march.cu?rev=272890&r1=272889&r2=272890&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cuda-march.cu (original)
+++ cfe/trunk/test/Driver/cuda-march.cu Thu Jun 16 08:27:02 2016
@@ -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"




More information about the cfe-commits mailing list