From patchwork Wed Feb 21 11:05:00 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: 129024 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp496104ljc; Wed, 21 Feb 2018 03:12:03 -0800 (PST) X-Google-Smtp-Source: AH8x227A2xjQC3SGEZVFzupm7y1OTA9H9EN9K7DrD3X2iQzNEVLBPpRSPaxy5xDv9WSn5ofPzvPY X-Received: by 10.13.226.148 with SMTP id l142mr1823455ywe.171.1519211523046; Wed, 21 Feb 2018 03:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519211523; cv=none; d=google.com; s=arc-20160816; b=mv5XmC3SSy5d0HI6vrW0rWeFO9xMRySvTEpsUzWTCTgjp/tQ3XQFPhyYcDnNC9xFPI jxGPbYjFllUKNNNqrcQsSsGDV8iKJeVNKvx+OcQOhxGgVNRm3OUOw67XhA+AqwU/uIB3 cBKfRtS/KFEuprMQ1Vjm/djpcUC/J5w0IBj9w8bhWH/3+DJ5dvC1ra+oTZgf9WDDWLwa JnghR4JkDdG2/GM4T2MFT9F6M/e/kr8JHPgyJAu3gwbt2bOyUHEKUZajbl0j8JK0nsvu Sn+IbJ+alvc/FLmcY8Z1Et7hiv9MVYtOij0IVktnd3bbCCVO/quJUn7ChAkBYKfcLqmU qKCA== 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=7Xz7PY0rV+kcLlNEQDdr0XMfMfi9YbZPqnuFAZU8ZpI=; b=A3GvPlB5le6oiitzQr4+/5SXBUJTq/0IzWsRoH+1EGc8nS9P4KLj6USRTWiseMfyRQ b5zpHdEELDu6BvhMhZqW5+AyS67PrtP0ceNs1IkSv2A3KlH7UE/ZABXZy2COBVqmIWXL qAEKv/l5MJUsTdoND2V32tuCuog167ms4Ab/EGilsyZ2bo5xoMA4xQUcdJTe5/5C0OOt lPqLO4lDOXRk5kExhOoeKUnsL0Csbw2b8463MaASDD63wntMQC0RdsXbWvXOZVq6NDCq IHkZjZNWKnZ1hZ2Suuejcwc4FjHhaNcGlfGOtTfHGgBgJsgdcst7v+BY4GkTWm+Dg8/c O4+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kPw4UMz/; 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 t1si2390570ybc.823.2018.02.21.03.12.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Feb 2018 03:12:03 -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=kPw4UMz/; 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]:60065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoSJe-0000NQ-Cp for patch@linaro.org; Wed, 21 Feb 2018 06:12:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoSDM-0003rb-9U for qemu-devel@nongnu.org; Wed, 21 Feb 2018 06:05:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eoSDG-0006aJ-Bj for qemu-devel@nongnu.org; Wed, 21 Feb 2018 06:05:32 -0500 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:46810) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eoSDG-0006a4-2g for qemu-devel@nongnu.org; Wed, 21 Feb 2018 06:05:26 -0500 Received: by mail-wr0-x22b.google.com with SMTP id 34so3254206wre.13 for ; Wed, 21 Feb 2018 03:05:25 -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=7Xz7PY0rV+kcLlNEQDdr0XMfMfi9YbZPqnuFAZU8ZpI=; b=kPw4UMz/Ax9xz411nKvWiN9fkrp5U3YsgQeeWqUUcS+3imzhYU6em+vHf+hs+liH+W ysy9JfJx0pg7Dt8bSoZ98yxObiNgmtKcEndn7hvELB35zTLgU8VU+TnsrjuPZ5zWOrL3 Uf17f4tnDmr02CUezDvy6ffkoD7WlYgVi9A14= 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=7Xz7PY0rV+kcLlNEQDdr0XMfMfi9YbZPqnuFAZU8ZpI=; b=twXbSurCNVQHuQc/9mW8e3WonTz2OWR0fG9gNf1/L/1mJpEke4cFrf+Zo24nJAbUYv PTUywrnnCSxMWBHow2fQggkgucSpiKbIoIYDn3OuUDQPt9SPXbirZudrdNeRzOwQufQY zHeP3ncPvQy/7ypnmqrOXNoLnoc70ZRYVNqu+SeeWARK0NtAziztPwV1mGJv72mwYYg3 fFcNkKTClA+K5ovnSHdciyUOfNpX2lwnVCAYKsW+mkg2h0Jg7dksqkNDrA9F7XdHFFNm m0WW7eHv/6H7gleYEe1jyzMbHvFiP54qM2Zi88tSTY75MfhAlqV2slJOVHZAJd3t6ICO mPlg== X-Gm-Message-State: APf1xPBbtxFUHvs9zu08HRQWm9SBEXNVsTPPUCIkA0o984C5IuzmND7b sx99bnApxfLE+N2Vyl/qVzRoxA== X-Received: by 10.223.178.26 with SMTP id u26mr2705537wra.63.1519211124773; Wed, 21 Feb 2018 03:05:24 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p29sm11211742wmf.3.2018.02.21.03.05.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 03:05:23 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 12D913E0176; Wed, 21 Feb 2018 11:05:23 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 21 Feb 2018 11:05:00 +0000 Message-Id: <20180221110523.859-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:c0c::22b Subject: [Qemu-devel] [PULL 00/22] 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" The following changes since commit a6e0344fa0e09413324835ae122c4cadd7890231: Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180220-pull-request' into staging (2018-02-20 14:05:00 +0000) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-softfloat-refactor-210218-1 for you to fetch changes up to c13bb2da9eedfbc5886c8048df1bc1114b285fb0: fpu/softfloat: re-factor sqrt (2018-02-21 10:21:54 +0000) ---------------------------------------------------------------- This is the re-factor of softfloat: - shared common code path float16/32/64 - well commented and easy to follow code - added a bunch of float16 support While some operations are slower the key ones exercised by the floating point dbt-bench are the same: https://i.imgur.com/oXNJNql.png ---------------------------------------------------------------- Alex Bennée (22): fpu/softfloat: implement float16_squash_input_denormal include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES fpu/softfloat-types: new header to prevent excessive re-builds target/*/cpu.h: remove softfloat.h 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: 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: re-factor sqrt fpu/softfloat-macros.h | 48 + fpu/softfloat-specialize.h | 109 +- fpu/softfloat.c | 4550 ++++++++++++++++----------------------- include/fpu/softfloat-types.h | 179 ++ include/fpu/softfloat.h | 202 +- include/qemu/bswap.h | 2 +- target/alpha/cpu.h | 2 - target/arm/cpu.c | 1 + target/arm/cpu.h | 2 - target/arm/helper-a64.c | 1 + target/arm/helper.c | 1 + target/arm/neon_helper.c | 1 + target/hppa/cpu.c | 1 + target/hppa/cpu.h | 1 - target/hppa/op_helper.c | 2 +- target/i386/cpu.h | 4 - target/i386/fpu_helper.c | 1 + target/m68k/cpu.c | 2 +- target/m68k/cpu.h | 1 - target/m68k/fpu_helper.c | 1 + target/m68k/helper.c | 1 + target/m68k/translate.c | 2 + target/microblaze/cpu.c | 1 + target/microblaze/cpu.h | 2 +- target/microblaze/op_helper.c | 1 + target/moxie/cpu.h | 1 - target/nios2/cpu.h | 1 - target/openrisc/cpu.h | 1 - target/openrisc/fpu_helper.c | 1 + target/ppc/cpu.h | 1 - target/ppc/fpu_helper.c | 1 + target/ppc/int_helper.c | 1 + target/ppc/translate_init.c | 1 + target/s390x/cpu.c | 1 + target/s390x/cpu.h | 2 - target/s390x/fpu_helper.c | 1 + target/sh4/cpu.c | 1 + target/sh4/cpu.h | 2 - target/sh4/op_helper.c | 1 + target/sparc/cpu.h | 2 - target/sparc/fop_helper.c | 1 + target/tricore/cpu.h | 1 - target/tricore/fpu_helper.c | 1 + target/tricore/helper.c | 1 + target/unicore32/cpu.c | 1 + target/unicore32/cpu.h | 1 - target/unicore32/ucf64_helper.c | 1 + target/xtensa/cpu.h | 1 - target/xtensa/op_helper.c | 1 + 49 files changed, 2204 insertions(+), 2941 deletions(-) create mode 100644 include/fpu/softfloat-types.h -- 2.15.1