1 ! RUN: bbc -emit-fir -o - %s | FileCheck %s
3 ! CHECK-LABEL: func @_QPss
8 ! CHECK-LABEL: func @_QPee
11 ! CHECK: return %{{.}} : index
15 ! CHECK-LABEL: func @_QQmain
26 ! CHECK-LABEL: func @_QPk
29 ! CHECK: [[selector:%[0-9]+]] = fir.call @_QPs
30 ! CHECK-NEXT: fir.select [[selector]] : index [1, ^[[block1:bb[0-9]+]], 2, ^[[block2:bb[0-9]+]], unit, ^[[blockunit:bb[0-9]+]]
31 call s(n1
, *5, n2
, *7)
32 ! CHECK: ^[[blockunit]]: // pred: ^bb0
34 ! CHECK: ^[[block1]]: // pred: ^bb0
36 ! CHECK: ^[[block2]]: // pred: ^bb0
40 ! CHECK-LABEL: func @_QPs
41 subroutine s(n1
, *, n2
, *)
42 ! CHECK: [[retval:%[0-9]+]] = fir.alloca index {{{.*}}bindc_name = "s"}
43 ! CHECK-COUNT-3: fir.store {{.*}} to [[retval]] : !fir.ref<index>
46 ! CHECK: {{.*}} = fir.load [[retval]] : !fir.ref<index>
47 ! CHECK-NEXT: return {{.*}} : index