mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
16 lines
312 B
LLVM
16 lines
312 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
|
|
}
|