1; RUN: llc < %s -march=mips -mcpu=mips32 -mips-ssection-threshold=8 -relocation-model=static -mattr=+noabicalls -mgpopt | FileCheck %s
2
3%struct.anon = type { i32, i32 }
4
5@s0 = constant [8 x i8] c"AAAAAAA\00", align 4
6
7; CHECK: .type  foo,@object
8; CHECK-NEXT: .section .sdata,"aw",@progbits
9@foo = global %struct.anon { i32 2, i32 3 }
10
11; CHECK:  .type bar,@object
12; CHECK-NEXT:  .section  .sbss,"aw",@nobits
13@bar = global %struct.anon zeroinitializer
14
15define i8* @A0() nounwind {
16entry:
17	ret i8* getelementptr ([8 x i8], [8 x i8]* @s0, i32 0, i32 0)
18}
19
20define i32 @A1() nounwind {
21entry:
22  load i32, i32* getelementptr (%struct.anon, %struct.anon* @foo, i32 0, i32 0), align 8
23  load i32, i32* getelementptr (%struct.anon, %struct.anon* @foo, i32 0, i32 1), align 4
24  add i32 %1, %0
25  ret i32 %2
26}
27
28