Skip to content

Commit 9e739e4

Browse files
committed
move -fno-sycl-libspirv before -###
1 parent a647226 commit 9e739e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/test/Driver/sycl-native-cpu.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -fsycl-device-only -fsycl-targets=native_cpu %s -### -fno-sycl-libspirv 2>&1 | FileCheck %s
2-
// RUN: %clangxx -fsycl-device-only -fsycl-targets=native_cpu --target=aarch64-unknown-linux-gnu %s -### -fno-sycl-libspirv 2>&1 | FileCheck %s --check-prefix=CHECK-AARCH64
1+
// RUN: %clangxx -fsycl-device-only -fsycl-targets=native_cpu -fno-sycl-libspirv %s -### 2>&1 | FileCheck %s
2+
// RUN: %clangxx -fsycl-device-only -fsycl-targets=native_cpu --target=aarch64-unknown-linux-gnu -fno-sycl-libspirv %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-AARCH64
33

44

55
// checks that the host triple is native_cpu, the device triple is set, and that the sycl-native-cpu LLVM option is set
@@ -8,26 +8,26 @@
88
// checks that the target triples are set correctly when the target is set explicitly
99
// CHECK-AARCH64: clang{{.*}}"-triple" "native_cpu"{{.*}}"-aux-triple" "aarch64-unknown-linux-gnu" {{.*}}"-D" "__SYCL_NATIVE_CPU__"
1010

11-
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fsycl -fsycl-targets=native_cpu -g %s -fno-sycl-libspirv 2>&1 | FileCheck -check-prefix=CHECK-LINUX %s
11+
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fsycl -fsycl-targets=native_cpu -g -fno-sycl-libspirv %s 2>&1 | FileCheck -check-prefix=CHECK-LINUX %s
1212
// CHECK-LINUX: {{.*}}"-fsycl-is-device"{{.*}}"-dwarf-version=[[DVERSION:.*]]" "-debugger-tuning=gdb"
1313
// CHECK-LINUX-DAG: {{.*}}"-fsycl-is-host"{{.*}}"-dwarf-version=[[DVERSION]]" "-debugger-tuning=gdb"
1414
// CHECK-LINUX-NOT: codeview
1515

16-
// RUN: %clang -### --target=x86_64-windows-msvc -fsycl -fsycl-targets=native_cpu -g %s -fno-sycl-libspirv 2>&1 | FileCheck -check-prefix=CHECK-WIN %s
16+
// RUN: %clang -### --target=x86_64-windows-msvc -fsycl -fsycl-targets=native_cpu -g -fno-sycl-libspirv %s 2>&1 | FileCheck -check-prefix=CHECK-WIN %s
1717
// CHECK-WIN: {{.*}}"-fsycl-is-device"{{.*}}"-gcodeview"
1818
// CHECK-WIN-DAG: {{.*}}"-fsycl-is-host"{{.*}}"-gcodeview"
1919
// CHECK-WIN-NOT: dwarf
2020

2121
// checks that -sycl-opt is not enabled by default on NativeCPU so that the full llvm optimization is enabled
2222
// Also check that we pass the expected backend options.
23-
// RUN: %clang -fsycl -fsycl-targets=native_cpu --target=aarch64-unknown-linux-gnu -march=armv9.4-a -### %s -fno-sycl-libspirv 2>&1 | FileCheck -check-prefix=CHECK-OPTS %s
23+
// RUN: %clang -fsycl -fsycl-targets=native_cpu --target=aarch64-unknown-linux-gnu -march=armv9.4-a -fno-sycl-libspirv -### %s 2>&1 | FileCheck -check-prefix=CHECK-OPTS %s
2424
// CHECK-OPTS: clang{{.*}}"-triple" "native_cpu"{{.*}}"-aux-triple" "[[TRIPLE:[^"]*]]"
2525
// CHECK-OPTS: clang{{.*}}"-triple" "[[TRIPLE]]"{{.*}}"-fsycl-is-device"
2626
// CHECK-OPTS-NOT: -sycl-opt
2727
// CHECK-OPTS-SAME: "-Wno-override-module" "-mllvm" "-sycl-native-cpu-backend"
2828
// CHECK-OPTS-SAME: "-aux-target-feature" "+v9.4a"
2929

30-
// RUN: %clangxx -fsycl -fsycl-targets=spir64 %s -### -fno-sycl-libspirv 2>&1 | FileCheck -check-prefix=CHECK-NONATIVECPU %s
30+
// RUN: %clangxx -fsycl -fsycl-targets=spir64 -fno-sycl-libspirv %s -### 2>&1 | FileCheck -check-prefix=CHECK-NONATIVECPU %s
3131
// CHECK-NONATIVECPU-NOT: "-D" "__SYCL_NATIVE_CPU__"
3232

3333
// Checking that coverage testing options are accepted by native_cpu, and that device and host compilation invocations receive the same options

0 commit comments

Comments
 (0)