brintos

brintos / llvm-project-archived public Read only

0
0
Text · 906 B · 9df02d6 Raw
15 lines · plain
1!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefix=DEVICE2!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s --check-prefix=HOST3!RUN: %flang_fc1 -emit-hlfir -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefix=DEVICE-FLAG-ONLY4!RUN: bbc -fopenmp -fopenmp-is-target-device -emit-hlfir -o - %s | FileCheck %s --check-prefix=DEVICE5!RUN: bbc -fopenmp -emit-hlfir -o - %s | FileCheck %s --check-prefix=HOST6!RUN: bbc -fopenmp-is-target-device -emit-hlfir -o - %s | FileCheck %s --check-prefix=DEVICE-FLAG-ONLY7 8!DEVICE: module attributes {{{.*}}, omp.is_target_device = true{{.*}}}9!HOST: module attributes {{{.*}}, omp.is_target_device = false{{.*}}}10!DEVICE-FLAG-ONLY: module attributes {{{.*}}"11!DEVICE-FLAG-ONLY-NOT: , omp.is_target_device = {{.*}}12!DEVICE-FLAG-ONLY-SAME: }13subroutine omp_subroutine()14end subroutine omp_subroutine15