From patchwork Fri Dec 13 17:32:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 850205 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp1643407wry; Fri, 13 Dec 2024 09:45:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWncfmAdL4vAZyI8s+3U97n+yz8f0R7DJkQixXxx/R19sTFQzWMbDWt2igzlq+TT9r4Gcfr6Q==@linaro.org X-Google-Smtp-Source: AGHT+IFIyJJUXukqd0UOu6TdomqHG+//p5pC62TjfxWKq1yRurDtril3P9DizHOsma3pL3OmLVNL X-Received: by 2002:a17:907:9812:b0:aa6:997c:94e8 with SMTP id a640c23a62f3a-aab778f71b5mr357200366b.15.1734111946459; Fri, 13 Dec 2024 09:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734111946; cv=none; d=google.com; s=arc-20240605; b=Old7A+NuWcSe4dLns4pGjGXMGmh52gXd0T4PZnF2uYjg5gwkFXANMPf0KtGlk/kJav 2+Zn141QM0FpZYk+FuEj5Hf092plPlGRIo3G30QFJSccpXMCY6igO85qnCN6M76QVuXz lk7n2NAh0N+p734Yn2Gz1Aky3Z9g3tWWOhSb2Gdbfdn3xrfLt7m8EVvVJs3OGD40Z9AQ HmQANKu1AU+WRgOUqibgRfNWFtdRg/O43zxryoEXaIhiuGv/bK7OG9fqkEgEJc7EQgvm XTfSMml2kcuvF0I52cx18J3EtggUq6vB01j3aZKB0bAzNNtGrpAX6w1LxfvX/+dBZXmi Qv+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=S5Wm3RpvNF8IYsHZpf+XJ72p8A+XwA+4f5r+Dvitclo=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=PaJPiz2OnKgNwRZiNJ36Dcm0e5KhxQyeuHUsV1hupqKCm6i8k74nW4zeR8hcwEAdY5 tXPuq17KAEhodR5R4UIdYwGHUued0q+Ybx0r84082gpi98vFepB49OYcIclWpLrN+GWJ rU04LXHPgEWX9R4k8C5q1IzRPiq+OZfAtIu2cGwLUwlhlCHUYFWLXf9ZxjWJlDq98RpC h+PHCsJ7lpuedS9W5CHqBpATIrI5JKTnoKUw8PzN/dvbSapocnypoaIeQdzp4WNwgLFh IvQBX6rGx+0wMWs5citdg8XTaPf/URC/NfeyMp6pnDTevx3eDQQIjPqmRM68mRYaC/oO TsQw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vMQeWv9R; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a640c23a62f3a-aab77f5f5bfsi146615566b.669.2024.12.13.09.45.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 09:45:46 -0800 (PST) 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=vMQeWv9R; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM9ZM-0006Cn-Tv; Fri, 13 Dec 2024 12:35:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM9Xs-00086L-0v for qemu-devel@nongnu.org; Fri, 13 Dec 2024 12:33:44 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tM9Xl-0001hF-VG for qemu-devel@nongnu.org; Fri, 13 Dec 2024 12:33:42 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-385ef8b64b3so1689811f8f.0 for ; Fri, 13 Dec 2024 09:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734111216; x=1734716016; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=S5Wm3RpvNF8IYsHZpf+XJ72p8A+XwA+4f5r+Dvitclo=; b=vMQeWv9RM5lzj9to/AtvHw1AycCUJ1HDhie+6crPm3lW3LrLviGN/lwCx8Ea7LylRw ArY7aXM9qrOTYB9y4I2P0a+cT/jBOW5k4Qo6o9p9h/SK3b1h9ibjk3ulnkyleR/C32UA /6dSnDc0552f+YkqmeAMF3zAGCNba43PtwOq+Bufilstb+yhssgieoLiCfJtPfwFuADO LwvrJLdQe6o66eqVG5OZtiAj17boA+ztUi3oYuw0s5mq4Dg577z+OAqutOxYEpYlUiNG f7BaSIxmjajlNRHko20R5dIC4uBiFn6tZypJ1Q8Zeu/J1nrG5NZN0djz6aqeAxjO4e0E SMTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734111216; x=1734716016; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S5Wm3RpvNF8IYsHZpf+XJ72p8A+XwA+4f5r+Dvitclo=; b=tMueYpUyHa+5Q2d6J0mwabPfdBxzdZBVG96jJcGdLVPFCabBaxu606373dAsAzs1mu k3ctuR78TSJxylOz/Quw0ROmm3Ae/87kLh+hLaLBDUmHxw+IEBLSx9yuqqHlfXodtZEt FadJvM8ZdVykKfItMr9l6GfIS6bBQ8oUXCzBBnHCZjsfzYwBQrdxvf0bsCX0l1gKU37n LF6PDBdDwa/YWFtoOCcTGc9njG0R4JHmaJoprrXqJROzriYOfB8gc0JKE5IQjFysAjU3 iYx6TZZnQWgPumAb8ZNCYST0SFC4vZU+UVjG02HwGAuc1rXGNsVxBX/1Cx0liZkOAOnc 9rqw== X-Gm-Message-State: AOJu0YwMNGjFMCRBBcI3fGMUty1fzFxZcuiMD/0evu0FtYjcXWexNVfQ bfUzegRwzr7uipDl4iDNvL+j8Ut8Wkh+Xqi16SbJVsvnuBbahJZsbA8ev8yh6ir7wOVkh4pGSnC i X-Gm-Gg: ASbGnct2BhCjY03vJNYWRKPfKGqaFtYt5KKn7TMgbIONrVVQPMvnGDhC8HqNiOYabNV RAIb9aVqbESAW39NU2444aVwfbOEe9cbeAm3mi/swGPfxEFcblzXw/aTsihhBqaODjvbzHRfjee yGoNgXRphVL0vdu2n82vYqfagKXnNjFPBIBslQIdGQUffOPYR9PKkzQGXrY3JTj8rZHwnnLqCgi 8RMvA5ylsbJBIPgbFTcHMAKp8eCUd5PC4o1iHM4Q+Lc5iSmyjwWdVqZT8KJ8Q== X-Received: by 2002:a05:6000:1a8a:b0:385:f89a:402e with SMTP id ffacd0b85a97d-3888dcd468amr2911417f8f.14.1734111216530; Fri, 13 Dec 2024 09:33:36 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c80162ddsm87026f8f.37.2024.12.13.09.33.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 09:33:35 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 61/85] target/arm: Rename helper_gvec_vcvt_[hf][su] with _rz Date: Fri, 13 Dec 2024 17:32:05 +0000 Message-Id: <20241213173229.3308926-62-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241213173229.3308926-1-peter.maydell@linaro.org> References: <20241213173229.3308926-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.google.com 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, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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-bounces+patch=linaro.org@nongnu.org From: Richard Henderson Emphasize that these functions use round-to-zero mode. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20241211163036.2297116-62-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/helper.h | 8 ++++---- target/arm/tcg/translate-neon.c | 8 ++++---- target/arm/tcg/vec_helper.c | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/target/arm/helper.h b/target/arm/helper.h index 04e422ab081..f2cfee40de3 100644 --- a/target/arm/helper.h +++ b/target/arm/helper.h @@ -650,13 +650,13 @@ DEF_HELPER_FLAGS_4(gvec_touizs, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_4(gvec_vcvt_sf, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_4(gvec_vcvt_uf, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) -DEF_HELPER_FLAGS_4(gvec_vcvt_fs, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) -DEF_HELPER_FLAGS_4(gvec_vcvt_fu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) +DEF_HELPER_FLAGS_4(gvec_vcvt_rz_fs, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) +DEF_HELPER_FLAGS_4(gvec_vcvt_rz_fu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_4(gvec_vcvt_sh, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_4(gvec_vcvt_uh, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) -DEF_HELPER_FLAGS_4(gvec_vcvt_hs, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) -DEF_HELPER_FLAGS_4(gvec_vcvt_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) +DEF_HELPER_FLAGS_4(gvec_vcvt_rz_hs, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) +DEF_HELPER_FLAGS_4(gvec_vcvt_rz_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_4(gvec_vcvt_rm_ss, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_4(gvec_vcvt_rm_us, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) diff --git a/target/arm/tcg/translate-neon.c b/target/arm/tcg/translate-neon.c index b9b3d1c1fbc..f9ca889beca 100644 --- a/target/arm/tcg/translate-neon.c +++ b/target/arm/tcg/translate-neon.c @@ -1409,13 +1409,13 @@ static bool do_fp_2sh(DisasContext *s, arg_2reg_shift *a, DO_FP_2SH(VCVT_SF, gen_helper_gvec_vcvt_sf) DO_FP_2SH(VCVT_UF, gen_helper_gvec_vcvt_uf) -DO_FP_2SH(VCVT_FS, gen_helper_gvec_vcvt_fs) -DO_FP_2SH(VCVT_FU, gen_helper_gvec_vcvt_fu) +DO_FP_2SH(VCVT_FS, gen_helper_gvec_vcvt_rz_fs) +DO_FP_2SH(VCVT_FU, gen_helper_gvec_vcvt_rz_fu) DO_FP_2SH(VCVT_SH, gen_helper_gvec_vcvt_sh) DO_FP_2SH(VCVT_UH, gen_helper_gvec_vcvt_uh) -DO_FP_2SH(VCVT_HS, gen_helper_gvec_vcvt_hs) -DO_FP_2SH(VCVT_HU, gen_helper_gvec_vcvt_hu) +DO_FP_2SH(VCVT_HS, gen_helper_gvec_vcvt_rz_hs) +DO_FP_2SH(VCVT_HU, gen_helper_gvec_vcvt_rz_hu) static bool do_1reg_imm(DisasContext *s, arg_1reg_imm *a, GVecGen2iFn *fn) diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c index 91a9130641f..ec6b640fdad 100644 --- a/target/arm/tcg/vec_helper.c +++ b/target/arm/tcg/vec_helper.c @@ -2507,12 +2507,12 @@ DO_3OP_PAIR(gvec_uminp_s, MIN, uint32_t, H4) DO_VCVT_FIXED(gvec_vcvt_sf, helper_vfp_sltos, uint32_t) DO_VCVT_FIXED(gvec_vcvt_uf, helper_vfp_ultos, uint32_t) -DO_VCVT_FIXED(gvec_vcvt_fs, helper_vfp_tosls_round_to_zero, uint32_t) -DO_VCVT_FIXED(gvec_vcvt_fu, helper_vfp_touls_round_to_zero, uint32_t) +DO_VCVT_FIXED(gvec_vcvt_rz_fs, helper_vfp_tosls_round_to_zero, uint32_t) +DO_VCVT_FIXED(gvec_vcvt_rz_fu, helper_vfp_touls_round_to_zero, uint32_t) DO_VCVT_FIXED(gvec_vcvt_sh, helper_vfp_shtoh, uint16_t) DO_VCVT_FIXED(gvec_vcvt_uh, helper_vfp_uhtoh, uint16_t) -DO_VCVT_FIXED(gvec_vcvt_hs, helper_vfp_toshh_round_to_zero, uint16_t) -DO_VCVT_FIXED(gvec_vcvt_hu, helper_vfp_touhh_round_to_zero, uint16_t) +DO_VCVT_FIXED(gvec_vcvt_rz_hs, helper_vfp_toshh_round_to_zero, uint16_t) +DO_VCVT_FIXED(gvec_vcvt_rz_hu, helper_vfp_touhh_round_to_zero, uint16_t) #undef DO_VCVT_FIXED