mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
New regression test
llvm-svn: 3782
This commit is contained in:
parent
b77ecb3bc6
commit
556d2f6013
@ -0,0 +1,12 @@
|
|||||||
|
; RUN: 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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user