repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added the ability to xfail based on llvmgcc version
[llvm-complete.git]
/
test
/
Transforms
/
InstCombine
/
2002-12-05-MissedConstProp.ll
blob
ec29e6bbbd1ac1a29657b8b46796b4eb83cbefe0
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep add
2
3
int %test(int %A) {
4
%A.neg = sub int 0, %A
5
%.neg = sub int 0, 1
6
%X = add int %.neg, 1
7
%Y.neg.ra = add int %A, %X
8
%r = add int %A.neg, %Y.neg.ra
9
ret int %r
10
}