From nobody Wed Nov 5 10:18:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533929725723565.8519801233389; Fri, 10 Aug 2018 12:35:25 -0700 (PDT) Received: from localhost ([::1]:57715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foDC0-00058u-NI for importer@patchew.org; Fri, 10 Aug 2018 15:35:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foD8Q-0002Se-0r for qemu-devel@nongnu.org; Fri, 10 Aug 2018 15:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foD8P-0005fV-B5 for qemu-devel@nongnu.org; Fri, 10 Aug 2018 15:31:42 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:44954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foD8P-0005f2-5O for qemu-devel@nongnu.org; Fri, 10 Aug 2018 15:31:41 -0400 Received: by mail-pg1-x543.google.com with SMTP id r1-v6so4829227pgp.11 for ; Fri, 10 Aug 2018 12:31:41 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id g28-v6sm20500949pfe.41.2018.08.10.12.31.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 12:31:39 -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; bh=Y+/qvMWgmtaKUgYpCZgt6h+1WcjiP8pBregr55tLYTA=; b=Y+ONhweV4FCP6WxMn+pY8DgqzWq4G0u01Ul/C9qhZT6XLTpiLsjmX2py9nFGO7R5Gd aZoZYZQ9MK4CqAp+DaePgUQ/XaokK7M8/YZUjhmkSFYoTHyZs4NiWMfw6C0ch54McArN tO5tMXKm/bEbo7oe4HHfT6tqZUsROHWC8sodg= 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; bh=Y+/qvMWgmtaKUgYpCZgt6h+1WcjiP8pBregr55tLYTA=; b=VLf6/2+hprkrviG8aySm3LoMB/+Ef4SBc4h9ZGTYBm4Ut6aQhwBwAW6zAog9en0AZj QjABrTABLC3FurgiFvYm/eBdkFygv+ub/4DSFOrTtnI8GrVnobBzEPyiV+zKiuJyWWaA vCzMZ53cgjgoWfvZ4Xkb1zv3p/EtNJRhePOCMe9rUyjb4itBw+ehHHysvMuYgD+jcrLG JoD/NyL8/FaeowvD1HqM3A8sf+3Gv0xhRGQDKHGkcl9s8zQh+OCkYyDVYP6VG+y+YY5h 9yUGQ5zIM8fOM+D/q1PcDpUq0Wr/LsMKDY2kbDbC5MlhV5+bs5gyclfiEFb31l/Pj7ky zYCQ== X-Gm-Message-State: AOUpUlFUekNrSY4OtLwzTFJ3CYzPRoB7kB02U5AVDV6Wk03ZBOiaR+yS z61zcGXCK4WhFdUD/XdpzmPOUTulQA0= X-Google-Smtp-Source: AA+uWPwibixXU9lczKTNXt6XCvzB9HbvCYR9mWROm66vjyxtvZGhwjSZubmRjDKIeQ5AgpTDceDBgQ== X-Received: by 2002:a63:f002:: with SMTP id k2-v6mr7533133pgh.8.1533929500008; Fri, 10 Aug 2018 12:31:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 10 Aug 2018 12:31:29 -0700 Message-Id: <20180810193129.1556-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180810193129.1556-1-richard.henderson@linaro.org> References: <20180810193129.1556-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PATCH 6/6] softfloat: Fix missing inexact for floating-point add X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent.desnogues@gmail.com, peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" For 0x1.0000000000003p+0 + 0x1.ffffffep+14 =3D 0x1.0001fffp+15 we dropped the sticky bit and so failed to raise inexact. Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson Reviewed-by: Laurent Desnogues Tested-by: Laurent Desnogues --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 8cd2400081..7d63cffdeb 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -701,7 +701,7 @@ static FloatParts addsub_floats(FloatParts a, FloatPart= s b, bool subtract, } a.frac +=3D b.frac; if (a.frac & DECOMPOSED_OVERFLOW_BIT) { - a.frac >>=3D 1; + shift64RightJamming(a.frac, 1, &a.frac); a.exp +=3D 1; } return a; --=20 2.17.1