mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
6ac77d03a8
that it found to be broken. llvm-svn: 36009
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
|
|
}
|