From nobody Thu Dec 18 22:24:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1560786333; cv=none; d=zoho.com; s=zohoarc; b=cb5dHviGe/eSk4Iv8D61sfp+Y6gA2gdk6dmq79mgZx3I3tD0yUyUBazB9wJIkn/SvFMC+I4pBemSXdy0gm5Jzi9wR6Wq6zagN+eYR3TNM4CksSiXAh4RlD5cgQzo/iWrWYBfPWLNJfhDXkar8SruqNFFzl/CvEA7teDcTHL5fKI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560786333; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=XTL6vXsjTHflOLJ+e9+ddR0nb34AKoiPztLrrZicDQo=; b=jvEDKWxzyig0AMWOCPLK59UZxiD/TshP/KvvGsAI7ZOz8DreQqGwTlUf09ExTyO+w4xqvSZDH7z2a98WsqBbMye85cDX50lI8Ra60uok5KW9FEzRXg+Pk6K5XVmuSOnocLY8xm4m89kvoUg7KejRr0Cku3yt/OvfYabJWDYB/c8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560786333438848.327626941993; Mon, 17 Jun 2019 08:45:33 -0700 (PDT) Received: from localhost ([::1]:48684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hctoz-00071F-QC for importer@patchew.org; Mon, 17 Jun 2019 11:45:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46908) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcsib-0003ps-PD for qemu-devel@nongnu.org; Mon, 17 Jun 2019 10:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcsia-0008IH-4r for qemu-devel@nongnu.org; Mon, 17 Jun 2019 10:34:45 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:34687) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcsiY-0008EA-1T for qemu-devel@nongnu.org; Mon, 17 Jun 2019 10:34:43 -0400 Received: by mail-wm1-x342.google.com with SMTP id w9so112657wmd.1 for ; Mon, 17 Jun 2019 07:34:38 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id a67sm13819985wmh.40.2019.06.17.07.34.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 07:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=XTL6vXsjTHflOLJ+e9+ddR0nb34AKoiPztLrrZicDQo=; b=jBRTNCWhLhvz66UFl/CDCvq9ye4qNbrqs0vbk5HVUcOzk25C2Vgmkr1QRVFEygpBCX nwkuPy/gXBZKXSQFYFX3cZjpdSLarSBbW2gWrZcC30OEqTzJIv6zWLT9cBX2JnENsUK/ LwPmV44KniHuJAXbCmrItr0GMgRm+dByij/o39/ea23xEtNsguEerU2SuNwRuGgwY6vz G2EWY/KAPDspf2rCrx9ZmaAQPbgp+QqaBEPe0hj2R6XoyApwhTD+++yGJUZe6CBZ6GU3 hvYU+v/ULrG/Yo8zh5LPtNrIn/rgtj6CmQjOIU9TPspSMTmu5DsuEB/Pr9H0EORyRs6C nGNQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=XTL6vXsjTHflOLJ+e9+ddR0nb34AKoiPztLrrZicDQo=; b=UUsCR2fk/z34++HZ7sNstctF6Zw3XDAGr/1T0ASHHd+DSJUFhRDcMTvOcaAH4bpdXA fR85iMB0K9jt2RLNYdb72UfyKevUU21DIzQIvBO7LgWugSpkvELDLZK2O+7f+pExBJPd 1ZpfLEbBg4HnRMz21GIkDP5Tq1QOST3nMAU9eGLtmauphVZMxsrfYB+HiTGLpFIytqVm 9w2iqqNmdKgVEHbZMTJl0//DW+hKJEGgEziZAqOx6qqXeNaTOHKSyW2/+X462qaPW5Da L3u0V1ZbgPofzbSW0x86Xf4j6/whG2Tzb+cBA4/BerXqDNcnqLoy2zT9x7mef6zsVflD 3tiQ== X-Gm-Message-State: APjAAAWoBN/aO6qIyl3FPj51MQQIk0/TxSlAuxB1uR4JwQPtAAHgv3rV Cj0Kbnjz2HVGm2I8PSPemaRCCN5lvk2coA== X-Google-Smtp-Source: APXvYqxHOxyU9+b2rjbHAqGJQ/hSstDSEo6gyGLG+vWbB64GWDcr2WN0vg19EpzwLzrUurGs+q8xQw== X-Received: by 2002:a1c:8a:: with SMTP id 132mr19189066wma.44.1560782077170; Mon, 17 Jun 2019 07:34:37 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 17 Jun 2019 15:34:09 +0100 Message-Id: <20190617143412.5734-22-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190617143412.5734-1-peter.maydell@linaro.org> References: <20190617143412.5734-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 Subject: [Qemu-devel] [PULL 21/24] target/arm: Stop using deprecated functions in NEON_2RM_VCVT_F32_F16 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Remove some old constructns from NEON_2RM_VCVT_F16_F32 code: * don't use CPU_F0s * don't use tcg_gen_st_f32 Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20190613163917.28589-12-peter.maydell@linaro.org --- target/arm/translate.c | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index 2ba620ac1e1..8f124a953b6 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -1542,8 +1542,6 @@ static TCGv_ptr vfp_reg_ptr(bool dp, int reg) return ret; } =20 -#define tcg_gen_st_f32 tcg_gen_st_i32 - #define ARM_CP_RW_BIT (1 << 20) =20 /* Include the VFP decoder */ @@ -6460,20 +6458,18 @@ static int disas_neon_data_insn(DisasContext *s, ui= nt32_t insn) tmp =3D neon_load_reg(rm, 0); tmp2 =3D neon_load_reg(rm, 1); tcg_gen_ext16u_i32(tmp3, tmp); - gen_helper_vfp_fcvt_f16_to_f32(cpu_F0s, tmp3, fpst, ah= p); - tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 0= )); - tcg_gen_shri_i32(tmp3, tmp, 16); - gen_helper_vfp_fcvt_f16_to_f32(cpu_F0s, tmp3, fpst, ah= p); - tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 1= )); - tcg_temp_free_i32(tmp); + gen_helper_vfp_fcvt_f16_to_f32(tmp3, tmp3, fpst, ahp); + neon_store_reg(rd, 0, tmp3); + tcg_gen_shri_i32(tmp, tmp, 16); + gen_helper_vfp_fcvt_f16_to_f32(tmp, tmp, fpst, ahp); + neon_store_reg(rd, 1, tmp); + tmp3 =3D tcg_temp_new_i32(); tcg_gen_ext16u_i32(tmp3, tmp2); - gen_helper_vfp_fcvt_f16_to_f32(cpu_F0s, tmp3, fpst, ah= p); - tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 2= )); - tcg_gen_shri_i32(tmp3, tmp2, 16); - gen_helper_vfp_fcvt_f16_to_f32(cpu_F0s, tmp3, fpst, ah= p); - tcg_gen_st_f32(cpu_F0s, cpu_env, neon_reg_offset(rd, 3= )); - tcg_temp_free_i32(tmp2); - tcg_temp_free_i32(tmp3); + gen_helper_vfp_fcvt_f16_to_f32(tmp3, tmp3, fpst, ahp); + neon_store_reg(rd, 2, tmp3); + tcg_gen_shri_i32(tmp2, tmp2, 16); + gen_helper_vfp_fcvt_f16_to_f32(tmp2, tmp2, fpst, ahp); + neon_store_reg(rd, 3, tmp2); tcg_temp_free_i32(ahp); tcg_temp_free_ptr(fpst); break; --=20 2.20.1