mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Add new getelementptr elimination test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0864acf07b
commit
a3c4ba427b
@ -35,3 +35,10 @@ sbyte * %foo5() {
|
||||
%A = getelementptr [10 x sbyte]* %Global, long 0, long 4
|
||||
ret sbyte* %A
|
||||
}
|
||||
|
||||
int* %foo6() {
|
||||
%M = malloc [4 x int]
|
||||
%A = getelementptr [4 x int]* %M, long 0, long 0
|
||||
%B = getelementptr int* %A, long 2
|
||||
ret int* %B
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user