diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-09 16:29:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-09 16:29:22 +0000 |
commit | 465e24ba2041d22f1ca992bf39fde14b988f3f72 (patch) | |
tree | 5ac32e97ae0eb000ad824769f43158595215ff53 /test | |
parent | 9dbf1e5bb8d1d038a3a4fcf5eeb38d275aaa8f38 (diff) | |
download | external_llvm-465e24ba2041d22f1ca992bf39fde14b988f3f72.zip external_llvm-465e24ba2041d22f1ca992bf39fde14b988f3f72.tar.gz external_llvm-465e24ba2041d22f1ca992bf39fde14b988f3f72.tar.bz2 |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll b/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll new file mode 100644 index 0000000..7560143 --- /dev/null +++ b/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll @@ -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 +} |