[all-commits] [llvm/llvm-project] f0dc23: [RISCV][NFC] Correct c_lui_imm (#135448)
Sam Elliott via All-commits
all-commits at lists.llvm.org
Sat Apr 12 13:57:50 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f0dc236d3384e5d5dce2e39a8a3202325899eae5
https://github.com/llvm/llvm-project/commit/f0dc236d3384e5d5dce2e39a8a3202325899eae5
Author: Sam Elliott <quic_aelliott at quicinc.com>
Date: 2025-04-12 (Sat, 12 Apr 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVInstrInfoC.td
M llvm/test/MC/RISCV/rv32c-invalid.s
Log Message:
-----------
[RISCV][NFC] Correct c_lui_imm (#135448)
The MCOperandPredicate seems to allow symbols as well as immediates, but
the parser/matcher does not due to `isCLUIImm`. This brings both in line
with each other, and should prevent trying to compress a `lui` with a
symbol, which cannot be emitted as a `c.lui` as there are no relocations
for this as `R_RISCV_RVC_LUI` is deprecated/removed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list