[llvm] r217579 - [ARM] Add Thumb-2 code size optimization regression test for LSL (register).
Tilmann Scheller
t.scheller at samsung.com
Thu Sep 11 03:33:39 PDT 2014
Author: tilmann
Date: Thu Sep 11 05:33:39 2014
New Revision: 217579
URL: http://llvm.org/viewvc/llvm-project?rev=217579&view=rev
Log:
[ARM] Add Thumb-2 code size optimization regression test for LSL (register).
Modified:
llvm/trunk/test/CodeGen/ARM/thumb2-size-opt.ll
Modified: llvm/trunk/test/CodeGen/ARM/thumb2-size-opt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/thumb2-size-opt.ll?rev=217579&r1=217578&r2=217579&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/thumb2-size-opt.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/thumb2-size-opt.ll Thu Sep 11 05:33:39 2014
@@ -55,3 +55,12 @@ entry:
%shl = shl i32 %a, 13
ret i32 %shl
}
+
+define i32 @lsl-reg(i32 %a, i32 %b) nounwind readnone {
+; CHECK-LABEL: "lsl-reg":
+; CHECK: lsl.w r{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}} @ encoding: [{{0x..,0x..,0x..,0x..}}]
+; CHECK-OPT: lsls r{{[0-7]}}, r{{[0-7]}} @ encoding: [{{0x..,0x..}}]
+entry:
+ %shl = shl i32 %a, %b
+ ret i32 %shl
+}
More information about the llvm-commits
mailing list