xref: /aosp_15_r20/external/llvm/test/tools/llvm-objdump/AArch64/elf-aarch64-mapping-symbols.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t
2*9880d681SAndroid Build Coastguard Worker# RUN: llvm-objdump -d %t | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker.section .mysection,"ax",@progbits
5*9880d681SAndroid Build Coastguard Worker.globl _start
6*9880d681SAndroid Build Coastguard Worker_start:
7*9880d681SAndroid Build Coastguard Worker  adr x1,msg
8*9880d681SAndroid Build Coastguard Workermsg:  .asciz  "Hello, world\n"
9*9880d681SAndroid Build Coastguard Workermsgend:
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker.section .myothersection,"ax",@progbits
12*9880d681SAndroid Build Coastguard Worker  adrp x1,mystr
13*9880d681SAndroid Build Coastguard Workermystr:
14*9880d681SAndroid Build Coastguard Worker  .asciz "blah"
15*9880d681SAndroid Build Coastguard Worker  .size mystr, 4
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker# CHECK: Disassembly of section .mysection:
18*9880d681SAndroid Build Coastguard Worker# CHECK: _start:
19*9880d681SAndroid Build Coastguard Worker# CHECK:        0:       21 00 00 10     adr     x1, #4
20*9880d681SAndroid Build Coastguard Worker# CHECK: msg:
21*9880d681SAndroid Build Coastguard Worker# CHECK:        4:       48 65 6c 6c     .word
22*9880d681SAndroid Build Coastguard Worker# CHECK:        8:       6f 2c 20 77     .word
23*9880d681SAndroid Build Coastguard Worker# CHECK:        c:       6f 72 6c 64     .word
24*9880d681SAndroid Build Coastguard Worker# CHECK:       10:       0a 00   .short
25*9880d681SAndroid Build Coastguard Worker# CHECK: Disassembly of section .myothersection:
26*9880d681SAndroid Build Coastguard Worker# CHECK: $x.2:
27*9880d681SAndroid Build Coastguard Worker# CHECK:        0:       01 00 00 90     adrp    x1, #0
28*9880d681SAndroid Build Coastguard Worker# CHECK: mystr:
29*9880d681SAndroid Build Coastguard Worker# CHECK:        4:       62 6c 61 68     .word
30*9880d681SAndroid Build Coastguard Worker# CHECK:        8:       00      .byte
31