Fix a README item: when doing a comparison with the result
[oota-llvm.git] / test / Transforms / LICM / 2003-02-28-PromoteDifferentType.ll
index a0ba69d849dbfa0e962862224c5f0db62e75facb..c759e6eff8e7e9d8b5077ec9a1f8670d3ab74e65 100644 (file)
@@ -1,15 +1,15 @@
 ; Test that hoisting is disabled for pointers of different types...
 ;
-; RUN: as < %s | opt -licm
+; RUN: opt < %s -licm
 
-void %test(int* %P) {
+define void @test(i32* %P) {
        br label %Loop
-Loop:
-       store int 5, int* %P
-       %P2 = cast int* %P to sbyte*
-       store sbyte 4, sbyte* %P2
-       br bool true, label %loop, label %Out
-Out:
+Loop:          ; preds = %Loop, %0
+       store i32 5, i32* %P
+       %P2 = bitcast i32* %P to i8*            ; <i8*> [#uses=1]
+       store i8 4, i8* %P2
+       br i1 true, label %Loop, label %Out
+Out:           ; preds = %Loop
        ret void
 }