From patchwork Thu Jun 3 21:41:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 453322 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp630337jao; Thu, 3 Jun 2021 14:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPcNqZUjvCTy0TkZrkXpVWCli5skv0cq61owDQmMzUC8zSpdKrZxA9BYUk6pkOvNQ3O2/0 X-Received: by 2002:a05:6830:192:: with SMTP id q18mr1210011ota.79.1622756998758; Thu, 03 Jun 2021 14:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622756998; cv=none; d=google.com; s=arc-20160816; b=pWWNGtOLqlkHd6JVYPLbwc1A2/eO0IuI+0GrWQKkGE0W/TOYDXnNk8Cp6wfClhb7tD jGpZjggnn9L9Kay7t5t9AI/bQTVaNZrduyj8Mmjo1ZUSNGsbMPwAtk5MzJeqo+/wIa8G Zlqrlm4COQS8+TmckwYggS6NtsmQPPYb2jPDK1PCc413H91Wy8LwfcQ08qI6bis6mzz+ CK2tIHldRTjX5B0tjaB30aplc2e+T64GLkGSMBSMRljupx3PBxIUuuErRwOr8fnG2EoX C2nwlWDKEINJmLmo/behEPZMSP3QE1eLez9Y/Qwue0nWOIWL9yq/zEuvppeGidvWBgSm QHxQ== 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=tLwY9Z/B1cf6gtrjM+xcQDJl5rQA5wD29QdlsrgqvsFiuZF1ApIJb/yGMIi5xjxIul k6l7RiixHIEifXE/ensRznlJUCfv6WQp2F5Bl2PwPZT0FXqWkDQvNk0YVRnYllSo1yox Oof1ewu27C9HZ+6ZRlMFwDCootwcUtXO0Dk9fza8+X150fs1kiAQyoyhXz69Km715Kta SPZ2RPxhiErdloeRHbemnDcYykKA4IoZoBxdwOQrv3w8EpWgADCHpItBhmqkvJ34Ghrz WAIRiAUF0HH/t4KiGLEHmHadk0G6Zl/w0zSHHzK2RyzEZspJY10c1ReR4phQR81P6YXy m3rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mnMbrQz2; 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 t7si143714otk.242.2021.06.03.14.49.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Jun 2021 14:49:58 -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=mnMbrQz2; 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]:51234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lovDy-00088Y-6L for patch@linaro.org; Thu, 03 Jun 2021 17:49:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lov60-0002I4-Cd for qemu-devel@nongnu.org; Thu, 03 Jun 2021 17:41:44 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:55112) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lov5y-00016d-H5 for qemu-devel@nongnu.org; Thu, 03 Jun 2021 17:41:44 -0400 Received: by mail-pj1-x102f.google.com with SMTP id g24so4421130pji.4 for ; Thu, 03 Jun 2021 14:41:42 -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=mnMbrQz2S8ISX8o9F8kxHblhgPWF71lExIx3xQ36W2tjozJqByN8XSCa9QCbhtVgnd 9k4tj1xmPraCKqNOoN6t2RyU2uO4N+hT+gC1JpA+JP0OyeTTpmDX3r/VhFlMp6KaDKiK t5DfOrus3HZ8tHUtzLcbLLWQ9vno+ooz1xDkf/shPvneglxyxgkM2nyEtvwBffJaNtNn SSphmmMdazqRcCtnY1RV1+nuCbqniby2wEgPYi9W66acXvHIdvK9qLOF35q/W3ARShit QSoMIGwhlwu5tG3mSbfYKKUn4QoVZq63rHXaoDYIV5at0jYmg0b6V8k3j0c/62/5r/OU uj4Q== 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=QABSbAAcL3Y/wMOD4LeHgSX54TwwGMdCSUuOO0yOLKfMNusyz2El+9tLAo2oznAuS3 vopQYWuZbXyCAf7ugke0+27J1N5SdfKcchZpvqW7JDtq7OV9e7NSDUnXn7Tn5ac5DqCq O0zFk7RifXWQbKlLQL8kBAZaD4D/H0VJPvWsOeLqEr5wUCBpUOfhVCGc9jyl/lrJvW8a jA4AE1cwtCM1wbAXB4xaYwTyTDvfqDlaZRRwjnQUZQXpytbuNAdZ+T+zXJdVbpQYMnnr hyZTeV0y0Da2b+6TuvG/9LEZjqSTukam5eFqsrYjJHj//6YQVB47xOIjLJgJi7W1LEEy u1Ng== X-Gm-Message-State: AOAM530z3OkGoLkiFtrKmXXLC5fl63hPoYF+u8HqrxacgS1y5nxWSCVR KCHdTKLmagRROVSTCD9cW5GgHDqlS7xRCQ== X-Received: by 2002:a17:902:c403:b029:106:7793:3fcc with SMTP id k3-20020a170902c403b029010677933fccmr1060530plk.81.1622756501138; Thu, 03 Jun 2021 14:41:41 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id p65sm40115pfb.62.2021.06.03.14.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 14:41:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 13/29] tests/fp/fp-test: Reverse order of floatx80 precision tests Date: Thu, 3 Jun 2021 14:41:15 -0700 Message-Id: <20210603214131.629841-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210603214131.629841-1-richard.henderson@linaro.org> References: <20210603214131.629841-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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: =?utf-8?q?Alex_Benn=C3=A9e?= 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;