[PATCH] D76591: [PPCInstPrinter] Change printBranchOperand(calltarget) to print the target address in hexadecimal form
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 24 11:17:02 PDT 2020
MaskRay marked an inline comment as done.
MaskRay added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp:438
+ Target &= 0xffffffff;
+ O << formatHex(Target);
+ }
----------------
sfertile wrote:
> Do we have a way to print the hex value without a leading '0x'? If we are making the effort to match binutils objump, why wouldn't we match exactly for this case?
Don't use formatHex then we are done. However, I actually think an explicit 0x is better.
A GNU objdump -d result (x86_64) cannot be re-assembled back. The omission of 0x is one of the reasons.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76591/new/
https://reviews.llvm.org/D76591
More information about the llvm-commits
mailing list