SelfReferential.ll 243 B

12345678910
  1. ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
  2. ; CHECK: Only PHI nodes may reference their own value
  3. ; Test that self referential instructions are not allowed
  4. define void @test() {
  5. %A = add i32 %A, 0 ; <i32> [#uses=1]
  6. ret void
  7. }