|
2 | 2 |
|
3 | 3 | // RUN: %clang -### -fsycl --offload-new-driver \ |
4 | 4 | // RUN: -fsycl-targets=spir64_gen -ftarget-register-alloc-mode=pvc:auto %s 2>&1 \ |
5 | | -// RUN: | FileCheck -check-prefix=AUTO_AOT %s |
| 5 | +// RUN: | FileCheck -check-prefix=AUTO_AOT %s -DDEVICE=pvc |
6 | 6 |
|
7 | 7 | // RUN: %clang -### -fsycl --offload-new-driver \ |
8 | 8 | // RUN: -fsycl-targets=spir64_gen -ftarget-register-alloc-mode=pvc:large %s 2>&1 \ |
|
18 | 18 |
|
19 | 19 | // RUN: %clang -### -fsycl --offload-new-driver \ |
20 | 20 | // RUN: -fsycl-targets=spir64_gen -Xs "-device pvc" %s 2>&1 \ |
21 | | -// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s |
| 21 | +// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s -DDEVICE=pvc |
22 | 22 |
|
23 | 23 | // RUN: %clang -### -fsycl --offload-new-driver \ |
24 | 24 | // RUN: -fsycl-targets=spir64_gen -Xs "-device 0x0BD5" %s 2>&1 \ |
25 | | -// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s |
| 25 | +// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s -DDEVICE=0x0BD5 |
26 | 26 |
|
27 | 27 | // RUN: %clang -### -fsycl --offload-new-driver \ |
28 | 28 | // RUN: -fsycl-targets=spir64_gen -Xs "-device 12.60.7" %s 2>&1 \ |
29 | | -// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s |
| 29 | +// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s -DDEVICE=12.60.7 |
30 | 30 |
|
31 | 31 | // RUN: %clang -### -fsycl --offload-new-driver \ |
32 | 32 | // RUN: -fsycl-targets=spir64_gen -Xs "-device pvc,mtl-s" %s 2>&1 \ |
33 | | -// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s |
| 33 | +// RUN: | FileCheck %if system-windows %{ -check-prefix=DEFAULT_AOT %} %else %{ -check-prefix=AUTO_AOT %} %s -DDEVICE=pvc |
34 | 34 |
|
35 | 35 | // RUN: %clang -### -fsycl --offload-new-driver \ |
36 | 36 | // RUN: -fsycl-targets=spir64_gen -ftarget-register-alloc-mode=pvc:small,pvc:large %s 2>&1 \ |
|
88 | 88 | // NO_PVC-NOT: -device_options |
89 | 89 | // NO_PVC-NOT: -ze-opt-large-register-file |
90 | 90 |
|
91 | | -// AUTO_AOT: clang-offload-packager{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch={{.*}},kind=sycl,compile-opts=-device_options pvc -ze-intel-enable-auto-large-GRF-mode{{.*}}" |
| 91 | +// AUTO_AOT: clang-offload-packager{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch={{.*}},kind=sycl,compile-opts=-device_options [[DEVICE]] -ze-intel-enable-auto-large-GRF-mode{{.*}}" |
92 | 92 |
|
93 | 93 | // LARGE_AOT: clang-offload-packager{{.*}} "--image=file={{.*}}.bc,triple=spir64_gen-unknown-unknown,arch=,kind=sycl,compile-opts=-device_options pvc -ze-opt-large-register-file" |
94 | 94 |
|
|
0 commit comments