From patchwork Fri Jan 5 09:23:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Wang X-Patchwork-Id: 185316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6113238dyb; Fri, 5 Jan 2024 01:28:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1E9L1QsRs56caKW+5aSqgN+9DbDdTXsvCzkI+OvgxOGuiiZcWAHvEImsqI8bUhMILw7wa X-Received: by 2002:ad4:5ccd:0:b0:680:d02f:4199 with SMTP id iu13-20020ad45ccd000000b00680d02f4199mr3315522qvb.3.1704446927587; Fri, 05 Jan 2024 01:28:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704446927; cv=pass; d=google.com; s=arc-20160816; b=TOeqJFXQdQqHTlr24RwuJ81Ken2kErYFKyVv3irvPkV4unnfMVufCkCXDMb/OEBjoo f6EWX06tBtSt0+I9e7wGSjFGkU9AMpikNnM2zI/hRidypyoomWVrzkUHJtEkQcL/sxn4 tCPgU/owKj31H19FJfZdOmLK747m9kKn8G1cxixmI1wdaNkNEB6kNuC1wMaSxeyts7Mx Cmasmpu93Y+nYnhysB90KJ56RlhmrJG7CO/3FqyU5Dy1eoKaOVDtiPtMQNvbQ6sc3fmt g8t46mB5a4SmkD1CvDhrsrQWrjOMkug8jiSb18xGfrsUvkPYCokSjsYocU+a2WnT0I1U BXbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to; bh=g/JU3p2VUqhKoHOuzXOdPPP+og+F+a0v2JOZlSIdrjM=; fh=Puwh6aWFkQFHAcgMxtgtl8u0zENvfqZymSUfjOfMnnI=; b=miXRV0yjUWw8RecnA0moOpp5Xdj4mtq0GK9boaBEVWxRGeILhT3yr3AeCpOouqeS84 UjCC/Le0nGZzmlnJPUp2ZAPb8KUJb0JY2Rpm1bf35C5sArXRGjZJuItRUNb74wafSUc8 7LQm1+EKeCIpvKuZ/unQQhyDE+Lk69qSN3MC2JyaT/KR459Pa8bcRxjRAy2cQRa6kdWA hGX2JFsuu2nsL97BGlTgEfFJU0T9PE30yy9JwMDnbXp1kbtuicEPAKNwmLmV5BM89FMG skoJe0aaWMDY1Zm5EYi5cgOOxA1PhtpxUzh/Ugx+iVHHr1EH8neXNEI8HFOUZfAI7/Ug s+Mw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q5-20020a0ce205000000b0067f862a3d21si1399952qvl.260.2024.01.05.01.28.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 01:28:47 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F16D0385DC2E for ; Fri, 5 Jan 2024 09:28:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from azure-sdnproxy.icoremail.net (azure-sdnproxy.icoremail.net [52.237.72.81]) by sourceware.org (Postfix) with ESMTP id ED952385DC02 for ; Fri, 5 Jan 2024 09:25:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED952385DC02 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=eswincomputing.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eswincomputing.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ED952385DC02 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=52.237.72.81 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704446743; cv=none; b=bAIzpzRL9To8yh7z7VwbGxm3lT9XtQDpzGZJm1m72oD9moTlAfo9UVxZBpkfs/CqdyViPvi6GbMb6tPpscMDNS5RG4avtzA9PuEfPRecF14tyBBriA48lBWHOifgLNJileIe19plDr6voqcbR+UE9C3bxidlnxRZkBYpROHazvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704446743; c=relaxed/simple; bh=r2p0TbiyQN2zgCc/2+Ok+hFv7kHiotVzLbfsh9dHGaA=; h=From:To:Subject:Date:Message-Id; b=toWTn4cXZpnPPpdKCYIrZtgABFtCozLyqrPv2sYAgqh/ENhoThMMv6MD9brzVyXd5y4vRybKfnaw5nkPpvThwb76n5XH4BtMGo69S7D5CiyrLFa19q8OFjgpP+ucEuEvbgVz4bUSVK3zvJR0r9cXxPNR6e5MUCJAxp/GK2MXNDs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (unknown [10.12.130.31]) by app2 (Coremail) with SMTP id TQJkCgAnqdKdypdlon0EAA--.6269S4; Fri, 05 Jan 2024 17:23:42 +0800 (CST) From: Feng Wang To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, jeffreyalaw@gmail.com, juzhe.zhong@rivai.ai, Feng Wang Subject: [PATCH] RISC-V: Fix avl-type operand index error for ZVBC Date: Fri, 5 Jan 2024 09:23:44 +0000 Message-Id: <20240105092344.23778-1-wangfeng@eswincomputing.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: TQJkCgAnqdKdypdlon0EAA--.6269S4 X-Coremail-Antispam: 1UD129KBjvdXoWrtF48tF1fWFWUCryUAw4kXrb_yoWkXwc_Zr 48tFW3ArW3tas8K3Z8KFy8Kw1fuFy5Jws5Kr4DKw1I9F1UW3W3Zas7ZFyrtF4rCr9rtF1I kan3Ar9rKwnF9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2xFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY02Avz4vE-syl42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: pzdqwwxhqjqvxvzl0uprps33xlqjhudrp/ X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787242141809781305 X-GMAIL-MSGID: 1787242141809781305 This patch fix the rtl-checking error for crypto vector. The root cause is the avl-type index of zvbc ins is error,it should be operand[8] not operand[5]. gcc/ChangeLog: * config/riscv/vector.md: Modify avl_type operand index of zvbc ins. --- gcc/config/riscv/vector.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index 3d2c1c3ce8f..e99a312b5b6 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -864,9 +864,9 @@ vnclip,vicmp,vfalu,vfmul,vfminmax,vfdiv,vfwalu,vfwmul,\ vfsgnj,vfcmp,vslideup,vslidedown,vislide1up,\ vislide1down,vfslide1up,vfslide1down,vgather,viwmuladd,vfwmuladd,\ - vlsegds,vlsegdux,vlsegdox,vandn,vrol,vror,vwsll") + vlsegds,vlsegdux,vlsegdox,vandn,vrol,vror,vclmul,vclmulh,vwsll") (const_int 8) - (eq_attr "type" "vstux,vstox,vssegts,vssegtux,vssegtox,vclmul,vclmulh") + (eq_attr "type" "vstux,vstox,vssegts,vssegtux,vssegtox") (const_int 5) (eq_attr "type" "vimuladd,vfmuladd")