Skip to content

Commit 9d8e94d

Browse files
authored
[SYCL][Driver][NFC] Update integration footer test for 32-bit host (#4039)
The sycl-int-footer.cpp test is relying on host settings for some of the checks. This can change when the host is 32-bits and the tests will fail. Update test to force x86_64 targets for these checks.
1 parent 15a52e1 commit 9d8e94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/sycl-int-footer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
// NO-FOOTER: clang{{.*}} "-include" "[[INTHEADER]]"{{.*}} "-fsycl-is-host"{{.*}} "-o"
3838

3939
/// Check phases without integration footer
40-
// RUN: %clangxx -fsycl -fno-sycl-device-lib=all -fno-sycl-use-footer %s -ccc-print-phases 2>&1 \
40+
// RUN: %clangxx -fsycl -fno-sycl-device-lib=all -fno-sycl-use-footer -target x86_64-unknown-linux-gnu %s -ccc-print-phases 2>&1 \
4141
// RUN: | FileCheck -check-prefix NO-FOOTER-PHASES -check-prefix COMMON-PHASES %s
4242
// NO-FOOTER-PHASES: 0: input, "{{.*}}", c++, (host-sycl)
4343
// NO-FOOTER-PHASES: [[#HOST_PREPROC:]]: preprocessor, {0}, c++-cpp-output, (host-sycl)
@@ -46,7 +46,7 @@
4646
// NO-FOOTER-PHASES: [[#DEVICE_IR:]]: compiler, {3}, ir, (device-sycl)
4747

4848
/// Check phases with integration footer
49-
// RUN: %clangxx -fsycl -fno-sycl-device-lib=all %s -ccc-print-phases 2>&1 \
49+
// RUN: %clangxx -fsycl -fno-sycl-device-lib=all -target x86_64-unknown-linux-gnu %s -ccc-print-phases 2>&1 \
5050
// RUN: | FileCheck -check-prefix FOOTER-PHASES -check-prefix COMMON-PHASES %s
5151
// FOOTER-PHASES: 0: input, "{{.*}}", c++, (host-sycl)
5252
// FOOTER-PHASES: 1: preprocessor, {0}, c++-cpp-output, (host-sycl)

0 commit comments

Comments
 (0)