repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git]
/
test
/
Analysis
/
BasicAA
/
2005-03-09-BrokenBasicAA.ll
blob
4564263de015208593ace56ff60ee61f315080a9
1
; RUN: opt < %s -basicaa -gvn -instcombine |\
2
; RUN: llvm-dis | grep {load i32\\* %A}
3
4
declare double* @useit(i32*)
5
6
define i32 @foo(i32 %Amt) {
7
%A = malloc i32, i32 %Amt
8
%P = call double* @useit(i32* %A)
9
10
%X = load i32* %A
11
store double 0.0, double* %P
12
%Y = load i32* %A
13
%Z = sub i32 %X, %Y
14
ret i32 %Z
15
}