@@ -715,14 +715,14 @@ let Predicates = [HasStdExtCOrZca] in {
715715def : InstAlias<"c.lw $rd, (${rs1})", (C_LW GPRC:$rd, GPRCMem:$rs1, 0)>;
716716def : InstAlias<"c.sw $rs2, (${rs1})", (C_SW GPRC:$rs2, GPRCMem:$rs1, 0)>;
717717def : InstAlias<"c.lwsp $rd, (${rs1})", (C_LWSP GPRNoX0:$rd, SPMem:$rs1, 0)>;
718- def : InstAlias<"c.swsp $rs2, (${rs1})", (C_SWSP GPRNoX0 :$rs2, SPMem:$rs1, 0)>;
718+ def : InstAlias<"c.swsp $rs2, (${rs1})", (C_SWSP GPR :$rs2, SPMem:$rs1, 0)>;
719719}
720720
721721let Predicates = [HasStdExtCOrZca, IsRV64] in {
722722def : InstAlias<"c.ld $rd, (${rs1})", (C_LD GPRC:$rd, GPRCMem:$rs1, 0)>;
723723def : InstAlias<"c.sd $rs2, (${rs1})", (C_SD GPRC:$rs2, GPRCMem:$rs1, 0)>;
724724def : InstAlias<"c.ldsp $rd, (${rs1})", (C_LDSP GPRNoX0:$rd, SPMem:$rs1, 0)>;
725- def : InstAlias<"c.sdsp $rs2, (${rs1})", (C_SDSP GPRNoX0 :$rs2, SPMem:$rs1, 0)>;
725+ def : InstAlias<"c.sdsp $rs2, (${rs1})", (C_SDSP GPR :$rs2, SPMem:$rs1, 0)>;
726726}
727727
728728let Predicates = [HasStdExtCOrZcfOrZce, HasStdExtF, IsRV32] in {
0 commit comments