From patchwork Sat May 8 01:47:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 432530 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp845615jao; Fri, 7 May 2021 18:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJMQ/LmfzQgEyKZ9IAD2Ad5g+Zo2FpiR7v8UN45e9BbALWTEzc4Q1LFx72b/u4CxMHX39l X-Received: by 2002:a05:6602:25c1:: with SMTP id d1mr7337545iop.182.1620439155205; Fri, 07 May 2021 18:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620439155; cv=none; d=google.com; s=arc-20160816; b=eKptChX196WdcwZxqBbf8XI8vvkijlPKzkd6nY0FZ+yKJyH20F5dObHy64zhX4MG4U N94dUwqUlB6ReshKbHaiZ/eTeMNJLqfurfrDgQ9ACpZHPlW9xS9O/JdMM8dqB08HO6ii CJOszOrMDKEPqI5qqttTa6/o+ubeVUWgQdSeOC6kr0rGR5UQjgq0Jdrq5y3qvQ7577PL lp/U6SDyYplpGXmmNY1VrKVQLFR1jshMIC4Mi2gtGduGXB13Npq12fBpGjXzufQFtiny prIR12OsEbmkNejiAsGhvSjytlOBtTHa9ntbb9RJ0pv2r6606XBWTj0ycTZ+Po54T//O ZcJg== 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=6bhXtvo5B12zNIaDrjXDyWAVuDsp1zJyuk3Qd7d0A8g=; b=c/uzVR6NlwtLRV62PY6gXw6YX/8ybejHCoXcf8qTlIKalArXFmpsdcXGj2vdH8UlrI mx5QRXdM1z4rQGM/c4Y6I6kBFLtrbhgazagj9f7dlOLBy2em1xeAJGlL9dXxYQ5SP07m uYEYYB+uocxL3fqmTSUp+3CPepxsP0bZlKCt1JSlLSwBs0vwA9duxJo+qbIAqQmhPnso AP/YJSn1dShyLhdzpwSyPmJkjXWn+LDx4qsA9LVOLof01x7nKsKjuJMIE8SwREg5ofJi zc5+u5gU93QLWvafHO3tN9pXmpnwz/CjuNAmEFgH3BNmRRNhGAmxzozAJSZNuPAcNaWN UXpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GUM1XZJt; 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=fail (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 d7si8546652ilg.78.2021.05.07.18.59.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 May 2021 18:59:15 -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=fail header.i=@linaro.org header.s=google header.b=GUM1XZJt; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfCFO-0004i4-OE for patch@linaro.org; Fri, 07 May 2021 21:59:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfC4n-0004Aw-L1 for qemu-devel@nongnu.org; Fri, 07 May 2021 21:48:21 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:33518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfC4i-0003YT-4o for qemu-devel@nongnu.org; Fri, 07 May 2021 21:48:15 -0400 Received: by mail-pg1-x534.google.com with SMTP id i5so3882987pgm.0 for ; Fri, 07 May 2021 18:48:11 -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=6bhXtvo5B12zNIaDrjXDyWAVuDsp1zJyuk3Qd7d0A8g=; b=GUM1XZJtgPGv8gnfU70ZwCBSdA0Y3DDOfjdadwgvfTdqcVO7You0cVocqwAl4IkCU1 2hbd0bxtPHu61Mq4RLa8WTtaATkyAwmBwxrJhWqrER0WpaGSBUo5IMP2Xkw32V4WMuUs KRksm/6KZFfpWJHVS6PnC2HLe6w1YQKgFACXMkc4jX777gczRe61lNpbRLiBuPsr3d2F LZODvex5X0oQ3AD1i5yBLzVA5+4tIxal4e7yMibiNLLZ1+0kMsyNdZUGF16A3Xx3Rbcz qgWM14lwDaZLge+apmRr69Czch07WeErrywvoSM5up0ZBG4HpaE+YdLVLrzxbSbD5B1i Uy0w== 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=6bhXtvo5B12zNIaDrjXDyWAVuDsp1zJyuk3Qd7d0A8g=; b=IEAfvOLRLw9C6FFWCvFdpw4alVle1Npbx3cxprgOi3hi0oFa/QSXBRWtpZSoM68uFo K7Ax5wHQ7bP2eZxymulWRfvkDyl666khAKA1J1/eGEhG6AJTNJ4Mk89e69ULneHfRUf3 /gCUFkHmxHEGQmu6qOo+wSbkO3TFnGYXZEbX4yaqlPKugs+ztV8kjSKsnL/gK2DeTc47 4boa0zyFsDSGXHYgtPJP8HN2ImF4ZmlQ7yIBgwOrvkDdcxo0Gjjqoks2L9cAcu2IOr+m 9QfCsJbk9kMmPweEqia4mXwxwBcASElgV123eluQgl7bABR92K+1SOescGoHBsZESSiF XQ+Q== X-Gm-Message-State: AOAM532Ulu7Vptqx9XINhmoJRDs8r8t9fPV1sHyolY1qO5HnTn6j0vv6 zkqBWSmOd87KzHlMPpYc304KosScAGkBCg== X-Received: by 2002:a05:6a00:16c2:b029:228:964e:8b36 with SMTP id l2-20020a056a0016c2b0290228964e8b36mr13539356pfc.11.1620438490910; Fri, 07 May 2021 18:48:10 -0700 (PDT) Received: from localhost.localdomain ([71.212.144.24]) by smtp.gmail.com with ESMTPSA id t4sm5819681pfq.165.2021.05.07.18.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 18:48:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 11/72] softfloat: Use return_nan in float_to_float Date: Fri, 7 May 2021 18:47:01 -0700 Message-Id: <20210508014802.892561-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210508014802.892561-1-richard.henderson@linaro.org> References: <20210508014802.892561-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x534.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: alex.bennee@linaro.org, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- fpu/softfloat.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.25.1 Reviewed-by: Alex Bennée Reviewed-by: David Hildenbrand diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 64edb23793..b694e38522 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -1931,13 +1931,7 @@ static FloatParts float_to_float(FloatParts a, const FloatFmt *dstf, break; } } else if (is_nan(a.cls)) { - if (is_snan(a.cls)) { - float_raise(float_flag_invalid, s); - a = parts_silence_nan(a, s); - } - if (s->default_nan_mode) { - return parts_default_nan(s); - } + return return_nan(a, s); } return a; }