diff options
author | Tilmann Scheller <t.scheller@samsung.com> | 2014-09-11 10:29:42 +0000 |
---|---|---|
committer | Tilmann Scheller <t.scheller@samsung.com> | 2014-09-11 10:29:42 +0000 |
commit | 7430df486e1817bfc03a3cb7ce7757646370add5 (patch) | |
tree | 8f679f74b0be4c04af9eec3307bfc760f31b85d2 | |
parent | 1ec3e4e4bd31902a637eaa9c88d8651c3182d4b5 (diff) | |
download | bcm5719-llvm-7430df486e1817bfc03a3cb7ce7757646370add5.tar.gz bcm5719-llvm-7430df486e1817bfc03a3cb7ce7757646370add5.zip |
[ARM] Add Thumb2 code size optimization regression test for LSL (immediate).
llvm-svn: 217576
-rw-r--r-- | llvm/test/CodeGen/ARM/thumb2-size-opt.ll | 9 |
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 62938c61efd..12280a91c8f 100644 --- a/llvm/test/CodeGen/ARM/thumb2-size-opt.ll +++ b/llvm/test/CodeGen/ARM/thumb2-size-opt.ll @@ -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 +} |