summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll')
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll b/llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll
index 99cb8569b3f..7c7a21c013f 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll
+++ b/llvm/test/Transforms/LoopStrengthReduce/2008-08-06-CmpStride.ll
@@ -1,4 +1,5 @@
-; RUN: llc -march=x86-64 < %s -o - | grep {cmpl \\$\[1\], %}
+; RUN: opt < %s -loop-reduce -S | grep ugt
+; PR2535
@.str = internal constant [4 x i8] c"%d\0A\00"
@@ -15,7 +16,7 @@ forbody:
%add166 = or i32 %mul15, 1 ; <i32> [#uses=1] *
call i32 (i8*, ...)* @printf( i8* noalias getelementptr ([4 x i8]* @.str, i32 0, i32 0), i32 %add166 ) nounwind
%inc = add i32 %i.0, 1 ; <i32> [#uses=3]
- %cmp = icmp ne i32 %inc, 1027 ; <i1> [#uses=1]
+ %cmp = icmp ult i32 %inc, 1027 ; <i1> [#uses=1]
br i1 %cmp, label %forbody, label %afterfor
afterfor: ; preds = %forcond
OpenPOWER on IntegriCloud