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
/
Reassociate
/
2002-05-15-SubReassociate.ll
blob
f3e6bfa785b561ed86305f7d9f528dfc7e258db5
1
; With sub reassociation, constant folding can eliminate all of the constants.
2
;
3
; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -dce | llvm-dis | not grep add
4
5
int %test(int %A, int %B) {
6
%W = add int 5, %B
7
%X = add int -7, %A
8
%Y = sub int %X, %W
9
%Z = add int %Y, 12
10
ret int %Z
11
}