33 lines · plain
1; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s2 3; 4278190095 = 0xff00000f4define i32 @f1(i32 %a) {5; CHECK-LABEL: f1:6; CHECK: bfc r7 %tmp = and i32 %a, 42781900958 ret i32 %tmp9}10 11; 4286578688 = 0xff80000012define i32 @f2(i32 %a) {13; CHECK-LABEL: f2:14; CHECK: bfc r15 %tmp = and i32 %a, 428657868816 ret i32 %tmp17}18 19; 4095 = 0x00000fff20define i32 @f3(i32 %a) {21; CHECK-LABEL: f3:22; CHECK: bfc r23 %tmp = and i32 %a, 409524 ret i32 %tmp25}26 27; 2147483646 = 0x7ffffffe not implementable w/ BFC28define i32 @f4(i32 %a) {29; CHECK-LABEL: f4:30 %tmp = and i32 %a, 214748364631 ret i32 %tmp32}33