[llvm] [RISCV][Xqccmp] Correctly Parse/Disassemble pushfp (PR #133188)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 26 19:48:21 PDT 2025
================
@@ -242,11 +242,11 @@ float RISCVLoadFPImm::getFPImm(unsigned Imm) {
void RISCVZC::printRlist(unsigned SlistEncode, raw_ostream &OS) {
OS << "{ra";
- if (SlistEncode > 4) {
+ if (SlistEncode > RISCVZC::RA) {
OS << ", s0";
- if (SlistEncode == 15)
+ if (SlistEncode == RISCVZC::RA_S0_S11)
OS << "-s11";
- else if (SlistEncode > 5 && SlistEncode <= 14)
+ else if (SlistEncode > RISCVZC::RA_S0 && SlistEncode <= RISCVZC::RA_S0_S11)
OS << "-s" << (SlistEncode - 5);
----------------
topperc wrote:
`SlistEncode - RISCVZC::RA_S0`
https://github.com/llvm/llvm-project/pull/133188
More information about the llvm-commits
mailing list