projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New testcase
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2002-12-05-MissedConstProp.ll
1
; RUN: if as < %s | opt -instcombine | dis | grep add
2
; RUN: then exit 1
3
; RUN: else exit 0
4
; RUN: fi
5
6
int %test(int %A) {
7
%A.neg = sub int 0, %A
8
%.neg = sub int 0, 1
9
%X = add int %.neg, 1
10
%Y.neg.ra = add int %A, %X
11
%r = add int %A.neg, %Y.neg.ra
12
ret int %r
13
}