blob: 34b9a7df8824e62556fc3ed484190dfc07aa8e21 [file] [log] [blame]
Dmitri Gribenko56bf2e12012-12-30 02:33:22 +00001; RUN: opt -instcombine -S < %s | llvm-as
2; RUN: opt -instcombine -globalopt -S < %s | llvm-as
Nadav Rotem3924cb02011-12-05 06:29:09 +00003@G1 = global i32 zeroinitializer
4@G2 = global i32 zeroinitializer
5@g = global <2 x i32*> zeroinitializer
6%0 = type { i32, void ()* }
7@llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @test }]
8define internal void @test() {
9 %A = insertelement <2 x i32*> undef, i32* @G1, i32 0
10 %B = insertelement <2 x i32*> %A, i32* @G2, i32 1
11 store <2 x i32*> %B, <2 x i32*>* @g
12 ret void
13}
14