1 ! This test checks lowering of stop statement in OpenACC region.
3 ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s
4 ! RUN: %flang_fc1 -emit-hlfir -fopenacc %s -o - | FileCheck %s
6 ! CHECK-LABEL: func.func @_QPtest_stop_in_region1() {
7 ! CHECK: acc.parallel {
8 ! CHECK: %[[VAL_0:.*]] = arith.constant 1 : i32
9 ! CHECK: %[[VAL_1:.*]] = arith.constant false
10 ! CHECK: %[[VAL_2:.*]] = arith.constant false
11 ! CHECK: %[[VAL_3:.*]] = fir.call @_FortranAStopStatement(%[[VAL_0]], %[[VAL_1]], %[[VAL_2]]) {{.*}} : (i32, i1, i1) -> none
17 subroutine test_stop_in_region1()
23 ! CHECK-LABEL: func.func @_QPtest_stop_in_region2() {
24 ! CHECK: %[[VAL_0:.*]] = fir.alloca i32 {bindc_name = "x", uniq_name = "_QFtest_stop_in_region2Ex"}
25 ! CHECK: acc.parallel {
26 ! CHECK: %[[VAL_1:.*]] = arith.constant 1 : i32
27 ! CHECK: %[[VAL_2:.*]] = arith.constant false
28 ! CHECK: %[[VAL_3:.*]] = arith.constant false
29 ! CHECK: %[[VAL_4:.*]] = fir.call @_FortranAStopStatement(%[[VAL_1]], %[[VAL_2]], %[[VAL_3]]) {{.*}} : (i32, i1, i1) -> none
35 subroutine test_stop_in_region2()