2014-04-04 07:47:24 +08:00
|
|
|
; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
|
2009-06-27 06:37:07 +08:00
|
|
|
|
|
|
|
; 0x000000bb = 187
|
|
|
|
define i32 @f1(i32 %a) {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: f1:
|
2009-10-27 14:31:02 +08:00
|
|
|
; CHECK: eor {{.*}}#187
|
2009-06-27 06:37:07 +08:00
|
|
|
%tmp = xor i32 %a, 187
|
|
|
|
ret i32 %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
; 0x00aa00aa = 11141290
|
|
|
|
define i32 @f2(i32 %a) {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: f2:
|
2009-10-27 14:31:02 +08:00
|
|
|
; CHECK: eor {{.*}}#11141290
|
2009-06-27 06:37:07 +08:00
|
|
|
%tmp = xor i32 %a, 11141290
|
|
|
|
ret i32 %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
; 0xcc00cc00 = 3422604288
|
|
|
|
define i32 @f3(i32 %a) {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: f3:
|
2009-10-27 14:31:02 +08:00
|
|
|
; CHECK: eor {{.*}}#-872363008
|
2009-06-27 06:37:07 +08:00
|
|
|
%tmp = xor i32 %a, 3422604288
|
|
|
|
ret i32 %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
; 0xdddddddd = 3722304989
|
|
|
|
define i32 @f4(i32 %a) {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: f4:
|
2009-10-27 14:31:02 +08:00
|
|
|
; CHECK: eor {{.*}}#-572662307
|
2009-06-27 06:37:07 +08:00
|
|
|
%tmp = xor i32 %a, 3722304989
|
|
|
|
ret i32 %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
; 0x00110000 = 1114112
|
|
|
|
define i32 @f5(i32 %a) {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: f5:
|
2009-10-27 14:31:02 +08:00
|
|
|
; CHECK: eor {{.*}}#1114112
|
2009-06-27 06:37:07 +08:00
|
|
|
%tmp = xor i32 %a, 1114112
|
|
|
|
ret i32 %tmp
|
|
|
|
}
|