Skip to content

Commit 8ab28e0

Browse files
[NewOffloadModel] Update clang-linker-wrapper test with issue fixes (#20697)
This pull request resolves a typo introduced in a recent modification of `clang/test/Driver/clang-linker-wrapper.cpp`. In addition, the test logic is improved by replacing the use of `CHK-NO-CMDS-AOT-GEN-NOT` with `CHK-NO-CMDS-AOT-GEN` to verify the behavior where the device name should not be passed to `sycl-post-link` when `clang-linker-wrapper` is called with the `--gpu-tool-arg=-device arch` argument. The previous PR introduced the mistake is #20470
1 parent c7d0cd9 commit 8ab28e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/clang-linker-wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// (happen when AOT device is specified via -Xsycl-target-backend '-device pvc' in clang),
7676
// the target is not passed to sycl-post-link for filtering.
7777
// RUN: clang-linker-wrapper -sycl-embed-ir -sycl-device-libraries=%t1.devicelib.o -sycl-post-link-options="SYCL_POST_LINK_OPTIONS" -llvm-spirv-options="LLVM_SPIRV_OPTIONS" "--host-triple=x86_64-unknown-linux-gnu" "--gpu-tool-arg=-device pvc" "--linker-path=/usr/bin/ld" "--" HOST_LINKER_FLAGS "-dynamic-linker" HOST_DYN_LIB "-o" "a.out" HOST_LIB_PATH HOST_STAT_LIB %t1.o --dry-run 2>&1 | FileCheck -check-prefix=CHK-NO-CMDS-AOT-GEN %s
78-
// CHK-NO-CMDS-AOT-GEN-NOT: sycl-post-link{{.*}} -o intel_gpu_pv,{{.*}}
78+
// CHK-NO-CMDS-AOT-GEN: sycl-post-link{{.*}} SYCL_POST_LINK_OPTIONS -o {{[^,]*}}.table {{.*}}.bc
7979

8080
/// Check for list of commands for standalone clang-linker-wrapper run for sycl (AOT for Intel CPU)
8181
// -------

0 commit comments

Comments
 (0)