From patchwork Tue May 25 15:06:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 447293 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp4415030jac; Tue, 25 May 2021 09:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmpKn880x9CQQEtPNzDJLHusN20GOmFRsThfAdAt7ABLoiIF70iFDWxd9dcme4u6hvtlym X-Received: by 2002:a5d:64c6:: with SMTP id f6mr28837578wri.18.1621959205333; Tue, 25 May 2021 09:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621959205; cv=none; d=google.com; s=arc-20160816; b=EfYUtm5OPBuYb/4D8AkLC8FlB4gd5UytBpnjwcCUybnFlo2nt8gDNjlzAdKi04IDTE KoSpQoEzEhTV0aKmDlNtqmQjwcLPE3Xliz0mBG+RCvSfy8NbGv+UUbTh91ast3WJZ0sR Eqt0s439IxY0fOAzV4I4OA8Djfwe9AKuVDnsyveXHNoz/bCRrV8x7N7MgshlMhsmNszi nWyXAtH0X9+EMg/w3jB4iBSZGwfZzXJ5P46g2nN0VcSs6zCWgyshKqcbsn4N05RVzh39 Yljhk6HJqKlfR8wRo0a5H7LrhL2QpBKTP9rIIdMQdbKBB4Hm15omHTubs7o55mnDFrmn j1jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=v63kiMKs6E/Jl628TTWBVtvYw6v1ob0t2PY/usIP/Gs=; b=ma7J2JzDDgw2A3t2ou4QLW8Q8w/So6U3gFWteudjDctS72EypA7Zv2iAO1hPEzRX0K sKAb4Cp2TgATJvre/3tv3ta75dyKeQzrNQE51VEbGzoIDZYFYhvAXfpfTJfo6XIX28pC DuD6C4CUbJhD+ksCCJ48XxzT16xO0e2I9OxwMzQXl93yeJqzzVGrUeYNaajnJ5lgQDz2 DS5/GA5LE5hYnZZE8pVkemCk+hkV7ljiu71xfZyh8WCQPKANlQByFirOeQLHkClozCS3 N4nlPU1jPd3DJ+NIKBluou9dT0D+7ruC6rNNulItePkB8Kqcm4dIrUK4LcZ4zVDNC2Dl q68Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZflE1+L1; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f16si17022172edy.138.2021.05.25.09.13.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 May 2021 09:13:25 -0700 (PDT) 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=ZflE1+L1; 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 Received: from localhost ([::1]:41590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llZgK-0008Er-B5 for patch@linaro.org; Tue, 25 May 2021 12:13:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llYeS-0001kt-Sr for qemu-devel@nongnu.org; Tue, 25 May 2021 11:07:24 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:34502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llYeK-0006hT-Uy for qemu-devel@nongnu.org; Tue, 25 May 2021 11:07:24 -0400 Received: by mail-pf1-x429.google.com with SMTP id q25so5791953pfn.1 for ; Tue, 25 May 2021 08:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v63kiMKs6E/Jl628TTWBVtvYw6v1ob0t2PY/usIP/Gs=; b=ZflE1+L1NNcpkfLFYw75f5nGBlGPIqN/rWJsGBF/2F9WoZsPZQ/EWGyaq1udZ8uCQe B4eMUSQu0n1hctcfBsUNt4FA5tHQadUplVsI15M1ejCgD2Tue+Zzj1/U95IsbQavWFGo Ut/xyi+vCGPshD8aQ1Rpl6D6eOobX1fYIiJ8JXEfK03L/S/DotD5goiuIgAiTNriIIal rmF4Pak2Vf/Ee+ajPsVKFEA03UBsQeJxd0ZO965whYA9HOCaQS3VIB11GY9p3OUQ3goN c/f1klnAjaVA9LoKUFpnftCL8etqfDaUkMNamBggUmZesVDOiDMCS8l0V6iPt4elYxz8 Z4dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v63kiMKs6E/Jl628TTWBVtvYw6v1ob0t2PY/usIP/Gs=; b=pRm3IkIvX7wu1FheAJf/7Drg8IFBIkbIJ28loR9EDiL7JTQO5SYHbV62bBk7adE26Z 6c/iQW9ZYKLv5YZXOn435ityuWtJx9nEC8CS2/NQ1gHQncGtanh2e8UGI8Vex43PLVzT CHJBwBd1hHxol2RwynTMjLNd/UYmbRBCnefjS2SbANV95y73Q+M7mTUWjD40vKMYw5bg 38iI9ibxlNC7U/35KBJtsOaJ9HuhLyjrJrtHhrDAEmtFNgewr1o3gsNCX0gErHDvQids jgmqlko8CMbgi410gPZyOo78hdJT1Y+bnlqgdTLye98UN/fQoMysX6xzNcbcBEZ/d5HJ wV+w== X-Gm-Message-State: AOAM5303lXx/ztjIiKlE+0OQ32RehfDp+kksyXuutmbx5VAz7+8i7hMT 4v96MO6M4NpQ65czZy/uH8dWZgJoc+Fsjw== X-Received: by 2002:a05:6a00:1c43:b029:2e4:d188:fe38 with SMTP id s3-20020a056a001c43b02902e4d188fe38mr23056270pfw.20.1621955235337; Tue, 25 May 2021 08:07:15 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id z19sm2231943pjq.11.2021.05.25.08.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 08:07:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 12/28] tests/fp/fp-test: Reverse order of floatx80 precision tests Date: Tue, 25 May 2021 08:06:50 -0700 Message-Id: <20210525150706.294968-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210525150706.294968-1-richard.henderson@linaro.org> References: <20210525150706.294968-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Many qemu softfloat will check floatx80_rounding_precision even when berkeley testfloat will not. So begin with floatx80_precision_x, so that's the one we use when !FUNC_EFF_ROUNDINGPRECISION. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tests/fp/fp-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index 1be3a9788a..352dd71c44 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -963,16 +963,16 @@ static void QEMU_NORETURN run_test(void) verCases_usesExact = !!(attrs & FUNC_ARG_EXACT); for (k = 0; k < 3; k++) { - FloatX80RoundPrec qsf_prec80 = floatx80_precision_s; - int prec80 = 32; + FloatX80RoundPrec qsf_prec80 = floatx80_precision_x; + int prec80 = 80; int l; if (k == 1) { prec80 = 64; qsf_prec80 = floatx80_precision_d; } else if (k == 2) { - prec80 = 80; - qsf_prec80 = floatx80_precision_x; + prec80 = 32; + qsf_prec80 = floatx80_precision_s; } verCases_roundingPrecision = 0;