[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 18:45:16 PST 2023


topperc wrote:

> > 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
> 
> Thanks for your correction, and do you think we should conform to gnu's behavior? Or just be the same as other architecture in llvm.

We can conform to other architectures.

https://github.com/llvm/llvm-project/pull/74053


More information about the llvm-commits mailing list