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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-09 16:29:22 +00:00
parent 9dbf1e5bb8
commit 465e24ba20

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
}