[llvm] [RISCV] Add symbol parsing support for Xqcili load large immediate instructions (PR #134581)
Sudharsan Veeravalli via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 20:52:27 PDT 2025
================
@@ -559,7 +561,20 @@ static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
(Bit5 << 2);
return Value;
}
-
+ case RISCV::fixup_riscv_qc_e_32: {
+ if (!isInt<32>(Value))
+ Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
+ return ((Value & 0xffffffff) << 16);
+ }
+ case RISCV::fixup_riscv_qc_abs20_u: {
+ if (!isInt<20>(Value))
+ Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
+ uint64_t Bit20 = (Value >> 20) & 0x1;
----------------
svs-quic wrote:
Thanks for catching this. I've made the changes.
https://github.com/llvm/llvm-project/pull/134581
More information about the llvm-commits
mailing list