Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
[oota-llvm.git] / test / Assembler / 2004-04-04-GetElementPtrIndexTypes.ll
1 ; RUN: llvm-as < %s -o /dev/null -f
2
3
4
5
6 int *%t1({ float, int }* %X) {
7         %W = getelementptr { float, int }* %X, int 20, uint 1
8         %X = getelementptr { float, int }* %X, uint 20, uint 1
9         %Y = getelementptr { float, int }* %X, long 20, uint 1
10         %Z = getelementptr { float, int }* %X, ulong 20, uint 1
11         ret int* %Y
12 }