mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
563ba88392
llvm-svn: 8558
13 lines
250 B
LLVM
13 lines
250 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, ubyte 0
|
|
%rval = load int* %pbobel
|
|
ret int %rval
|
|
}
|
|
|