repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
test
/
Verifier
/
SelfReferential.ll
blob
7f0166a158d54f2bee6937ba7c4774f889f3a02f
1
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
2
; CHECK: Only PHI nodes may reference their own value
3
4
; Test that self referential instructions are not allowed
5
6
define void @test() {
7
%A = add i32 %A, 0 ; <i32> [#uses=1]
8
ret void
9
}
10