From 993f84c9bccc1a219e35058e731a864684f72502 Mon Sep 17 00:00:00 2001 From: Tilmann Scheller Date: Thu, 11 Sep 2014 10:33:39 +0000 Subject: [PATCH] [ARM] Add Thumb-2 code size optimization regression test for LSL (register). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217579 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/thumb2-size-opt.ll | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/CodeGen/ARM/thumb2-size-opt.ll b/test/CodeGen/ARM/thumb2-size-opt.ll index 12280a91c8f..4d9c0603e85 100644 --- a/test/CodeGen/ARM/thumb2-size-opt.ll +++ b/test/CodeGen/ARM/thumb2-size-opt.ll @@ -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 +} -- 2.11.0