1 ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s
16 ! CHECK-LABEL: func.func @_QPsub1
17 ! CHECK: %[[A:.*]]:2 = hlfir.declare %arg1 dummy_scope %{{[0-9]+}} {uniq_name = "_QFsub1Ea"} : (!fir.ref<i32>, !fir.dscope) -> (!fir.ref<i32>, !fir.ref<i32>)
18 ! CHECK: %[[I:.*]]:2 = hlfir.declare %{{[0-9]+}} {uniq_name = "_QFsub1Ei"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
19 ! CHECK: %[[I:.*]]:2 = hlfir.declare %{{[0-9]+}} {uniq_name = "_QFsub1Ei"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
20 ! CHECK: %[[EXIT_COND:.*]] = acc.loop
23 ! CHECK: %[[LOAD_I:.*]] = fir.load %[[I]]#0 : !fir.ref<i32>
24 ! CHECK: %[[LOAD_I:.*]] = fir.load %[[I]]#0 : !fir.ref<i32>
25 ! CHECK: %[[LOAD_A:.*]] = fir.load %[[A]]#0 : !fir.ref<i32>
26 ! CHECK: %[[CMP:.*]] = arith.cmpi eq, %[[LOAD_I]], %[[LOAD_A]] : i32
27 ! CHECK: cf.cond_br %[[CMP]], ^[[EARLY_RET:.*]], ^[[NO_RET:.*]]
28 ! CHECK: ^[[EARLY_RET]]:
29 ! CHECK: acc.yield %true : i1
31 ! CHECK: cf.br ^bb{{.*}}
33 ! CHECK: acc.yield %false : i1
35 ! CHECK: cf.cond_br %[[EXIT_COND]], ^[[EXIT_BLOCK:.*]], ^[[CONTINUE_BLOCK:.*]]
36 ! CHECK: ^[[CONTINUE_BLOCK]]:
38 ! CHECK: cf.br ^[[EXIT_BLOCK]]
39 ! CHECK: ^[[EXIT_BLOCK]]: