(&mut self, operands: BinaryOperands<XReg>)
| 2193 | } |
| 2194 | |
| 2195 | fn xdiv64_u(&mut self, operands: BinaryOperands<XReg>) -> ControlFlow<Done> { |
| 2196 | let a = self.state[operands.src1].get_u64(); |
| 2197 | let b = self.state[operands.src2].get_u64(); |
| 2198 | match a.checked_div(b) { |
| 2199 | Some(result) => { |
| 2200 | self.state[operands.dst].set_u64(result); |
| 2201 | ControlFlow::Continue(()) |
| 2202 | } |
| 2203 | None => self.done_trap_kind::<crate::XDiv64U>(Some(TrapKind::DivideByZero)), |
| 2204 | } |
| 2205 | } |
| 2206 | |
| 2207 | fn xrem32_s(&mut self, operands: BinaryOperands<XReg>) -> ControlFlow<Done> { |
| 2208 | let a = self.state[operands.src1].get_i32(); |
nothing calls this directly
no test coverage detected