Skip to content

Commit 3ed4b95

Browse files
committed
[Flang] Fix test not updated after 'clang' case change
Summary: The shared 'clang' code changed this slightly but did not update the flang test.
1 parent 47b7c91 commit 3ed4b95

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

flang/test/Driver/omp-driver-offload.f90

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,25 @@
172172

173173
! Check that `-gpulibc` includes the LLVM C libraries for the GPU.
174174
! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
175-
! RUN: --offload-arch=gfx90a --offload-arch=sm_52 \
175+
! RUN: --offload-arch=sm_52 \
176176
! RUN: -gpulibc %s 2>&1 \
177-
! RUN: | FileCheck --check-prefix=LIBC-GPU %s
178-
! LIBC-GPU: "-lcgpu"{{.*}}"-lmgpu"
177+
! RUN: | FileCheck --check-prefix=LIBC-GPU-NVPTX %s
178+
! LIBC-GPU-NVPTX: "-lcgpu-nvptx"{{.*}}"-lmgpu-nvptx"
179179

180180
! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
181-
! RUN: --offload-arch=gfx90a --offload-arch=sm_52 \
181+
! RUN: --offload-arch=sm_52 \
182182
! RUN: -nogpulibc %s 2>&1 \
183-
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU %s
184-
! NO-LIBC-GPU-NOT: "-lcgpu"{{.*}}"-lmgpu"
183+
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-NVPTX %s
184+
! NO-LIBC-GPU-NVPTX-NOT: "-lcgpu-nvptx"{{.*}}"-lmgpu-nvptx"
185+
186+
! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
187+
! RUN: --offload-arch=gfx90a \
188+
! RUN: -gpulibc %s 2>&1 \
189+
! RUN: | FileCheck --check-prefix=LIBC-GPU-AMDGPU %s
190+
! LIBC-GPU-AMDGPU: "-lcgpu-amdgpu"{{.*}}"-lmgpu-amdgpu"
191+
192+
! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
193+
! RUN: --offload-arch=gfx90a \
194+
! RUN: -nogpulibc %s 2>&1 \
195+
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-AMDGPU %s
196+
! NO-LIBC-GPU-AMDGPU-NOT: "-lcgpu-amdgpu"{{.*}}"-lmgpu-amdgpu"

0 commit comments

Comments
 (0)