From patchwork Fri Dec 6 03:12:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 847822 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c2:0:b0:385:e875:8a9e with SMTP id f2csp570090wrt; Thu, 5 Dec 2024 19:14:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUI+fT5aDVgEc7+K0U1YPsLTjdy/TTcUk+sFLaP9UEJ8xu0GlEXpD5JK9eMAwJa9jQ+yBjCuA==@linaro.org X-Google-Smtp-Source: AGHT+IHf/BITf13Aaor/So0KnV4ngBgmIHXyXPCvFFHc/JJfOC7BYMjJ29r0YNgUtMET9ndbjJfD X-Received: by 2002:a05:620a:24c5:b0:7b6:6ce8:818f with SMTP id af79cd13be357-7b6bcbb3480mr202874985a.61.1733454879836; Thu, 05 Dec 2024 19:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733454879; cv=none; d=google.com; s=arc-20240605; b=lc24JLVNgLPR9OckzSvkbjVm66kl4b7Bjk/qyIP8zmkkeXBHZDlxybjC/z9hblF7/W 8y/V/k2tmmfuuQQKz/lpQOkF2WY8Z+uexF8FSWfatWQzfBQ+1JCSm3265EMsSNoRXJ6H FGm9BejVpsuu+YnPIPEtvgKjZny2lPKHRa1juWiB7/gNFEys+4p3Js0WBqDUfI2f8oXE QYfbK5hxLrbyROoUI/ENYUuGBvPfyBaVbCs+K7Ao33TWzcENnROOXs0ihWFk4jePELTi dgmyRLGmAnxXH6m4VM6ys+C16uU+0ZopC7OezuqJ+0SiwR5ysyz6dMvFORNza/L7HB23 cmeQ== 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:cc:to :from:dkim-signature; bh=7dGWprqAXOmm+0OGOUE5FTt7v9zxqhHfWAdJSXgLsVU=; fh=9Ev+QBUhk6P6vR3LT1wYeDLexozsz44nqjfoyPajZCc=; b=j9WWUuaEoJ1qIfSdV0hd/fcnfu5IqB1ki/UZFEF5yXet8fxtVYNN6fIa6/QXajNUdV 5BEL+zO4gY8/xxyrkOvqmm35PyMh5yDZCGotJjuqybl/nVhk2rgN2PKZbKWMAL7keLnO XFLtjYg+4tyftplS0caLwV9n1Gshjlp6ef4GAZdCMAlRrUvaV1iy7PlGeY1yYW60WMt+ GFly3ofFpxn6YOUhSqTRuE+eeHlCOhoGu61yrbJx7QOVdpHPxKj+Z3IlM9zLXyxNPzKw ppsH4GVQ7/pq33AsyR08pq6DyAhqwZGsVFmlZfg0CjvAVuwDViy2y7rowhjo0f9A40rE ePyQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=txqoO+y+; 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 af79cd13be357-7b6b5a855desi338257285a.325.2024.12.05.19.14.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Dec 2024 19:14:39 -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=txqoO+y+; 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 1tJOlp-0006rX-2X; Thu, 05 Dec 2024 22:12:45 -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 1tJOlm-0006pV-Cq for qemu-devel@nongnu.org; Thu, 05 Dec 2024 22:12:42 -0500 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJOlk-0004SY-Gt for qemu-devel@nongnu.org; Thu, 05 Dec 2024 22:12:41 -0500 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-71d5ef7daf1so870357a34.1 for ; Thu, 05 Dec 2024 19:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733454759; x=1734059559; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7dGWprqAXOmm+0OGOUE5FTt7v9zxqhHfWAdJSXgLsVU=; b=txqoO+y+y9BE2qPNgoJeSOpFBzyeniSt0iG2OlnXrmQxXhP4xnk1vf6Zp1mPxQiYV/ ki32bE4op5iAKo9p4VtXVpRZ73hVXSrpwznmR7LIy1qWlTRUAhxfKIerpujsHHG7mf3H S6n+bsyXqRk9UD8wbZ3BdaONYabT/nvRqEOuLg73b8i2GeNdGZ6I6sz2E1rRfgSJzVnL 6IaAYwlOrPN5JnAor1edO+zS7e3+jqRQHUxrBC4sJoXL9Y/5uti56mna5ExGKYJPYs2a Geac443QaqGqf1sxC0gM0vKWyUQWkRQkinjUSSs8HqEIH5n1VfiVeiVjU/uCACWoSo5J 7jOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733454759; x=1734059559; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7dGWprqAXOmm+0OGOUE5FTt7v9zxqhHfWAdJSXgLsVU=; b=l00T/Ur+kjNjiL7Pv3XsMnLJZewF6WEw346cUPCI9cSuXzdD98iAXt5NCkfB3lmn5F 1KqHeGzylOyG9IoNzKRlnzp4yJ8ycisVKmEHHikL59me2llYlYg0TlgePg7TNt+lAatT eh60erYLEuTwZ23n/CwcMJLuSP5F8OtRDnVEfpfFm1/Onqzhvtfemrxs+FmFpHu6ozra dUfoJ2mp1zxqHopg9bIMdJ/Ihzfzdgv3p0xkEpgsC7KHaE6SBal4JBw/esHhWZ8XBM6N ThuefO6L3+BkukmYdObs+5FJgWwMVzkmsTHul5XApPtLy1vE/HTqk/Ilk6moRSdIqmGw i6Pw== X-Gm-Message-State: AOJu0YznBs6STE1y5u+0HzPkwnK3wQ38XKDzHx+N4x1D0nTgIqr3hidr /W2K2fmGYl/cfFatZsuVeK11QdG4TSIBzRwVSgLBw2FFYmIpc/cmNW+iSMiuZNx3I9LF7LcvqGb E7IARwub8 X-Gm-Gg: ASbGncu+yvPWWhYU/aE5DrsVV/nQCX/9arqNPy2dxOX0idabGi9JX7UuoBrbHWGs2D/ obhTc4g2Do/gB2ckD9Nyz/T7fm2Lel01mDShssh6onOUH/eCJgu0aSWWYzvxz+7kWENpgJRpdq5 uCUcnr2GHapVP/THC0qlv4sF/wTgGLBBIZbZ2OOZgmMWYgw5DRBK6fuwOFmaCY/cYw3F8J6J0Ky tET2cVfuy06ONMhfGyKxixNTJ60tKIcwAqit6koKYILp+uhWwNpJNPb68Z2jdoTuSV7BJm9TMnm cZ375P55g/382p3ga1Dfs4UuyH5FURjlkZbe X-Received: by 2002:a05:6830:4995:b0:718:9d30:3c5a with SMTP id 46e09a7af769-71dcf4bf7bcmr1875863a34.2.1733454759097; Thu, 05 Dec 2024 19:12:39 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-143.totalplay.net. [187.189.51.143]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71dc493b2dfsm596442a34.9.2024.12.05.19.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 19:12:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 7/9] target/arm: Convert sme_helper.c to fpst alias Date: Thu, 5 Dec 2024 21:12:22 -0600 Message-ID: <20241206031224.78525-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241206031224.78525-1-richard.henderson@linaro.org> References: <20241206031224.78525-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x331.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, SPF_PASS=-0.001 autolearn=unavailable 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 Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/tcg/helper-sme.h | 4 ++-- target/arm/tcg/sme_helper.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target/arm/tcg/helper-sme.h b/target/arm/tcg/helper-sme.h index 59ecaa1548..858d69188f 100644 --- a/target/arm/tcg/helper-sme.h +++ b/target/arm/tcg/helper-sme.h @@ -123,9 +123,9 @@ DEF_HELPER_FLAGS_5(sme_addva_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32) DEF_HELPER_FLAGS_7(sme_fmopa_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, ptr, env, i32) DEF_HELPER_FLAGS_7(sme_fmopa_s, TCG_CALL_NO_RWG, - void, ptr, ptr, ptr, ptr, ptr, ptr, i32) + void, ptr, ptr, ptr, ptr, ptr, fpst, i32) DEF_HELPER_FLAGS_7(sme_fmopa_d, TCG_CALL_NO_RWG, - void, ptr, ptr, ptr, ptr, ptr, ptr, i32) + void, ptr, ptr, ptr, ptr, ptr, fpst, i32) DEF_HELPER_FLAGS_7(sme_bfmopa, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, ptr, env, i32) DEF_HELPER_FLAGS_6(sme_smopa_s, TCG_CALL_NO_RWG, diff --git a/target/arm/tcg/sme_helper.c b/target/arm/tcg/sme_helper.c index 8cf12654e5..a0e6b4a41e 100644 --- a/target/arm/tcg/sme_helper.c +++ b/target/arm/tcg/sme_helper.c @@ -904,7 +904,7 @@ void HELPER(sme_addva_d)(void *vzda, void *vzn, void *vpn, } void HELPER(sme_fmopa_s)(void *vza, void *vzn, void *vzm, void *vpn, - void *vpm, void *vst, uint32_t desc) + void *vpm, float_status *fpst_in, uint32_t desc) { intptr_t row, col, oprsz = simd_maxsz(desc); uint32_t neg = simd_data(desc) << 31; @@ -916,7 +916,7 @@ void HELPER(sme_fmopa_s)(void *vza, void *vzn, void *vzm, void *vpn, * update the cumulative fp exception status. It also produces * default nans. */ - fpst = *(float_status *)vst; + fpst = *fpst_in; set_default_nan_mode(true, &fpst); for (row = 0; row < oprsz; ) { @@ -946,13 +946,13 @@ void HELPER(sme_fmopa_s)(void *vza, void *vzn, void *vzm, void *vpn, } void HELPER(sme_fmopa_d)(void *vza, void *vzn, void *vzm, void *vpn, - void *vpm, void *vst, uint32_t desc) + void *vpm, float_status *fpst_in, uint32_t desc) { intptr_t row, col, oprsz = simd_oprsz(desc) / 8; uint64_t neg = (uint64_t)simd_data(desc) << 63; uint64_t *za = vza, *zn = vzn, *zm = vzm; uint8_t *pn = vpn, *pm = vpm; - float_status fpst = *(float_status *)vst; + float_status fpst = *fpst_in; set_default_nan_mode(true, &fpst);