From patchwork Sun May 16 12:33:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 439857 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp260628jac; Sun, 16 May 2021 05:48:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA/DuAd8fWhYlYeX4SKU6wwYR+r0HMXD97jgFw5xm/5gFhovnB5TcsIdxVnqwEeLH82e+Y X-Received: by 2002:a6b:b48a:: with SMTP id d132mr8624718iof.167.1621169332501; Sun, 16 May 2021 05:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621169332; cv=none; d=google.com; s=arc-20160816; b=rt+nvSQRGuHAqPGZ4HpR4xiN3rR01vTOT8bIF/e4wTeTmPJYBmcproByVBjSmSe96V bMCPA9RyxPvDAsE5QROYksik2fzbctavr90NSQypsnFFV8VZt5bB4u//as0w7gFtfWxe hPGOiOG3oVpAmy0c2YTbGiFhqHqn4uk9cIZk6FB6eZfGToQIivlb5uXLEqIPjqwrowPa mC1nghz2jbp79c5Pbm4brYyV7hmeIEasO+g39oHRy+Ir98KqMeTGDmDMr8VKdaf8jtWD T+SeBWYHZTfZ/oLqeb650S0FSz7cKcXZvvmvXPiYeVCA5v/8mqAF4pTa13TXKANMQb6y t46Q== 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=qvtL26lQB5H4Yj/m9dMuiJ0Pgz43KUosPXD7aZnzb8Q=; b=W85RVM1FygyVZ4ZeQnlWl/UqSwehoN4vbIm9rOUFSdawDKNIcdrUIrDW58uQxqZyoW 8ztyWqiYXi+CMEs+qS4CI/MvzR5ONSmPBME8akABbzhzbmuDgEmcSvK3b8sK2zX9aoSd C9/8257wThzVGAgaHaU2E3nxaWyD0SzW8T2+7X77K7TGdH/bcs//VebbdchBOKHjERqQ CTbYRydEYg5Lz8PlDdNeypyvmMVCq+aD+8fq+WhL7LjYJZjwHK24YWHooMCW1E5rha+p txvqJthGnwB94vLBtDfASUwPi8zd57JSuuL6LEj0YoHFLWlQGLs9A8zDVAR2QjothEXi mIGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yqZMment; 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 o13si6527693ilt.118.2021.05.16.05.48.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 05:48:52 -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=yqZMment; 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]:58378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liGCR-0005FS-TM for patch@linaro.org; Sun, 16 May 2021 08:48:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liFz1-0007QQ-L6 for qemu-devel@nongnu.org; Sun, 16 May 2021 08:35:00 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:39751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liFyn-0007m1-RT for qemu-devel@nongnu.org; Sun, 16 May 2021 08:34:58 -0400 Received: by mail-qk1-x72e.google.com with SMTP id k127so3306122qkc.6 for ; Sun, 16 May 2021 05:34:45 -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=qvtL26lQB5H4Yj/m9dMuiJ0Pgz43KUosPXD7aZnzb8Q=; b=yqZMmentklELMI4XI5PBS46S380dHIIH0ogJd194nWQn3Yrm6/8jBV95zRQKvuWNDR oz+aeRqVTjMXMequiCGLYVmWvOtcSOlsJxd6kNb6DIvueIk+2axMhTdzO1UiBqfGiAGa PHX2AIDfGteHY0Z6Y1EObvICkWkgv4H+HBErmvaIwYF1xwLOQd789UeMHCiYgYaKoYB4 26Gxmly6/EyFpa8rPNI6RbHbXR9SkQlXyfXR7tbGgE0budY/bY7FGI+FlW0a3nqTWMCf r+z+gH0vwtRxBkJdgr/J1iMnbaBo5vwoM2KWHILN/R8SMoH/EdtJ0qbSvPyZbCqfN1Ak /7XQ== 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=qvtL26lQB5H4Yj/m9dMuiJ0Pgz43KUosPXD7aZnzb8Q=; b=pqx8wVI53D/JiQmEPlK6AieHgNP1zP50O6eSiFkleAE1qFO0929sR1C7IeliY0/vML drdxXCEERJ9tkm14m9wSIAXarD4pmHmniiFaPPepj0KqDmtn87HUDz5gaPH8P4tPYMQ1 BBDJ0f7rHEn7+R5zO/c+2jNTLkqZeKN/uQO79/mtWymkq7WpigvPhL7PXY8OYnMQgXoh 3kwgu+Gzs4iDRB4JOEi73iSiBX69fkNtefZz98mM5JkeKvQ+PCIe2ExElwBfs8Eidm4+ UsZ6j6XSKI31FlicGN9ZWNPYxDdOh9hQ4s+4A23FrppnsIWKH5Et1cRhWTUoCJ9njBYP Vv5A== X-Gm-Message-State: AOAM533RUixt9jsPE+Huar0uCqTbUmAyFepef9DhDJGqF6psn5uQMWUR HLqwMHa3SIzc4BvKkUuaF3ypunmRJdgX3+Pejos= X-Received: by 2002:a37:5ca:: with SMTP id 193mr51326402qkf.356.1621168484648; Sun, 16 May 2021 05:34:44 -0700 (PDT) Received: from localhost.localdomain (163.189-204-200.bestelclientes.com.mx. [189.204.200.163]) by smtp.gmail.com with ESMTPSA id s5sm8500553qkg.88.2021.05.16.05.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 05:34:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 14/46] softfloat: Do not produce a default_nan from parts_silence_nan Date: Sun, 16 May 2021 07:33:59 -0500 Message-Id: <20210516123431.718318-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210516123431.718318-1-richard.henderson@linaro.org> References: <20210516123431.718318-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72e.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Require default_nan_mode to be set instead. Reviewed-by: Alex Bennée Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.c.inc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- 2.25.1 diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc index 96ed8c1a26..05cb2ee940 100644 --- a/fpu/softfloat-specialize.c.inc +++ b/fpu/softfloat-specialize.c.inc @@ -179,16 +179,15 @@ static FloatParts parts_default_nan(float_status *status) static FloatParts parts_silence_nan(FloatParts a, float_status *status) { g_assert(!no_signaling_nans(status)); -#if defined(TARGET_HPPA) - a.frac &= ~(1ULL << (DECOMPOSED_BINARY_POINT - 1)); - a.frac |= 1ULL << (DECOMPOSED_BINARY_POINT - 2); -#else + g_assert(!status->default_nan_mode); + + /* The only snan_bit_is_one target without default_nan_mode is HPPA. */ if (snan_bit_is_one(status)) { - return parts_default_nan(status); + a.frac &= ~(1ULL << (DECOMPOSED_BINARY_POINT - 1)); + a.frac |= 1ULL << (DECOMPOSED_BINARY_POINT - 2); } else { a.frac |= 1ULL << (DECOMPOSED_BINARY_POINT - 1); } -#endif a.cls = float_class_qnan; return a; }