xref: /aosp_15_r20/external/llvm/test/MC/ARM/thumb-st_other.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ Check the value of st_other for thumb function.
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@ ARM does not define any st_other flags for thumb function.  The value
4*9880d681SAndroid Build Coastguard Worker@ for st_other should always be 0.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc < %s -triple thumbv5-linux-gnueabi -filetype=obj -o - \
7*9880d681SAndroid Build Coastguard Worker@ RUN:   | llvm-readobj -t | FileCheck %s
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker	.syntax	unified
10*9880d681SAndroid Build Coastguard Worker	.text
11*9880d681SAndroid Build Coastguard Worker	.align	2
12*9880d681SAndroid Build Coastguard Worker	.thumb_func
13*9880d681SAndroid Build Coastguard Worker	.global	main
14*9880d681SAndroid Build Coastguard Worker	.type	main,%function
15*9880d681SAndroid Build Coastguard Workermain:
16*9880d681SAndroid Build Coastguard Worker	bx	lr
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker@ CHECK: Name: main
19*9880d681SAndroid Build Coastguard Worker@ CHECK: Other: 0
20