|
1 | 1 | ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature |
2 | | -; RUN: rm -rf %t && mkdir -p %t |
3 | | -; RUN: echo 'some code we want to preserve' >> %t/int_header.h |
4 | | -; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t/int_header.h |
5 | | -; RUN: echo ' // OMIT_TABLE_BEGIN' >> %t/int_header.h |
6 | | -; RUN: echo ' // SyclKernel1' >> %t/int_header.h |
7 | | -; RUN: echo ' false, false,' >> %t/int_header.h |
8 | | -; RUN: echo ' // SyclKernel2' >> %t/int_header.h |
9 | | -; RUN: echo ' false, false,' >> %t/int_header.h |
10 | | -; RUN: echo ' // OMIT_TABLE_END' >> %t/int_header.h |
11 | | -; RUN: echo '};' >> %t/int_header.h |
12 | | -; RUN: echo 'some code we want to preserve' >> %t/int_header.h |
| 2 | +; RUN: echo 'some code we want to preserve' >> %t-int_header.h |
| 3 | +; RUN: echo 'static constexpr const bool param_omit_table[] = {' >> %t-int_header.h |
| 4 | +; RUN: echo ' // OMIT_TABLE_BEGIN' >> %t-int_header.h |
| 5 | +; RUN: echo ' // SyclKernel1' >> %t-int_header.h |
| 6 | +; RUN: echo ' false, false,' >> %t-int_header.h |
| 7 | +; RUN: echo ' // SyclKernel2' >> %t-int_header.h |
| 8 | +; RUN: echo ' false, false,' >> %t-int_header.h |
| 9 | +; RUN: echo ' // OMIT_TABLE_END' >> %t-int_header.h |
| 10 | +; RUN: echo '};' >> %t-int_header.h |
| 11 | +; RUN: echo 'some code we want to preserve' >> %t-int_header.h |
13 | 12 | ; RUN: opt < %s -deadargelim -S | FileCheck %s --check-prefixes=CHECK |
14 | | -; RUN: opt < %s -deadargelim-sycl -S -integr-header-file %t/int_header.h | FileCheck %s --check-prefixes=CHECK-SYCL |
15 | | -; RUN: cat %t/int_header.h | FileCheck %s --check-prefixes=CHECK-INT-HEADER |
| 13 | +; RUN: opt < %s -deadargelim-sycl -S -integr-header-file %t-int_header.h | FileCheck %s --check-prefixes=CHECK-SYCL |
| 14 | +; RUN: cat %t-int_header.h | FileCheck %s --check-prefixes=CHECK-INT-HEADER |
16 | 15 |
|
17 | 16 | ; This test checks eliminating dead arguments |
18 | | -; from SYCL kernel function. |
| 17 | +; from SPIR kernel functions in SYCL environment. |
19 | 18 |
|
20 | 19 | target triple = "spir64-unknown-unknown-sycldevice" |
21 | 20 |
|
|
0 commit comments