Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Lower / OpenMP / omp-is-device.f90
blob63840aca56c0c836787ac46d6a6e20656b4d91b8
1 !RUN: %flang_fc1 -emit-fir -fopenmp -fopenmp-is-device %s -o - | FileCheck %s --check-prefix=DEVICE
2 !RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefix=HOST
3 !RUN: %flang_fc1 -emit-fir -fopenmp-is-device %s -o - | FileCheck %s --check-prefix=DEVICE-FLAG-ONLY
4 !RUN: bbc -fopenmp -fopenmp-is-device -emit-fir -o - %s | FileCheck %s --check-prefix=DEVICE
5 !RUN: bbc -fopenmp -emit-fir -o - %s | FileCheck %s --check-prefix=HOST
6 !RUN: bbc -fopenmp-is-device -emit-fir -o - %s | FileCheck %s --check-prefix=DEVICE-FLAG-ONLY
8 !DEVICE: module attributes {{{.*}}, omp.is_device = true{{.*}}}
9 !HOST: module attributes {{{.*}}, omp.is_device = false{{.*}}}
10 !DEVICE-FLAG-ONLY: module attributes {{{.*}}"
11 !DEVICE-FLAG-ONLY-NOT: , omp.is_device = {{.*}}
12 !DEVICE-FLAG-ONLY-SAME: }
13 subroutine omp_subroutine()
14 end subroutine omp_subroutine