1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 06:22:56 +02:00
llvm-mirror/test/Regression/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll
Reid Spencer 43e145ce25 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.

llvm-svn: 31896
2006-11-23 15:14:52 +00:00

13 lines
249 B
LLVM

; RUN: llvm-as < %s | opt -instcombine
%bob = type { int }
int %alias() {
%pbob1 = alloca %bob
%pbob2 = getelementptr %bob* %pbob1
%pbobel = getelementptr %bob* %pbob2, long 0, uint 0
%rval = load int* %pbobel
ret int %rval
}