1 !RUN: bbc -emit-hlfir -fopenacc -fopenmp -o - %s | FileCheck %s
3 !https://github.com/llvm/llvm-project/issues/91526
5 !CHECK-LABEL: func.func @_QPsimple1
6 !CHECK: cf.cond_br %{{[0-9]+}}, ^bb[[THEN:[0-9]+]], ^bb[[ELSE:[0-9]+]]
9 !CHECK: cf.br ^bb[[ENDIF:[0-9]+]]
11 !CHECK: fir.call @_FortranAStopStatement
12 !CHECK: fir.unreachable
18 logical, intent(in
) :: y
29 !CHECK-LABEL: func.func @_QPsimple2
30 !CHECK: cf.cond_br %{{[0-9]+}}, ^bb[[THEN:[0-9]+]], ^bb[[ELSE:[0-9]+]]
33 !CHECK: cf.br ^bb[[ENDIF:[0-9]+]]
35 !CHECK: fir.call @_FortranAStopStatement
36 !CHECK: fir.unreachable
38 !CHECK: fir.call @_FortranAioOutputReal64
40 subroutine simple2(x
, yn
)
42 logical, intent(in
) :: yn
43 integer, intent(in
) :: x
49 !$omp parallel do private(i) reduction(+:E)
60 !CHECK-LABEL: func.func @_QPacccase
61 !CHECK: fir.select_case %{{[0-9]+}} : i32 [{{.*}}, ^bb[[CASE1:[0-9]+]], {{.*}}, ^bb[[CASE2:[0-9]+]], {{.*}}, ^bb[[CASE3:[0-9]+]]]
64 !CHECK: cf.br ^bb[[EXIT:[0-9]+]]
66 !CHECK: fir.call @_FortranAioOutputAscii
67 !CHECK: cf.br ^bb[[EXIT]]
69 !CHECK: fir.call @_FortranAioOutputAscii
70 !CHECK: cf.br ^bb[[EXIT]]
73 subroutine acccase(var
)
85 print *, "case default"