llvm-project/llvm/test/tools/llvm-objdump
Fangrui Song 66bcbdbc9c [AArch64InstPrinter] Change printADRPLabel to print the target address in hexadecimal form
Similar to D77853. Change ADRP to print the target address in hex, instead of the raw immediate.
The behavior is similar to GNU objdump but we also include `0x`.

Note: GNU objdump is not consistent whether or not to emit `0x` for different architectures. We try emitting 0x consistently for all targets.

```
GNU objdump:       adrp x16, 10000000
Old llvm-objdump:  adrp x16, #0
New llvm-objdump:  adrp x16, 0x10000000
```

`adrp Xd, 0x...` assembles to a relocation referencing `*ABS*+0x10000` which is not intended. We need to use a linker or use yaml2obj.
The main test is `test/tools/llvm-objdump/ELF/AArch64/pcrel-address.yaml`

Differential Revision: https://reviews.llvm.org/D93241
2020-12-16 09:20:55 -08:00
..
COFF
ELF [AArch64InstPrinter] Change printADRPLabel to print the target address in hexadecimal form 2020-12-16 09:20:55 -08:00
Inputs [llvm-objdump][test] - Stop using precompiled binary in MachO/disassemble-g-dsym.test 2020-10-29 10:06:08 +03:00
MachO [Triple][MachO] Define "arm64e", an AArch64 subarch for Pointer Auth. 2020-12-03 07:53:59 -08:00
X86 [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
XCOFF
wasm
all-headers.test
archive-headers.test
eh_frame-mipsel.test
eh_frame_zero_cie.test
embedded-source.test
file-headers-pe.test
full-contents.test
help.test
invalid-input.test
invalid-symbol-table-size.test
malformed-archives.test [llvm-objdump] - Rewrite malformed-archives.test to use YAML descriptions. 2020-10-28 15:40:59 +03:00
mattr-mcpu-help.test [llvm-objdump] Require x86 target for mcpu/attr test 2020-11-30 13:55:31 +00:00
non-archive-object.test
openbsd-headers.test
option-grouping.test
private-headers-dynamic-section.test
private-headers-no-dynamic-segment.test
private-headers-no-dynamic.test
relocation-xindex-symbol.test
relocations-in-nonreloc.test
section-filter.test [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
section-headers.test
unimplemented-features.test
verneed-wrong-info.test
warn-missing-section.test
warn-on-out-of-range-start-stop-address.test [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00