From patchwork Tue Feb 27 14:38:44 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: 129812 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp366845edc; Tue, 27 Feb 2018 06:52:10 -0800 (PST) X-Google-Smtp-Source: AH8x226QFXyP/ltHZRw5oN1JnqNF5kvajo7BfGPJ/cfOm1OusolMjKQEDX+oMZn67TYEYmsy+uSD X-Received: by 10.129.182.71 with SMTP id h7mr9526944ywk.120.1519743130373; Tue, 27 Feb 2018 06:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519743130; cv=none; d=google.com; s=arc-20160816; b=H+NZFV9kZ+R8DTzYzrARrINuSxEF9RQc1wK1rsCReQ+awBuB+aQ9oD5HqOvQCfFt3q 35IE695UF/IFmZVYa1Lot1Zaw/B2DvqKx29hIFSzRPsxsgmzQUll39uzUt/2hOhZpGbS KuWmIOsjEnyoguWSFpxf9UnsW/4Z64ZcAdeRXHwaecxc1abqb57CExRRjnehMvhe90cN eoxChGkTNf15scHzLctiy19eGxg+g5kGmF6JOPtG8HLdH2xS6DkFpR4fOsZ1Fg97BZLn OtIgNFZvlXH32U1XysTfbVdsIHQ48QKFY7vTbCZT83Z59LpfXXeKLtGsjngNH/KJ/bw3 joFA== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=tB+U32aeV9mjLtNqJ7NzXf7kQICTubiGR34mAS3zI2k=; b=KrHzr9aU3CND9Qjtns003p/FIESMOlyE+QtmgDBKNkpvDyfeS8TpR7ad/KECLETv0Z cT5mNYRREn8KY7jedHeanm+mYvRnnsEGX0vqYYDY4jvtCw0pa1poKMdYa5obQVBw2Xf8 uItKSgeqFgxO3y66t1vEQJk0VBByUS9tHWjLh6gIEANW/7ZAHIyBJR+HpXsPQReqoVTg 0Y609sYQCdVk4IslPolL19q1biAwbpjtBXJ+hQe1Ke+j2+olH8Zqq1doMfyb+Ev4VDUS KS0m7F6FQa6gXVx+LT6s1oyNCD/yJQUK68s1dHZYMSUXKSNcU02nge7AKa2iRkShpT0k Vf1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ExnYZ1Nw; 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 d67si1898825ywf.217.2018.02.27.06.52.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 27 Feb 2018 06:52:10 -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=ExnYZ1Nw; 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]:37758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgbx-0006di-Pt for patch@linaro.org; Tue, 27 Feb 2018 09:52:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqgY3-0003Vr-8o for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:48:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqgY0-0001Ai-Oz for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:48:07 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:55736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqgY0-000163-GK for qemu-devel@nongnu.org; Tue, 27 Feb 2018 09:48:04 -0500 Received: by mail-wm0-x244.google.com with SMTP id q83so24679729wme.5 for ; Tue, 27 Feb 2018 06:48:04 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=tB+U32aeV9mjLtNqJ7NzXf7kQICTubiGR34mAS3zI2k=; b=ExnYZ1NwykKKoDPhe4Kgn82lIM1fLs3mGQCPW9mHgEZU2yHdOrewEVugFtacUDrsLK 9UlBk/QgznQhC0Ovx+60qB3CmouZikh5Rk0xJlgNML4m2FqIIMPYZeRUyUWI/A5eSsIR jm85rVJBN/s0NhsxbtflPJTlL8TguRbqyTsXY= 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=tB+U32aeV9mjLtNqJ7NzXf7kQICTubiGR34mAS3zI2k=; b=J3GXVZFCSnPEiDBfEF8zWSK8jTZ/HTQNXLMp5XCvViSi/eoaMzikEiJ47su1CU98EW 6miAD4qTV0kCSpqLZypzTTZKy1WxHFlyBq81wdUUVPsVGxQvXHIvW+oid4oo6HnHV7By sJAp0/r1vVZRgOtje85lVfClnIm++9B5wMq02ng90zVMU846EbAyxzXHYECnpKbfFB4z SfNDCKOLGNXHYDjhGLuI8V+flAJHRIVRTpLlsxQS61sDTrwKwdozxqH16YeRLuAJ9WYb 029rjBuNrTLBonFxzjbbmycON8NifSQc2SK2zuBpjpIxIYvWsv8GuwpjHwS6treE8D6Q wLrg== X-Gm-Message-State: APf1xPAXDAYhnj15T5Rl2Ep2e2S9MxoWqc4RVvBmEYfZCoxBdthlK7ph bAalGX85jRuvgECvTI5C4Vm3jw== X-Received: by 10.28.54.220 with SMTP id y89mr12246527wmh.138.1519742883349; Tue, 27 Feb 2018 06:48:03 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c14sm23241003wmh.2.2018.02.27.06.48.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 06:48:00 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A1C9D3E1630; Tue, 27 Feb 2018 14:38:54 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-arm@nongnu.org Date: Tue, 27 Feb 2018 14:38:44 +0000 Message-Id: <20180227143852.11175-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180227143852.11175-1-alex.bennee@linaro.org> References: <20180227143852.11175-1-alex.bennee@linaro.org> 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::244 Subject: [Qemu-devel] [PATCH v4 23/31] arm/translate-a64: add FP16 FRECPE 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?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, Peter Maydell Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now we have added f16 during the re-factoring we can simply call the helper. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- target/arm/translate-a64.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.15.1 diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 9f2c3682dc..50b4fa4ce4 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -11311,6 +11311,8 @@ static void disas_simd_two_reg_misc_fp16(DisasContext *s, uint32_t insn) case 0x6d: /* FCMLE (zero) */ handle_2misc_fcmp_zero(s, fpop, is_scalar, 0, is_q, MO_16, rn, rd); return; + case 0x3d: /* FRECPE */ + break; case 0x18: /* FRINTN */ need_rmode = true; only_in_vector = true; @@ -11431,6 +11433,9 @@ static void disas_simd_two_reg_misc_fp16(DisasContext *s, uint32_t insn) case 0x3b: /* FCVTZS */ gen_helper_advsimd_f16tosinth(tcg_res, tcg_op, tcg_fpstatus); break; + case 0x3d: /* FRECPE */ + gen_helper_recpe_f16(tcg_res, tcg_op, tcg_fpstatus); + break; case 0x5a: /* FCVTNU */ case 0x5b: /* FCVTMU */ case 0x5c: /* FCVTAU */ @@ -11466,6 +11471,9 @@ static void disas_simd_two_reg_misc_fp16(DisasContext *s, uint32_t insn) case 0x3b: /* FCVTZS */ gen_helper_advsimd_f16tosinth(tcg_res, tcg_op, tcg_fpstatus); break; + case 0x3d: /* FRECPE */ + gen_helper_recpe_f16(tcg_res, tcg_op, tcg_fpstatus); + break; case 0x5a: /* FCVTNU */ case 0x5b: /* FCVTMU */ case 0x5c: /* FCVTAU */