From patchwork Thu Jun 13 16:39:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 166732 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1108757ilk; Thu, 13 Jun 2019 11:55:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyO+9ESzW22JY2jrAciy9uNTqp5e9nvZM6vQqG/Kl9/hTUUbBcrcfqVa6DY60GjGGzov3s6 X-Received: by 2002:ae9:c10c:: with SMTP id z12mr19189640qki.110.1560452115292; Thu, 13 Jun 2019 11:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560452115; cv=none; d=google.com; s=arc-20160816; b=Ro0ZAm/OfICOdiDgDCWU6dOOAoBnOHTGuOHaskTkZhkc3AmNHX/3y2+HeCwl3GdF6t 5VHEQvF6kshhJGL8SQS/CYoM9L3QukzcCHnnd8/UImZSCVDxS4uTCSncgHag21HeKo2P VphP9aucZo0KHARi+LXBny4gFMDGH24MkSGH0l5mj/CfJE2KqTDDVZV6swTReqKnUviN kgf2VHYXsLvA75FBEyaB7ART2A+fSdzaKA1lRRgiJugH+Egi7FsWBc+O0JI7xI0Q95pY zCMC3Cno5UFYoZzvx6VF5+mwo1G//EFnt03DS+GbVr5gQlDkuBOS+XoUKHdcG6ZnZGCr 3v6Q== 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; bh=XS2MzO+cZz80eCqH3YLxLgykyR6csa7kzG0bgwV0MQs=; b=dAQlRx8Nrx5NGEuP0ZCPUeI699PjVs1KkKrTAaNVntiZhkGDenFVfabpVkT+f3YBxB Ji9MJJciMfe6vY4CcSKE3Ks/yPQjcvqsVRncNMsff22QN3Ncnn6JkfaEkUTez7Uw7V/n 9Odz969o+rKnIy20iYuNiYCfoJ4z8MNXTX3OilCMv/FEVCpXZ0yAIIGAHg7679vDc+l1 41hAbIFvHQOvyPRrNZQuG8FdvJrR/rBUqrA7tY7PQX9JN/IOICPqCG2DQuLdMdxv2U1x WuzU8SucQdmKgkofx2yQff1yx/GXBLJdsKHlYapZd8rievwSmNhNqmGnK0aVaq3kOtW0 2yVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jDC2C3uc; 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=fail (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 k18si240375qvq.98.2019.06.13.11.55.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Jun 2019 11:55:15 -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=fail header.i=@linaro.org header.s=google header.b=jDC2C3uc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbUsU-0000VV-TP for patch@linaro.org; Thu, 13 Jun 2019 14:55:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53864) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbSlL-0004BM-CI for qemu-devel@nongnu.org; Thu, 13 Jun 2019 12:39:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbSlH-0003S8-6K for qemu-devel@nongnu.org; Thu, 13 Jun 2019 12:39:43 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:33779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbSlG-0002oK-JW for qemu-devel@nongnu.org; Thu, 13 Jun 2019 12:39:38 -0400 Received: by mail-wm1-x344.google.com with SMTP id h19so7008315wme.0 for ; Thu, 13 Jun 2019 09:39:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=XS2MzO+cZz80eCqH3YLxLgykyR6csa7kzG0bgwV0MQs=; b=jDC2C3ucnpWxPg+WaSc54V269pFuNFIb5O964icnyjuTfv99fMovYHHGeOhZBOS83m XzJlsSCudwGb9zoTssiR6OCjK/ncKGIlw85odhbwrhbY549dsASdGmcv0uMu/FAuvdNu t6bgHxzUgjaZIXdIvdSSTUHuduxnV7K2q6h8Jc2H+hIJSeTGTZ9/DGPGJ98RM87ZaVhm drjymb3HhWo3As6kq7Lz+zNLT35gYLASdWUoK6RsoPKhyaOcZ3d3p7l/Dx3b89Nk0iMv eLg3Q8GbOI2AHbYW4Zt71LbLUMwFxZRReSoMBURpmwzuXVffxUhAg/MUwaajb5lyWppY Y7WA== 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=XS2MzO+cZz80eCqH3YLxLgykyR6csa7kzG0bgwV0MQs=; b=qUJUua1UoQz3fDTlP4akYw6X8HL46SzGJxMwz1ePFp5cHUxDF39mL1lNLvDCbm/Srz KU5Q4+p500ZRg3tk4dTWhV5aHrQOrIXPwnEo4lfo3gwJaZLdBiJCtqZiAHg08zHtNkPN 7UK6EnmRZSOcp7FVNOMXXbnyVmt6DNQV+WZVPSMrjYLCU/KoxEdFuOeue81lz+/RvNkS Z3zFP6K8zQonh6pF53OByzfK6D/xFog116QHCVT6af9lPGKxNIlj+3CkTLhDWyCauP6s Ochd1W0buStbzTSv4afMRde1cuct6uPXJsia5UwNg8EszUoG4bMIORJqd6Qd4m7yzV9J WNxQ== X-Gm-Message-State: APjAAAVspoc/NrwUtGeqoUm5vjvZFpWFxPLexHA0WGEemoCUXzFP68oV +TmyiI6nlheYqSarOcv26a8ey5fPfX11Mw== X-Received: by 2002:a1c:9a05:: with SMTP id c5mr4245105wme.36.1560443970002; Thu, 13 Jun 2019 09:39:30 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id f197sm358747wme.39.2019.06.13.09.39.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 09:39:29 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Date: Thu, 13 Jun 2019 17:39:15 +0100 Message-Id: <20190613163917.28589-11-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190613163917.28589-1-peter.maydell@linaro.org> References: <20190613163917.28589-1-peter.maydell@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:4864:20::344 Subject: [Qemu-devel] [PATCH 10/12] target/arm: stop using deprecated functions in NEON_2RM_VCVT_F16_F32 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: Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Remove some old constructs from NEON_2RM_VCVT_F16_F32 code: * don't use cpu_F0s * don't use tcg_gen_ld_f32 Signed-off-by: Peter Maydell --- target/arm/translate.c | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/target/arm/translate.c b/target/arm/translate.c index d8b46130d42..2ba620ac1e1 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -1542,7 +1542,6 @@ static TCGv_ptr vfp_reg_ptr(bool dp, int reg) return ret; } -#define tcg_gen_ld_f32 tcg_gen_ld_i32 #define tcg_gen_st_f32 tcg_gen_st_i32 #define ARM_CP_RW_BIT (1 << 20) @@ -6425,25 +6424,23 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn) q || (rm & 1)) { return 1; } - tmp = tcg_temp_new_i32(); - tmp2 = tcg_temp_new_i32(); fpst = get_fpstatus_ptr(true); ahp = get_ahp_flag(); - tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 0)); - gen_helper_vfp_fcvt_f32_to_f16(tmp, cpu_F0s, fpst, ahp); - tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 1)); - gen_helper_vfp_fcvt_f32_to_f16(tmp2, cpu_F0s, fpst, ahp); + tmp = neon_load_reg(rm, 0); + gen_helper_vfp_fcvt_f32_to_f16(tmp, tmp, fpst, ahp); + tmp2 = neon_load_reg(rm, 1); + gen_helper_vfp_fcvt_f32_to_f16(tmp2, tmp2, fpst, ahp); tcg_gen_shli_i32(tmp2, tmp2, 16); tcg_gen_or_i32(tmp2, tmp2, tmp); - tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 2)); - gen_helper_vfp_fcvt_f32_to_f16(tmp, cpu_F0s, fpst, ahp); - tcg_gen_ld_f32(cpu_F0s, cpu_env, neon_reg_offset(rm, 3)); + tcg_temp_free_i32(tmp); + tmp = neon_load_reg(rm, 2); + gen_helper_vfp_fcvt_f32_to_f16(tmp, tmp, fpst, ahp); + tmp3 = neon_load_reg(rm, 3); neon_store_reg(rd, 0, tmp2); - tmp2 = tcg_temp_new_i32(); - gen_helper_vfp_fcvt_f32_to_f16(tmp2, cpu_F0s, fpst, ahp); - tcg_gen_shli_i32(tmp2, tmp2, 16); - tcg_gen_or_i32(tmp2, tmp2, tmp); - neon_store_reg(rd, 1, tmp2); + gen_helper_vfp_fcvt_f32_to_f16(tmp3, tmp3, fpst, ahp); + tcg_gen_shli_i32(tmp3, tmp3, 16); + tcg_gen_or_i32(tmp3, tmp3, tmp); + neon_store_reg(rd, 1, tmp3); tcg_temp_free_i32(tmp); tcg_temp_free_i32(ahp); tcg_temp_free_ptr(fpst);