1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

new testcase for a -basicaa bug that Alkis found with Java.

llvm-svn: 20530
This commit is contained in:
Chris Lattner 2005-03-09 16:29:22 +00:00
parent 220e2f8519
commit 0d91a3c867

View File

@ -0,0 +1,14 @@
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'load int\* %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
}