[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/4] fpu: Add float64_to_int{32,64}_modulo
From: |
Richard Henderson |
Subject: |
[PATCH 0/4] fpu: Add float64_to_int{32,64}_modulo |
Date: |
Sat, 27 May 2023 07:19:06 -0700 |
Extract some common code from Alpha and Arm, and which will
shortly also be required by the RISC-V Zfa extension.
Added a new test for Alpha; I already had a RISU test for Arm.
r~
Richard Henderson (4):
fpu: Add float64_to_int{32,64}_modulo
tests/tcg/alpha: Add test for cvttq
target/alpha: Use float64_to_int64_modulo for CVTTQ
target/arm: Use float64_to_int32_modulo for FJCVTZS
include/fpu/softfloat.h | 3 ++
fpu/softfloat.c | 31 ++++++++++++
target/alpha/fpu_helper.c | 85 +++++++--------------------------
target/arm/vfp_helper.c | 71 +++++----------------------
tests/tcg/alpha/test-cvttq.c | 78 ++++++++++++++++++++++++++++++
fpu/softfloat-parts.c.inc | 78 ++++++++++++++++++++++++++++++
tests/tcg/alpha/Makefile.target | 2 +-
7 files changed, 221 insertions(+), 127 deletions(-)
create mode 100644 tests/tcg/alpha/test-cvttq.c
--
2.34.1
- [PATCH 0/4] fpu: Add float64_to_int{32,64}_modulo,
Richard Henderson <=