Skip to content

Commit

Permalink
[Flang] Fix test not updated after 'clang' case change
Browse files Browse the repository at this point in the history
Summary:
The shared 'clang' code changed this slightly but did not update the
flang test.
  • Loading branch information
jhuber6 committed Feb 22, 2024
1 parent 47b7c91 commit 3ed4b95
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions flang/test/Driver/omp-driver-offload.f90
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,25 @@

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

! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
! RUN: --offload-arch=gfx90a --offload-arch=sm_52 \
! RUN: --offload-arch=sm_52 \
! RUN: -nogpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU %s
! NO-LIBC-GPU-NOT: "-lcgpu"{{.*}}"-lmgpu"
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-NVPTX %s
! NO-LIBC-GPU-NVPTX-NOT: "-lcgpu-nvptx"{{.*}}"-lmgpu-nvptx"

! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
! RUN: --offload-arch=gfx90a \
! RUN: -gpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=LIBC-GPU-AMDGPU %s
! LIBC-GPU-AMDGPU: "-lcgpu-amdgpu"{{.*}}"-lmgpu-amdgpu"

! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp \
! RUN: --offload-arch=gfx90a \
! RUN: -nogpulibc %s 2>&1 \
! RUN: | FileCheck --check-prefix=NO-LIBC-GPU-AMDGPU %s
! NO-LIBC-GPU-AMDGPU-NOT: "-lcgpu-amdgpu"{{.*}}"-lmgpu-amdgpu"

0 comments on commit 3ed4b95

Please sign in to comment.