[all-commits] [llvm/llvm-project] a5b7ea: [llvm-objdump] Implemented PrintBranchImmAsAddress...

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Fri Apr 15 14:48:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5b7ea0783f700bff897358d7c248742296978a2
      https://github.com/llvm/llvm-project/commit/a5b7ea0783f700bff897358d7c248742296978a2
  Author: Pavel Kosov <kosov.pavel at huawei.com>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M lld/test/ELF/mips-jalr-non-functions.s
    M lld/test/ELF/mips-jalr.s
    M lld/test/ELF/mips-micro-plt.s
    M lld/test/ELF/mips-micro-relocs.s
    M lld/test/ELF/mips-micro-thunks.s
    M lld/test/ELF/mips-micror6-relocs.s
    M lld/test/ELF/mips-npic-call-pic-script.s
    M lld/test/ELF/mips-npic-call-pic.s
    M lld/test/ELF/mips-pc-relocs.s
    M lld/test/ELF/mips-plt-n32.s
    M lld/test/ELF/mips-plt-n64.s
    M lld/test/ELF/mips-plt-r6.s
    M llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h
    M llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
    M llvm/lib/Target/Mips/MicroMipsInstrInfo.td
    M llvm/lib/Target/Mips/Mips.td
    M llvm/lib/Target/Mips/Mips32r6InstrInfo.td
    M llvm/lib/Target/Mips/MipsInstrInfo.td
    M llvm/test/CodeGen/Mips/micromips-b-range.ll
    M llvm/test/MC/Mips/expansion-j-sym-pic.s
    M llvm/test/MC/Mips/instr-analysis.s
    M llvm/test/MC/Mips/micromips-el-fixup-data.s
    M llvm/test/MC/Mips/micromips-jump-pc-region.s
    M llvm/test/MC/Mips/micromips-neg-offset.s
    M llvm/test/MC/Mips/mips-jump-pc-region.s

  Log Message:
  -----------
  [llvm-objdump] Implemented PrintBranchImmAsAddress for MIPS

Updated MipsInstPrinter to print absolute hex offsets for branch instructions.
It is necessary to make the llvm-objdump output close to the gnu objdump output.
This implementation is based on the implementation for RISC-V.

OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg

Reviewed By: MaskRay

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




More information about the All-commits mailing list