Files
clang-p2996/flang/test/Lower/OpenMP/FIR/taskyield.f90
Kiran Chandramohan c366e61b59 [Flang][OpenMP] Move FIR lowering tests to a separate directory (#66779)
As part of preparing for the switch to HLFIR lowering, all OpenMP FIR
lowering tests are moved to a subdirectory in the OpenMP directory.
Copies of these tests that work with HLFIR will be created during this
week. After the switch the FIR lowering tests will be removed.

All new tests should be added with the HLFIR flow.
2023-09-20 11:11:07 +01:00

13 lines
466 B
Fortran

!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect"
!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="OMPDialect"
!FIRDialect-LABEL: @_QPomp_taskyield
subroutine omp_taskyield
!OMPDialect: omp.taskyield
!$omp taskyield
!FIRDialect: fir.call @_QPfoo() {{.*}}: () -> ()
call foo()
!OMPDialect: omp.taskyield
!$omp taskyield
end subroutine omp_taskyield