Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC3BA606A322 for ; Wed, 2 Dec 2026 21:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=BiNvztEp Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYrzh-0007Mx-EV; Wed, 02 Dec 2026 16:36:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYrzO-0007Ig-W2 for qemu-devel@nongnu.org; Wed, 02 Dec 2026 16:35:52 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xYrzL-0008NQ-E9 for qemu-devel@nongnu.org; Wed, 02 Dec 2026 16:35:45 -0500 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-2f03920c477so112551075ad.2 for ; Wed, 02 Dec 2026 13:35:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796247342; x=1796852142; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to:content-type; bh=GuVuqCaJ7DPo7XKCZjwfHzMe1FRddPRrWAjZJ20BCWI=; b=BiNvztEpiVMcA7Eurv2HJP0SGec9hIkroRoAoujFebhzv46etJOE7pWBwizme/vo2e iANWOfUQXWw0AEZJ18sRU6Hv9+crStlTEfrOZhDbpCUNhruah0zR6Jimzu8LKbLvq8yq UFlMIdsCpnWhOfcGjaumvk+7sPvVwMiTVA8ZJl6iGFBmCxcyka3I2tU4Bi5fy3LVnjqW F1MgYcu++1HK+Dwke4LICfgWvIm1LO97BVhlyRk1gXq9d4sQFXfuZvhWRRLJvcEfFQYf N5a/7cjzegqKmhP+5N5L3piZ2KDEvHqum1EHsdUFxM+ytzsgjmQHVWbSpboZVWehAXPs 1XCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796247342; x=1796852142; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=GuVuqCaJ7DPo7XKCZjwfHzMe1FRddPRrWAjZJ20BCWI=; b=RnGbmPFNBHSU4H9gaMHFpol4fVaElR4c/z2F6KGc0WJHAQIfuNMS7hIlwFjXZs24Ow aN3lM9dmCE3b9/8xvZHN7k8Wr7UsSEPgaGNhEuot2ZT61vpo7FbZSUmYd+sL4mU5dfAv 4LrzGUfueBI3ts5Kak+FBpo5lbYwz6O2xetobS8LOyA6W8XkBkMdj7w+gXekL24GZ/aS 5wz3E7wBZcWbvd71dIYjpjm3RwlrRVN4o6MEV9s63baf9QOp9tJ0Q8U/IRST+3FGOP8A mtzg9PJNc0TQW+t098SDFtPHz+ZMsr3jcS+EUFaWT48aOjK2HlULpkjq9V0kz0gqfjMS bGeg== X-Forwarded-Encrypted: i=1; AL+hErEz8Ios1fLfWo+7pUt5sf/KBFRShKs0ksvvy/Qjg79MSmQA8IgIyvDogBa65fv+NDJmbSHLOwuUKutz@nongnu.org X-Gm-Message-State: APuU4Z+jodrFk4KE/rX1lH4Ae+MDmghIaQc1tYOUjlKRSj23E5dwszGv +wUj877Pt4HyRQYz/btAah782bRYaR9GBV274ADQZz8qeda5kHVYL/TjV7NkZ8phCK8= X-Gm-Gg: AZFdTZdPIBNwT/VTWQzQZoAHU5HnckprtgAVT6WEkvPO3SPigCTPDGcmkYnW1vFnogE 3rsSpY+LMWp5T8NEZzGvFMeD1iZmNjOAbY1LqvcDSNUII5Ve/7VaDYQRX0M2fihW+OfCa+1LNYJ Etg2qENJBCfGI/vxUFtDqsU/OrPfjVUsiPdQXIFTMjyy+X0WBhYjObHREb1w+0e+hRNNgYvVake JoQaK/XhqyyjBlVtLejbK0AFztmczRjhQk6Bafe2p4Gk1VsJAakLK268LTZq4GZcz61ZjVvyWBE A1TDXS5KCKNbW4HoLycN60/S8oykinDIhx3V448PyeiayVqXLD2S4+aY1spAjJHb17FK7L+MzQc JP9nrqmZh0cDhV8sEDcGwsDJ6R95/I9evprDlYL3kjwLeQQbdISQf01xgFLeqB6t5BakmNOs4Lp j8KQN0XifgXbw/UURksLmtyapr52WK/fMzViSQOf+i6Y/XVqOAe9cTYo3F49ODXFCCwB8lgZWiF krj1tWuZ5PDOGaHd5nTE+Gjsyuh3cIgvaJHTtNnFpsy8YhG/q0mPzRxt4FBDP+PnLoo+vAUhllW Ce/VWm3RCxbo+d0GE76d4uCcwk44Yn8YQHFnHxxr9/MPrwsj8SN53Z+7Dx0MZaDNRk7TtQ== X-Received: by 2002:a17:902:f70f:b0:2ef:e1a8:ef1f with SMTP id d9443c01a7336-2f03ef44b2emr422572735ad.5.1796247341783; Wed, 02 Dec 2026 13:35:41 -0800 (PST) Received: from [192.168.0.4] (174-21-68-150.tukw.qwest.net. [174.21.68.150]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f0c1f2csm210154385ad.22.2026.12.02.13.35.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 13:35:41 -0800 (PST) Message-ID: <28b66fca-ab66-4372-960e-e5bb226e50af@linaro.org> Date: Wed, 2 Dec 2026 13:35:39 -0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/6] tests/tcg: extend the float_madds test case To: =?UTF-8?Q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org References: <20261201113005.394788-1-alex.bennee@linaro.org> <20261201113005.394788-4-alex.bennee@linaro.org> From: Richard Henderson Content-Language: en-US In-Reply-To: <20261201113005.394788-4-alex.bennee@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-22.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 > > --- > 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~