From nobody Sat Apr 27 23:49:59 2024 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1678212599; cv=none; d=zohomail.com; s=zohoarc; b=j0E+M7dK2r9Z8igBm+/4Sf05mRza+eqmsb9XTsLRo770dGeBVASAh5S9b6uE52ii2HGUCSjRsf8RKmohSaavzkr1S8KU8Gho9ONcwzhbi8wzDWP5O5fxuJHAgZMLzr6TZewyfh1MLx7ya6GWKrg2Gwn+UqS49T40St/I9nlmJVc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678212599; h=Content-Transfer-Encoding:Cc: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; bh=ERC/6VeDxTNXUnmBsoLervfyIDOlgZLJqgjanTmGNl4=; b=eREs6YyeFLeBVSbeuTLC9cYFZDeaQF8iWOnzU4xk8ozj3t0XZcFRLA+FHTtv0p/cEzv7oAP8jR3OHWRm/7QWifR1yTyxQLJbgd4drPc0KwBSerw3kr6o1T+BOf53uoAhxKD2YmA+O0wD8QVElnCZfAhBBONa6HFP0OLV/JfKPac= 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+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1678212599584997.7025207007194; Tue, 7 Mar 2023 10:09:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZbim-0007cu-DR; Tue, 07 Mar 2023 13:07:32 -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 1pZbib-0007HU-As for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:07:21 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZbiX-0002Ed-Vj for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:07:21 -0500 Received: by mail-lf1-x12f.google.com with SMTP id i9so18222241lfc.6 for ; Tue, 07 Mar 2023 10:07:17 -0800 (PST) Received: from ubuntu-focal.. ([2a01:4f9:3a:1e26::2]) by smtp.gmail.com with ESMTPSA id f13-20020a2eb5ad000000b0028b6e922ba1sm2266952ljn.30.2023.03.07.10.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 10:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1678212435; 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=ERC/6VeDxTNXUnmBsoLervfyIDOlgZLJqgjanTmGNl4=; b=nXiJ2Ul04KbM0Yi5l3KtOjN1zIgYX9R8DCB8hG7kITam8GR3XigCnp9IvOyNHER3+X 8SFLLC0a001B5RGg1JOjt09Qtt3gApEuXODp4TKBLczfLTY9mUvpqs4TFL2k2UvNUbxx gfvPbmD8r9bVnfCPqM3N3/7QUmFuM9r3gQnuwwuX1Z4CawMcW/nCkhVk88G1wTi8JIT4 gd6zNQal2/+VeJDXZAiJ2GBuhIWybN+aEE3n4lOmSwf/XVAdisVT/cGaj8KByEeYU5qh Cf3t+0keqzGl5BO0MNTySSJXG5h6Nqw4SN+R0ZSv8sAU+jGWxseDCo/rZt2esoxdhcbX 2S0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678212435; 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=ERC/6VeDxTNXUnmBsoLervfyIDOlgZLJqgjanTmGNl4=; b=75/QJrr97gOnFLcu2jAx/2A2TPEKe4sUVjjF0P3w+yGgspMqNJXCfORYi7WbYbkpxl /hPrXeUd2j9AGF5OF7+PBm9LxpZss9xB/JRqDy5SUJKEP0JZDsZVy4LpBs/cxpKu9INk FYwjxXhNasLsDLcgz6nMm6lZCaWzDodXO9POBHzlxg65PQzi2Pa0VosPILQWd4c5RpYi a19Guq3VsPEVSSWwb7BWZzioVKrylP3wqsxmqbgJkdfl2o+J/ewKnhobhfMIiAStD4YM SO5e8i1iSkAwS8RJb9yFwE77z06nE1DwnTAQBM9o9qo/v4hlAxaP6i9cMzC8w73SOqcZ Dk/A== X-Gm-Message-State: AO0yUKX+emRCxUPqA5JgQma5KLZu7ZK+x5qqRWQrZgV8ZXM9o0G+n1iR xirxu+U2HNEIN8P5Xv2HC5JtWululGvM9rNUz9zWbw== X-Google-Smtp-Source: AK7set+YRT+pXLw7FD1p2wP9GYfbE4X0CDHpOKc/VAlOX1b2WlZYUoY19LH+vlpqgdITf+uPn2W/9Q== X-Received: by 2002:ac2:4857:0:b0:4e6:630f:3c1d with SMTP id 23-20020ac24857000000b004e6630f3c1dmr4019133lfy.19.1678212435536; Tue, 07 Mar 2023 10:07:15 -0800 (PST) From: Philipp Tomsich To: qemu-devel@nongnu.org Cc: Alistair Francis , Richard Henderson , Christoph Muellner , Kito Cheng , Philipp Tomsich Subject: [PATCH v5 1/2] target/riscv: refactor Zicond support Date: Tue, 7 Mar 2023 19:07:07 +0100 Message-Id: <20230307180708.302867-2-philipp.tomsich@vrull.eu> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307180708.302867-1-philipp.tomsich@vrull.eu> References: <20230307180708.302867-1-philipp.tomsich@vrull.eu> 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=philipp.tomsich@vrull.eu; helo=mail-lf1-x12f.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=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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @vrull.eu) X-ZM-MESSAGEID: 1678212600860100006 Content-Type: text/plain; charset="utf-8" After the original Zicond support was stuck/fell through the cracks on the mailing list at v3 (and a different implementation was merged in the meanwhile), we need to refactor Zicond to prepare it to be reused by XVentanaCondOps. This commit lifts the common logic out into gen_czero and uses this via gen_logic and 2 helper functions (effectively partial closures). Reviewed-by: Richard Henderson Signed-off-by: Philipp Tomsich Acked-by: Alistair Francis --- Changes in v5: - fix a rebase artifact - drop the 'inline' specifiers (as per review comments) Changes in v4: - rebase onto master Changes in v3: - don't add this to MAINTAINERS, as it is an official extension Changes in v2: - gates availability of the instructions through a REQUIRE_ZICOND macro (these were previously always enabled) target/riscv/insn_trans/trans_rvzicond.c.inc | 36 ++++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvzicond.c.inc b/target/riscv/in= sn_trans/trans_rvzicond.c.inc index 645260164e..c8e43fa325 100644 --- a/target/riscv/insn_trans/trans_rvzicond.c.inc +++ b/target/riscv/insn_trans/trans_rvzicond.c.inc @@ -2,6 +2,7 @@ * RISC-V translation routines for the Zicond Standard Extension. * * Copyright (c) 2020-2023 PLCT Lab + * Copyright (c) 2022 VRULL GmbH. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -22,28 +23,33 @@ } \ } while (0) =20 -static bool trans_czero_eqz(DisasContext *ctx, arg_czero_eqz *a) +/* Emits "$rd =3D ($rs2 $zero) ? $zero : $rs1" */ +static void gen_czero(TCGv dest, TCGv src1, TCGv src2, TCGCond cond) { - REQUIRE_ZICOND(ctx); + TCGv zero =3D tcg_constant_tl(0); + tcg_gen_movcond_tl(cond, dest, src2, zero, zero, src1); +} =20 - TCGv dest =3D dest_gpr(ctx, a->rd); - TCGv src1 =3D get_gpr(ctx, a->rs1, EXT_NONE); - TCGv src2 =3D get_gpr(ctx, a->rs2, EXT_NONE); +static void gen_czero_eqz(TCGv dest, TCGv src1, TCGv src2) +{ + gen_czero(dest, src1, src2, TCG_COND_EQ); +} =20 - tcg_gen_movcond_tl(TCG_COND_EQ, dest, src2, ctx->zero, ctx->zero, src1= ); - gen_set_gpr(ctx, a->rd, dest); - return true; +static void gen_czero_nez(TCGv dest, TCGv src1, TCGv src2) +{ + gen_czero(dest, src1, src2, TCG_COND_NE); } =20 -static bool trans_czero_nez(DisasContext *ctx, arg_czero_nez *a) +static bool trans_czero_eqz(DisasContext *ctx, arg_r *a) { REQUIRE_ZICOND(ctx); =20 - TCGv dest =3D dest_gpr(ctx, a->rd); - TCGv src1 =3D get_gpr(ctx, a->rs1, EXT_NONE); - TCGv src2 =3D get_gpr(ctx, a->rs2, EXT_NONE); + return gen_logic(ctx, a, gen_czero_eqz); +} + +static bool trans_czero_nez(DisasContext *ctx, arg_r *a) +{ + REQUIRE_ZICOND(ctx); =20 - tcg_gen_movcond_tl(TCG_COND_NE, dest, src2, ctx->zero, ctx->zero, src1= ); - gen_set_gpr(ctx, a->rd, dest); - return true; + return gen_logic(ctx, a, gen_czero_nez); } --=20 2.34.1 From nobody Sat Apr 27 23:49:59 2024 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1678212599; cv=none; d=zohomail.com; s=zohoarc; b=mz8XF2WIkmK3shACQtFcsGD9MWIde1c+xExzC4acMTrrZBNjN3q5gxDFGKAim7wkmE+FCHkM4qFBgamIrbKy9oBWlAS6EFX6g6ZDooyTrLJ0zFni5lWqzxTwEG0Y7BcHh+5m8hPmueF2rOpbnnQDJjezFa67NGwoz8NZtL1x1Iw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678212599; h=Content-Transfer-Encoding:Cc: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; bh=NHJay4ce3B+fiMZgQq8mM0+ZSTOYugM1PlSvfvjKr04=; b=V+ThrEtgSttgW5bBgpfSFHCo9u/xG8oqzkw8VpNuKj/QWEZlUVjBm7SkPtksNRHbuww4Cu1yVimvP919cvPqn0BOsp/XCyTUWj74M+HPrQzIA9eNj3U3aEH/Wk3SIzGMAM6JxD7lmfxt7EvP1kePxkOWkBP0pIDBDxRT1IokqW0= 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+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1678212599307217.9980994377388; Tue, 7 Mar 2023 10:09:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZbim-0007X7-AC; Tue, 07 Mar 2023 13:07:32 -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 1pZbia-0007HT-LF for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:07:21 -0500 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZbiY-0002Et-On for qemu-devel@nongnu.org; Tue, 07 Mar 2023 13:07:20 -0500 Received: by mail-lj1-x22f.google.com with SMTP id h9so14093052ljq.2 for ; Tue, 07 Mar 2023 10:07:17 -0800 (PST) Received: from ubuntu-focal.. ([2a01:4f9:3a:1e26::2]) by smtp.gmail.com with ESMTPSA id f13-20020a2eb5ad000000b0028b6e922ba1sm2266952ljn.30.2023.03.07.10.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 10:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1678212436; 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=NHJay4ce3B+fiMZgQq8mM0+ZSTOYugM1PlSvfvjKr04=; b=so7XTYdlB8XW05XMRlIYTQGkabileW49aPd/Mj/RG+DUnI8cdrauwCkRzPG5+oLBFa qLk3YYh6VXv7DEGBXuXGWhRNaUHV7bC1+KWnJPcog6i8Z5zmVbXKHUdJBXq946b+Dule IrXiSHi00dFbKuj8WBRjDIIRNVR8wrPPTvTo+tv/ZuYYLiI/8OQZCe+VEschtU7Lb+Nc tStZkmF9tSfsGRcmaoZ+DWlsgCbjaMEdJOLeKJTLxY4Id8nKPOOvWO0E8oMN6uF/NV9r kWzb9hDCA8XoTVp1PPSAbxSmQsmGbtMK4oYZfkaRnwV+IYu3E182PyP/SgDUa274rGAN bl5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678212436; 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=NHJay4ce3B+fiMZgQq8mM0+ZSTOYugM1PlSvfvjKr04=; b=fROlq+QF0xYLzCjZ0FbGoFaDX0RbQTTH1X62hEa3VzBpX8JEKmp6FvD2qcqv0Ck4Yl NYZy8RNDf4xxt/tEv3Wr1lrYl1SNjov2m9N3LwUi3FK03HxriE66uaJFsck2fquESA0j yLvK621lAUG2gwu0aGhCKJzwqZcuXuP34ZmsIut1SsWIKEYpQFO6319gViACvGO+fg3E DCBtVdXbgn0A7pVwUBOoTRgCZbS23Ey7Z9SazU/LFUZ0UxhWly1p+CqZHJS5AI24hUAB XK9SWQ9U6f865C1Fdn2bfmjAurn+NBUEq5+STUWUx0Ka92Gr1DI0xv/GJDT9cuAzS4b3 xOBA== X-Gm-Message-State: AO0yUKWxQeD+/zrO0QahBeBtAkYp2C1m0QONLtBBVPBXMMxPltUiez/a yMQBmv9Uq8Jt/vg31SjXvcupvF3Ga7K8UYw/S3InGw== X-Google-Smtp-Source: AK7set/T7YbHwlX/+eCZFb2+olZsYtsOuGAOp7L94h+EdV5oSXlBGIK7KHux3ldoDCAiTK7q+7D47A== X-Received: by 2002:a2e:b051:0:b0:295:9d9c:24aa with SMTP id d17-20020a2eb051000000b002959d9c24aamr4634619ljl.11.1678212436379; Tue, 07 Mar 2023 10:07:16 -0800 (PST) From: Philipp Tomsich To: qemu-devel@nongnu.org Cc: Alistair Francis , Richard Henderson , Christoph Muellner , Kito Cheng , Philipp Tomsich Subject: [PATCH v5 2/2] target/riscv: redirect XVentanaCondOps to use the Zicond functions Date: Tue, 7 Mar 2023 19:07:08 +0100 Message-Id: <20230307180708.302867-3-philipp.tomsich@vrull.eu> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307180708.302867-1-philipp.tomsich@vrull.eu> References: <20230307180708.302867-1-philipp.tomsich@vrull.eu> 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=philipp.tomsich@vrull.eu; helo=mail-lj1-x22f.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=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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @vrull.eu) X-ZM-MESSAGEID: 1678212600858100005 Content-Type: text/plain; charset="utf-8" The Zicond standard extension implements the same instruction semantics as XVentanaCondOps, although using different mnemonics and opcodes. Point XVentanaCondOps to the (newly implemented) Zicond implementation to reduce the future maintenance burden. Also updating MAINTAINERS as trans_xventanacondops.c.inc. Reviewed-by: Richard Henderson Signed-off-by: Philipp Tomsich Acked-by: Alistair Francis --- (no changes since v3) Changes in v3: - Don't downgrade to "Odd Fixes", but rather to "Maintained" (we are not being paid to look after this, but will look after it nonetheless). Changes in v2: - Calls into the gen_czero_{eqz,nez} helpers instead of calling trans_czero_{eqz,nez} to bypass the require-check and ensure that XVentanaCondOps can be enabled/disabled independently of Zicond. MAINTAINERS | 2 +- .../insn_trans/trans_xventanacondops.c.inc | 18 +++--------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 011fd85a09..1ad3c6fc9a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -311,7 +311,7 @@ F: target/riscv/xthead*.decode RISC-V XVentanaCondOps extension M: Philipp Tomsich L: qemu-riscv@nongnu.org -S: Supported +S: Maintained F: target/riscv/XVentanaCondOps.decode F: target/riscv/insn_trans/trans_xventanacondops.c.inc =20 diff --git a/target/riscv/insn_trans/trans_xventanacondops.c.inc b/target/r= iscv/insn_trans/trans_xventanacondops.c.inc index 16849e6d4e..38c15f2825 100644 --- a/target/riscv/insn_trans/trans_xventanacondops.c.inc +++ b/target/riscv/insn_trans/trans_xventanacondops.c.inc @@ -1,7 +1,7 @@ /* * RISC-V translation routines for the XVentanaCondOps extension. * - * Copyright (c) 2021-2022 VRULL GmbH. + * Copyright (c) 2021-2023 VRULL GmbH. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -16,24 +16,12 @@ * this program. If not, see . */ =20 -static bool gen_vt_condmask(DisasContext *ctx, arg_r *a, TCGCond cond) -{ - TCGv dest =3D dest_gpr(ctx, a->rd); - TCGv src1 =3D get_gpr(ctx, a->rs1, EXT_NONE); - TCGv src2 =3D get_gpr(ctx, a->rs2, EXT_NONE); - - tcg_gen_movcond_tl(cond, dest, src2, ctx->zero, src1, ctx->zero); - - gen_set_gpr(ctx, a->rd, dest); - return true; -} - static bool trans_vt_maskc(DisasContext *ctx, arg_r *a) { - return gen_vt_condmask(ctx, a, TCG_COND_NE); + return gen_logic(ctx, a, gen_czero_eqz); } =20 static bool trans_vt_maskcn(DisasContext *ctx, arg_r *a) { - return gen_vt_condmask(ctx, a, TCG_COND_EQ); + return gen_logic(ctx, a, gen_czero_nez); } --=20 2.34.1