From nobody Fri Apr 4 10:58:09 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=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1743259596; cv=none; d=zohomail.com; s=zohoarc; b=ndN7j2QfDTK7B1HQ4ln5BNuKXo0FId36Z6NGPQTz0N7JcwOo/SBQJnLotAU+8NYleXFl8Cewc2kKGqc/f6nBNmy2BqmNGCtRy3VJleYKOqFd1/VRvMfCwwmKQgHT0sJee8mmEHXMlHjlEBQn9wit/6aMuRubDsoCDUQshfGFrBk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1743259596; 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=6Vo5qxIjpxhp4phxz9X1WKzMuv5ynzuiARrverr9UNE=; b=QMMJhrcrHEK9w2ASo4XGMnCKE0JRGhGEASa2JOg8KPh/xo8CAkP5VNDApxsuxtdCA1U1UnP+YIi/amaobHabUiakRVPze4tkp4+YBI5jtqYWYDk+Q4fL0k8WbJhHG18NrDr8O/Uo10/tam3taRWb9Mf9/HVUQbKofDkIe6W+qag= 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=<max.chou@sifive.com> (p=reject dis=none) Return-Path: <qemu-devel-bounces+importer=patchew.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17432595967251023.7631794397428; Sat, 29 Mar 2025 07:46:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tyXRK-0008KW-7Z; Sat, 29 Mar 2025 10:45:41 -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 <max.chou@sifive.com>) id 1tyXRF-0008EK-68 for qemu-devel@nongnu.org; Sat, 29 Mar 2025 10:45:34 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <max.chou@sifive.com>) id 1tyXRD-0004U5-2T for qemu-devel@nongnu.org; Sat, 29 Mar 2025 10:45:32 -0400 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2ff797f8f1bso4918975a91.3 for <qemu-devel@nongnu.org>; Sat, 29 Mar 2025 07:45:30 -0700 (PDT) Received: from duncan.localdomain (114-35-142-126.hinet-ip.hinet.net. [114.35.142.126]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3039f6b6bcbsm6737196a91.45.2025.03.29.07.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Mar 2025 07:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1743259529; x=1743864329; 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=6Vo5qxIjpxhp4phxz9X1WKzMuv5ynzuiARrverr9UNE=; b=kTVwSsAmAXqkUjPWsgodvCDpGQlJHwRxiDo06o5Yeew7yogcz1LsGIaFZKzpDJUNDu sGDLV8AprET2KRbpXMEYmMDUwMA0VV1MqHNuf1h1wLPjF6fAasYJItXtkUaW7PgyF61G zsbVIcgEnRA6dwUJL2kWDYYI9A/vA8wLsvejb++OT6Y58NlT1x1LJXG7TNJb70EMqkSr OAIumArLqhXGqnQHRz4X7hiw1bEYbSuu+TMPFB50BgA7uCHDSJBEEl7/tY2aj4fgdjp3 IUb6nZ9yRGkX7S6YlTskZp/uDprI4ip7b2MBxtD+9FRl3VMnah9HUgKWyDaSu2d89Fux oPvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743259529; x=1743864329; 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=6Vo5qxIjpxhp4phxz9X1WKzMuv5ynzuiARrverr9UNE=; b=kQgzLXEcchBasH4eLnZ9oujxEjZQN0Jfqqiux+dZur75qiZRnCg0iuGGyH2HXRWK3j lwyd6sg1mycv8xSwVoiuZ1x1sXbWx3derPa02Bx9eJDef2PjvP/hli9o1bzxquKurTwG cO7bawHHedd0G2u4f07x6PIUX5f6DkJQKywIBop9PLHrFzNRIPDDPw01Ny1RSUCx7uwP q76bYandL/udj5DXjYBQTGUWOLxa+bDVzyGUzFDLGaavpo0G6z5OV1Vd7QGKbEBm2xxp pyE9xk4oFf8mnaE2INGycFH2pRd7bmjJwuXbfE4DR/YRQgX6/h0H09NHAkMRyRfb1Mt1 7JHg== X-Gm-Message-State: AOJu0YyyAZ5nDZ9197k3MwA/Wf1xmZnGzWOdwcOBvU1EhmilcCUPYE77 Fp2p4N9BVlkQqRu/v9lvOmNsoCNvY8EuR4TNJb/NIbS3SR8aozT+Lqkjo05JtkBJOQPvfrFw0sQ FZ9pdpY82rqviY3JKnQM5XwZDZwLZPW4yhF6jnWo9E5+M76aumBVo+9NumCtJCK6aHIwY4GECy1 zKPIERDL0G6KD4z6+GcqML93RWvANWMIqzUiim1A== X-Gm-Gg: ASbGncuDy7m6DAibp8xece454J0dGD0HNrwEllbSCD9a/3HNaLq+f6jVwK+MuWjN0F8 KkTp9Xt0optlb1fMqWPzGSuLRACOruhILsKd1ZyA/09NsS7EIM77iprhcGg6kN9iQN9zf6itFn1 ZWEQYi4qTGwvAUkbQF4UFBWAHGD8NQ/niKzg8a0alVJhVgawZ03ttBgm10jnsMaOg1n89sNp7rm uwPhmkUX4VgTBzclgTxyXRrvPmSgK24iKBMoB56FtXDFQf3zW29k7vucbguBGhtqrXXpz2/nwJn XxLX7xjSccgVD9DwHiCo//iRaeh7LZXUfxZzVeOsTxtongipxHmA1vBvqcbj8QGmUl+zAdA9wbv 4W04+aQ2i6SxlKQ== X-Google-Smtp-Source: AGHT+IEOWCLh2a3PbwlRfd6nTlAnPvOMV0PTK1t81qputTkUKhB69gUcx6ut2hhJBp7JRYax7snISA== X-Received: by 2002:a17:90b:384b:b0:2ff:6ac2:c5a6 with SMTP id 98e67ed59e1d1-30532178e82mr4237860a91.31.1743259529310; Sat, 29 Mar 2025 07:45:29 -0700 (PDT) From: Max Chou <max.chou@sifive.com> To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, antonb@tenstorrent.com, Max Chou <max.chou@sifive.com> Subject: [PATCH v2 12/12] target/riscv: Fix the rvv reserved encoding of unmasked instructions Date: Sat, 29 Mar 2025 22:44:46 +0800 Message-ID: <20250329144446.2619306-13-max.chou@sifive.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250329144446.2619306-1-max.chou@sifive.com> References: <20250329144446.2619306-1-max.chou@sifive.com> 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::102c; envelope-from=max.chou@sifive.com; helo=mail-pj1-x102c.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=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 @sifive.com) X-ZM-MESSAGEID: 1743259598646019100 Content-Type: text/plain; charset="utf-8" According to the v spec, the encodings of vcomoress.vm and vector mask-register logical instructions with vm=3D0 are reserved. Signed-off-by: Max Chou <max.chou@sifive.com> --- target/riscv/insn32.decode | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/target/riscv/insn32.decode b/target/riscv/insn32.decode index 6d1a13c8260..cd23b1f3a9b 100644 --- a/target/riscv/insn32.decode +++ b/target/riscv/insn32.decode @@ -703,14 +703,14 @@ vfredmax_vs 000111 . ..... ..... 001 ..... 101011= 1 @r_vm # Vector widening ordered and unordered float reduction sum vfwredusum_vs 110001 . ..... ..... 001 ..... 1010111 @r_vm vfwredosum_vs 110011 . ..... ..... 001 ..... 1010111 @r_vm -vmand_mm 011001 - ..... ..... 010 ..... 1010111 @r -vmnand_mm 011101 - ..... ..... 010 ..... 1010111 @r -vmandn_mm 011000 - ..... ..... 010 ..... 1010111 @r -vmxor_mm 011011 - ..... ..... 010 ..... 1010111 @r -vmor_mm 011010 - ..... ..... 010 ..... 1010111 @r -vmnor_mm 011110 - ..... ..... 010 ..... 1010111 @r -vmorn_mm 011100 - ..... ..... 010 ..... 1010111 @r -vmxnor_mm 011111 - ..... ..... 010 ..... 1010111 @r +vmand_mm 011001 1 ..... ..... 010 ..... 1010111 @r +vmnand_mm 011101 1 ..... ..... 010 ..... 1010111 @r +vmandn_mm 011000 1 ..... ..... 010 ..... 1010111 @r +vmxor_mm 011011 1 ..... ..... 010 ..... 1010111 @r +vmor_mm 011010 1 ..... ..... 010 ..... 1010111 @r +vmnor_mm 011110 1 ..... ..... 010 ..... 1010111 @r +vmorn_mm 011100 1 ..... ..... 010 ..... 1010111 @r +vmxnor_mm 011111 1 ..... ..... 010 ..... 1010111 @r vcpop_m 010000 . ..... 10000 010 ..... 1010111 @r2_vm vfirst_m 010000 . ..... 10001 010 ..... 1010111 @r2_vm vmsbf_m 010100 . ..... 00001 010 ..... 1010111 @r2_vm @@ -732,7 +732,7 @@ vrgather_vv 001100 . ..... ..... 000 ..... 1010111 = @r_vm vrgatherei16_vv 001110 . ..... ..... 000 ..... 1010111 @r_vm vrgather_vx 001100 . ..... ..... 100 ..... 1010111 @r_vm vrgather_vi 001100 . ..... ..... 011 ..... 1010111 @r_vm -vcompress_vm 010111 - ..... ..... 010 ..... 1010111 @r +vcompress_vm 010111 1 ..... ..... 010 ..... 1010111 @r vmv1r_v 100111 1 ..... 00000 011 ..... 1010111 @r2rd vmv2r_v 100111 1 ..... 00001 011 ..... 1010111 @r2rd vmv4r_v 100111 1 ..... 00011 011 ..... 1010111 @r2rd --=20 2.43.0