From patchwork Mon Aug 24 14:29:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 248208 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp2604627ils; Mon, 24 Aug 2020 07:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4gSIc7V9+EP/AXxKNl5bHjb//75KralZQ1hl/qRpQrmJ0Cyi/FWwmtOLkdQdKvBhHmQAj X-Received: by 2002:a05:6902:4a9:: with SMTP id r9mr7500542ybs.242.1598279441101; Mon, 24 Aug 2020 07:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598279441; cv=none; d=google.com; s=arc-20160816; b=syOE/M7zubXKa0U9+zIUX+JV01vKh3kQ5chjHAID+wwyFMQ0uJo7SYbgnDLWsTFvPa J56xww452OESNK7mSGZV66Y2UZ6aXFsdLZel33HgmebuGfqsQvFeOunAtYNYDrnsrbBb 53VmfIIsQWB1o4EKtB4G9SSDST+6NGzXhlk5lLQOC+IFWD4w/iXUaPtUvCvK/LEZ3C/B Nt+c1UEXjMMiC58fRbHMRCUHEXd8p9gLVvYgviZk2g38ziv1VCnFPBxChp6vGOA/sSSH BvxhQ8QAZEhpaZmEDys1yP1R0KqZ6KEfW5FuJFFBmm74dU6N6/b0Rh78mqgGIRxJbtDj Tqcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=NHUufnyxKdqWA9jlUAJvMBRPiSTfhinIWCD6n38nQJw=; b=s4TgRnlBeu988HFOHhwZuY+MxKpmhOYgraJWHOkQznUTgHRaJhPyBQd/y9ifLGlVrd JS0BW29+I5P0FYwwNi53JgYOfXh3maJ3xBbrvZ4V1Us/6HXq7oL7rYklaOPCVqIA/who SU1HZMl8/He1MvBc74B27Dc+OPCh9VV7x9Pck2/P4G8/+7L1Cjerc+Cc2XkB9z9muNkg WuL8L1hNnyJOv2nIja+7+5od8I27d5/85m813i8XuyMJ8uSm+BUHPeF7dImj62wfbUxn duzGBuvGQrm923fVa0rTv6AAdEu7hLeODIqx0xDwbJGXAYnILrpEFxuzzQWD10thST7U R4Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N0Da1v34; 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 h80si11706295ybg.85.2020.08.24.07.30.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Aug 2020 07:30:41 -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=N0Da1v34; 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]:39300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kADUe-000827-Eo for patch@linaro.org; Mon, 24 Aug 2020 10:30:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kADTg-00081h-Il for qemu-devel@nongnu.org; Mon, 24 Aug 2020 10:29:40 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:43064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kADTe-0002eb-PE for qemu-devel@nongnu.org; Mon, 24 Aug 2020 10:29:40 -0400 Received: by mail-wr1-x431.google.com with SMTP id a15so8898394wrh.10 for ; Mon, 24 Aug 2020 07:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=NHUufnyxKdqWA9jlUAJvMBRPiSTfhinIWCD6n38nQJw=; b=N0Da1v34vjCpKLAG2ERU2lDTX6c4dcpCTijWBLQzZ5h+jLWUNidP5D0vxrGoAPg8/z ShQjTgcwQ68hvQu3Kq1qDUNvITH+Uq0Z5cydP7AphY1cbJg4oHheyUU6x1q4teDcpPrX DIG3zX3rpzT7CbJQSrwb/z80tO8kiVOLXcskmC+YVbt5kNPG43QP2vK2xmIZqpuSm5/J 3Yl1m8pVM6b8VkGoZmqb2/u6/uXPQbtEJF/Ud5qD3JxifaJSeDykqUz3Ryml5Z4NSaZM 2V4ucN/z6Kmo4fXv22aQvGH1CzfDFmE3i2K5t/5zWjBT7UFECrBpwPvTE5w9nfoEKVfQ 8+JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=NHUufnyxKdqWA9jlUAJvMBRPiSTfhinIWCD6n38nQJw=; b=J/vhdVtH81Mm8sgb/vBKptd+USQ2jPN7R1dDndIcsEzx5b5aav1a8J95K4sNBZDaUa plOOGMVGovjOMTxvBsuS87zDWWBpOmi3+lVLwJpIdBayGj+MP8qlf+TcoiZmVrIiqB6u bb7nK+ZVGRe2fbZ2gkhJohDbPyHIEAfzM7YuFq6tWuVyeZgRfEOOZalRWPpnQRnA5Bve SCVRm/C2m+GjaLRCAhxbDz+VPyZilXZmVUgpYVe5ioSa01CYMA047pC5OREMOCXFpTEM /P8oqthuQ+67faWh5bCponRR07cqlAz4BldgrKI2bZXhisN8hzGttNrUeYu2qqfePZ0D XcNg== X-Gm-Message-State: AOAM532GqQODDhueovtPeUpYDfgF64izh7gI882h9ZHQAlAbHqXAp7Ix g+ilkw3mTakmg1CY3uQzfcyRnah68hBHM6cQ X-Received: by 2002:a5d:6646:: with SMTP id f6mr6106190wrw.155.1598279376934; Mon, 24 Aug 2020 07:29:36 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id b14sm24499091wrj.93.2020.08.24.07.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 07:29:36 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 00/22] target/arm: Implement fp16 for AArch32 VFP Date: Mon, 24 Aug 2020 15:29:12 +0100 Message-Id: <20200824142934.20850-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This patchset implements fp16 support for AArch32 VFP. I've included the final "turn it on in -cpu max" patch for convenience for testing, but we shouldn't commit that until we've also added AArch32 Neon fp16 support. (I have a patchset for that in progress, but I still have a handful of insns still to convert; I figured I'd send this lot out for review rather than waiting and sending a 50-patch set that covered VFP and Neon.) I'll send out the risu patch that adds patterns for fp16 insns in a moment. thanks -- PMM Peter Maydell (22): target/arm: Remove local definitions of float constants target/arm: Use correct ID register check for aa32_fp16_arith target/arm: Implement VFP fp16 for VFP_BINOP operations target/arm: Implement VFP fp16 VMLA, VMLS, VNMLS, VNMLA, VNMUL target/arm: Macroify trans functions for VFMA, VFMS, VFNMA, VFNMS target/arm: Implement VFP fp16 for fused-multiply-add target/arm: Macroify uses of do_vfp_2op_sp() and do_vfp_2op_dp() target/arm: Implement VFP fp16 for VABS, VNEG, VSQRT target/arm: Implement VFP fp16 for VMOV immediate target/arm: Implement VFP fp16 VCMP target/arm: Implement VFP fp16 VLDR and VSTR target/arm: Implement VFP fp16 VCVT between float and integer target/arm: Make VFP_CONV_FIX macros take separate float type and float size target/arm: Use macros instead of open-coding fp16 conversion helpers target/arm: Implement VFP fp16 VCVT between float and fixed-point target/arm: Implement VFP vp16 VCVT-with-specified-rounding-mode target/arm: Implement VFP fp16 VSEL target/arm: Implement VFP fp16 VRINT* target/arm: Implement new VFP fp16 insn VINS target/arm: Implement new VFP fp16 insn VMOVX target/arm: Implement VFP fp16 VMOV between gp and halfprec registers target/arm: Enable FP16 in '-cpu max' target/arm/cpu.h | 7 +- target/arm/helper.h | 22 + target/arm/vfp-uncond.decode | 27 +- target/arm/vfp.decode | 34 +- target/arm/cpu.c | 3 +- target/arm/cpu64.c | 10 +- target/arm/helper-a64.c | 11 - target/arm/translate-sve.c | 4 - target/arm/vfp_helper.c | 198 ++++---- target/arm/translate-vfp.c.inc | 810 +++++++++++++++++++++++++++++---- 10 files changed, 894 insertions(+), 232 deletions(-) -- 2.20.1