Make sure this doesn't break when we're improving the isels
[oota-llvm.git] / test / Transforms / InstCombine / getelementptr_index.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep cast
2
3 target endian = little
4 target pointersize = 32
5
6 int* %test(int* %X, long %Idx) {
7         ; Should insert a cast to int on this target
8         %R = getelementptr int* %X, long %Idx
9         ret int* %R
10 }