1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
Dan Gohman 8d84372836 Change these tests to feed the assembly files to opt directly, instead
of using llvm-as, now that opt supports this.

llvm-svn: 81226
2009-09-08 16:50:01 +00:00

16 lines
310 B
LLVM

; RUN: opt %s -basicaa -gvn -instcombine |\
; RUN: llvm-dis | grep {load i32\\* %A}
declare double* @useit(i32*)
define i32 @foo(i32 %Amt) {
%A = malloc i32, i32 %Amt
%P = call double* @useit(i32* %A)
%X = load i32* %A
store double 0.0, double* %P
%Y = load i32* %A
%Z = sub i32 %X, %Y
ret i32 %Z
}