From nobody Mon Feb 9 19:54:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1591383840; cv=none; d=zohomail.com; s=zohoarc; b=fJTvixs8W9ItHHIG3sgYa4TDj35WIU9am4SgplW9uqskil8SQF1ZLM0OF4pyFwvvrz934iZhoUiEu3miyMPxaEoSrBwJlD9znReLbGHeouIVwoOjsZnpUsXEFLgIWz6WeIvKXh9pGcI2RITk3RLi4JraVu6y84TzXfkQHDlGe+s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591383840; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=20GEZ6bHrncq8wKJ1vJXVUKi6U2CjCtKo/uz3JsWLuA=; b=EKxQhvkITk744biAehewewjjcx97M4EuaMUXFIb9aaSLFpizgv6QsBftF2akg6z0OKZRv5uths0SmAieL5dTdz5rOX1azDTY69LvO5z6aiojrId334MmtBj9EPqYtm+rQKDHHAAgorJjoApnPIuE8AoRVUcr6dcJ+7zGsHu6Gb0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 159138384065977.16316553653951; Fri, 5 Jun 2020 12:04:00 -0700 (PDT) Received: from localhost ([::1]:52896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhHdH-0003bC-Ct for importer@patchew.org; Fri, 05 Jun 2020 15:03:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhHah-0000bV-N0 for qemu-devel@nongnu.org; Fri, 05 Jun 2020 15:01:19 -0400 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:23551) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhHag-000729-Pu for qemu-devel@nongnu.org; Fri, 05 Jun 2020 15:01:19 -0400 Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 05 Jun 2020 11:01:17 -0800 IronPort-SDR: uPSgdjfJa3fpg19bSgr+RqtmTA049hT6mrsqZymQcNC1PEh1e8LjSeL9qwgHW7i9/+AQpN00Hn SQODUeM7dWyNNfv9dObuYivym5qQZ84fyYfyyxMiCRf8sj5BxlG135zmIUScGfkbwOuALtt6sL OeiNzFYTZcV3uQ6KGipVfg3fu4EwNsE6u3Baon29V428iecO9Ly1uGzhnKTQjPFSoo0TC0ui/S K/72k5mmUhP8FT1xtkLLBVKWSOPFRiyFQuicyzML4/ikOOXA5f5bd4YYN4sa5LRuYZgOWn7bK1 F7w= X-IronPort-AV: E=Sophos;i="5.73,477,1583222400"; d="scan'208";a="49520911" IronPort-SDR: 99dz4Wo0vMUORJRAmZtBPNIOs5uRQgmGzcFa0BH0PO+UsxDMgqL+t+wD0MP6y54bNZ/xawLmjy Po16B4domtLXgPvcTfM9wBiEc2JrEyzi9B/vwhsNCn6kucz31GNz6yIuH7DIrz8wL2yuC4/pWw q1aU4Zy6515AFiNioEekEJQR+cW2UN+4uoVTbkXLl3X6KSQ7XKeZNb8jVAb5ayCNZFZBbsdLp5 gwiFu42dPVGt3VVb5myN0r9vPvjSSztAYGO4mlp1Ujjn7iNzOW2unD9iW8QAXdt4NgrNMuJFLk 9vg= Date: Fri, 5 Jun 2020 19:01:10 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: , , , , , , , Subject: [PATCH 4/7] softfloat: do not set denominator high bit for floatx80 remainder In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=68.232.141.98; envelope-from=joseph_myers@mentor.com; helo=esa2.mentor.iphmx.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 14:58:48 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The floatx80 remainder implementation unnecessarily sets the high bit of bSig explicitly. By that point in the function, arguments that are invalid, zero, infinity or NaN have already been handled and subnormals have been through normalizeFloatx80Subnormal, so the high bit will already be set. Remove the unnecessary code. Signed-off-by: Joseph Myers Reviewed-by: Richard Henderson --- fpu/softfloat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 00f362af23..423a815196 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -5734,7 +5734,6 @@ floatx80 floatx80_modrem(floatx80 a, floatx80 b, bool= mod, if ( aSig0 =3D=3D 0 ) return a; normalizeFloatx80Subnormal( aSig0, &aExp, &aSig0 ); } - bSig |=3D UINT64_C(0x8000000000000000); zSign =3D aSign; expDiff =3D aExp - bExp; aSig1 =3D 0; --=20 2.17.1 --=20 Joseph S. Myers joseph@codesourcery.com