xref: /aosp_15_r20/external/llvm/test/MC/ARM/big-endian-thumb2-fixup.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple=thumbeb-eabi -mattr v7,vfp2 -filetype=obj < %s | llvm-objdump -s - | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker	.syntax unified
4*9880d681SAndroid Build Coastguard Worker	.text
5*9880d681SAndroid Build Coastguard Worker	.align	2
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker@ARM::fixup_t2_movw_lo16
8*9880d681SAndroid Build Coastguard Worker.section s_movw,"ax",%progbits
9*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_movw
10*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 f2400008
11*9880d681SAndroid Build Coastguard Worker	movw	r0, :lower16:(some_label+8)
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker@ARM::fixup_t2_movt_hi16
14*9880d681SAndroid Build Coastguard Worker.section s_movt,"ax",%progbits
15*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_movt
16*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 f6cf70fc
17*9880d681SAndroid Build Coastguard Worker	movt	r0, :upper16:GOT-(movt_label)
18*9880d681SAndroid Build Coastguard Workermovt_label:
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker@ARM::fixup_t2_uncondbranch
21*9880d681SAndroid Build Coastguard Worker.section s_uncondbranch,"ax",%progbits
22*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_uncondbranch
23*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 f000b801 bf00
24*9880d681SAndroid Build Coastguard Worker 	b.w uncond_label
25*9880d681SAndroid Build Coastguard Worker	nop
26*9880d681SAndroid Build Coastguard Workeruncond_label:
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Worker@ARM::fixup_t2_condbranch
29*9880d681SAndroid Build Coastguard Worker.section s_condbranch,"ax",%progbits
30*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_condbranch
31*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 f0008001 bf00
32*9880d681SAndroid Build Coastguard Worker 	beq.w cond_label
33*9880d681SAndroid Build Coastguard Worker	nop
34*9880d681SAndroid Build Coastguard Workercond_label:
35*9880d681SAndroid Build Coastguard Worker
36*9880d681SAndroid Build Coastguard Worker@ARM::fixup_t2_ldst_precel_12
37*9880d681SAndroid Build Coastguard Worker.section s_ldst_precel_12,"ax",%progbits
38*9880d681SAndroid Build Coastguard Worker 	ldr.w r0, ldst_precel_12_label
39*9880d681SAndroid Build Coastguard Worker	nop
40*9880d681SAndroid Build Coastguard Worker	nop
41*9880d681SAndroid Build Coastguard Workerldst_precel_12_label:
42*9880d681SAndroid Build Coastguard Worker
43*9880d681SAndroid Build Coastguard Worker@ARM::fixup_t2_adr_pcrel_12
44*9880d681SAndroid Build Coastguard Worker.section s_adr_pcrel_12,"ax",%progbits
45*9880d681SAndroid Build Coastguard Worker 	adr.w r0, adr_pcrel_12_label
46*9880d681SAndroid Build Coastguard Worker	nop
47*9880d681SAndroid Build Coastguard Worker	nop
48*9880d681SAndroid Build Coastguard Workeradr_pcrel_12_label:
49*9880d681SAndroid Build Coastguard Worker
50