@@ -593,8 +593,7 @@ class ALUW_rr<bits<7> funct7, bits<3> funct3, string opcodestr,
593
593
594
594
let hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
595
595
class Priv<string opcodestr, bits<7> funct7>
596
- : RVInstR<funct7, 0b000, OPC_SYSTEM, (outs), (ins GPR:$rs1, GPR:$rs2),
597
- opcodestr, "">;
596
+ : RVInstR<funct7, 0b000, OPC_SYSTEM, (outs), (ins), opcodestr, "">;
598
597
599
598
let hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
600
599
class Priv_rr<string opcodestr, bits<7> funct7>
@@ -1543,8 +1542,8 @@ def PseudoCALL : Pseudo<(outs), (ins call_symbol:$func), [],
1543
1542
def : Pat<(riscv_call tglobaladdr:$func), (PseudoCALL tglobaladdr:$func)>;
1544
1543
def : Pat<(riscv_call texternalsym:$func), (PseudoCALL texternalsym:$func)>;
1545
1544
1546
- def : Pat<(riscv_sret_glue), (SRET (XLenVT X0), (XLenVT X0) )>;
1547
- def : Pat<(riscv_mret_glue), (MRET (XLenVT X0), (XLenVT X0) )>;
1545
+ def : Pat<(riscv_sret_glue), (SRET)>;
1546
+ def : Pat<(riscv_mret_glue), (MRET)>;
1548
1547
1549
1548
let isCall = 1, Defs = [X1] in {
1550
1549
let Predicates = [NoStdExtZicfilp] in
0 commit comments