|
2 | 2 | // REQUIRES: nvptx-registered-target |
3 | 3 | // REQUIRES: amdgpu-registered-target |
4 | 4 |
|
5 | | -// REQUIRES: system-linux |
6 | | - |
7 | 5 | // An externally visible variable so static libraries extract. |
8 | 6 | __attribute__((visibility("protected"), used)) int x; |
9 | 7 |
|
@@ -120,7 +118,7 @@ __attribute__((visibility("protected"), used)) int x; |
120 | 118 |
|
121 | 119 | // HIP: clang{{.*}} -o [[IMG_GFX90A:.+]] --target=amdgcn-amd-amdhsa -mcpu=gfx90a |
122 | 120 | // 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 |
124 | 122 |
|
125 | 123 | // RUN: clang-offload-packager -o %t.out \ |
126 | 124 | // RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx908 \ |
@@ -211,7 +209,7 @@ __attribute__((visibility("protected"), used)) int x; |
211 | 209 | // RUN: %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=RELOCATABLE-LINK-HIP |
212 | 210 |
|
213 | 211 | // 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={{.*}} |
215 | 213 | // RELOCATABLE-LINK-HIP: /usr/bin/ld.lld{{.*}}-r |
216 | 214 | // RELOCATABLE-LINK-HIP: llvm-objcopy{{.*}}a.out --remove-section .llvm.offloading |
217 | 215 |
|
|
0 commit comments