Home | History | Annotate | Download | only in Thumb2
      1 ; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
      2 
      3 ; 0x000000bb = 187
      4 define i32 @f1(i32 %a) {
      5     %tmp2 = or i32 %a, 187
      6     ret i32 %tmp2
      7 }
      8 ; CHECK-LABEL: f1:
      9 ; CHECK: 	orr	r0, r0, #187
     10 
     11 ; 0x00aa00aa = 11141290
     12 define i32 @f2(i32 %a) {
     13     %tmp2 = or i32 %a, 11141290 
     14     ret i32 %tmp2
     15 }
     16 ; CHECK-LABEL: f2:
     17 ; CHECK: 	orr	r0, r0, #11141290
     18 
     19 ; 0xcc00cc00 = 3422604288
     20 define i32 @f3(i32 %a) {
     21     %tmp2 = or i32 %a, 3422604288
     22     ret i32 %tmp2
     23 }
     24 ; CHECK-LABEL: f3:
     25 ; CHECK: 	orr	r0, r0, #-872363008
     26 
     27 ; 0x44444444 = 1145324612
     28 define i32 @f4(i32 %a) {
     29     %tmp2 = or i32 %a, 1145324612
     30     ret i32 %tmp2
     31 }
     32 ; CHECK-LABEL: f4:
     33 ; CHECK: 	orr	r0, r0, #1145324612
     34 
     35 ; 0x00110000 = 1114112
     36 define i32 @f5(i32 %a) {
     37     %tmp2 = or i32 %a, 1114112
     38     ret i32 %tmp2
     39 }
     40 ; CHECK-LABEL: f5:
     41 ; CHECK: 	orr	r0, r0, #1114112
     42