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 ; CHECK-LABEL: f1:
      6 ; CHECK: eor {{.*}}#187
      7     %tmp = xor i32 %a, 187
      8     ret i32 %tmp
      9 }
     10 
     11 ; 0x00aa00aa = 11141290
     12 define i32 @f2(i32 %a) {
     13 ; CHECK-LABEL: f2:
     14 ; CHECK: eor {{.*}}#11141290
     15     %tmp = xor i32 %a, 11141290 
     16     ret i32 %tmp
     17 }
     18 
     19 ; 0xcc00cc00 = 3422604288
     20 define i32 @f3(i32 %a) {
     21 ; CHECK-LABEL: f3:
     22 ; CHECK: eor {{.*}}#-872363008
     23     %tmp = xor i32 %a, 3422604288
     24     ret i32 %tmp
     25 }
     26 
     27 ; 0xdddddddd = 3722304989
     28 define i32 @f4(i32 %a) {
     29 ; CHECK-LABEL: f4:
     30 ; CHECK: eor {{.*}}#-572662307
     31     %tmp = xor i32 %a, 3722304989
     32     ret i32 %tmp
     33 }
     34 
     35 ; 0x00110000 = 1114112
     36 define i32 @f5(i32 %a) {
     37 ; CHECK-LABEL: f5:
     38 ; CHECK: eor {{.*}}#1114112
     39     %tmp = xor i32 %a, 1114112
     40     ret i32 %tmp
     41 }
     42