[Clang] Make OpenMP offloading consistently use the bound architecture (#125135)
[llvm-project.git] / flang / test / Lower / OpenACC / acc-routine-named.f90
blob2cf6bf8b2bc06d08dca5b218034bdd1c9af2ce94
1 ! This test checks lowering of OpenACC routine directive.
3 ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s
5 module acc_routines
7 ! CHECK: acc.routine @acc_routine_1 func(@_QMacc_routinesPacc2)
8 ! CHECK: acc.routine @acc_routine_0 func(@_QMacc_routinesPacc1) seq
10 !$acc routine(acc1) seq
12 contains
14 subroutine acc1()
15 end subroutine
17 ! CHECK-LABEL: func.func @_QMacc_routinesPacc1() attributes {acc.routine_info = #acc.routine_info<[@acc_routine_0]>}
19 subroutine acc2()
20 !$acc routine(acc2)
21 end subroutine
23 ! CHECK-LABEL: func.func @_QMacc_routinesPacc2() attributes {acc.routine_info = #acc.routine_info<[@acc_routine_1]>}
25 end module