From patchwork Thu Nov 28 10:43:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 845936 Delivered-To: patch@linaro.org Received: by 2002:adf:f2c4:0:b0:382:43a8:7b94 with SMTP id d4csp159751wrp; Thu, 28 Nov 2024 02:49:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWo8Lo0Tff34n+5SUt7IfCD8l25KY9EhID4bDq3KAAMZotrSpPrkdnfrPKN+4k+94wqROWukA==@linaro.org X-Google-Smtp-Source: AGHT+IGwyph5bbb8hLZwYOScmf+GGD4XF2ehKo3vm2V7BmitRAhnCGtBPSwfpuPtZs9osAd3oHZy X-Received: by 2002:a05:6214:2023:b0:6d3:b5d4:1fbb with SMTP id 6a1803df08f44-6d864d0712cmr89652126d6.1.1732790969233; Thu, 28 Nov 2024 02:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732790969; cv=none; d=google.com; s=arc-20240605; b=cYdI6Kb5Zfu1RDKbk3C02DlBvd/PdsjA0Ns3c/MG24L5SxKM3fdcH+PVSSsH80Sj9B NhBk4v/3Jm++ndtMt7PJfRv9931SiYvLCnZTeToVp6YTqIrP+4S7tYB/7YBJOVA3UqY6 aa5Kw6Z6lATlgiwO4quidUbNOb37fIMR2SNcqTIBWFKW84uZgn5h5qlQsLd4YFJQerdY qvhu2gQ2Gku0regVftFh9uGiI12MF218zMT9epnx+p9YNDqRwDkYrAh1Oz7GHTGBC93j A4t5qErylXbAnzKQIWIikiKvtRRhY5XSCfIRGO2As4LL/TISnZqzqJf3dqqjtABgO6fV n/Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eT1LXyat6VBXQfbf2ZEeygMBWdK2hSiibfIDvIYaJow=; fh=QgE9QYJDVj//6C0QJWGeEM+qaFVaxwMel1ZWqkEy6K0=; b=CEYeh6GQEFwIaPF3mEJ6ceqoeT7y0bMyn1oEpvlEJtG05gjvnI6f1IkvnnB60OEvNt cZR/1gCnTPV/CYN/rfihAHKTp5Xmdo9NQcAAmkhyrQbmIjNFhGZmAQgTvH5iKHv5Row5 eGqALyud18Jy7jPI/fawO5w1XhkeEcz39/ZBE9mENCCWsPEk/zQJDY48sdi+bgI573P8 x8LbwVj1k4mbh20T3F5khHmk+BZ9iBIV5wOBLOrHAJ01OH7CYwE2H/NB/3ns0azfPrHh XpS9sAnhYdIyOzw7HZFfrnc5sIABvDa2HCHKaKOVG1zlvyh96JwiJ2J6vFMJ1K0p26LQ ki8A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFOheQh3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d87a59b420si5029566d6.420.2024.11.28.02.49.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Nov 2024 02:49:29 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFOheQh3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGc1F-0004Gs-QJ; Thu, 28 Nov 2024 05:45:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGbzy-0002Dh-0f for qemu-devel@nongnu.org; Thu, 28 Nov 2024 05:43:53 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGbzt-0000kp-TF for qemu-devel@nongnu.org; Thu, 28 Nov 2024 05:43:49 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-37ed3bd6114so459307f8f.2 for ; Thu, 28 Nov 2024 02:43:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732790616; x=1733395416; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eT1LXyat6VBXQfbf2ZEeygMBWdK2hSiibfIDvIYaJow=; b=RFOheQh3IPIf1l6+sAnVIhgWWt5ytJNUcTsEATaRCV2gcMr/Xf7bDCujQ3kUOEfgp+ gnCf5lVjy0JNsaXlau0vtW1lXQ6FqtYhs4e0XDg8HJGet6BUu+VJfXAx7MI9s2NIZOpb ewy3bAR6VtZ5DLoxHprhxz+9mliIcQEbXO/LS8FA9dFCJWTQZjs01PbIT7dJx/ALi1oh G8UWo5bAf+ZF3pKLrAyiZGESnxrV5sxU8NRZnRM11BAptIWjKRtgtbgoRsOD98C3HpNz L08h/Bitzh8r97w/7ETEa38D/vN3KyiWoOMUPmZjvX4SoM5tkF2I065rQkoxg5S6ErsA I2Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732790616; x=1733395416; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eT1LXyat6VBXQfbf2ZEeygMBWdK2hSiibfIDvIYaJow=; b=Qzs0cNDqTme89muuBIFPwtrTZshVkLe0WXd4Kz659GeTWnmqA1lPOPOuuxgHTp/uzl joIAoxptWgwtZ22XKzJ9fcULLLpNaOZAUiSFVrgP8vMp7UaOksebuINv2COOAIWl8don G9szCeoIDBrdA95PotS+w9qOl5up4rugwxeJf0Z4n1AXTBX3qlSMlqyn/DeDHoojnM1a V+KiWS9XdiANhX74ksMykszLr2fls6plvBWTPTpDlusTlbM22KKKMW80Y4EFTHVTeOZ3 5geySrbs24t3eerfjVsVmbmDfyiPBHY23AYRjKWtG5oQduDZ/QLIQArE3L/fXwj3ZoaW osZg== X-Gm-Message-State: AOJu0Yz5jGQOze1BCrKy5jjRrroI+m4PoNrb7C4pw11zL2sb6hERCBlT Eso+vUWxvxAbWgUOpXD2zqKnRUR4SKJTjLb2KPCd+s2Ts3nhsVBn5MP+HHR1HflCKkQvel75yf2 m X-Gm-Gg: ASbGncv6sbHSgkCH2EY19puLk2VFn10qLpkMZdoVUQDwhXcu/mVu1pArYzWEP2QuzlZ vh4DBQJKGikRbtRWjyHl052KjcpPEmeTMcpgV5FWCsNbjewPphyrC7kVnF5GwZaFMXgvtVDBBPm pTpVQoqUYy/xuYP+OHYiKoYPLkTxUt/Qn2P+mKvy6+HxkYqFy6WIf/oeVkBCJSqsxWhs9bKORVU +dIlJv8ihYwhIQthuvUs36xjyA4ADAdjda7o7XIeel5F6H9q3RZ7Xw= X-Received: by 2002:a05:6000:18a7:b0:382:4dad:3887 with SMTP id ffacd0b85a97d-385c6cca8eamr6108106f8f.3.1732790616027; Thu, 28 Nov 2024 02:43:36 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385ccd68958sm1292959f8f.67.2024.11.28.02.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2024 02:43:35 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Song Gao , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Jiaxun Yang , Aleksandar Rikalo , Nicholas Piggin , Daniel Henrique Barboza , David Hildenbrand , Ilya Leoshkevich , Thomas Huth , Mark Cave-Ayland , Artyom Tarasenko , Max Filippov Subject: [PATCH for-10.0 23/25] target/i386: Set Float3NaNPropRule explicitly Date: Thu, 28 Nov 2024 10:43:08 +0000 Message-Id: <20241128104310.3452934-24-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241128104310.3452934-1-peter.maydell@linaro.org> References: <20241128104310.3452934-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Set the Float3NaNPropRule explicitly for i386. We had no i386-specific behaviour in the old ifdef ladder, so we were using the default "prefer a then b then c" fallback. This is very likely wrong for i386, but in this refactoring we don't want to make a behaviour change, so we leave a TODO note. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target/i386/tcg/fpu_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/i386/tcg/fpu_helper.c b/target/i386/tcg/fpu_helper.c index e9de084a96d..b62719dead1 100644 --- a/target/i386/tcg/fpu_helper.c +++ b/target/i386/tcg/fpu_helper.c @@ -180,6 +180,8 @@ void cpu_init_fp_statuses(CPUX86State *env) * against the manual. */ set_float_infzeronan_rule(float_infzeronan_dnan_never, &env->sse_status); + /* Similarly the NaN propagation rule is likely wrong. */ + set_float_3nan_prop_rule(float_3nan_prop_abc, &env->sse_status); } static inline uint8_t save_exception_flags(CPUX86State *env)