[all-commits] [llvm/llvm-project] 3eef47: [PPCInstPrinter] Change printBranchOperand(calltar...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Mar 26 08:32:37 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3eef47407b7247513f125833abc688cea3a1d218
https://github.com/llvm/llvm-project/commit/3eef47407b7247513f125833abc688cea3a1d218
Author: Fangrui Song <maskray at google.com>
Date: 2020-03-26 (Thu, 26 Mar 2020)
Changed paths:
M lld/test/ELF/ppc32-call-stub-nopic.s
M lld/test/ELF/ppc32-call-stub-pic.s
M lld/test/ELF/ppc32-ifunc-nonpreemptible-nopic.s
M lld/test/ELF/ppc32-ifunc-nonpreemptible-pic.s
M lld/test/ELF/ppc32-long-thunk.s
M lld/test/ELF/ppc32-tls-gd.s
M lld/test/ELF/ppc32-tls-ld.s
M lld/test/ELF/ppc32-weak-undef-call.s
M lld/test/ELF/ppc64-bsymbolic-toc-restore.s
M lld/test/ELF/ppc64-call-reach.s
M lld/test/ELF/ppc64-func-entry-points.s
M lld/test/ELF/ppc64-ifunc.s
M lld/test/ELF/ppc64-local-dynamic.s
M lld/test/ELF/ppc64-long-branch-pi.s
M lld/test/ELF/ppc64-long-branch.s
M lld/test/ELF/ppc64-plt-stub.s
M lld/test/ELF/ppc64-rel-calls.s
M lld/test/ELF/ppc64-tls-gd.s
M lld/test/ELF/ppc64-toc-restore-recursive-call.s
M lld/test/ELF/ppc64-toc-restore.s
M lld/test/ELF/ppc64-weak-undef-call.s
M llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
M llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h
M llvm/test/CodeGen/PowerPC/aix-user-defined-memcpy.ll
M llvm/test/CodeGen/PowerPC/aix-xcoff-reloc.ll
M llvm/test/tools/llvm-objdump/ELF/PowerPC/branch-offset.s
Log Message:
-----------
[PPCInstPrinter] Change printBranchOperand(calltarget) to print the target address in hexadecimal form
```
// llvm-objdump -d output (before)
0: bl .-4
4: bl .+0
8: bl .+4
// llvm-objdump -d output (after) ; GNU objdump -d
0: bl 0xfffffffc / bl 0xfffffffffffffffc
4: bl 0x4
8: bl 0xc
```
Many Operand's are not annotated as OPERAND_PCREL.
They are not affected (e.g. `b .+67108860`). I plan to fix them in future patches.
Modified test/tools/llvm-objdump/ELF/PowerPC/branch-offset.s to test
address space wraparound for powerpc32 and powerpc64.
Reviewed By: sfertile, jhenderson
Differential Revision: https://reviews.llvm.org/D76591
More information about the All-commits
mailing list