summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorTilmann Scheller <t.scheller@samsung.com>2014-09-01 12:59:34 +0000
committerTilmann Scheller <t.scheller@samsung.com>2014-09-01 12:59:34 +0000
commit659dfb4dc8da626d0c8e4a68edc52ac0c9f8fb60 (patch)
tree9247ca53a7f18da43d9258da1fa25a1e1d9e1743 /llvm/test
parent2fc1adcaff61355e13468bf0516901f9d61d5105 (diff)
downloadbcm5719-llvm-659dfb4dc8da626d0c8e4a68edc52ac0c9f8fb60.tar.gz
bcm5719-llvm-659dfb4dc8da626d0c8e4a68edc52ac0c9f8fb60.zip
[ARM] Add Thumb-2 code size optimization regression test for EOR.
llvm-svn: 216881
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/thumb2-size-opt.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/thumb2-size-opt.ll b/llvm/test/CodeGen/ARM/thumb2-size-opt.ll
index 532c3d348fc..62938c61efd 100644
--- a/llvm/test/CodeGen/ARM/thumb2-size-opt.ll
+++ b/llvm/test/CodeGen/ARM/thumb2-size-opt.ll
@@ -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
+}
OpenPOWER on IntegriCloud