Skip to content

Commit

Permalink
[ARM] Add Thumb-2 code size optimization regression test for LSR (reg…
Browse files Browse the repository at this point in the history
…ister).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217582 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Tilmann Scheller committed Sep 11, 2014
1 parent 171bd26 commit c1df48d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/CodeGen/ARM/thumb2-size-opt.ll
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,12 @@ entry:
%shr = lshr i32 %a, 13
ret i32 %shr
}

define i32 @lsr-reg(i32 %a, i32 %b) nounwind readnone {
; CHECK-LABEL: "lsr-reg":
; CHECK: lsr.w r{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}} @ encoding: [{{0x..,0x..,0x..,0x..}}]
; CHECK-OPT: lsrs r{{[0-7]}}, r{{[0-7]}} @ encoding: [{{0x..,0x..}}]
entry:
%shr = lshr i32 %a, %b
ret i32 %shr
}

0 comments on commit c1df48d

Please sign in to comment.