brintos

brintos / llvm-project-archived public Read only

0
0
Text · 876 B · a11e677 Raw
20 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: ibclr_test5function ibclr_test(i, j)6  ! CHECK-DAG: %[[result:.*]] = fir.alloca i32 {bindc_name = "ibclr_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-DAG: %[[VAL_6:.*]] = arith.constant -1 : i3211  ! CHECK: %[[VAL_7:.*]] = arith.shli %[[VAL_5]], %[[j]] : i3212  ! CHECK: %[[VAL_8:.*]] = arith.xori %[[VAL_6]], %[[VAL_7]] : i3213  ! CHECK: %[[VAL_9:.*]] = arith.andi %[[i]], %[[VAL_8]] : i3214  ! CHECK: fir.store %[[VAL_9]] to %[[result]] : !fir.ref<i32>15  ! CHECK: %[[VAL_10:.*]] = fir.load %[[result]] : !fir.ref<i32>16  ! CHECK: return %[[VAL_10]] : i3217  ibclr_test = ibclr(i, j)18end19 20