[llvm] [lld] [RISCV] Support printing immediate of RISCV MCInst in hexadecimal format (PR #74053)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 16:18:15 PST 2023
topperc wrote:
> > LGTM! One question: is this behavior the same as current GNU toolchain?
>
> Yes, GNU objdump print the immediates in hexadecimal format by default, and the llvm-objdump will do so with this patch. :)
gnu objdump for RISC-V is inconsistent. Looking at a dump from 2.41 I see
Shift by immediate uses hex.
addi/andi/ori/xori/li use decimal
lui uses hex.
load/store offset use decimal.
label offsets on branches use hex
vmv.v.i uses decimal
https://github.com/llvm/llvm-project/pull/74053
More information about the llvm-commits
mailing list