On 10/20/22 01:06, Paolo Bonzini wrote:
VROUND, FSTCW and STMXCSR all have to perform the same conversion from
x86 rounding modes to softfloat constants.  Since the ISA is consistent
on the meaning of the two-bit rounding modes, extract the common code
into a wrapper for set_float_rounding_mode.

Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
---
  target/i386/ops_sse.h        | 60 +++---------------------------------
  target/i386/tcg/fpu_helper.c | 60 +++++++++++++-----------------------
  2 files changed, 25 insertions(+), 95 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to