From patchwork Mon Dec 2 13:12:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 846598 Delivered-To: patch@linaro.org Received: by 2002:a5d:4cd0:0:b0:385:e875:8a9e with SMTP id c16csp1196321wrt; Mon, 2 Dec 2024 05:15:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCULwpksEttRxPCvCa7dVnrUmd2kMFktoR6+t00UBCeGz46KQnOOhxLwt3NtTUsIS98PqtVAsA==@linaro.org X-Google-Smtp-Source: AGHT+IGahI2Q0SXNc6veCgT3YGanBac0wpW+THmUtKout6iAlZvg6yWE1kbpYLNaF1C3WuEbkQi/ X-Received: by 2002:a05:6358:703:b0:1ca:9094:4f52 with SMTP id e5c5f4694b2df-1cab15d1275mr794411255d.10.1733145353939; Mon, 02 Dec 2024 05:15:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733145353; cv=none; d=google.com; s=arc-20240605; b=PTliy8eWDSbmW0/eHpNCI6n1TBtcF8Xo5y8jMjCTy4XZOPFXq9IBiXUEZzja/aM+ZU ucdfG18cCgy78043JU2zHX0ISyKaVHUinaoPHEAabKfuLzYonGzob/VDzMun44pWJO/K 1tRSLrRmBQyh1veYOUA9WZGBkUHSx+ltJYY2i2nuYOrEtGf+MH/kI4ysuZB4Wnx9dyDu Rr0QSFszW55CaxqH1eion+oPpxky/6GSeksCC1KNCawS8l0WnUr/mQodCLvUFnFMePB/ vsgNt8JepADLpv77g8AVhjbZmrxwKPSvOGTo8c+i0RlCYUeEqTm/v5mQgNmbGBJMVaUj vt+w== 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=OkwmxObRxprUaJij2XbynAGv6Fy1VFYe1VACXWXiwGA=; fh=QgE9QYJDVj//6C0QJWGeEM+qaFVaxwMel1ZWqkEy6K0=; b=WX46X741jDBQSL2cXeI7FDahyhRwEdYORLC9YqfFVhO1mY5kcZdo8AV8nIk9kxqKpI r02+iFP5n1TRgxqEJ6O1gOXNvur+/OiF0ZGtd+fgnaPFyQ+L1t0wWgJrcom2hRuKVWpC 7trultKa4oiOUf9Q8q9XAF7gc729pJhQxJ4DUZbUxZPMhWvOyftdFRweKma0N+nBt/TB FWvTrm9BM+hlP37A0B9tbfa6xmbXiJev8XltD0FU55irfMpT2PKSrrbNINIPNSXYycSW xmplo8yN+ltxvNwRwlLXniXjzVJtywIMVeh2yQ3fwnVplb1/EwORPCmX4FY2ZQeNWASO 1EXw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cc8YgfeM; 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 ada2fe7eead31-4af5923177dsi4702606137.267.2024.12.02.05.15.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2024 05:15:53 -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=Cc8YgfeM; 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 1tI6Gk-0002JJ-9h; Mon, 02 Dec 2024 08:15:23 -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 1tI6Fs-0001na-Lp for qemu-devel@nongnu.org; Mon, 02 Dec 2024 08:14:25 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tI6FR-00037g-Hf for qemu-devel@nongnu.org; Mon, 02 Dec 2024 08:14:00 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-385e0e224cbso1677555f8f.2 for ; Mon, 02 Dec 2024 05:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733145235; x=1733750035; 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=OkwmxObRxprUaJij2XbynAGv6Fy1VFYe1VACXWXiwGA=; b=Cc8YgfeMQBznXGfd9bv5dyVzIs9FNhg3wXUNA47YTgZPZxb0pbrBmXWw675D/vPx6L SeRb9c4Jop4GyhK7IPGpqWVV7GNsYvZud7fwAOx1n2kCgKJdW+ea+s+6nLJ3oBqLyie3 0StdAfaDfpin08Qv39orBpIHf87qkX71XgH/eZcALhI/BvOHoDm3CBlITWgSA32xamxJ /uFW7+4h1sm1queHRItLe/9kWfBgVB3P+EGNv/IMWyEYpYSROVy+0UrxLlILbLc855FX hktGH3BxTzeYb++wvvjNl6RQPTuZHfAeQ2NjUrKfSyiinZnm6B/kyR8U4eAPFxOefEpG kiOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733145235; x=1733750035; 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=OkwmxObRxprUaJij2XbynAGv6Fy1VFYe1VACXWXiwGA=; b=RWbSa77P7s/XyK/WcphQq1f6Qa2KHWjFMvwQBMSGVXqwCf8zJmqyMeRSxdxoCsW/jk OPAyDxNoiO6MN78yex5WWysocMw58N76sngvUQMyVh36aykadHjf22+90MADXGvPmmmD vfVyrcbJT6S187n4lY8dJMJb4oabEcFlgt1LH8x09mV3JqQ8dqpRGoMsAgwNwEVRsOXf Fr/1RB+GG5PO8lv2UCLsqk5Z/+JU00JCISQEhPZRmjnDOVeAmDwEeEbOQNBhL5AcYT0J VT0vb2zA1hEdWjI+yM8sOg/1B2d2dU8+yKuX5y2gD1f+ZugaWaiOnvIxK0yuYESzthoA SNNg== X-Gm-Message-State: AOJu0YwsLa6ZlIpACPUu69mdo3KbA/5slLbe/VJRk5TsMTsyVrWq2wn8 RzQ/oTqppSec0XzvEbUAaLw8KFBEi6hDCs7KtGoWOxDCDI7JYi4xczbnQlDVPQm7ktdw7qWBxKq C X-Gm-Gg: ASbGncs/gU8bWct8MkskElss3bUU3G/ByfuBwR3pTdxw6A0AP7Y2UgBn1tqVFZxtq+K rKMiUhmTAfdt+00kAcgvIxIOztnXv/S/cK7mdHyRNM0UKqpiq66hCQMiQwRV78SylYdLlozqqd+ VydBRzO0o+LnoVkfaFDoYA5jCNWgyTpJcXWq/5qdloOZx8lzqnhCj+TNBRYk0Jl8+HkpxYrKoPa nbID25y5XZa05YWTNZZ14wV2ArbLdDDMBzO2+4pC8RKqhI4qFW6snQ= X-Received: by 2002:a5d:64a5:0:b0:385:f9db:3c58 with SMTP id ffacd0b85a97d-385f9db43c7mr626560f8f.49.1733145235342; Mon, 02 Dec 2024 05:13:55 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385dea1e4ebsm10160157f8f.1.2024.12.02.05.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 05:13:54 -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 v2 for-10.0 04/54] tests/fp: Explicitly set inf-zero-nan rule Date: Mon, 2 Dec 2024 13:12:57 +0000 Message-Id: <20241202131347.498124-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241202131347.498124-1-peter.maydell@linaro.org> References: <20241202131347.498124-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.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=unavailable 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 the inf-zero-nan muladd special case. In meson.build we put -DTARGET_ARM in fpcflags, and so we should select here the Arm rule of float_infzeronan_dnan_if_qnan. Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell --- tests/fp/fp-bench.c | 5 +++++ tests/fp/fp-test.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/fp/fp-bench.c b/tests/fp/fp-bench.c index 75c07d5d1f1..fde64836194 100644 --- a/tests/fp/fp-bench.c +++ b/tests/fp/fp-bench.c @@ -488,7 +488,12 @@ static void run_bench(void) { bench_func_t f; + /* + * These implementation-defined choices for various things IEEE + * doesn't specify match those used by the Arm architecture. + */ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &soft_status); + set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &soft_status); f = bench_funcs[operation][precision]; g_assert(f); diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index 5f6f25c8821..251c278ede9 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -935,7 +935,12 @@ void run_test(void) { unsigned int i; + /* + * These implementation-defined choices for various things IEEE + * doesn't specify match those used by the Arm architecture. + */ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf); + set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &qsf); genCases_setLevel(test_level); verCases_maxErrorCount = n_max_errors;