summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll b/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll
index 3c8c98bccb9..6a7e5b70ca1 100644
--- a/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll
+++ b/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll
@@ -33,8 +33,9 @@ for.end: ; preds = %for.body, %entry
; CHECK-LABEL: @test1(
; check that we turn the IV test into an eq.
-; CHECK: %lftr.wideiv = trunc i64 %indvars.iv.next to i32
-; CHECK: %exitcond = icmp ne i32 %lftr.wideiv, %su
+; CHECK: %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
+; CHECK: %wide.trip.count = zext i32 %sub to i64
+; CHECK: %exitcond = icmp ne i64 %indvars.iv.next, %wide.trip.count
; CHECK: br i1 %exitcond, label %for.body, label %for.end.loopexit
}
OpenPOWER on IntegriCloud