From patchwork Thu May 25 18:10:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 685616 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp501239wrt; Thu, 25 May 2023 11:12:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5PStf8Tqu30XNlG/k1vCfsarP4UNtaZ271XtAjjsfxn2Ebfm48gB0IRYJ7gLgyNaMgs3l6 X-Received: by 2002:a05:622a:189f:b0:3f4:e11b:d191 with SMTP id v31-20020a05622a189f00b003f4e11bd191mr705219qtc.4.1685038351841; Thu, 25 May 2023 11:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685038351; cv=none; d=google.com; s=arc-20160816; b=eYfXdko6MzPzoqPkfIetRK0ixSpIIET5DPxVDcThhOdL0N72hK+tnpQaqZPu49vL85 R+Fa0g4uRVc8LSlcixuWfuDsuxlEk/g+Y9APm7JVYrK8n5wHwYoxaITq+sVxlKfEhzvP AOLMFUJgP+YCD9xquVwK27SHhQdAF64rtlYAP+cdOsTakqP3HlKpHtBmSxUCsgsYPkez QA0tUwAgXAsI/utfZu1ambIT8ADu6aVFMkfK36I5BrMxtmzFoiCP3qnG5ffBKD4YEzCq 5iVJ3Lpf/3mU2LGpfHsrjaxzlX9vjbD1/yitRs+7jla8rCwNYyjBJijAy1FLUtq9r4qq JJoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=vXxyVLt0ER4eun7TxoIx5PWj+GpTU+EF5Iw3Swj2Sbk=; b=ptP8GGGq1ZFIZasFqF+MkPQrX0pvnYHlzTCQWlUqlXDoIp7qFwlSyfCAE56c/h6lzb 28d4bI4dxrNFQAce5O1hXntXjLj3PgS+wcVMnIOFp/6DlcAKCjV+BxCq3syqQd6sn94g YA6qoPNQrN9P6Z3p2dmf10lOrHLywMyvoImJ1HgUtv5qd8X9S8cwkiffzLO1MrNuuJHX DFlREsvr5HfgAR9rdgiiGpOyHq9ClbLiktH8Cb38+KujEVKGWX61v+zhBVah2AdZ71kw LeLDfC+xFoGGY2Bdzhs3sQmbV6hMVpUvoydTeICvYjxSICUjhsfxP9tSVX0BbrPJGT0I 4qHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SdE2Cbw9; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gy10-20020a056214242a00b005fccc1dd415si677529qvb.604.2023.05.25.11.12.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 May 2023 11:12:31 -0700 (PDT) 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=SdE2Cbw9; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2FQL-0008RS-U3; Thu, 25 May 2023 14:10:53 -0400 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 1q2FQK-0008QV-F9 for qemu-devel@nongnu.org; Thu, 25 May 2023 14:10:52 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2FQI-0005vE-Rq for qemu-devel@nongnu.org; Thu, 25 May 2023 14:10:52 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1ae85b71141so16380915ad.0 for ; Thu, 25 May 2023 11:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685038249; x=1687630249; 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=vXxyVLt0ER4eun7TxoIx5PWj+GpTU+EF5Iw3Swj2Sbk=; b=SdE2Cbw9RCIzeHIs77RN4iWNlfkVnKCrHYo66S3InosFfwUJcjy0Z9QZKkVjkF/vlg m28lxwvwWY1v3gx41qBXOfRsIs9yQF1FN2YncFVr/Tr6fHq1gajZlmEBsKHVmSQd2qMV g1IliB8eR+iuvGEP1s7AxBlSwgND8RVYs85yEdhMuS6CRfs2enEfbsuvUZymItI3du1l Qst0RGAV+dJISG1VWQtdQ59Nb0sk/xSxCBF6y+028flqEm3J2jXcc3xoj4jtoKz46qRY 9UhOXySUjEv4YzLiV/PDastZCwniCUxWwcXrle9KBzEtRWnHVYItWzR+96An+5DJnj+9 R6vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685038249; x=1687630249; 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=vXxyVLt0ER4eun7TxoIx5PWj+GpTU+EF5Iw3Swj2Sbk=; b=QggovhB8SWwXK5q9YoG14icZRPdeaBx5KkR4c52XcqJj78S5H4BxtivXbpNuqRZN6g pDMchf5j5kCb5+H2LUhiG5HWT+0muGFQRGO/Tx8I7IxxT+tLWI4jdcH8Wo8CFo620EE7 HXK8wUtvz5hJ/2CaOZn+uEUD7GU4AKwUjVtIBsIRyObSpRlR5irF5Yg73mvgXMhoR5nA 4cIsBmJ7Urr/ZitE5ueSsQCkqxqPiK9jnEFjOu8ncfqRbkSHprURa08Aj19b954KbAz3 DDFT7vFmwSMJwaaxpPcQySjYvmfZ3u+DCOKNN4iU2Q6wpSHsXqaGtwqq1EOn5N3nMbT4 PErA== X-Gm-Message-State: AC+VfDwNXTxeFeE7H0FYp+3lIir7ux9A9+bnX/b1f0c1FH3F7LE+rh43 Oy49ac0UwKEioPtnI7Qpx/OuJ/JPH+SmCZlWgxQ= X-Received: by 2002:a17:902:8ec3:b0:1a0:7156:f8d1 with SMTP id x3-20020a1709028ec300b001a07156f8d1mr2552485plo.19.1685038248832; Thu, 25 May 2023 11:10:48 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:7ac5:31cc:3997:3a16]) by smtp.gmail.com with ESMTPSA id m18-20020a170902db1200b001aae64e9b36sm1710243plx.114.2023.05.25.11.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 11:10:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Alistair Francis , Daniel Henrique Barboza Subject: [PULL 13/23] disas/riscv: Decode czero.{eqz,nez} Date: Thu, 25 May 2023 11:10:26 -0700 Message-Id: <20230525181036.1559435-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230525181036.1559435-1-richard.henderson@linaro.org> References: <20230525181036.1559435-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.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 Acked-by: Alistair Francis Reviewed-by: Daniel Henrique Barboza Signed-off-by: Richard Henderson --- disas/riscv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/disas/riscv.c b/disas/riscv.c index e61bda5674..d597161d46 100644 --- a/disas/riscv.c +++ b/disas/riscv.c @@ -962,6 +962,8 @@ typedef enum { rv_op_cm_mvsa01 = 786, rv_op_cm_jt = 787, rv_op_cm_jalt = 788, + rv_op_czero_eqz = 789, + rv_op_czero_nez = 790, } rv_op; /* structures */ @@ -2119,6 +2121,8 @@ const rv_opcode_data opcode_data[] = { { "cm.mvsa01", rv_codec_zcmp_cm_mv, rv_fmt_rd_rs2, NULL, 0, 0, 0 }, { "cm.jt", rv_codec_zcmt_jt, rv_fmt_zcmt_index, NULL, 0 }, { "cm.jalt", rv_codec_zcmt_jt, rv_fmt_zcmt_index, NULL, 0 }, + { "czero.eqz", rv_codec_r, rv_fmt_rd_rs1_rs2, NULL, 0, 0, 0 }, + { "czero.nez", rv_codec_r, rv_fmt_rd_rs1_rs2, NULL, 0, 0, 0 }, }; /* CSR names */ @@ -2914,6 +2918,8 @@ static void decode_inst_opcode(rv_decode *dec, rv_isa isa) case 45: op = rv_op_minu; break; case 46: op = rv_op_max; break; case 47: op = rv_op_maxu; break; + case 075: op = rv_op_czero_eqz; break; + case 077: op = rv_op_czero_nez; break; case 130: op = rv_op_sh1add; break; case 132: op = rv_op_sh2add; break; case 134: op = rv_op_sh3add; break;