Message ID | 20241211162004.2795499-63-peter.maydell@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp414333wry; Wed, 11 Dec 2024 08:22:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUVqKC+/RASGvT6OFzgQu1XrIStKuffNzcqgV4eDxY8kMkME2OQWghUcZIyssMb4JHrVkscxg==@linaro.org X-Google-Smtp-Source: AGHT+IF/8K1MR3MNw98bRO3hjGdo0e2ec50UV5g/feeUiwO3OZ3USos24EMmjK5LXHyN9X6SjJaL X-Received: by 2002:a05:6102:5120:b0:4af:fc14:f138 with SMTP id ada2fe7eead31-4b2477b4236mr11483137.7.1733934143441; Wed, 11 Dec 2024 08:22:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733934143; cv=none; d=google.com; s=arc-20240605; b=Nrn3Mt6sdk/N/hIC74viMSurpBu4rDNPoQwEcBLyLJbFASkzSm+qhfmp6JdAoaAQ6L hJTz6tPDq08H52gB404If3sy3tlxpZhG+MPqxnabNfTjC6zmXTnJEjy7/3QKIzBP7y/2 9qGE3EkPzInd6tKlIm2f0nqBFjV3Ux7Si+dfMpokueZfqvt88HMuZ++noHBF8EiX3kMW AIkIfHtoQ5mzu+tpbHHe7Hgf9NnlQqQL9AuZHbBRdsMZxbwNOyQTXoAbYwHYzAmLPhtA OvDVcMaITOE6Jo9O3z+V8NjegHSzNGcEenxOYgmet4Tn2m8gG6QokaGcjVkiRZmB9AJ8 zvsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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=nWq50s5wH/Zfni782SA5A5nzRTm2bkE87fiXY9DTnyA=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=OiZzmFoM70rgicn86FNiptbByD51SYq89O4CpW7lFEJLjzuyXUw1ll6NClGuRnQaiU i0anhJ6rJ/5OxUKgseOZT2aKfeSwj1mTpWXyFSoJXTt+4ZPEhC6IsK0pVw6C3yiob1+t HbakKXu1hhGjiVpGV2KbfLw7Mgua9bkhKON6Paj6EjroNmeNs/CIYD8oK5igDV4MIBy4 uuhLim3qMJ/rhLYW9rdwnz+GyVoWuyZwN8BPph6EQt/1yCYw3qHnGyKB9IJEU6CjqcxG 6uXVmH2IjGm5o8vhHdvRxK7r/wNkNHuANYtiSvNPWpJBkTA3zrELzqSmN0YfY1r/1o+G Qfhg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hDX/nE5/"; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4afe02f936csi2185516137.367.2024.12.11.08.22.23 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Dec 2024 08:22:23 -0800 (PST) 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="hDX/nE5/"; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tLPSr-0001gP-Og; Wed, 11 Dec 2024 11:21:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1tLPSi-0001Jz-PJ for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:21:21 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>) id 1tLPSh-0007t4-4t for qemu-devel@nongnu.org; Wed, 11 Dec 2024 11:21:20 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-434a1fe2b43so69482385e9.2 for <qemu-devel@nongnu.org>; Wed, 11 Dec 2024 08:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733934077; x=1734538877; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=nWq50s5wH/Zfni782SA5A5nzRTm2bkE87fiXY9DTnyA=; b=hDX/nE5/zQ/yWDY0eCH39etUxC6jwOhn5Vw4Rdu5Usd09ZLsKEKIGf1M/j39/c5XvH BUFdUg17X2Jk1w4BCcsSWU2lDdCKQS6b1L4mqS2egy79gZc4/JfGAtzB6hxiPbKCzQX8 WqFL9eRCUXVehlw1KIxMZb7w8dDdmMe7KvAcvFWeSEB+BDbLI3lfSLBgaBTwjLwoH/l0 cO7iSJL3wnAoOgojmCiNfH/EZobln+btaHlMhQv3T5RZw5942vASC5FMDH3MQ7TggBKD nsPsoLMnr/bcpw5XxvD+tarvRWukn/DUXD3w/SfqRDiDxHwzI9lHrTG6/mrKcaha1CeF NjXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733934077; x=1734538877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nWq50s5wH/Zfni782SA5A5nzRTm2bkE87fiXY9DTnyA=; b=k+oCO9sFyjsJmeg6DZWKz1VNc6EljmRxgHsJUUggJlyedMj5XseHE1Gdn0i/DrnAe2 JKbIzLsuZlLC1meJni9mi/bEpiQsB5wsRIlmMg/lzqIB3j7jPFXxawkSKTmdjkgbTGix 4qGr1m3utws7mRz7ljCdZMbVf/Nt3r1OWhgbLKYNLLDSTKQ2gW1W1kzhDHKivIDJyuV0 xdZvEO1PeqAIbbDQLBmATCBRAt+P5zBR1r3zsr/3MSNzAb28z4fZb8ySzoHFPp6Phs5J Z12lhI09ICEKEnyBxomqve8yfCoXNssUFF4q7hou9HDURA+lI1R+agvK8qNaZNqJvwnO k5xA== X-Gm-Message-State: AOJu0Yxq2ns7gSIO845t89TfK66RJPHawxBOUvdVqvBPwoVE/teF+Una NXQ0FZ7KPa8hRPjKbSjUSySUmLO0DLxo6uW0dFnsyJ8/TZelDGku2gnEzhsNel2O7zRvho2y5vB 2 X-Gm-Gg: ASbGnctZHi/ZCeNpR9p4ToLWTPujJ9iur9rgq4sLjoLRB+ZWtBaAkr5VSgetUJvDI2E VhySBd9n8ng5tG1djezOBTaCINgZ5sX9rMVNmi93OaxqCTtfLJs9aKminDQ5vEXr5pDRUgdWdRq +wg/Gsc6+6M2Aka+HDcGGmaC7pDI0XWjTv/KbCUJvBIhEThxoI+fy8eL4JYGD9Wbi8yqWmELd5V r6HZWtRUdvdDQ/KBwigWlOexR7Lt/oNRHSrBLxAAswuAeEYKjIKmrjUiT5X X-Received: by 2002:a05:600c:4511:b0:436:1bbe:f686 with SMTP id 5b1f17b1804b1-43622863994mr2808905e9.21.1733934076689; Wed, 11 Dec 2024 08:21:16 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434f4dfdcdfsm121460595e9.39.2024.12.11.08.21.15 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 08:21:16 -0800 (PST) From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 62/72] softfloat: Use goto for default nan case in pick_nan_muladd Date: Wed, 11 Dec 2024 16:19:54 +0000 Message-Id: <20241211162004.2795499-63-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241211162004.2795499-1-peter.maydell@linaro.org> References: <20241211162004.2795499-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.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.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/72] hw/net/lan9118: Extract lan9118_phy
|
expand
|
diff --git a/fpu/softfloat-parts.c.inc b/fpu/softfloat-parts.c.inc index c1a97c35b20..be7e93127d4 100644 --- a/fpu/softfloat-parts.c.inc +++ b/fpu/softfloat-parts.c.inc @@ -85,7 +85,7 @@ static FloatPartsN *partsN(pick_nan_muladd)(FloatPartsN *a, FloatPartsN *b, * But if we're not in default-NaN mode then the target must * specify. */ - which = 3; + goto default_nan; } else if (infzero) { /* * Inf * 0 + NaN -- some implementations return the @@ -93,17 +93,18 @@ static FloatPartsN *partsN(pick_nan_muladd)(FloatPartsN *a, FloatPartsN *b, */ switch (s->float_infzeronan_rule) { case float_infzeronan_dnan_never: - which = 2; break; case float_infzeronan_dnan_always: - which = 3; - break; + goto default_nan; case float_infzeronan_dnan_if_qnan: - which = is_qnan(c->cls) ? 3 : 2; + if (is_qnan(c->cls)) { + goto default_nan; + } break; default: g_assert_not_reached(); } + which = 2; } else { FloatClass cls[3] = { a->cls, b->cls, c->cls }; Float3NaNPropRule rule = s->float_3nan_prop_rule; @@ -123,11 +124,6 @@ static FloatPartsN *partsN(pick_nan_muladd)(FloatPartsN *a, FloatPartsN *b, } } - if (which == 3) { - parts_default_nan(a, s); - return a; - } - switch (which) { case 0: break; @@ -144,6 +140,10 @@ static FloatPartsN *partsN(pick_nan_muladd)(FloatPartsN *a, FloatPartsN *b, parts_silence_nan(a, s); } return a; + + default_nan: + parts_default_nan(a, s); + return a; } /*