File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -534,7 +534,14 @@ void Flang::addTargetOptions(const ArgList &Args,
534
534
}
535
535
536
536
Args.addAllArgs (CmdArgs,
537
- {options::OPT_fverbose_asm, options::OPT_fno_verbose_asm});
537
+ {options::OPT_fverbose_asm, options::OPT_fno_verbose_asm,
538
+ options::OPT_fatomic_ignore_denormal_mode,
539
+ options::OPT_fno_atomic_ignore_denormal_mode,
540
+ options::OPT_fatomic_fine_grained_memory,
541
+ options::OPT_fno_atomic_fine_grained_memory,
542
+ options::OPT_fatomic_remote_memory,
543
+ options::OPT_fno_atomic_remote_memory,
544
+ options::OPT_munsafe_fp_atomics});
538
545
}
539
546
540
547
void Flang::addOffloadOptions (Compilation &C, const InputInfoList &Inputs,
Original file line number Diff line number Diff line change 1
1
! REQUIRES: amdgpu-registered-target
2
2
! RUN: %flang_fc1 -emit-llvm -triple amdgcn-amd-amdhsa -fopenmp -fopenmp-is-device -munsafe-fp-atomics %s -o -|FileCheck -check-prefix=UNSAFE-FP-ATOMICS %s
3
+ ! RUN: %flang --offload-arch=gfx90a --offload-device-only -fopenmp -emit-llvm -S %s -munsafe-fp-atomics -nogpulib -o -|FileCheck -check-prefix=UNSAFE-FP-ATOMICS %s
3
4
! RUN: %flang_fc1 -emit-llvm -triple amdgcn-amd-amdhsa -fopenmp -fopenmp-is-device -fatomic-ignore-denormal-mode %s -o -|FileCheck -check-prefix=IGNORE-DENORMAL-MODE %s
5
+ ! RUN: %flang --offload-arch=gfx90a --offload-device-only -fopenmp -emit-llvm -S %s -fatomic-ignore-denormal-mode -nogpulib -o -|FileCheck -check-prefix=IGNORE-DENORMAL-MODE %s
4
6
! RUN: %flang_fc1 -emit-llvm -triple amdgcn-amd-amdhsa -fopenmp -fopenmp-is-device -fatomic-fine-grained-memory %s -o -|FileCheck -check-prefix=FINE-GRAINED-MEMORY %s
7
+ ! RUN: %flang --offload-arch=gfx90a --offload-device-only -fopenmp -emit-llvm -S %s -fatomic-fine-grained-memory -nogpulib -o -|FileCheck -check-prefix=FINE-GRAINED-MEMORY %s
5
8
! RUN: %flang_fc1 -emit-llvm -triple amdgcn-amd-amdhsa -fopenmp -fopenmp-is-device -fatomic-remote-memory %s -o -|FileCheck -check-prefix=REMOTE-MEMORY %s
9
+ ! RUN: %flang --offload-arch=gfx90a --offload-device-only -fopenmp -emit-llvm -S %s -fatomic-remote-memory -nogpulib -o -|FileCheck -check-prefix=REMOTE-MEMORY %s
6
10
program test
7
11
implicit none
8
12
integer :: A, threads
You can’t perform that action at this time.
0 commit comments