(&mut self)
| 896 | } |
| 897 | |
| 898 | fn visit_f32_trunc(&mut self) -> Self::Output { |
| 899 | self.masm.float_round( |
| 900 | RoundingMode::Zero, |
| 901 | &mut self.env, |
| 902 | &mut self.context, |
| 903 | OperandSize::S32, |
| 904 | |env, cx, masm| { |
| 905 | let builtin = env.builtins.trunc_f32::<M::ABI>()?; |
| 906 | FnCall::emit::<M>(env, masm, cx, Callee::Builtin(builtin)) |
| 907 | }, |
| 908 | )?; |
| 909 | let result = self.context.pop_to_reg(self.masm, None)?; |
| 910 | self.masm |
| 911 | .maybe_canonicalize_nan(writable!(result.into()), OperandSize::S32)?; |
| 912 | self.context.stack.push(result.into()); |
| 913 | Ok(()) |
| 914 | } |
| 915 | |
| 916 | fn visit_f64_trunc(&mut self) -> Self::Output { |
| 917 | self.masm.float_round( |
nothing calls this directly
no test coverage detected