mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0286835685
commit
63a6e77485
15
test/Analysis/BasicAA/2003-04-22-GEPProblem.ll
Normal file
15
test/Analysis/BasicAA/2003-04-22-GEPProblem.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: as < %s | opt -load-vn -gcse -instcombine | dis | grep sub
|
||||
|
||||
; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!
|
||||
|
||||
int %test(int *%Ptr, long %V) {
|
||||
%P2 = getelementptr int* %Ptr, long 1
|
||||
%P1 = getelementptr int* %Ptr, long %V
|
||||
%X = load int* %P1
|
||||
store int 5, int* %P2
|
||||
|
||||
%Y = load int* %P1
|
||||
|
||||
%Z = sub int %X, %Y
|
||||
ret int %Z
|
||||
}
|
15
test/Transforms/BasicAA/2003-04-22-GEPProblem.ll
Normal file
15
test/Transforms/BasicAA/2003-04-22-GEPProblem.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; RUN: as < %s | opt -load-vn -gcse -instcombine | dis | grep sub
|
||||
|
||||
; BasicAA was incorrectly concluding that P1 and P2 didn't conflict!
|
||||
|
||||
int %test(int *%Ptr, long %V) {
|
||||
%P2 = getelementptr int* %Ptr, long 1
|
||||
%P1 = getelementptr int* %Ptr, long %V
|
||||
%X = load int* %P1
|
||||
store int 5, int* %P2
|
||||
|
||||
%Y = load int* %P1
|
||||
|
||||
%Z = sub int %X, %Y
|
||||
ret int %Z
|
||||
}
|
Loading…
Reference in New Issue
Block a user