From patchwork Tue Jan 9 12:22:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 123903 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3956079qgn; Tue, 9 Jan 2018 04:23:27 -0800 (PST) X-Google-Smtp-Source: ACJfBoupqC+Ed6avv+UoSMYv8AovPK+mpJyIBMPGPTloVwkl6//32q5yabXKhYB1Zk1ODmeslehj X-Received: by 10.37.122.67 with SMTP id v64mr13825641ybc.299.1515500607619; Tue, 09 Jan 2018 04:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515500607; cv=none; d=google.com; s=arc-20160816; b=DwqwSNmjouF8IK+Oym8LpGWnr/D+PU7TZ/+Zy6BZLYAIou9wEdlV+1nPIUpQon5SH/ LLmq2gWvKugsSsRYt0jiULJ6LfoiRSdSn5q7jV0zIm2oeh81kj9ilGZ9KHULNVCTzmRv ZBeDxgbsogh+7+pSyXGgAjrezu/y3ZiHTRWnssG4oFrhVaEulQvp7I9tHtM8CEzwuoo7 G3+Dd4F/pwczAXYGWIkq8rQsEbLy7AdFo7vpQXoDOoDGJyecA7f7Dx7t4UrqngOBtkgq 3nOeayM5XbJc6L5IWzOTr21yLhU0U6r/Ke2yA9dbe9MA++KKoBhjGVTpNnXOgd8Rz22i T7Kw== 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:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=9W3+r8+EK/X9x5EJsqXnOwPsGFj/eNuStyiFynJq3NM=; b=WO/lBjcfk3ZznpwyAu0tj3QP17D1eN2Rk77jPwfn1nGxnvo2WHbIWG2hPPqCnGahCX uFqVigjqw1xiwg85o6qReUqbfkNdV3yROiA6FxHPLQXSV2j/ysSeHP7/HnCwMDJoRD1A ovljiyGLVhCBZ8DI5an0b6jz0eDAIpltEFRYd7e1+YdZC6l9+GVkmBHDWlelOuUzQg52 FJx/wKWqlzl7A7zSY4VCMbbiOJNxloRA5dItnV2giR0HprbUqyTKFZiPF4Q8OnVYo3EW VpCi7jdUiwTbQSKsjDNglqg7faCXcY+WbjVrA++9YqEzq3k2ZyhzfLZp/eBs33YJNlnk y/7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DrsDefOl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v16si2818825ywv.472.2018.01.09.04.23.27 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 09 Jan 2018 04:23:27 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DrsDefOl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:49422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYswB-0006bH-3K for patch@linaro.org; Tue, 09 Jan 2018 07:23:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYsvi-0006Yl-Va for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:23:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYsve-0006Al-Ul for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:22:58 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:41028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYsve-00067m-N9 for qemu-devel@nongnu.org; Tue, 09 Jan 2018 07:22:54 -0500 Received: by mail-wm0-x236.google.com with SMTP id g75so20185415wme.0 for ; Tue, 09 Jan 2018 04:22:54 -0800 (PST) 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=9W3+r8+EK/X9x5EJsqXnOwPsGFj/eNuStyiFynJq3NM=; b=DrsDefOllhrLn/Euh1QG6q2oHSXSg9ziWVRvAanZAgc778S0KFi51TAGLHniwwwXKY rdJk2zsfPpVK1T6RHfbXb0Dwk7TT8B8j/Z4JkIlWPdrQyM3zOlyqaC19dkcWK0QzxNM1 4KFnMj0vGWFUpAaw7uXGUZXtajxM6f0UAXgcM= 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=9W3+r8+EK/X9x5EJsqXnOwPsGFj/eNuStyiFynJq3NM=; b=XYIaQdJAQ/1C9p8MLDTG335078swGjT+LwLnQz4mixM9ztpCEC3G/wSxrYjfjKNlrF oscEvQzE59GZ7ru4EOmtNX7AaaZdAnQu0yBEMvTHus3SFNTKlkEe6v+Mq/aZNCx20tFS QGL/jPeZOAUTo9QCjGf/YHF4Uh/Ig5z/eNRUPtkAaJU74PB5VEAFSMlC1cqygt6tXcga 3lKk4M3pOG3MLfIQLO3B2xvJztl3RGJywWR6qzXNFsI12bh+47hgPfKSsbGN5gWIBRO4 xLybg3x5zJFZaMnLaraO2oF9Nu8WrWtOk+ODzmS7R49c0iu7SrJc2TZNW3enDc1okzEZ d8yw== X-Gm-Message-State: AKGB3mJNXi5XVG4GtqY7lqKR+DNCo7G2f1XSuY3MMvI8P2YjP5SY+xHQ s/74jHVn11/b90OJZI3P5c28Fw== X-Received: by 10.28.143.204 with SMTP id r195mr12183713wmd.51.1515500573457; Tue, 09 Jan 2018 04:22:53 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a126sm12219848wma.11.2018.01.09.04.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jan 2018 04:22:52 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2B9FC3E025C; Tue, 9 Jan 2018 12:22:52 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org, laurent@vivier.eu, bharata@linux.vnet.ibm.com, andrew@andrewdutcher.com Date: Tue, 9 Jan 2018 12:22:32 +0000 Message-Id: <20180109122252.17670-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 Subject: [Qemu-devel] [PATCH v2 00/20] re-factor softfloat and add fp16 functions 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: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, Here is version two of the softfloat re-factoring. See the previous posting for details of the approach: https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg01708.html There is only one new patch to remove USE_SOFTFLOAT_STRUCT_TYPES which had bit-rotted to irrelevance. I did run into a problem with inclusion of softfloat.h by bswap.h - which is likely the cause of the excessive rebuilds when touching softfloat headers. We probably want to think about moving the the type definitions to somewhere common (qemu/typedefs.h?) but I haven't done it here to avoid too much churn. This work is part of the larger chunk of adding half-precision ops to the ARM front-end. However I've split the series up to make for a less messy review. This tree can be found at: https://github.com/stsquad/qemu/tree/softfloat-refactor-and-fp16-v2 While I have been testing the half-precision stuff in the ARM specific tree this series is all common code. It has however been tested with ARM RISU which exercises the float32/64 code paths quite nicely. Any additional testing appreciated. Changes for v2 -------------- - added rth's s-o-b tags - added review tags - clean-ups for compare, minmax and float to int As usual the details are in the individual commit messages. Alex Bennée (20): fpu/softfloat: implement float16_squash_input_denormal include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES include/fpu/softfloat: implement float16_abs helper include/fpu/softfloat: implement float16_chs helper include/fpu/softfloat: implement float16_set_sign helper include/fpu/softfloat: add some float16 constants fpu/softfloat: propagate signalling NaNs in MINMAX fpu/softfloat: improve comments on ARM NaN propagation fpu/softfloat: move the extract functions to the top of the file fpu/softfloat: define decompose structures fpu/softfloat: re-factor add/sub fpu/softfloat: re-factor mul fpu/softfloat: re-factor div fpu/softfloat: re-factor muladd fpu/softfloat: re-factor round_to_int fpu/softfloat: re-factor float to int/uint fpu/softfloat: re-factor int/uint to float fpu/softfloat: re-factor scalbn fpu/softfloat: re-factor minmax fpu/softfloat: re-factor compare fpu/softfloat-macros.h | 44 + fpu/softfloat-specialize.h | 115 +- fpu/softfloat.c | 7417 ++++++++++++++++++++------------------------ include/fpu/softfloat.h | 117 +- 4 files changed, 3437 insertions(+), 4256 deletions(-) -- 2.15.1