mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add testcase for constantexpr gep
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0892ace468
commit
9f755bd4dd
@ -5,9 +5,12 @@
|
||||
%__popcount_tab = external constant [0 x ubyte]
|
||||
%__popcount_tab = constant [4 x ubyte] c"\00\01\01\02"
|
||||
|
||||
declare void %foo(ubyte *)
|
||||
|
||||
void %test() {
|
||||
getelementptr [0 x ubyte]* %__popcount_tab, long 0, long 2
|
||||
getelementptr [4 x ubyte]* %__popcount_tab, long 0, long 2
|
||||
call void %foo(ubyte * getelementptr ([0 x ubyte]* %__popcount_tab, long 0, long 2))
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user