[all-commits] [llvm/llvm-project] 7f36cb: [AArch64InstPrinter] Change printAlignedLabel to p...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 10 09:21:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f36cb1f1a4ed93cfb19bf2183d150571313ec98
      https://github.com/llvm/llvm-project/commit/7f36cb1f1a4ed93cfb19bf2183d150571313ec98
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-10 (Fri, 10 Apr 2020)

  Changed paths:
    M lld/test/COFF/arm64-delayimport.yaml
    M lld/test/COFF/arm64-import2.test
    M lld/test/COFF/arm64-relocs-imports.test
    M lld/test/COFF/arm64-thunks.s
    M lld/test/ELF/aarch64-call26-thunk.s
    M lld/test/ELF/aarch64-condb-reloc.s
    M lld/test/ELF/aarch64-cortex-a53-843419-address.s
    M lld/test/ELF/aarch64-cortex-a53-843419-large.s
    M lld/test/ELF/aarch64-cortex-a53-843419-large2.s
    M lld/test/ELF/aarch64-cortex-a53-843419-recognize.s
    M lld/test/ELF/aarch64-cortex-a53-843419-thunk.s
    M lld/test/ELF/aarch64-feature-bti.s
    M lld/test/ELF/aarch64-feature-btipac.s
    M lld/test/ELF/aarch64-feature-pac.s
    M lld/test/ELF/aarch64-gnu-ifunc-plt.s
    M lld/test/ELF/aarch64-gnu-ifunc.s
    M lld/test/ELF/aarch64-jump26-thunk.s
    M lld/test/ELF/aarch64-plt.s
    M lld/test/ELF/aarch64-relocs.s
    M lld/test/ELF/aarch64-thunk-pi.s
    M lld/test/ELF/aarch64-thunk-script.s
    M lld/test/ELF/aarch64-thunk-section-location.s
    M lld/test/ELF/aarch64-tstbr14-reloc.s
    M lld/test/ELF/aarch64-undefined-weak.s
    M lld/test/ELF/pr34660.s
    M lld/test/ELF/relocation-b-aarch64.test
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
    M llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
    M llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
    M llvm/test/tools/llvm-objdump/MachO/AArch64/pc-rel-targets.test

  Log Message:
  -----------
  [AArch64InstPrinter] Change printAlignedLabel to print the target address in hexadecimal form

Similar to D76580 (x86) and D76591 (PPC).

```
// llvm-objdump -d output (before)
10000: 08 00 00 94                   bl      #32
10004: 08 00 00 94                   bl      #32

// llvm-objdump -d output (after)
10000: 08 00 00 94                   bl      0x10020
10004: 08 00 00 94                   bl      0x10024

// GNU objdump -d. The lack of 0x is not ideal due to ambiguity.
10000:       94000008        bl      10020 <bar+0x18>
10004:       94000008        bl      10024 <bar+0x1c>
```

The new output makes it easier to find the jump target.

Differential Revision: https://reviews.llvm.org/D77853




More information about the All-commits mailing list