[llvm] [RISCV] Add symbol parsing support for Xqcili load large immediate instructions (PR #134581)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 10:33:39 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;
----------------
topperc wrote:
This code isn't using bit 0 of `Value`.
https://github.com/llvm/llvm-project/pull/134581
More information about the llvm-commits
mailing list