mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
add testcase for strange types of gep indices
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
096fd7b5a7
commit
b5fbb06e32
12
test/Assembler/getelementptr.ll
Normal file
12
test/Assembler/getelementptr.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
|
||||
|
||||
;; Verify that i16 indices work.
|
||||
@x = external global {i32, i32}
|
||||
@y = global i32* getelementptr ({i32, i32}* @x, i16 42, i32 0)
|
||||
|
||||
; see if i92 indices work too.
|
||||
define i32 *@test({i32, i32}* %t, i92 %n) {
|
||||
%B = getelementptr {i32, i32}* %t, i92 %n, i32 0
|
||||
ret i32* %B
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user