From patchwork Fri Jun 11 23:41:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 458779 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp1379695jae; Fri, 11 Jun 2021 17:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmOQ7VfEIM6FYxOiBxQaQg1JPJf+/l70E3vX73f6JOhflYc3zBc/e9fzV0tl3jo1QwcnjF X-Received: by 2002:a1c:1dd3:: with SMTP id d202mr6166759wmd.78.1623456372812; Fri, 11 Jun 2021 17:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623456372; cv=none; d=google.com; s=arc-20160816; b=M66zqQ5FDQSy/ZaQv5kqdTwHzHiZdnELIDKVJzEPy57kbxTkDoqPWrY4rf+3HwaYBm gUJvjadEOLZRJHHNDF+O3AfJM0KINOSwlYJ+I903OGEZiKBHbBgZ3migXfaTZW8jn553 WqK0pRgEQyqkWCp5T/fX6QvBsaBnN17u5ocP0VJ2jogq/YQjoZZ/qLtoA5fCZE/SGJKv fMZc2hvwTtUGDaxdGL7Nye+40Tuk6MLwLbg18Usp8HkIRDb3eunJrpNidu2qnblJ3GBR KGoNq+JiTn/shToY5yxhbzFO0PtYRPCnFGh/kamkGWZCYci8S2zq4DXcDGrpe1AKNsCA oe5g== 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=b2B+8zz4r3rzDW6XJQUxvqU5pgzCPun35EtW6hJayB8=; b=aManT3hYt9I03qRihgQjv1BRufZ7UGUWhBjNBUFXiTlupfGnzkHS8wwu9IHXfi21kX mYmgvovoGpogYEIpg7HY0oC+ghtX3/I7/LcCKMcBPjPyCiQki76L92rt4wIdKF9LITRF RjVW+Vc3gE/fp/x4liI/Y7hGZxEBkxTLXw86Lsu8GTxiTgSKyGVbWn9vbrHcbkpU7wh4 JVcILkaJWmjhLGqg+2z94UOfpZmY1TIHQBoeF6XZFGU1X7ne9ROr+/VwXDce56LL7UOM K/692fnFd2atnpyoOrPPSpfyQb1OVts5TUfYb2ybUEKIeyMrs9vBXJ/a9NkgzCSH5Nf5 VIeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="nA/+k6Is"; 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 6si8557863wrb.237.2021.06.11.17.06.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Jun 2021 17:06:12 -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="nA/+k6Is"; 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]:33738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrrAB-0007oQ-SO for patch@linaro.org; Fri, 11 Jun 2021 20:06:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrqmw-00037g-At for qemu-devel@nongnu.org; Fri, 11 Jun 2021 19:42:10 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:39766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrqmt-0002nU-5h for qemu-devel@nongnu.org; Fri, 11 Jun 2021 19:42:10 -0400 Received: by mail-pf1-x42a.google.com with SMTP id k15so5692965pfp.6 for ; Fri, 11 Jun 2021 16:42:06 -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=b2B+8zz4r3rzDW6XJQUxvqU5pgzCPun35EtW6hJayB8=; b=nA/+k6IssAQirvFo5B6zylhJ8zl/YNDds04dx99IhTSLbdl6eO/BFmxdMvm7AKRb+c 0tg09IpDsUfIxMi3pVWfPWhmT9BubWXgOJQEN/DjbpqdeSaAH9/uKhv4n0NaA7dkgUZL FC8bBI7wCI2L7YJNaX6fRstBRjLR/FNMhdgYld4u1xcsP4JicB5tlnBgH5/LEQ+qK548 02d2UL8n9+0OPB/L7SgrbSt+xoQN56RSQLgRRJ/JdK70rvumTF5W3w2W7umu2UJUWgFx 7EOk/Ly9xCFsqBTJx9zx4aH8IXIpHDUFa9hLs/rJ/r4zFniDgPo+j8S5AuSh0iqRlEQ9 QBDg== 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=b2B+8zz4r3rzDW6XJQUxvqU5pgzCPun35EtW6hJayB8=; b=WJFVEfCH/69jYKt6e1wpBWPx8hwr+MVOLHk6jK5KT/KR9uczrDewH5Dx+J0DAhQkVj 18WYdmwCd4tIxf7v9ucolN1XKrfJSvFiR55f41QCR8wI3cY1QAIvJtESXzj88e6uKEOz 4MZogDliNT1he/O3d8BS5JTr/kzRFDcSTK0p8fkNEl2zQjmHAP+T7PFdFqrea1UV7H9f avIbv0OBLM5v9cwugDmOn2GeZkRntTWw4f8t4+A0brFt+7kuoqwyUBkqY53HDn8hYtfD iyJ53yxTsILkZZ3hL2P/8iR5Y7c8OFBIdgVHENQncw8L/iw6vvn4bOYs6lCLFPg0U1KN tQAw== X-Gm-Message-State: AOAM533pSJPeWqho0vnkpkmbvnst2w7kzBKsaoIofRCDYIzzSdB2pHFa r2PLEULkBS501tWHhAHRNgcthdi4pAg2VQ== X-Received: by 2002:a63:1210:: with SMTP id h16mr5949953pgl.189.1623454925562; Fri, 11 Jun 2021 16:42:05 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id q23sm6139829pgm.31.2021.06.11.16.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 16:42:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 33/34] softfloat: Fix tp init in float32_exp2 Date: Fri, 11 Jun 2021 16:41:43 -0700 Message-Id: <20210611234144.653682-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611234144.653682-1-richard.henderson@linaro.org> References: <20210611234144.653682-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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" Typo in the conversion to FloatParts64. Fixes: 572c4d862ff2 Fixes: Coverity CID 1457457 Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id: <20210607223812.110596-1-richard.henderson@linaro.org> Signed-off-by: Richard Henderson --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 1cb162882b..4d0160fe9c 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -4818,7 +4818,7 @@ float32 float32_exp2(float32 a, float_status *status) float_raise(float_flag_inexact, status); - float64_unpack_canonical(&xnp, float64_ln2, status); + float64_unpack_canonical(&tp, float64_ln2, status); xp = *parts_mul(&xp, &tp, status); xnp = xp;