summaryrefslogtreecommitdiff
path: root/test/Transforms/LoopSimplify/basictest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/LoopSimplify/basictest.ll')
-rw-r--r--test/Transforms/LoopSimplify/basictest.ll21
1 files changed, 10 insertions, 11 deletions
diff --git a/test/Transforms/LoopSimplify/basictest.ll b/test/Transforms/LoopSimplify/basictest.ll
index 2b01b475fc..0388b0e9ea 100644
--- a/test/Transforms/LoopSimplify/basictest.ll
+++ b/test/Transforms/LoopSimplify/basictest.ll
@@ -1,17 +1,16 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loopsimplify
-
-implementation
+; RUN: llvm-as < %s | opt -loopsimplify
; This function should get a preheader inserted before BB3, that is jumped
; to by BB1 & BB2
;
-void "test"()
-begin
- br bool true, label %BB1, label %BB2
-BB1: br label %BB3
-BB2: br label %BB3
-
-BB3:
+define void @test() {
+ br i1 true, label %BB1, label %BB2
+BB1: ; preds = %0
+ br label %BB3
+BB2: ; preds = %0
br label %BB3
-end
+BB3: ; preds = %BB3, %BB2, %BB1
+ br label %BB3
+}
+