[llvm] r217576 - [ARM] Add Thumb2 code size optimization regression test for LSL (immediate).

Tilmann Scheller t.scheller at samsung.com
Thu Sep 11 03:29:42 PDT 2014


Author: tilmann
Date: Thu Sep 11 05:29:42 2014
New Revision: 217576

URL: http://llvm.org/viewvc/llvm-project?rev=217576&view=rev
Log:
[ARM] Add Thumb2 code size optimization regression test for LSL (immediate).

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=217576&r1=217575&r2=217576&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:29:42 2014
@@ -46,3 +46,12 @@ entry:
   %eor = xor i32 %a, %b
   ret i32 %eor
 }
+
+define i32 @lsl-imm(i32 %a) nounwind readnone {
+; CHECK-LABEL: "lsl-imm":
+; CHECK: lsl.w r{{[0-9]+}}, r{{[0-9]+}}, #13 @ encoding: [{{0x..,0x..,0x..,0x..}}]
+; CHECK-OPT: lsls r{{[0-7]}}, r{{[0-7]}}, #13  @ encoding: [{{0x..,0x..}}]
+entry:
+  %shl = shl i32 %a, 13
+  ret i32 %shl
+}





More information about the llvm-commits mailing list