xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/ul1.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc  -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
2*9880d681SAndroid Build Coastguard Worker%struct.ua = type <{ i16, i32 }>
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@foo = common global %struct.ua zeroinitializer, align 1
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @main() nounwind {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  store i32 10, i32* getelementptr inbounds (%struct.ua, %struct.ua* @foo, i32 0, i32 1), align 1
9*9880d681SAndroid Build Coastguard Worker; 16:   sb  ${{[0-9]+}}, {{[0-9]+}}(${{[0-9]+}})
10*9880d681SAndroid Build Coastguard Worker; 16:   sb  ${{[0-9]+}}, {{[0-9]+}}(${{[0-9]+}})
11*9880d681SAndroid Build Coastguard Worker; 16:   sb  ${{[0-9]+}}, {{[0-9]+}}(${{[0-9]+}})
12*9880d681SAndroid Build Coastguard Worker; 16:   sb  ${{[0-9]+}}, {{[0-9]+}}(${{[0-9]+}})
13*9880d681SAndroid Build Coastguard Worker  ret i32 0
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker
16