From: Richard Henderson <richard.henderson@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH v2 3/6] tests/tcg: extend the float_madds test case
Date: Wed, 2 Dec 2026 13:35:39 -0800 [thread overview]
Message-ID: <28b66fca-ab66-4372-960e-e5bb226e50af@linaro.org> (raw)
In-Reply-To: <20261201113005.394788-4-alex.bennee@linaro.org>
On 12/1/26 03:30, Alex Bennée wrote:
> We have a bug report about a failing case when using a broken
> mingw-w64 and in the upstream bug there where some additional test
> cases added. Import them into our *-user test so we can verify the fix
> later.
>
> I've regenerated the references with the new TCG helper script but I
> have verified they are correct for arm, aarch64, ppc64 and s390x.
>
> BugLink: https://sourceforge.net/p/mingw-w64/bugs/848/
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> ---
> v2
> - fixed the refs
> ---
> tests/tcg/multiarch/float_madds.c | 13 ++++++
> 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 +++++++++++++++++++++++++++
> 20 files changed, 1149 insertions(+)
>
> diff --git a/tests/tcg/multiarch/float_madds.c b/tests/tcg/multiarch/float_madds.c
> index a692e052d5b..47d9847b573 100644
> --- a/tests/tcg/multiarch/float_madds.c
> +++ b/tests/tcg/multiarch/float_madds.c
> @@ -99,6 +99,19 @@ int main(int argc, char *argv[argc])
> printf("# LP184149\n");
> do_madds(0x1.ffffffffffffcp-1022, 0x1.0000000000001p-1, 0x0.0000000000001p-1022, j, 0);
> do_madds(0x8p-152, 0x8p-152, 0x8p-152, j+1, 0);
> +
> + /* From https://gitlab.com/qemu-project/qemu/-/issues/5023 */
> + printf("# Issue 5023\n");
> + do_madds(FLT_MAX, 2.0f, -FLT_MAX, j+2, 0);
> +
> + /* From https://gist.github.com/minoki/ff4412f2a385eab3c7e689acd589ea3e */
> + printf("# Gist cases\n");
> + do_madds(0x1p100f, 0x1p100f, -INFINITY, j+3, 0);
> + do_madds(0x1.fffffep23f, 0x1.000004p28f, 0x1.fcp5f, j+4, 0);
> + do_madds(0x1.84ae3p125f, 0x1.6p-141f, 0x1p-149f, j+5, 0);
> + do_madds(0x1.00001p50f, 0x1.1p50f, 0x1p-149f, j+6, 0);
> + do_madds(0x1.000002p50f, 0x1.8p50f, -0x1p-149f, j+7, 0);
> + do_madds(0x1.83bd78p4f, -0x1.cp118f, -0x1.344108p-2f, j+8, 0);
I think it would be better to reduce our reliance on reference data
rather than increase it.
The test case under issue has an exact result, no need for any
reference. Why not put this in its own 2 line test case?
r~
next prev parent reply other threads:[~2026-12-02 21:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28b66fca-ab66-4372-960e-e5bb226e50af@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.