Recognize bswapl as bswap too.
[oota-llvm.git] / test / ExecutionEngine / 2003-05-11-PHIRegAllocBug.ll
index b02c54a1a261f197e5945f57c0db427cd7825cf9..7b48f579af0122278881575f00b17dbdd39a0f44 100644 (file)
@@ -1,15 +1,16 @@
-target endian = little
-target pointersize = 32
+; RUN: llvm-as %s -f -o %t.bc
+; RUN: lli %t.bc > /dev/null
 
-implementation
+target datalayout = "e-p:32:32"
 
-int %main(int, sbyte**) {
+define i32 @main() {
 entry:
-       br bool false, label %then, label %endif
-then:
        br label %endif
-endif:
-       %x.0 = phi uint [ 4, %entry ], [ 27, %then ]
-       %result.0 = phi int [ 32, %then ], [ 0, %entry ]
-       ret int 0
+then:          ; No predecessors!
+       br label %endif
+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
 }
+