[PATCH] D152793: [RISCV] Add MC layer support for Zicfiss.
Yeting Kuo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 6 23:04:11 PDT 2023
fakepaper56 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZicfiss.td:56
+let Predicates = [HasStdExtZicfiss] in {
+def SSLoadX1: RV_SSPop<0b00001, 0b00000, "ssload", "x1">;
+def SSLoadX5: RV_SSPop<0b00101, 0b00000, "ssload", "x5">;
----------------
craig.topper wrote:
> Need to be able to parse with `ra` instead of x1 and `t0` instead of x5.
>
> I think you might need a new Operand type so the parse can parse it as a register.
> Need to be able to parse with ra instead of x1 and t0 instead of x5.
Actually, we can parse `ssload ra` in llvm/test/MC/RISCV/zicfiss-valid.s, but the code indeed can not print `ssload ra`. I have tried to define `ssload` and `sspopchk` separately, but it caused decode conflict.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152793/new/
https://reviews.llvm.org/D152793
More information about the cfe-commits
mailing list