From patchwork Wed Jan 29 01:38:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 860656 Delivered-To: patch@linaro.org Received: by 2002:a5d:6b8c:0:b0:385:e875:8a9e with SMTP id n12csp648508wrx; Tue, 28 Jan 2025 17:43:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXn+hRUrsmgcToiBWJwT2cLIOnnjYypBylVub5vM6MBlu2BiRadwTn8T2hNCTK//rj1gvoyrQ==@linaro.org X-Google-Smtp-Source: AGHT+IGj9WUH4nJyRcezJ69tDMBDbWhrc/GCYUOShvtzWqv+PAgwFKbmmaql/+iptyn05a3o7DqX X-Received: by 2002:a05:620a:44cc:b0:7b6:d089:274c with SMTP id af79cd13be357-7bffcd0ea49mr191437285a.34.1738115033904; Tue, 28 Jan 2025 17:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738115033; cv=none; d=google.com; s=arc-20240605; b=QornLIjSUyu4sF0x/gDsF4wdUYhRe00MXmvoANpwEqK+xAxT4GUyET7u35JTr8OmmO 8EDNfTUK5mkyCmNYtVs3Gm1CrpkPMkV8JsGgU+YmduKO/bUzzHCsztSZyMVSOYetOrP+ 7156Ojp8Fw8z9UtnZAMIjIKt9zdRtCIU0OXabM1egvFTYQL4q7k5vY7emFt/q8ki9GUK FV/xPQut3L6cZm80ype9WyCSRFeVjfqBL/Ax9FfnIghR2dsa621zZVu/vJoL90zyEW7d Vsa1Wjzldzd63xzc8cAbwuixyGjvyGgAdCwAU0qdy4jsch1m0lrFtivW47DMmJ7xGRc7 SxJg== 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=N9C9MHfxTmFfsV2AIVVMljAT4X/LA6EAwI6JuJhSI5E=; fh=UQCixiNfr28ZOrfhmxiGPA65dFhly8CmRsnoYC6xI9k=; b=Bh67RBlsLqPoC5x5pJIECPymtyyB6q2JWb8K5XdmDfoig1ipWLBDi4tNJMzEq0yqCd ITETk6Ktc6s/tYYZtqo7kLlM4zf+h/K/76+2KKKYXbfeOOahTwSxcr7uJrevG/fe8a3h F/t6FNNMCaAVmBJxVF2xOmMi9M8zPAqXHv0VTCgkzEMimOu9wBsZEuLupzFj8K0c0P4I 6J2say6AT0R8KkAUJ+4ci/8TNu/BgA/oG84wKAZ/vIEa3Ye716at+zTfVnurpGxcedwh s+Rk92YOIFBS/sIWfM7/Af5A6oZm9KlO0KV1Tzp6i2LgQ3jP8Kx003NRlsU0zs5OkDgI fzSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hd7jcJ5c; 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-7be9aeebfbasi1403938485a.332.2025.01.28.17.43.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2025 17:43:53 -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=hd7jcJ5c; 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 1tcx2x-0000sA-Ex; Tue, 28 Jan 2025 20:39:15 -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 1tcx2u-0000q3-Op for qemu-devel@nongnu.org; Tue, 28 Jan 2025 20:39:12 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcx2t-0003X4-8c for qemu-devel@nongnu.org; Tue, 28 Jan 2025 20:39:12 -0500 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-216728b1836so104439885ad.0 for ; Tue, 28 Jan 2025 17:39:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738114750; x=1738719550; 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=N9C9MHfxTmFfsV2AIVVMljAT4X/LA6EAwI6JuJhSI5E=; b=hd7jcJ5c7wo3JRb+IbBBpq+7E0MDelD/rhMtjhFY2tFiP31mmYu7yNnZly6XGQszj/ 76qQH6N2UxpWOfyooK6NOrltu7x467z6RrzsSxIHaTax6Smv9DVtuZVgEc1VZ/G9SRdJ 92oICvIKZebFGLQfUV6JfhDj+oFBW0N/tNiysdgYorMZ/W5SshJ3N00rahz0Kj4+cA4f EVCRB+rJiAOOkj7dTP1+NFBgP5l2dpBLNGKZwaRjxeZPmT5nshM2iIUuzF9jYcl648Br NNp5ZNyWpxJwQC+SDHHtAY0RMOiIpFU6T+X872IaCa+03Kve48MEsP5JgYN4Eb2HhNhJ 24JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738114750; x=1738719550; 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=N9C9MHfxTmFfsV2AIVVMljAT4X/LA6EAwI6JuJhSI5E=; b=CL1zgI2Ggt5npLXKSoRy7jDSgbX/pXtQ/gjV/kGF9V48EZV40vzdUgXIiCIu1O+DPf C/nIRFpWBJ93MXcrxsSySwI9k7T5TX8uSAbMahr6EU8DwPNaXg/WXXppz469MCh7Ve3n +VK1Q0hyBoOs4zpYYLrFk2Ye/GiWCE8R3kQSnR4qOAbhcnMYKSQkvEQCwzBnlIjg+ij0 wvngb2+sQ+BBlfK5CTmE6fjZGwEflZBAaI0/O/dyo2SesDegulBFD3roCclxtWSWT1q9 6IfKkMjfn8tPAi/NelXbwganYb2y4pkHLHnRUjDElXlmtL0xBam3087HKzGLNpIzCW3T 8eHw== X-Gm-Message-State: AOJu0YzZpaelSNhzHVwdyT86G3U7I2EGpraZi55uUOKd3HLeR0VVARoP scwZIdixDDoC/WoLcFipa2GLkOzvna13bKRw/jktdYGvanUtNvUFLjCgHOu250HPtS2X2QjmOXU q X-Gm-Gg: ASbGnct7bu4CnrB/z2FFbM8n4rVXiXYZn2xEKSbLLKH01LiOOxfBTOJ4Lc5pEtDiA/X I4DEXqLcxwpnyflBxgkrWZRj6CtksBSjqsplIt3fHDEGpbVU0X/LY8uuhJDkV4g/mEudKC6wsmP rSzLvjgfHdMwuarBubKOrQshF9NSSyOYMv3DnRArJkH74r9kMMva0JpOG1rJQVBt/ukm69HBjUk 2Gb3SoKs+ZS/4BzXYmdmvIPlMK6oZYFrBDIMK3J5yEeKc/CGGwQM/pHAxom8AiROT4T/6VM02v4 5swcVzFmj4XcgZvWZ0NuirQcKLTG6iZ7aF3sWyBzMgb9j96YYg== X-Received: by 2002:a17:903:2406:b0:216:728b:15d8 with SMTP id d9443c01a7336-21dd7d7b0fcmr18423825ad.30.1738114749847; Tue, 28 Jan 2025 17:39:09 -0800 (PST) Received: from stoup.. (71-212-32-190.tukw.qwest.net. [71.212.32.190]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da3ea4200sm89341745ad.88.2025.01.28.17.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 17:39:09 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PATCH v2 16/34] target/arm: Simplify DO_VFP_cmp in vfp_helper.c Date: Tue, 28 Jan 2025 17:38:39 -0800 Message-ID: <20250129013857.135256-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250129013857.135256-1-richard.henderson@linaro.org> References: <20250129013857.135256-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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, T_SCC_BODY_TEXT_LINE=-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 Pass ARMFPStatusFlavour index instead of fp_status[FOO]. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/arm/vfp_helper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/arm/vfp_helper.c b/target/arm/vfp_helper.c index a2775a2e8d..4e242275e7 100644 --- a/target/arm/vfp_helper.c +++ b/target/arm/vfp_helper.c @@ -487,16 +487,16 @@ static void softfloat_to_vfp_compare(CPUARMState *env, FloatRelation cmp) void VFP_HELPER(cmp, P)(ARGTYPE a, ARGTYPE b, CPUARMState *env) \ { \ softfloat_to_vfp_compare(env, \ - FLOATTYPE ## _compare_quiet(a, b, &env->vfp.FPST)); \ + FLOATTYPE ## _compare_quiet(a, b, &env->vfp.fp_status[FPST])); \ } \ void VFP_HELPER(cmpe, P)(ARGTYPE a, ARGTYPE b, CPUARMState *env) \ { \ softfloat_to_vfp_compare(env, \ - FLOATTYPE ## _compare(a, b, &env->vfp.FPST)); \ + FLOATTYPE ## _compare(a, b, &env->vfp.fp_status[FPST])); \ } -DO_VFP_cmp(h, float16, dh_ctype_f16, fp_status[FPST_A32_F16]) -DO_VFP_cmp(s, float32, float32, fp_status[FPST_A32]) -DO_VFP_cmp(d, float64, float64, fp_status[FPST_A32]) +DO_VFP_cmp(h, float16, dh_ctype_f16, FPST_A32_F16) +DO_VFP_cmp(s, float32, float32, FPST_A32) +DO_VFP_cmp(d, float64, float64, FPST_A32) #undef DO_VFP_cmp /* Integer to float and float to integer conversions */