(instr: Instruction)
| 588 | } |
| 589 | |
| 590 | fn int_bin_op_32(instr: Instruction) -> Option<BinOp> { |
| 591 | Some(match instr { |
| 592 | Instruction::I32Add => BinOp::IAdd, |
| 593 | Instruction::I32Sub => BinOp::ISub, |
| 594 | Instruction::I32Mul => BinOp::IMul, |
| 595 | Instruction::I32And => BinOp::IAnd, |
| 596 | Instruction::I32Or => BinOp::IOr, |
| 597 | Instruction::I32Xor => BinOp::IXor, |
| 598 | Instruction::I32Shl => BinOp::IShl, |
| 599 | Instruction::I32ShrS => BinOp::IShrS, |
| 600 | Instruction::I32ShrU => BinOp::IShrU, |
| 601 | Instruction::I32Rotl => BinOp::IRotl, |
| 602 | Instruction::I32Rotr => BinOp::IRotr, |
| 603 | _ => return None, |
| 604 | }) |
| 605 | } |
| 606 | |
| 607 | fn int_bin_op_64(instr: Instruction) -> Option<BinOp> { |
| 608 | Some(match instr { |
no outgoing calls
no test coverage detected