Skip to content

Commit b5e0c75

Browse files
authored
[NFC] Update sycl-force-target test to play nicely for 32-bit host (intel#6785)
Update the target for the test to use 64-bit to allow for the test to emit the expected device target when unbundling.
1 parent 028b83d commit b5e0c75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/Driver/sycl-force-target.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
/// Verify the usage of -fsycl-force-target applies to all expected unbundlings
22
// RUN: touch %t.o
33
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen -fsycl-force-target=spir64 \
4+
// RUN: -target x86_64-unknown-linux-gnu \
45
// RUN: %s --sysroot=%S/Inputs/SYCL %t.o -### 2>&1 \
56
// RUN: | FileCheck %s -check-prefix=CHECK_FORCE_TARGET
67
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen \
8+
// RUN: -target x86_64-unknown-linux-gnu \
79
// RUN: -fsycl-force-target=spir64-unknown-unknown \
810
// RUN: %s --sysroot=%S/Inputs/SYCL %t.o -### 2>&1 \
911
// RUN: | FileCheck %s -check-prefixes=CHECK_FORCE_TARGET,CHECK_FORCE_TARGET_GEN
1012
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 \
1113
// RUN: -fsycl-force-target=spir64 %s \
14+
// RUN: -target x86_64-unknown-linux-gnu \
1215
// RUN: --sysroot=%S/Inputs/SYCL %t.o -### 2>&1 \
1316
// RUN: | FileCheck %s -check-prefixes=CHECK_FORCE_TARGET,CHECK_FORCE_TARGET_CPU
1417
// CHECK_FORCE_TARGET: clang-offload-bundler{{.*}} "-type=o" "-targets=host-{{.*}},sycl-spir64-unknown-unknown" "-input={{.*}}" "-output={{.*}}" "-output=[[DEVICEOBJECTOUT:.+]]" "-unbundle" "-allow-missing-bundles"

0 commit comments

Comments
 (0)