Skip to content

Commit a5d5c98

Browse files
committed
Attempt to fix buildbot issue
1 parent cf26a31 commit a5d5c98

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
! REQUIRES: amdgpu-registered-target
2+
3+
! Test that AMDGPU-specific flang-new OpenMP offload related commands expand to
4+
! the appropriate commands for flang-new -fc1 as expected. Contrary to tests
5+
! located in omp-driver-offload.f90, driver tests here do require the amdgcn-
6+
! amd-amdhsa triple to be recognized.
7+
8+
! RUN: %flang -S -### %s -o %t 2>&1 \
9+
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
10+
! RUN: --target=x86_64-unknown-linux-gnu \
11+
! RUN: | FileCheck %s --check-prefix=OFFLOAD-TARGETS
12+
13+
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "x86_64-unknown-linux-gnu"
14+
! OFFLOAD-TARGETS-SAME: "-fopenmp-targets=amdgcn-amd-amdhsa"
15+
! OFFLOAD-TARGETS-NEXT: "{{[^"]*}}flang-new" "-fc1" "-triple" "amdgcn-amd-amdhsa"
16+
! OFFLOAD-TARGETS-NOT: -fopenmp-targets
17+
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "x86_64-unknown-linux-gnu"
18+
! OFFLOAD-TARGETS-SAME: "-fopenmp-targets=amdgcn-amd-amdhsa"

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,14 @@
228228
! FORCE-USM-OFFLOAD-NEXT: "{{[^"]*}}flang-new" "-fc1" "-triple" "amdgcn-amd-amdhsa"
229229
! FORCE-USM-OFFLOAD-SAME: "-fopenmp" "-fopenmp-force-usm"
230230

231-
! RUN: %flang -S -### %s -o %t 2>&1 \
232-
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
233-
! RUN: --target=aarch64-unknown-linux-gnu \
234-
! RUN: | FileCheck %s --check-prefix=OFFLOAD-TARGETS
235-
236231
! RUN: %flang -S -### %s -o %t 2>&1 \
237232
! RUN: -fopenmp --offload-arch=gfx90a \
238-
! RUN: --target=aarch64-unknown-linux-gnu \
233+
! RUN: --target=x86_64-unknown-linux-gnu \
239234
! RUN: | FileCheck %s --check-prefix=OFFLOAD-TARGETS
240235

241-
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
236+
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "x86_64-unknown-linux-gnu"
242237
! OFFLOAD-TARGETS-SAME: "-fopenmp-targets=amdgcn-amd-amdhsa"
243238
! OFFLOAD-TARGETS-NEXT: "{{[^"]*}}flang-new" "-fc1" "-triple" "amdgcn-amd-amdhsa"
244239
! OFFLOAD-TARGETS-NOT: -fopenmp-targets
245-
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
240+
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "x86_64-unknown-linux-gnu"
246241
! OFFLOAD-TARGETS-SAME: "-fopenmp-targets=amdgcn-amd-amdhsa"

0 commit comments

Comments
 (0)