xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/stwu-gta.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"
2*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc-unknown-linux"
3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker%class.Two.0.5 = type { i32, i32, i32 }
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker@foo = external global %class.Two.0.5, align 4
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @_GLOBAL__I_a() nounwind section ".text.startup" {
10*9880d681SAndroid Build Coastguard Workerentry:
11*9880d681SAndroid Build Coastguard Worker  store i32 5, i32* getelementptr inbounds (%class.Two.0.5, %class.Two.0.5* @foo, i32 0, i32 0), align 4
12*9880d681SAndroid Build Coastguard Worker  store i32 6, i32* getelementptr inbounds (%class.Two.0.5, %class.Two.0.5* @foo, i32 0, i32 1), align 4
13*9880d681SAndroid Build Coastguard Worker  ret void
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker; CHECK: @_GLOBAL__I_a
17*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: stwux
18*9880d681SAndroid Build Coastguard Worker; CHECK: stwu
19