From patchwork Thu Nov 28 10:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 845934 Delivered-To: patch@linaro.org Received: by 2002:adf:f2c4:0:b0:382:43a8:7b94 with SMTP id d4csp159740wrp; Thu, 28 Nov 2024 02:49:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVmx2cGMYSTMaGXRg3j0AwXF6aaV+yddO8bggEyJTYP465tbfwD2FunVzJggmRdaqqSE53L9w==@linaro.org X-Google-Smtp-Source: AGHT+IH6z+Vqccl9dzNrsGZbg1y9idIbU7o8qFTOhVFSpGpkPN+1VrFRqR8VT6dscZvZPXkmhD1B X-Received: by 2002:a05:620a:801b:b0:7af:c3f4:ee45 with SMTP id af79cd13be357-7b67c4a1480mr1015002085a.55.1732790967776; Thu, 28 Nov 2024 02:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732790967; cv=none; d=google.com; s=arc-20240605; b=AHCHT49dk0GIHOjNYUpmH9NCH9k30M8tIZXdYE+TMxeoXjDncSLUf81eHKPxqWUqi+ U7KlxqBKF3oiLWoDnF4zEfxfEHKRQUdvyoLT/BhXSgSqVjNjuskpBQSkT8u8J3W2421d d+DJXw3q/V0zLnQuzF/pmpGorXOn/2kh/NuDDScl3CjmZtAx1UoYFig2IPXSI2jZjH5s Zlpx+8tp0XOzMVP3UcIJLXQngN2b2u4v3IdiVNZ55dWIzFAphNUoyH7EVD7vv6koz+L1 1bdlkJ/DLmHUXcb1f/rZZMi38yzZBV/5IwmlOL8Zhekwy/Z1cgFSn2Tam27AIy95smGP Uo7w== 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=QSKy4hpjmDanw2YkU8Msj9vNT9iFFxMr9XhYnZJtyOY=; fh=QgE9QYJDVj//6C0QJWGeEM+qaFVaxwMel1ZWqkEy6K0=; b=NjsnvHaNLtrbvp3YZOPOZRTfnEmDPRAVJXoxQxG7SagJ8/I+N9x4CM6QmvLUgZ3AZs VebApkYChoUdxAM7Gx9imFThbJO++AC4uYXdqjw650/MTu6vVHfuKcBzPnxFM8/9NW9b 1Aq9ylCPMaP3OVq1UaJ3POzderDrUJJ7sG6aLGFzEAbcu/307j977+UkIJAdkQGfNVLe Hf2LyqvuolaMH/HkrtnVZcJPkwdgWvUPZH4Q/mKmdczShXSBfDTkX/suXWkRedEOYLuD r2Uf/ovwzZcz7IZz3CuR2CZKAQycsIAEA02G27HSs/geewhD7bW0ScXFiucx4KtUJetL 6pRQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pJVqARvB; 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 af79cd13be357-7b6849eb7ffsi145562185a.618.2024.11.28.02.49.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Nov 2024 02:49:27 -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=pJVqARvB; 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 1tGc1a-0004vr-KR; Thu, 28 Nov 2024 05:45:31 -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 1tGbzj-00027T-AS for qemu-devel@nongnu.org; Thu, 28 Nov 2024 05:43:39 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGbzb-0000cf-SA for qemu-devel@nongnu.org; Thu, 28 Nov 2024 05:43:33 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-434a752140eso5706945e9.3 for ; Thu, 28 Nov 2024 02:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732790606; x=1733395406; 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=QSKy4hpjmDanw2YkU8Msj9vNT9iFFxMr9XhYnZJtyOY=; b=pJVqARvBxhBksRpOt2hfm6pQ+r3TYzk79rmjdWMoqJnX/0R6R9REYs+CJnRwzsgviS CWFlEsxqr93zoKh81dgb0k7Sowl/EDAtVJDvgglZMET6ERJuD4rZ77erzg+M4k+WV7NN oWMQ6nrxOGbt1/iOwiqO9UcVG5izQopiuoZE8N2mv4fCltMvezp4RvwjKDvhNUXUbnu7 PzbTBSr/CYx87nkSx4MaB6Qy03CzUv79C1Yx8oe9sdC/Ro2s9iBFkSt1LUVQJ8h5hS61 jzBEWZWEnM8IdS1cNQoXjsH/YucmeNmq1p/z6zqDmW0lZ9LA7iIO/e1085fFMQTTKNL6 0P4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732790606; x=1733395406; 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=QSKy4hpjmDanw2YkU8Msj9vNT9iFFxMr9XhYnZJtyOY=; b=oMdJT9clKXAZA84vbbjE6dpCJ68Mo5hSngSU/aPeGlXKzZxaHgbMMGERPwaWBC4DfV ViaIMqTQ+MoRN5zut+WdwPZ4kXQJ822kuaOwQUiC8dV+jdnwohXphUHQq340kMJBYDvR 0q0HJ9+NdwYnPfXD594N5oI6bjbumxPjnnFXYly6fUYUAhUY/LvLLCpS0zHxdl1DJzrw kTjbdqCgUV12QuKUFCkoLyNppZ/PVurzspdd0pieqW4eBLTxN1fIVOkfOV+1gqxEiEhu 8nX0QDXzBRrZnp5Gr2Lq1hXHFpQx2eDCX3C0zTNFHFmQZJbIWq260Lk+3U5M3E4BP4z7 vs6g== X-Gm-Message-State: AOJu0Yy//CnCptpp6+/PG+97OkJROV2rvX81iVg6vcWpyBzZHN8bkWkC LWMKwDRDPFD/qRwSO7+4TfsIVfnD14fxHhJUvXiHyQhwiiKtHKv2wX4LB3gR1awwbE45CMy12Wm O X-Gm-Gg: ASbGncvTxMO+ZF7nQxVaC15suOGg+d8rK4sTfSXVu3N3krTQGo5B+pZDLDawkjA2/Tu Z5qB5ERJvlHAXaTFLHJoGKJjkvswlGYALU8kYQxyadqs//uk7xvsZnuhAr9Fje7c9vT6Sd0+qWt hVJ9Z4h4NdoJ6R5ozU+u7deu3eNfaWq9AdrgJ/bp4goIN5CIP/H+ZbIX9N3KzNGZb2B4btWj6F9 J4mRJUcVJrx75/OXi2iJxk4LlvlkrnQENWrGDFQQQdcUkb7nwklYqY= X-Received: by 2002:a5d:59ab:0:b0:382:42d7:eedc with SMTP id ffacd0b85a97d-385c6cca8dfmr5318903f8f.5.1732790606376; Thu, 28 Nov 2024 02:43:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2024 02:43:26 -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 15/25] tests/fp: Explicitly set 3-NaN propagation rule Date: Thu, 28 Nov 2024 10:43:00 +0000 Message-Id: <20241128104310.3452934-16-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::32c; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.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 Explicitly set a rule in the softfloat tests for propagating NaNs in the muladd case. In meson.build we put -DTARGET_ARM in fpcflags, and so we should select here the Arm rule of float_3nan_prop_s_cab. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- tests/fp/fp-bench.c | 1 + tests/fp/fp-test.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/fp/fp-bench.c b/tests/fp/fp-bench.c index fde64836194..39d80c9038f 100644 --- a/tests/fp/fp-bench.c +++ b/tests/fp/fp-bench.c @@ -493,6 +493,7 @@ static void run_bench(void) * doesn't specify match those used by the Arm architecture. */ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &soft_status); + set_float_3nan_prop_rule(float_3nan_prop_s_cab, &soft_status); set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &soft_status); f = bench_funcs[operation][precision]; diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index 251c278ede9..f290d523ab1 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -940,6 +940,7 @@ void run_test(void) * doesn't specify match those used by the Arm architecture. */ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf); + set_float_3nan_prop_rule(float_3nan_prop_s_cab, &qsf); set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &qsf); genCases_setLevel(test_level);