[all-commits] [llvm/llvm-project] 5dde2b: [AArch64InstPrinter][llvm-objdump] Print ADR PC-re...
chbessonova via All-commits
all-commits at lists.llvm.org
Sat Feb 18 08:32:11 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5dde2bcdd172f4650e9f5ff31b338d948c69c6c0
https://github.com/llvm/llvm-project/commit/5dde2bcdd172f4650e9f5ff31b338d948c69c6c0
Author: Kristina Bessonova <kbessonova at accesssoftek.com>
Date: 2023-02-18 (Sat, 18 Feb 2023)
Changed paths:
M lld/test/COFF/arm64-relocs-imports.test
M lld/test/ELF/aarch64-copy.s
M lld/test/ELF/aarch64-relocs.s
M lld/test/ELF/aarch64-undefined-weak.s
M llvm/lib/Target/AArch64/AArch64InstrFormats.td
M llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
M llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h
M llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
M llvm/test/MC/AArch64/adr.s
M llvm/test/MC/AArch64/coff-relocations.s
M llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test
M llvm/test/tools/llvm-objdump/ELF/AArch64/pcrel-address.yaml
Log Message:
-----------
[AArch64InstPrinter][llvm-objdump] Print ADR PC-relative label as a target address hexadecimal form
This is similar to ADRP and matches GNU objdump:
GNU objdump:
```
0000000000200100 <_start>:
200100: adr x0, 201000 <_start+0xf00>
```
llvm-objdump (before patch):
```
0000000000200100 <_start>:
200100: adr x0, #3840
```
llvm-objdump (after patch):
```
0000000000200100 <_start>:
200100: adr x0, 0x201000 <_start+0xf00>
```
Reviewed By: simon_tatham, peter.smith
Differential Revision: https://reviews.llvm.org/D144079
More information about the All-commits
mailing list