Skip to content

Commit

Permalink
[InstCombine] add 'exact' to lshr to show that it got dropped; NFC
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293496 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rotateright committed Jan 30, 2017
1 parent eb8cfb3 commit c15acfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Transforms/InstCombine/shift.ll
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ define <2 x i32> @test51_splat_vec(<2 x i32> %x) {
}

; (X << C1) >>u C2 --> X >>u (C2-C1) & (-1 >> C2)
; Also, check that exact is propagated.

define i32 @test51_no_nuw(i32 %x) {
; CHECK-LABEL: @test51_no_nuw(
Expand All @@ -941,7 +942,7 @@ define i32 @test51_no_nuw(i32 %x) {
; CHECK-NEXT: ret i32 [[B]]
;
%A = shl i32 %x, 1
%B = lshr i32 %A, 3
%B = lshr exact i32 %A, 3
ret i32 %B
}

Expand Down

0 comments on commit c15acfb

Please sign in to comment.