xref: /llvm-project/flang/test/Lower/OpenMP/offload-targets.f90 (revision 9dadb1f62bb8086a53ba39d188665c4fe3a9c6ec)
1! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda %s -o - | FileCheck %s
2! RUN: bbc -emit-hlfir -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda %s -o - | FileCheck %s
3
4! This test checks the addition of the omp.target_triples attribute when the
5! -fopenmp-targets option is set
6
7!CHECK:      module attributes {
8!CHECK-SAME: omp.target_triples = ["amdgcn-amd-amdhsa", "nvptx64-nvidia-cuda"]
9program targets
10end program targets
11