Browse Source

cranelift_codegen::souper_harvest: Update TODOs to include more instructions

pull/2184/head
Nick Fitzgerald 4 years ago
parent
commit
c87aaeeece
  1. 2
      cranelift/codegen/src/souper_harvest.rs

2
cranelift/codegen/src/souper_harvest.rs

@ -129,6 +129,7 @@ fn harvest_candidate_lhs(
| ir::Opcode::Clz
| ir::Opcode::Ctz
// TODO: ir::Opcode::IaddCarry
// TODO: ir::Opcode::IaddCout
| ir::Opcode::SaddSat
| ir::Opcode::SsubSat
| ir::Opcode::UsubSat => true,
@ -404,6 +405,7 @@ fn harvest_candidate_lhs(
ast::Instruction::Cttz { a }.into()
}
// TODO: ir::Opcode::IaddCarry
// TODO: ir::Opcode::IaddCout
(ir::Opcode::SaddSat, _) => {
let a = arg(allocs, 0);
let b = arg(allocs, 1);

Loading…
Cancel
Save