mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
1a91e4381d
llvm-svn: 145801
15 lines
507 B
LLVM
15 lines
507 B
LLVM
; RUN: opt -instcombine -S -o - %s | llvm-as
|
|
; RUN: opt -instcombine -globalopt -S -o - %s | llvm-as
|
|
@G1 = global i32 zeroinitializer
|
|
@G2 = global i32 zeroinitializer
|
|
@g = global <2 x i32*> zeroinitializer
|
|
%0 = type { i32, void ()* }
|
|
@llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @test }]
|
|
define internal void @test() {
|
|
%A = insertelement <2 x i32*> undef, i32* @G1, i32 0
|
|
%B = insertelement <2 x i32*> %A, i32* @G2, i32 1
|
|
store <2 x i32*> %B, <2 x i32*>* @g
|
|
ret void
|
|
}
|
|
|