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