From nobody Sat Apr 5 15:23:33 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1738020547; cv=none; d=zohomail.com; s=zohoarc; b=LXPTrhR86kA+jDRpKumEfzbfdbL7dJgPzpzRI7Ktwn5UGGTjGeJ1QP/GqsUU78XMb9blj6oBJwGTfshSWyFQIvz4ZeO72E2xkPUBCag36y27Lorw4MnU8XnCsWmHsZythaOwKT187VRtvLD+826nyKsoByHQIVEWwtb7qGWwGmg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1738020547; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=p8BKUORijGQS50f4GtdAn/sy3ElbIpcuj5zDOx8ZwZA=; b=QY8kBxTtuoWLjiaPVvFl//M4DWr4FBUcRjCuFEjqn0C2YJYOOO5d0mjgw35sYAJxKtYO5HIPwg7J2dD84CL+b1ck+tOVq6zKXw4yugsTcKhTQ/o52VrEThQx3Gi13F1ylERRL6KwTPwxTbwOchRODu5xGa+O7zdqGvmWqBDuq1o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1738020547373180.29923578858302; Mon, 27 Jan 2025 15:29:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tcYV3-0006bT-Vy; Mon, 27 Jan 2025 18:26:38 -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 1tcYUq-0006RW-Q7 for qemu-devel@nongnu.org; Mon, 27 Jan 2025 18:26:24 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcYUo-0005di-J5 for qemu-devel@nongnu.org; Mon, 27 Jan 2025 18:26:24 -0500 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-2ef72924e53so8596034a91.3 for ; Mon, 27 Jan 2025 15:26:21 -0800 (PST) Received: from stoup.. (174-21-71-127.tukw.qwest.net. [174.21.71.127]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f7ffb1b31esm7833000a91.47.2025.01.27.15.26.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 15:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738020381; x=1738625181; 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=p8BKUORijGQS50f4GtdAn/sy3ElbIpcuj5zDOx8ZwZA=; b=dIbGkUQOx1eDZI1o8T0KzdGViWUXXrVXDMKr2VW6YHi1hwzKvJNmGMnLX4Qvk9Ha3K pVqwfOZ9n2Vz1damJyPIVRF8H2s7RFW/H2ZMIR5pQerWG8DRvUQ7IhJCBdcg2XKr51ex A+WQhYBrvu0DWnmNrOWK7l5uydJakA8wVB25t3RAdHaEjwbOMP6DdNvS8S5wMJxSgt2D LFbbccd9MFDXOc0MOysipqBLGFU4yQJrobVxq0oWVS/HeXU/a1TYGyEooJbNvcaDzXfM UPejnNXh5rutiijbFZeGppJhw+yKSJ7G4ewmcuxgkvWGCvMAhmOrHJ8mYIFqm5kqc+1Y 0oMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738020381; x=1738625181; 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=p8BKUORijGQS50f4GtdAn/sy3ElbIpcuj5zDOx8ZwZA=; b=Qj8oqPFJrfiMS5lcu1sAr55zUO9CL9+WQxD24lWcrPY9ZNW/A4CegrHKcdpruvliYT 8KES3UnPKMUAQ+iqgSnp0ZNvwxEwQ/ObvHdY7d8Ob9i74UjVM8f8w+ZikJrxQtiZm+U7 aPQcoq6gLmreTpDNI0c1sHA+gGUYIUnWcHjSDJz5ASZySFuiSUzAVLiaHG+YcmAkd7Vf i9XVGvjd86ZhGjf48PCtgBjA7gauvYA8KIZbzRF8/T6eGSVDyU8gl+7GnJCIgEfuQEkz FwsHTNRH1NhTgP8ppNOQQtp3bNgZljHtUr1nkahsBJp/ndV8lurQQTzSXOl7jKSwpYJj kNZg== X-Gm-Message-State: AOJu0YxpKSU3yvm4Gf60d4sh90GrrDivKxAaru/2lPzmRo9EMuBXssj7 kg53p9glfp5TjxR3+suioBbExFLYk967Km4FZKEFgRdpZLiFbNcDv3eMD0vuDq4p1kBkoheYrMB W X-Gm-Gg: ASbGncsJ5fiVdZ+81uB7WE3KYz0alcp7GESJ7+kLi8cg5SjeS5amfcTj6vXGuc7QV6p iaST8qUfXhu/yd6mwKyGVmyvYX9k5YF2eyqMmbvy+IwMBmTRjy38VANkuDOpTG0zz0fSW2iFIMB toogcz3cdYBkb39auCb9bAyzAkZpEI9c9a65Z+MAqHOK7fvaEf0/l7BeAl+PitjelqoKyNV0ZBs xJy92O/3glpwy1MuH5dd/ZK80yshgB9ZmQvmILI+AXXYbdhe0KT10fQfnRYfZIcIoZBgJv1OJyB /8PIfhymf3pfJvMfPKwgIAvELwaEt3FMdraQP/M= X-Google-Smtp-Source: AGHT+IFyDaDecV2Yn0z9hAxdKF6Dqnt5vuymWmmAWlB97vLMQm1UnLPF6h+es7QkrUhFPDnmkpDanA== X-Received: by 2002:a17:90b:53c6:b0:2ee:fa0c:cebc with SMTP id 98e67ed59e1d1-2f782cb690amr63804771a91.20.1738020380898; Mon, 27 Jan 2025 15:26:20 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Subject: [PATCH 19/22] target/arm: Use float*_maybe_ah_chs in sve_ftssel_* Date: Mon, 27 Jan 2025 15:26:01 -0800 Message-ID: <20250127232604.20386-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250127232604.20386-1-richard.henderson@linaro.org> References: <20250127232604.20386-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1738020549126019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson --- target/arm/tcg/sve_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index 3f38e07829..a2ff3b7f11 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -2563,8 +2563,8 @@ void HELPER(sve_ftssel_h)(void *vd, void *vn, void *v= m, uint32_t desc) if (mm & 1) { nn =3D float16_one; } - if ((mm & 2) && !(fpcr_ah && float16_is_any_nan(nn))) { - nn ^=3D (1 << 15); + if (mm & 2) { + nn =3D float16_maybe_ah_chs(nn, fpcr_ah); } d[i] =3D nn; } @@ -2581,8 +2581,8 @@ void HELPER(sve_ftssel_s)(void *vd, void *vn, void *v= m, uint32_t desc) if (mm & 1) { nn =3D float32_one; } - if ((mm & 2) && !(fpcr_ah && float32_is_any_nan(nn))) { - nn ^=3D (1U << 31); + if (mm & 2) { + nn =3D float32_maybe_ah_chs(nn, fpcr_ah); } d[i] =3D nn; } @@ -2599,8 +2599,8 @@ void HELPER(sve_ftssel_d)(void *vd, void *vn, void *v= m, uint32_t desc) if (mm & 1) { nn =3D float64_one; } - if ((mm & 2) && !(fpcr_ah && float64_is_any_nan(nn))) { - nn ^=3D (1ULL << 63); + if (mm & 2) { + nn =3D float64_maybe_ah_chs(nn, fpcr_ah); } d[i] =3D nn; } --=20 2.43.0