1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[ARM] Add Thumb-2 code size optimization regression test for EOR.

llvm-svn: 216881
This commit is contained in:
Tilmann Scheller 2014-09-01 12:59:34 +00:00
parent 0dabe778bc
commit 0da3307044

View File

@ -37,3 +37,12 @@ entry:
%and = and i32 %neg, %a
ret i32 %and
}
define i32 @eor(i32 %a, i32 %b) nounwind readnone {
; CHECK-LABEL: eor:
; CHECK: eor.w r{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}} @ encoding: [{{0x..,0x..,0x..,0x..}}]
; CHECK-OPT: eors r{{[0-7]}}, r{{[0-7]}} @ encoding: [{{0x..,0x..}}]
entry:
%eor = xor i32 %a, %b
ret i32 %eor
}