File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 229
229
! FORCE-USM-OFFLOAD-SAME: "-fopenmp" "-fopenmp-force-usm"
230
230
231
231
! Test that the -fopenmp-targets option is added to host compilation invocations
232
- ! when --offload-arch is set.
232
+ ! when --offload-arch or -fopenmp-targets are set.
233
233
! RUN: %flang -S -### %s -o %t 2>&1 \
234
234
! RUN: -fopenmp --offload-arch=gfx90a \
235
235
! RUN: --target=x86_64-unknown-linux-gnu \
236
236
! RUN: | FileCheck %s --check-prefix=OFFLOAD-TARGETS
237
+ ! RUN: %flang -S -### %s -o %t 2>&1 \
238
+ ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa --offload-arch=gfx90a \
239
+ ! RUN: --target=x86_64-unknown-linux-gnu \
240
+ ! RUN: | FileCheck %s --check-prefix=OFFLOAD-TARGETS
237
241
238
242
! OFFLOAD-TARGETS: "{{[^"]*}}flang-new" "-fc1" "-triple" "x86_64-unknown-linux-gnu"
239
243
! OFFLOAD-TARGETS-SAME: "-fopenmp-targets=amdgcn-amd-amdhsa"
You can’t perform that action at this time.
0 commit comments