@@ -125,19 +125,25 @@ class NDSRVInstBFO<bits<3> funct3, string opcodestr>
125125 let mayStore = 0;
126126}
127127
128- class NDSRVInstRR<bits<7> funct7, string opcodestr,
129- string argstr = "$rd, $rs1, $rs2">
128+ class NDSRVInstRR<bits<7> funct7, string opcodestr>
130129 : RVInstR<funct7, 0b000, OPC_CUSTOM_2,
131130 (outs GPR:$rd), (ins GPR:$rs1, GPR:$rs2),
132- opcodestr, argstr >,
131+ opcodestr, "$rd, $rs1, $rs2" >,
133132 Sched<[WriteIALU, ReadIALU, ReadIALU]> {
134133 let hasSideEffects = 0;
135134 let mayLoad = 0;
136135 let mayStore = 0;
137136}
138137
139138class NDSRVInstLEA<bits<7> funct7, string opcodestr>
140- : NDSRVInstRR<funct7, opcodestr, "$rd, $rs2, $rs1">;
139+ : RVInstR<funct7, 0b000, OPC_CUSTOM_2,
140+ (outs GPR:$rd), (ins GPR:$rs2, GPR:$rs1),
141+ opcodestr, "$rd, $rs1, $rs2">,
142+ Sched<[WriteIALU, ReadIALU, ReadIALU]> {
143+ let hasSideEffects = 0;
144+ let mayLoad = 0;
145+ let mayStore = 0;
146+ }
141147
142148// GP: ADDI, LB, LBU
143149class NDSRVInstLBGP<bits<2> funct2, string opcodestr>
0 commit comments