summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/rem.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-02 22:01:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-02 22:01:04 +0000
commitd1a2c2d90599055b920052c98132323c08e5f72e (patch)
tree2d7353dcafabe49b53829a55732af736663c2773 /llvm/test/Transforms/InstCombine/rem.ll
parent4bd024d4e8b852c0e088a30610368a330a9d722b (diff)
downloadbcm5719-llvm-d1a2c2d90599055b920052c98132323c08e5f72e.tar.gz
bcm5719-llvm-d1a2c2d90599055b920052c98132323c08e5f72e.zip
Add back commit r210029.
The code was actually correct. Sorry for the confusion. I have expanded the comment saying why the analysis is valid to avoid me misunderstaning it again in the future. llvm-svn: 210052
Diffstat (limited to 'llvm/test/Transforms/InstCombine/rem.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/rem.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/rem.ll b/llvm/test/Transforms/InstCombine/rem.ll
index 9f07702681e..0595a67393a 100644
--- a/llvm/test/Transforms/InstCombine/rem.ll
+++ b/llvm/test/Transforms/InstCombine/rem.ll
@@ -127,7 +127,7 @@ define i64 @test14(i64 %x, i32 %y) {
; CHECK-LABEL: @test14(
; CHECK-NEXT: [[SHL:%.*]] = shl i32 1, %y
; CHECK-NEXT: [[ZEXT:%.*]] = zext i32 [[SHL]] to i64
-; CHECK-NEXT: [[ADD:%.*]] = add i64 [[ZEXT]], -1
+; CHECK-NEXT: [[ADD:%.*]] = add nsw i64 [[ZEXT]], -1
; CHECK-NEXT: [[AND:%.*]] = and i64 [[ADD]], %x
; CHECK-NEXT: ret i64 [[AND]]
%shl = shl i32 1, %y
OpenPOWER on IntegriCloud