From patchwork Wed Dec 11 16:19:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 849159 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp413847wry; Wed, 11 Dec 2024 08:21:33 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXIAbCjebPvqZRv7pSLyOt+DWG4txWLuKozTSufP38r+Y0IcgUk08jruSIbx3wEG6iR6Nmdww==@linaro.org X-Google-Smtp-Source: AGHT+IGa1QqnvGoeYjVaXoVZFhtBv8HQtHPpmuFDNNzQgVthMtse2mRhC2owawoYKWItBLUj6VlW X-Received: by 2002:ad4:5eca:0:b0:6d8:8256:41d7 with SMTP id 6a1803df08f44-6d934bc4798mr60330776d6.33.1733934092829; Wed, 11 Dec 2024 08:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733934092; cv=none; d=google.com; s=arc-20240605; b=e3M5J5JOPHwMLQx7qkYwmTvgjTw1YllnAgJw0JydxzNag4mCjDdqScGHN0CJhouWq8 PnzzflibePD9opP/9EeghTcdEQWhjSG7AU/mAh3Rohcn/RbzCrmW/A5EwfgZ4t69ixvF tBGEzlxSF94SIFo2lvXThjTA/Sz1Q1Td0CokCycVIX4lIK4U7ryG1e6nW8fGIxtbYlbx sLzZVPhdCC2wnkrxOaRUPr60pBz3XSULeJE/q/fBGcB4Vj4E0S7+WmmCOqPHjR/YLg2s DXExrN6zxnMAUxGQ5Uyn3yj/rik3FFsCFcQtx3CAxAV9O33yKPMu1spTUw5UMmHFU1MP oc3g== 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:to:from :dkim-signature; bh=t++4ywN2N/TpqmWSD8grbRREKM5vsqH/rZ/w1M5vhhs=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=CdxiMa81ZKrPGd0wk3VuJVadmqwuwtl5S3UkM75Cruekw1e5glolGAwmDxgSDIhME+ ZlwJRYD9Q1HKXXqTOqR2c4322Ca3TV5c27Q8w5PaEmgRRQAqJZAQFfsE3XgverLHnE+d qhlixw0OgZciN+RYDF39fO1tDva5NGVJl39kxcvXpH9s5PHV0qwdZZliilsnEmffYt4Q jHJMb7xJTc11qaF4oZIS9N8RlJcecwco8nJFWDzzsdHGrVck7ig3SUCrrKm/kaCgbYSl hhdWHLKd7P3KYB4R4mb9TN02eQTlmGFuA44EscWDN5DFGEVzuLzWjMPUNW9WgwSPYROi piIg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="XG/uyIZL"; 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-6d8eae1c681si167859376d6.507.2024.12.11.08.21.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 08:21:32 -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="XG/uyIZL"; 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 1tLPSN-0000aH-G1; Wed, 11 Dec 2024 11:20:59 -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 1tLPSL-0000ZW-UT for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:20:57 -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 1tLPSK-0007n1-Cc for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:20:57 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-434f3d934fcso25241495e9.3 for ; Wed, 11 Dec 2024 08:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733934054; x=1734538854; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=t++4ywN2N/TpqmWSD8grbRREKM5vsqH/rZ/w1M5vhhs=; b=XG/uyIZLkOvxY0J8yUgWM9n13YqyjA/qYClNPiRnB0JK2nBT419W9O9LPZ4ob9Pe5D nAa03KdTPiQj+ndiqXY3UABmnO/FX20+LpoqgkrQ23Y/+Q3mXb76KvuS5wtuKW4yumby 98boHSufO1Tc9MIVPxtWXyXuHXTuarnrSoHMcYkFJFgGhJFms66T38fRrK9CG/PVbVhm w9cHbZ3E0AFjHuLJcbon9AymEFBMxynMJvUkTZ+8kV3UfKsgg5IxGR1f3Ewut5ZBpJKd S/2dr1Lzp5JTM6wSwSWpBqCQLPtRLzHC7CRSSXCBRwbC0A359jxjInLm5FJDCUrTbh7E yQVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733934054; x=1734538854; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t++4ywN2N/TpqmWSD8grbRREKM5vsqH/rZ/w1M5vhhs=; b=gC3ZdW8LnEsMM8V2Ev5fPFe4Wj/kqYvhpZ0vTMoexuL3sfQmEyc4TeiBDVvfrN3LtU W+iNyfxJhQcLIfJ1GRo21kmA+L7r7wPOMh3YaUKjlZ2vmKeyN4BHoux8Chur2486fCvi cAE79xI37d8waDgEPK47s7NtQX5AAY3teBaukc0nMGXZULLbxw+Fs/DKR87v1P0w+2yu +XyPW9/zDtO4+F9RZVWCiYI6Kz4s6z77etIhPgo5R4JItKKZMGu9OebvUd6eokOTwuGX FQ6nUVBGNXKyduOoYbNvUpHhhoc32vd40Cqxh3h03t7aF9phVDLTntG9oJrI18a9T5g/ /dbQ== X-Gm-Message-State: AOJu0YxcwdfFwPQPaTKSpw9ZhX84arazCKt5kiPSrn29pII2cSd5wQMs vGZjF3Wmjvy2jDK4dsXUhwiPMXLXEp2NyNu5qxbThZdcRRMSaN5XRpjoN4ZAS1HxXRI/Abd8RTr 0 X-Gm-Gg: ASbGncsVKISJAN/0ItHPLEZmvu0mQjo0fPlCkiuUrjQXh5rHpRXYfHjx3OtvA0G9YN1 HfMvCtChXCl6wDkGE3XADUyiTdJRYTl2ASXU/aHvXpLZK9KvXaHJajngzW7D8qRx6WKyhsCM4S1 s0n87RHamhoBk4XS9JqfhWiRS9FAnJaI4z+3ROfYg2eoPR5dyhHkfmQqg2/lE/UvtvPvaOEhNLt lnVmR5Chts5om1ME9pjqEwgEPwrXUUT8f9evJi+2YjHQiCtGs9iEGlhWZrB X-Received: by 2002:a05:600c:4f11:b0:430:563a:b20a with SMTP id 5b1f17b1804b1-4361c3aa6demr26312385e9.11.1733934054601; Wed, 11 Dec 2024 08:20:54 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434f4dfdcdfsm121460595e9.39.2024.12.11.08.20.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 08:20:54 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 41/72] tests/fp: Set default NaN pattern explicitly Date: Wed, 11 Dec 2024 16:19:33 +0000 Message-Id: <20241211162004.2795499-42-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241211162004.2795499-1-peter.maydell@linaro.org> References: <20241211162004.2795499-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=peter.maydell@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-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 default NaN pattern explicitly for the tests/fp code. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20241202131347.498124-36-peter.maydell@linaro.org --- tests/fp/fp-bench.c | 1 + tests/fp/fp-test-log2.c | 1 + tests/fp/fp-test.c | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/fp/fp-bench.c b/tests/fp/fp-bench.c index 39d80c9038f..eacb39b99cb 100644 --- a/tests/fp/fp-bench.c +++ b/tests/fp/fp-bench.c @@ -495,6 +495,7 @@ static void run_bench(void) 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); + set_float_default_nan_pattern(0b01000000, &soft_status); f = bench_funcs[operation][precision]; g_assert(f); diff --git a/tests/fp/fp-test-log2.c b/tests/fp/fp-test-log2.c index de702c4c80d..79f619cdea9 100644 --- a/tests/fp/fp-test-log2.c +++ b/tests/fp/fp-test-log2.c @@ -71,6 +71,7 @@ int main(int ac, char **av) int i; set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf); + set_float_default_nan_pattern(0b01000000, &qsf); set_float_rounding_mode(float_round_nearest_even, &qsf); test.d = 0.0; diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index f290d523ab1..c619e5dbf72 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -941,6 +941,7 @@ void run_test(void) */ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf); set_float_3nan_prop_rule(float_3nan_prop_s_cab, &qsf); + set_float_default_nan_pattern(0b01000000, &qsf); set_float_infzeronan_rule(float_infzeronan_dnan_if_qnan, &qsf); genCases_setLevel(test_level);