Skip to content

Commit b3b1f29

Browse files
committed
clang/HIP: Remove requires system-linux from some driver tests
1 parent 6fdaaaf commit b3b1f29

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

clang/test/Driver/hip-partial-link.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: x86-registered-target, amdgpu-registered-target, lld, system-linux
1+
// REQUIRES: x86-registered-target, amdgpu-registered-target, lld
22

33
// RUN: %clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
44
// RUN: --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc \

clang/test/Driver/linker-wrapper.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// REQUIRES: nvptx-registered-target
33
// REQUIRES: amdgpu-registered-target
44

5-
// REQUIRES: system-linux
6-
75
// An externally visible variable so static libraries extract.
86
__attribute__((visibility("protected"), used)) int x;
97

@@ -120,7 +118,7 @@ __attribute__((visibility("protected"), used)) int x;
120118

121119
// HIP: clang{{.*}} -o [[IMG_GFX90A:.+]] --target=amdgcn-amd-amdhsa -mcpu=gfx90a
122120
// HIP: clang{{.*}} -o [[IMG_GFX908:.+]] --target=amdgcn-amd-amdhsa -mcpu=gfx908
123-
// HIP: clang-offload-bundler{{.*}}-type=o -bundle-align=4096 -compress -compression-level=6 -targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa--gfx90a,hip-amdgcn-amd-amdhsa--gfx908 -input=/dev/null -input=[[IMG_GFX90A]] -input=[[IMG_GFX908]] -output={{.*}}.hipfb
121+
// HIP: clang-offload-bundler{{.*}}-type=o -bundle-align=4096 -compress -compression-level=6 -targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa--gfx90a,hip-amdgcn-amd-amdhsa--gfx908 -input={{/dev/null|NUL}} -input=[[IMG_GFX90A]] -input=[[IMG_GFX908]] -output={{.*}}.hipfb
124122

125123
// RUN: clang-offload-packager -o %t.out \
126124
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx908 \
@@ -211,7 +209,7 @@ __attribute__((visibility("protected"), used)) int x;
211209
// RUN: %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=RELOCATABLE-LINK-HIP
212210

213211
// RELOCATABLE-LINK-HIP: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa
214-
// RELOCATABLE-LINK-HIP: clang-offload-bundler{{.*}} -type=o -bundle-align=4096 -targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa--gfx90a -input=/dev/null -input={{.*}} -output={{.*}}
212+
// RELOCATABLE-LINK-HIP: clang-offload-bundler{{.*}} -type=o -bundle-align=4096 -targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa--gfx90a -input={{/dev/null|NUL}} -input={{.*}} -output={{.*}}
215213
// RELOCATABLE-LINK-HIP: /usr/bin/ld.lld{{.*}}-r
216214
// RELOCATABLE-LINK-HIP: llvm-objcopy{{.*}}a.out --remove-section .llvm.offloading
217215

0 commit comments

Comments
 (0)