mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
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:
parent
9dbf1e5bb8
commit
465e24ba20
14
test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
Normal file
14
test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user