Pull out this predicate loop into a helper function.
[oota-llvm.git] / test / Assembler / getelementptr.ll
1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
2
3 ;; Verify that i16 indices work.
4 @x = external global {i32, i32}
5 @y = global i32* getelementptr ({i32, i32}* @x, i16 42, i32 0)
6
7 ; see if i92 indices work too.
8 define i32 *@test({i32, i32}* %t, i92 %n) {
9   %B = getelementptr {i32, i32}* %t, i92 %n, i32 0
10   ret i32* %B
11 }
12