mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
4b3fd6c010
that it found to be broken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36009 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
345 B
LLVM
16 lines
345 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine |\
|
|
; RUN: llvm-dis | grep {load i32\\* %A}
|
|
|
|
declare double* %useit(int*)
|
|
|
|
int %foo(uint %Amt) {
|
|
%A = malloc int, uint %Amt
|
|
%P = call double* %useit(int* %A)
|
|
|
|
%X = load int* %A
|
|
store double 0.0, double* %P
|
|
%Y = load int* %A
|
|
%Z = sub int %X, %Y
|
|
ret int %Z
|
|
}
|