fix an x86 fast isel issue where we'd completely give up on folding an address
[oota-llvm.git] / test / Verifier / SelfReferential.ll
index 54fb018f2d417db346bc0afdc59e06208be3b3f4..70154b77a8233184a4bda6b3ee5774d42ad0635b 100644 (file)
@@ -1,9 +1,9 @@
-; Test that self referential instructions are not allowed
+; RUN: not llvm-as %s -o /dev/null |& grep {Only PHI nodes may reference their own value}
 
-implementation
+; Test that self referential instructions are not allowed
 
-void "test"()
-begin
-       %A = add int %A, 0
+define void @test() {
+       %A = add i32 %A, 0              ; <i32> [#uses=1]
        ret void
-end
+}
+