Skip to content

Commit cfdb0d9

Browse files
committed
add old model test
Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent 64e408e commit cfdb0d9

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Test for default llvm-spirv options
2+
3+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64-unknown-unknown %s -### 2>&1 \
4+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
5+
6+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64-unknown-unknown %s -### 2>&1 \
7+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
8+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_fpga-unknown-unknown %s -### 2>&1 \
9+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
10+
// RUN: %clang -target x86_64-unknown-linux-gnu -fintelfpga %s -### 2>&1 \
11+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
12+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_fpga-unknown-unknown -Xshardware %s -### 2>&1 \
13+
// RUN: | FileCheck %s -check-prefixes=CHECK-FPGA-HW
14+
// RUN: %clang -target x86_64-unknown-linux-gnu -fintelfpga -Xshardware %s -### 2>&1 \
15+
// RUN: | FileCheck %s -check-prefixes=CHECK-FPGA-HW
16+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_fpga-unknown-unknown -Xssimulation %s -### 2>&1 \
17+
// RUN: | FileCheck %s -check-prefixes=CHECK-FPGA-HW
18+
// RUN: %clang -target x86_64-unknown-linux-gnu -fintelfpga -Xssimulation %s -### 2>&1 \
19+
// RUN: | FileCheck %s -check-prefixes=CHECK-FPGA-HW
20+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_fpga-unknown-unknown -Xsemulator %s -### 2>&1 \
21+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
22+
// RUN: %clang -target x86_64-unknown-linux-gnu -fintelfpga -Xsemulator %s -### 2>&1 \
23+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
24+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_gen-unknown-unknown %s -### 2>&1 \
25+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
26+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_gen-unknown-unknown %s -### 2>&1 \
27+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
28+
// RUN: %clang -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-targets=spir64_x86_64-unknown-unknown %s -### 2>&1 \
29+
// RUN: | FileCheck %s -check-prefixes=CHECK-DEFAULT
30+
31+
// CHECK-DEFAULT: llvm-spirv{{.*}}-spirv-debug-info-version=nonsemantic-shader-200
32+
// CHECK-DEFAULT-NOT: -ocl-100
33+
34+
// CHECL-FPGA-HW: llvm-spirv{{.*}}-ocl-100
35+
// CHECK-FPGA-HW-NOT: spirv-debug-info-version=nonsemantic-shader-200
36+

clang/test/Driver/sycl-spirv-default-options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
// RUN: "--" "-o" "a.out" %t_1.o --dry-run 2>&1 | FileCheck %s
1515

1616
// CHECK: llvm-spirv{{.*}}-spirv-debug-info-version=nonsemantic-shader-200
17+
// CHECK-NOT: ocl-100

0 commit comments

Comments
 (0)