[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / big-endian-thumb2-fixup.s
blob4435f6ed79e53aaf1e1a7a056db6680e6f5d33f1
1 // RUN: llvm-mc -triple=thumbeb-eabi -mattr v7,vfp2 -filetype=obj < %s | llvm-objdump -s - | FileCheck %s
3 .syntax unified
4 .text
5 .align 2
7 @ARM::fixup_t2_movw_lo16
8 .section s_movw,"ax",%progbits
9 // CHECK-LABEL: Contents of section s_movw
10 // CHECK: 0000 f2400008
11 movw r0, :lower16:(some_label+8)
13 @ARM::fixup_t2_movt_hi16
14 .section s_movt,"ax",%progbits
15 // CHECK-LABEL: Contents of section s_movt
16 // CHECK: 0000 f6cf70fc
17 movt r0, :upper16:GOT-(movt_label)
18 movt_label:
20 @ARM::fixup_t2_uncondbranch
21 .section s_uncondbranch,"ax",%progbits
22 // CHECK-LABEL: Contents of section s_uncondbranch
23 // CHECK: 0000 f000b801 bf00
24 b.w uncond_label
25 nop
26 uncond_label:
28 @ARM::fixup_t2_condbranch
29 .section s_condbranch,"ax",%progbits
30 // CHECK-LABEL: Contents of section s_condbranch
31 // CHECK: 0000 f0008001 bf00
32 beq.w cond_label
33 nop
34 cond_label:
36 @ARM::fixup_t2_ldst_precel_12
37 .section s_ldst_precel_12,"ax",%progbits
38 ldr.w r0, ldst_precel_12_label
39 nop
40 nop
41 ldst_precel_12_label:
43 @ARM::fixup_t2_adr_pcrel_12
44 .section s_adr_pcrel_12,"ax",%progbits
45 adr.w r0, adr_pcrel_12_label
46 nop
47 nop
48 adr_pcrel_12_label:
50 @ARM::fixup_t2_so_imm
51 .section s_t2_so_imm,"ax",%progbits
52 // CHECK-LABEL: Contents of section s_t2_so_imm
53 // CHECK: 0000 f1033337
54 add r3, r3,val
55 .equ val,0x37373737