llvm-6502/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
2006-12-02 20:34:08 +00:00

10 lines
322 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as -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
}