[midend]重命名Sra指令的kind标识

This commit is contained in:
rain2133
2025-08-13 14:55:46 +08:00
parent ea944f6ba0
commit 60cb8d6e49
4 changed files with 7 additions and 7 deletions

View File

@@ -517,7 +517,7 @@ void RISCv64ISel::selectNode(DAGNode* node) {
CurMBB->addInstruction(std::move(instr));
break;
}
case Instruction::kSRA: {
case Instruction::kSra: {
auto rhs_const = dynamic_cast<ConstantInteger*>(rhs);
auto instr = std::make_unique<MachineInstr>(RVOpcodes::SRAIW);
instr->addOperand(std::make_unique<RegOperand>(dest_vreg));