summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/lsr-sort.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/lsr-sort.ll')
-rw-r--r--test/CodeGen/X86/lsr-sort.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/X86/lsr-sort.ll b/test/CodeGen/X86/lsr-sort.ll
index 4058989..1f3b59a 100644
--- a/test/CodeGen/X86/lsr-sort.ll
+++ b/test/CodeGen/X86/lsr-sort.ll
@@ -4,7 +4,7 @@
@X = common global i16 0 ; <i16*> [#uses=1]
-define void @foo(i32 %N) nounwind {
+define i32 @foo(i32 %N) nounwind {
entry:
%0 = icmp sgt i32 %N, 0 ; <i1> [#uses=1]
br i1 %0, label %bb, label %return
@@ -18,5 +18,6 @@ bb: ; preds = %bb, %entry
br i1 %exitcond, label %return, label %bb
return: ; preds = %bb, %entry
- ret void
+ %h = phi i32 [ 0, %entry ], [ %indvar.next, %bb ]
+ ret i32 %h
}
OpenPOWER on IntegriCloud