File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- ! RUN %flang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx90a -Xoffload-linker a %s 2>&1 | FileCheck %s --check-prefixes=CHECK-XLINKER
1
+ ! Test the -Xoffload-linker flag that forwards link commands to the clang-linker-wrapper used
2
+ ! to help link offloading device libraries
2
3
3
- ! CHECK-XLINKER {{.*}}--device-linker=a{{.*}}
4
+ ! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx90a -Xoffload-linker a %s 2>&1 | FileCheck %s --check-prefixes=CHECK-XLINKER
4
5
5
- ! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx90a -Xoffload- linker a -Xoffload-linker-amdgcn-amd-amdhsa b %s 2>&1 | FileCheck %s --check-prefixes=CHECK-XLINKER-AMDGCN
6
+ ! CHECK-XLINKER: -device- linker=a{{.*}}-
6
7
7
- ! CHECK-XLINKER-AMDGCN: {{.*}}"--device-linker=a"{{.*}}"--device- linker= amdgcn-amd-amdhsa=b"{{.*}}
8
+ ! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx90a -Xoffload-linker a -Xoffload- linker- amdgcn-amd-amdhsa b %s 2>&1 | FileCheck %s --check-prefixes=CHECK-XLINKER-AMDGCN
8
9
9
- end program
10
+ ! CHECK-XLINKER-AMDGCN: -device-linker=a{{.*}}-device-linker=amdgcn-amd-amdhsa=b{{.*}}--
You can’t perform that action at this time.
0 commit comments