(instr: Instruction)
| 635 | } |
| 636 | |
| 637 | fn float_bin_op_64(instr: Instruction) -> Option<BinOp> { |
| 638 | Some(match instr { |
| 639 | Instruction::F64Add => BinOp::FAdd, |
| 640 | Instruction::F64Sub => BinOp::FSub, |
| 641 | Instruction::F64Mul => BinOp::FMul, |
| 642 | Instruction::F64Div => BinOp::FDiv, |
| 643 | Instruction::F64Min => BinOp::FMin, |
| 644 | Instruction::F64Max => BinOp::FMax, |
| 645 | Instruction::F64Copysign => BinOp::FCopysign, |
| 646 | _ => return None, |
| 647 | }) |
| 648 | } |
| 649 | |
| 650 | fn scalar_bin_op_32(instr: Instruction) -> Option<BinOp> { |
| 651 | int_bin_op_32(instr).or_else(|| float_bin_op_32(instr)) |
no outgoing calls
no test coverage detected