18 lines · plain
1! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s2! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s3 4! CHECK-LABEL: ibset_test5function ibset_test(i, j)6 ! CHECK-DAG: %[[result:.*]] = fir.alloca i32 {bindc_name = "ibset_test"7 ! CHECK-DAG: %[[i:.*]] = fir.load %arg0 : !fir.ref<i32>8 ! CHECK-DAG: %[[j:.*]] = fir.load %arg1 : !fir.ref<i32>9 ! CHECK-DAG: %[[VAL_5:.*]] = arith.constant 1 : i3210 ! CHECK: %[[VAL_6:.*]] = arith.shli %[[VAL_5]], %[[j]] : i3211 ! CHECK: %[[VAL_7:.*]] = arith.ori %[[i]], %[[VAL_6]] : i3212 ! CHECK: fir.store %[[VAL_7]] to %[[result]] : !fir.ref<i32>13 ! CHECK: %[[VAL_8:.*]] = fir.load %[[result]] : !fir.ref<i32>14 ! CHECK: return %[[VAL_8]] : i3215 ibset_test = ibset(i, j)16end17 18