1*9880d681SAndroid Build Coastguard Worker; DISABLED: llc < %s -mips-ssection-threshold=8 -march=mips -o %t0 2*9880d681SAndroid Build Coastguard Worker; DISABLED: llc < %s -mips-ssection-threshold=0 -march=mips -o %t1 3*9880d681SAndroid Build Coastguard Worker; DISABLED: grep {sdata} %t0 | count 1 4*9880d681SAndroid Build Coastguard Worker; DISABLED: grep {sbss} %t0 | count 1 5*9880d681SAndroid Build Coastguard Worker; DISABLED: grep {gp_rel} %t0 | count 2 6*9880d681SAndroid Build Coastguard Worker; DISABLED: not grep {sdata} %t1 7*9880d681SAndroid Build Coastguard Worker; DISABLED: not grep {sbss} %t1 8*9880d681SAndroid Build Coastguard Worker; DISABLED: not grep {gp_rel} %t1 9*9880d681SAndroid Build Coastguard Worker; DISABLED: grep {\%hi} %t1 | count 2 10*9880d681SAndroid Build Coastguard Worker; DISABLED: grep {\%lo} %t1 | count 3 11*9880d681SAndroid Build Coastguard Worker; RUN: false 12*9880d681SAndroid Build Coastguard Worker; XFAIL: * 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64" 16*9880d681SAndroid Build Coastguard Workertarget triple = "mipsallegrexel-unknown-psp-elf" 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker %struct.anon = type { i32, i32 } 19*9880d681SAndroid Build Coastguard Worker@s0 = global [8 x i8] c"AAAAAAA\00", align 4 20*9880d681SAndroid Build Coastguard Worker@foo = global %struct.anon { i32 2, i32 3 } 21*9880d681SAndroid Build Coastguard Worker@bar = global %struct.anon zeroinitializer 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerdefine i8* @A0() nounwind { 24*9880d681SAndroid Build Coastguard Workerentry: 25*9880d681SAndroid Build Coastguard Worker ret i8* getelementptr ([8 x i8], [8 x i8]* @s0, i32 0, i32 0) 26*9880d681SAndroid Build Coastguard Worker} 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Workerdefine i32 @A1() nounwind { 29*9880d681SAndroid Build Coastguard Workerentry: 30*9880d681SAndroid Build Coastguard Worker load i32, i32* getelementptr (%struct.anon, %struct.anon* @foo, i32 0, i32 0), align 8 31*9880d681SAndroid Build Coastguard Worker load i32, i32* getelementptr (%struct.anon, %struct.anon* @foo, i32 0, i32 1), align 4 32*9880d681SAndroid Build Coastguard Worker add i32 %1, %0 33*9880d681SAndroid Build Coastguard Worker ret i32 %2 34*9880d681SAndroid Build Coastguard Worker} 35*9880d681SAndroid Build Coastguard Worker 36