From patchwork Tue May 25 15:06:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 447282 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp4408360jac; Tue, 25 May 2021 09:06:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeRu8zVuSmHvKuWjU1hif1PohKxAzenrWEWOTn4oGV5TlIosuil0e2ANjjI4ihr01rbMVG X-Received: by 2002:adf:cf09:: with SMTP id o9mr28507262wrj.334.1621958762200; Tue, 25 May 2021 09:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621958762; cv=none; d=google.com; s=arc-20160816; b=xmou1m7DbQjgD2AlwiMepCVpgcbJeUZjQTPuBc9pMEZIfazgx1BC2BCD6evugOGdSM k7Hbl9YO6fmNSe+MVLG1NkrPrCNFGbqAyw6gN8xdaMmfiMNJd0hdhhmjUVfsZW9rbUxZ w+Gij3o0CnV1mL4fmWBFOZQQsOs3Nh7FhmDJcFetSk/pejwa11MBuwaGqKYQ5oRvjVG2 sr0+BuMI13058KhQXAFimjr2b8ed2trdddt1XO/KUT7/47trWA1GWk3pGnxpAilkHnH+ nFfwpSMOYxLqDodqj9dvbXBjL7ELILvUkxDZ3RbxBm++sQoKAESbw8lSMjAwKkmtek87 Rsug== 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:message-id:date:subject:to:from:dkim-signature; bh=iDJPnNyNqJZ81+npdsMQSZ1xiMkyQ7w6IzG7NIi4rmo=; b=RmZpIHnQSVHfriy3cCUTH2mte246K3Wugl+U7/5dzQvST3QStFRNXi3yylmy3+mtif DY3wqSIEzecp92c8Dgbma8s03iZAEtMrX/cCqySO95Mm7/+xZpFLX2bV08FqJ9a8lww+ tkfj+FlfwIhmLum9ew+wvU5owid605GtRV3KSYXxCLjkccjTnf9KxY1wulG8c4Slzmq+ EnS/kb4a2JJEpmxYRmT/P1q1qYODr7uFOZIBOIAhZy0U3mLfEF1QkD6Kr0g+bQt/r+A4 79xFUY4Pj8lpkiPH+DQwe+2WKbopTu6395VnYoTm3bKbaRWHbB1GwxRCt2qEdV1+mVt6 8B1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=irjPECuJ; 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 gt44si11736405ejc.619.2021.05.25.09.06.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 May 2021 09:06:02 -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=irjPECuJ; 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]:44488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llZZB-0006uc-5Z for patch@linaro.org; Tue, 25 May 2021 12:06:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llYeI-0001Ol-Bz for qemu-devel@nongnu.org; Tue, 25 May 2021 11:07:16 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:41701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llYeC-0006cK-W6 for qemu-devel@nongnu.org; Tue, 25 May 2021 11:07:13 -0400 Received: by mail-pj1-x1035.google.com with SMTP id b15-20020a17090a550fb029015dad75163dso13358494pji.0 for ; Tue, 25 May 2021 08:07:08 -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:mime-version :content-transfer-encoding; bh=iDJPnNyNqJZ81+npdsMQSZ1xiMkyQ7w6IzG7NIi4rmo=; b=irjPECuJbnKzQ+zIdI1+E+J2kL8Z8BeSmvuyeVMVw6JSAzraJ7A1yUNTb24nz7ukMN UioYCz4hR44fCde06f90N5sfZsL4RmvDr4ByGENDck1st9xwDiWh76HUvWf9dQm0eqbI BEQ6bhu7z6uot5d6IfUNfWYK4mCEhB6Rfto2NCHusumKGCaYuZ3kL9k7hNA7WkZXv9f7 VSKcjcxW/UjuLXp7W8zWRtUth9FMEdcBOaBIp/lm7XNoVVs6a6AFfQWPS4dVEMDSoCQW X6sRbV2aNKTwf77SeK21o8D8iDfnb2Vfs7QqVTt4gGAjxw9ZFT4yC81XuwDACnh0TuQA HlFA== 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:mime-version :content-transfer-encoding; bh=iDJPnNyNqJZ81+npdsMQSZ1xiMkyQ7w6IzG7NIi4rmo=; b=lfe9stAS3q9uc6ZGRssFZGshIroaUe7mx88Q0962epQJFqRl2lxyjpimYTTz+oRC5W 4zpH0j5BJEX7RnC5E19hJc9Zd3d836sKQQ9Rr9MvQZ9GBLre8UcvvL94fglQdybT0Tkx VCpCy1h1rqw0RhxiqQI+Rc7z0NqozlY2Ob/N1TMN612vFiGQco4x+VDDaAc4sTrS1of6 ZPRq7PmHG49Ab0mZ+HhNs0oZMTTgoP2sQOmd/2Ff+o2uCsSZ8GEvqmW/weEdgrSeCFnz +fpl4SZAX/jlpz/VoFgGtynM8g/13IqANChl0Jj/UfMf1wYK3iHND8vP0B0YqVO+daii J2vA== X-Gm-Message-State: AOAM530fyTNWNrPC0M159GhLPIaaEj9Ln7B8CLDnWt0RVy4KPpC6Rebc dsF5db/rWTukwku7Wq0H35vdQWsg36ID+g== X-Received: by 2002:a17:902:9348:b029:f0:d51a:7a4c with SMTP id g8-20020a1709029348b02900f0d51a7a4cmr30894550plp.60.1621955227239; Tue, 25 May 2021 08:07:07 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id z19sm2231943pjq.11.2021.05.25.08.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 08:07:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 00/28] Convert floatx80 and float128 to FloatParts Date: Tue, 25 May 2021 08:06:38 -0700 Message-Id: <20210525150706.294968-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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" Changes for v2: * Merged 48 of 72 patches. * Fixed minmax regression (david) Unfortunately, berkeley-testfloat-3 does not have minmax, and it didn't look trivial to add. In the end I simply tested an aarch64 guest minmax operations. * New patch to perform int->float conversions using hardfloat if possible. Our conversion to gitlab issues passed this enhancement request past my eyes again. r~ Alex Bennée (1): tests/fp: Enable more tests Richard Henderson (27): softfloat: Move round_to_uint_and_pack to softfloat-parts.c.inc softfloat: Move int_to_float to softfloat-parts.c.inc softfloat: Move uint_to_float to softfloat-parts.c.inc softfloat: Move minmax_flags to softfloat-parts.c.inc softfloat: Move compare_floats to softfloat-parts.c.inc softfloat: Move scalbn_decomposed to softfloat-parts.c.inc softfloat: Move sqrt_float to softfloat-parts.c.inc softfloat: Split out parts_uncanon_normal softfloat: Reduce FloatFmt softfloat: Introduce Floatx80RoundPrec softfloat: Adjust parts_uncanon_normal for floatx80 tests/fp/fp-test: Reverse order of floatx80 precision tests softfloat: Convert floatx80_add/sub to FloatParts softfloat: Convert floatx80_mul to FloatParts softfloat: Convert floatx80_div to FloatParts softfloat: Convert floatx80_sqrt to FloatParts softfloat: Convert floatx80_round to FloatParts softfloat: Convert floatx80_round_to_int to FloatParts softfloat: Convert integer to floatx80 to FloatParts softfloat: Convert floatx80 float conversions to FloatParts softfloat: Convert floatx80 to integer to FloatParts softfloat: Convert floatx80_scalbn to FloatParts softfloat: Convert floatx80 compare to FloatParts softfloat: Convert float32_exp2 to FloatParts softfloat: Move floatN_log2 to softfloat-parts.c.inc softfloat: Convert modrem operations to FloatParts softfloat: Use hard-float for {u}int64_to_float{32,64} include/fpu/softfloat-helpers.h | 5 +- include/fpu/softfloat-macros.h | 34 + include/fpu/softfloat-types.h | 10 +- include/fpu/softfloat.h | 4 +- fpu/softfloat.c | 4432 ++++++++----------------------- linux-user/arm/nwfpe/fpa11.c | 41 +- target/i386/tcg/fpu_helper.c | 79 +- target/m68k/fpu_helper.c | 50 +- target/m68k/softfloat.c | 90 +- tests/fp/fp-test-log2.c | 118 + tests/fp/fp-test.c | 9 +- fpu/softfloat-parts.c.inc | 899 ++++++- fpu/softfloat-specialize.c.inc | 340 --- tests/fp/wrap.c.inc | 2 +- tests/fp/meson.build | 27 +- 15 files changed, 2245 insertions(+), 3895 deletions(-) create mode 100644 tests/fp/fp-test-log2.c -- 2.25.1