llvm-6502/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
Reid Spencer e5d4efa63e Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31896 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-23 15:14:52 +00:00

13 lines
310 B
LLVM

; RUN: llvm-as < %s -o /dev/null -f
int *%t1({ float, int }* %X) {
%W = getelementptr { float, int }* %X, int 20, uint 1
%X = getelementptr { float, int }* %X, uint 20, uint 1
%Y = getelementptr { float, int }* %X, long 20, uint 1
%Z = getelementptr { float, int }* %X, ulong 20, uint 1
ret int* %Y
}