From mboxrd@z Thu Jan 1 00:00:00 1970 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 C6A97606A322 for ; Thu, 3 Dec 2026 09:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=S9OSU2wu Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZ2pO-0004zt-S7; Thu, 03 Dec 2026 04:10:11 -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 1xZ2pN-0004xp-0u for qemu-arm@nongnu.org; Thu, 03 Dec 2026 04:10:09 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xZ2pL-0005hr-2q for qemu-arm@nongnu.org; Thu, 03 Dec 2026 04:10:08 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4bb702a7548so127180125e9.1 for ; Thu, 03 Dec 2026 01:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796289005; x=1796893805; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Vf5KYax23DvIP7XAxCrcjT2CYvAXF72ZzciYHT7jBkQ=; b=S9OSU2wuna5hiYV4kCxSsghuBabOFy+3eZT7VmI2fPV6Oq4FWxkHTQ0t0Mmagdm3er qfKmKWlVAeqTWnyDwXj5ExeB/fC01SqOD/P7QGAXV+r3eqbzlHBFaaCNL0sBVlJhUR15 RGsMz7sw0lBasr9FcVBQv1sNo1pMQ1sdeTB3V1dvswiQrRiDTCgkFIis74AR88bjG65w 0Sof46rWLYHydRhUljWWOII25KgcGrkoAst06NPMZ54Zf2wDxqoR82r0XXgcmJYt7Dco hpXRrYMqtjpif//NYqtVtSn7HQqmn564Sv/0G0h9UFYYVGs0dLFnevAO4b2oGkvJ8jA/ gyLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796289005; x=1796893805; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Vf5KYax23DvIP7XAxCrcjT2CYvAXF72ZzciYHT7jBkQ=; b=Ek0D2oJZwUBmSB9PF8lxuiHg9vUSmNL5r3Ca3plRZoVo0uR4jmtzGdxjqODTx4BZoX FYiOMdgzGSHucLcmLVnxru/AMZzBhVLnNGs4YZZ34TZseXEKNxwXd+dyxOPhk8XWq5Xo utBRZVQ+Os9koGzACYEnypefHeOGLeJciJRimCO5JlFiJ+AHlR7fbOEwZC/gd98lS8sU fqln1fpdPpdKCUkTgQn5p2U498L2Xs63sKTPAD2E8Q/L5MNV/wNGlWCiOP5GnlzDWlnN bxB6uFPQ0u/1vkIbWo6O07upnsaqmLLitJJLMiR57EAVf5xadwnzi7GCqpFKDJ7Hyupy 80+g== X-Forwarded-Encrypted: i=1; AL+hErHQ7vNnGHDHeeihRFV0KWrDZQJz+qm3SmcSr8KHKADljD+MDVKT1yir7df7tyCQ6Bd0STHX31RPnA==@nongnu.org X-Gm-Message-State: APuU4Z+MNCZ1yQc8+dqwWtYELbdKzgapkkh6nT0KHCfADy0Hjqc+cWT/ Rnc/gIbWgcg1Xd8n6HdKdXbM2F2Qa9Ht4YmBb4iOl4kc7QgvDNjGtIDcunu14TipqvQ= X-Gm-Gg: AZFdTZe5PD5coDQIvmtBlnOH6CE7FaROnP/KTN3zXcBGTFWdVPL9kFQg92llWjdW3dA B5lZvuSGXEV6a3jlDm/4pgQrrrEarQ1UijS6BYx0TDifnoNPuJ+21AVTY3qgqJrVSupuxFcNSB7 OcAk9v/yRPMORWX9BgRb+onCvRYbR/LsxxRjcfBnvqD9+6VINi5LgwO7zodB1ksoE2yUKYtuuv+ 1xODlCgB56czserDizqLBSwmiYb34EmNiU8tlTtz4wICJ5Rm8cVMVzZmPRflUxx0+iE6bRrq2nV /Vvba0pAFfx78EFLQGXmtUHXC/tuPQhlJ1LvVkI15qBxT8a/KEuWWcgx30ACj1w3z8EATeS3zL4 dDQCXbgCpQO4JLdBE6fgwQnQ93+9Us00RijuCvfYHdnzhCUoD+4PSJrNMg7fzZeon4gkhmibf+C mSH1UFhHsQX+fDpiNVdQmkFBc7bHVKd6TvZf9/Dm+BdIqrsY/1QNWiMsU3pgf1rdnINugMUiZuB Xxv/tHJxW+aff3yIKB0EJr9QH+MYvJeykfIRQ0dKRG4JKgxFUOnOzsYzosC+e0NoBymSQwd/FDk lcYOc80aHs/m7Y3YPHOQ5muHvUdJ X-Received: by 2002:a05:600c:4e0d:b0:4bb:5f07:10d7 with SMTP id 5b1f17b1804b1-4bb8882445cmr784905575e9.26.1796289005169; Thu, 03 Dec 2026 01:10:05 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00dafdfsm56151795e9.12.2026.12.03.01.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:10:04 -0800 (PST) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5AF5C5F885; Thu, 03 Dec 2026 09:10:03 +0000 (GMT) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Richard Henderson Cc: qemu-devel@nongnu.org, Aurelien Jarno , Daniel P. =?utf-8?Q?Berrang=C3=A9?= , Chinmay Rath , Helge Deller , Chao Liu , Weiwei Li , David Hildenbrand , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , LIU Zhiwei , Pierrick Bouvier , qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Brian Cain , Alistair Francis , Ilya Leoshkevich , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Song Gao <17746591750@163.com>, Palmer Dabbelt , qemu-arm@nongnu.org, Stafford Horne , Peter Maydell , Yoshinori Sato , qemu-ppc@nongnu.org, Daniel Henrique Barboza , Bibo Mao , Xianglai Li , Laurent Vivier , Jiaxun Yang , Harsh Prateek Bora , Nicholas Piggin , Aleksandar Rikalo , Paolo Bonzini , Glenn Miles Subject: Re: [PATCH v2 5/6] fpu: promote force_soft_fma to force_soft_float In-Reply-To: <17a5ac94-7311-4d11-95b9-524ebb34c0a4@linaro.org> (Richard Henderson's message of "Wed, 2 Dec 2026 13:43:29 -0800") References: <20261201113005.394788-1-alex.bennee@linaro.org> <20261201113005.394788-6-alex.bennee@linaro.org> <17a5ac94-7311-4d11-95b9-524ebb34c0a4@linaro.org> User-Agent: mu4e 1.14.5-pre2; emacs 30.1 Date: Thu, 03 Dec 2026 09:10:03 +0000 Message-ID: <877bhq20ic.fsf@draig.linaro.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 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,SPF_HELO_PASS, SPF_PASS autolearn=unavailable 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 Richard Henderson writes: > On 12/1/26 03:30, Alex Benn=C3=A9e wrote: >> Rather than only tweaking fma allow any hardfloat test failure in init >> to force back the softfloat path. This is going to be used for >> testing. >> Signed-off-by: Alex Benn=C3=A9e >> --- >> include/fpu/softfloat.h | 6 ++++++ >> fpu/softfloat.c | 18 +++++------------- >> 2 files changed, 11 insertions(+), 13 deletions(-) > > Why should a libc's broken fma disable the use of hardware addition? > > Nack to that. > > I'm open to a function, void force_soft_float_for_testing(void), which > sets both force_soft_fma and a new force_soft_float variable to true. I think we can probably drop 5+6 or restrict test-hard to just fp ops where libc can get involved and break things. Is that just fma() or do we also need to cover sqrt, compare (isgreater/less builtins) and fpclassify? > > > r~ --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro