summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll')
-rw-r--r--test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll20
1 files changed, 9 insertions, 11 deletions
diff --git a/test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll b/test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll
index 1d9ba77145..850654f234 100644
--- a/test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll
+++ b/test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll
@@ -1,18 +1,16 @@
-; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: llvm-as < %s -f -o %t.bc
; RUN: lli %t.bc > /dev/null
-target endian = little
-target pointersize = 32
+target datalayout = "e-p:32:32"
-implementation
-
-int %main() {
+define i32 @main() {
entry:
br label %endif
-then:
+then: ; No predecessors!
br label %endif
-endif:
- %x = phi uint [ 4, %entry ], [ 27, %then ]
- %result = phi int [ 32, %then ], [ 0, %entry ]
- ret int 0
+endif: ; preds = %then, %entry
+ %x = phi i32 [ 4, %entry ], [ 27, %then ] ; <i32> [#uses=0]
+ %result = phi i32 [ 32, %then ], [ 0, %entry ] ; <i32> [#uses=0]
+ ret i32 0
}
+