All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] [soft|hard]float: tests and bug fix for #5203
@ 2026-12-01 11:29 Alex Bennée
  2026-12-01 11:29 ` [PATCH v2 1/6] meson: expose MESON_SOURCE_ROOT to scripts Alex Bennée
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Alex Bennée @ 2026-12-01 11:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aurelien Jarno, Daniel P. Berrangé, Chinmay Rath,
	Helge Deller, Chao Liu, Weiwei Li, David Hildenbrand,
	Marc-André Lureau, LIU Zhiwei, Pierrick Bouvier, qemu-riscv,
	qemu-s390x, Brian Cain, Alistair Francis, Ilya Leoshkevich,
	Philippe Mathieu-Daudé, Song Gao, Palmer Dabbelt, qemu-arm,
	Stafford Horne, Peter Maydell, Yoshinori Sato, qemu-ppc,
	Daniel Henrique Barboza, Bibo Mao, Xianglai Li, Laurent Vivier,
	Jiaxun Yang, Richard Henderson, Harsh Prateek Bora,
	Alex Bennée, Nicholas Piggin, Aleksandar Rikalo,
	Paolo Bonzini, Glenn Miles

We had a bug reported that fma fails on some platforms. I can't test
the fix but I took the opportunity to extend the TCG test cases to
cover a few more of the fma corner cases along with what is hopefully
the fix.

It occurred to me that the linux-user tests would be hard to run on
windows and also only covered fma() so I added fp-test-hard to do
general A/B test comparing softfloat and hardfloat results. Whether
this is worth the cost of promoting force_soft_fma to force_soft_float
remains to be seen. My initial run with fp-bench shows a drop

Before:

760.21 MFlops

After:

720.04 MFlops

So it might we worth scaling the test back just to fma() and any other
places where the compiler/libc can get in the way.

v2
  - added tags from pbo
  - moved the ref updates to the right commit
  - added fp-test-hard

Alex.

Alex Bennée (6):
  meson: expose MESON_SOURCE_ROOT to scripts
  scripts/tests: add regen-reference.sh
  tests/tcg: extend the float_madds test case
  fpu/softfloat: gate hardfloat on working fmaf
  fpu: promote force_soft_fma to force_soft_float
  tests/fp: add fp-test-hard

 meson.build                           |   1 +
 include/fpu/softfloat.h               |   6 +
 fpu/softfloat.c                       |  26 +-
 tests/fp/fp-test-hard.c               | 702 ++++++++++++++++++++++++++
 tests/tcg/multiarch/float_madds.c     |  13 +
 scripts/tests/regen-reference.sh      |  87 ++++
 tests/fp/meson.build                  |  30 +-
 tests/tcg/aarch64/float_madds.ref     |  64 +++
 tests/tcg/alpha/float_madds.ref       |  64 +++
 tests/tcg/arm/float_madds.ref         |  64 +++
 tests/tcg/hexagon/float_madds.ref     |  64 +++
 tests/tcg/hppa/float_madds.ref        |  64 +++
 tests/tcg/i386/float_madds.ref        |  64 +++
 tests/tcg/loongarch64/float_madds.ref |  64 +++
 tests/tcg/m68k/float_madds.ref        |  64 +++
 tests/tcg/mips/float_madds.ref        |  64 +++
 tests/tcg/mips64/float_madds.ref      |  64 +++
 tests/tcg/mips64el/float_madds.ref    |  64 +++
 tests/tcg/mipsel/float_madds.ref      |  64 +++
 tests/tcg/or1k/float_madds.ref        |  16 +
 tests/tcg/ppc64/float_madds.ref       |  64 +++
 tests/tcg/ppc64le/float_madds.ref     |  64 +++
 tests/tcg/riscv64/float_madds.ref     |  64 +++
 tests/tcg/s390x/float_madds.ref       |  64 +++
 tests/tcg/sh4/float_madds.ref         |  32 ++
 tests/tcg/x86_64/float_madds.ref      |  64 +++
 26 files changed, 1979 insertions(+), 22 deletions(-)
 create mode 100644 tests/fp/fp-test-hard.c
 create mode 100755 scripts/tests/regen-reference.sh

-- 
2.47.3



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-12-03  9:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 11:29 [PATCH v2 0/6] [soft|hard]float: tests and bug fix for #5203 Alex Bennée
2026-12-01 11:29 ` [PATCH v2 1/6] meson: expose MESON_SOURCE_ROOT to scripts Alex Bennée
2026-12-01 11:30 ` [PATCH v2 2/6] scripts/tests: add regen-reference.sh Alex Bennée
2026-12-02 21:12   ` Pierrick Bouvier
2026-12-02 21:26   ` Richard Henderson
2026-12-02 21:31     ` Pierrick Bouvier
2026-12-02 21:38     ` Philippe Mathieu-Daudé
2026-12-02 21:48       ` Pierrick Bouvier
2026-12-03  9:05     ` Alex Bennée
2026-12-01 11:30 ` [PATCH v2 3/6] tests/tcg: extend the float_madds test case Alex Bennée
2026-12-02 21:12   ` Pierrick Bouvier
2026-12-02 21:35   ` Richard Henderson
2026-12-01 11:30 ` [PATCH v2 4/6] fpu/softfloat: gate hardfloat on working fmaf Alex Bennée
2026-12-02 21:37   ` Richard Henderson
2026-12-01 11:30 ` [PATCH v2 5/6] fpu: promote force_soft_fma to force_soft_float Alex Bennée
2026-12-02 21:43   ` Richard Henderson
2026-12-03  9:10     ` Alex Bennée
2026-12-01 11:30 ` [PATCH v2 6/6] tests/fp: add fp-test-hard Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.