From patchwork Mon Jan 8 00:58:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Wang X-Patchwork-Id: 185776 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp772237dyq; Sun, 7 Jan 2024 17:01:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJ5rVq/pRrtLLSBcgDdBHpbUh1L22bCQypyTDjTVKGUhAxGH4N+OTQDV6rli92ZyOzKZ+L X-Received: by 2002:a05:620a:3729:b0:77f:3f7d:b494 with SMTP id de41-20020a05620a372900b0077f3f7db494mr4046511qkb.109.1704675684689; Sun, 07 Jan 2024 17:01:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704675684; cv=pass; d=google.com; s=arc-20160816; b=e/gfWJkXZyknIPukuBlrfpWemOmH+u7vZVgRKth+DrZJqhwhyObw9fv3GfxtnbKFaI xRGad5wzVFLYOaz4sdQZ7YwZ3KEzAx1dPSb6lXDebPndXtvGfVKyVqQk0UX6vc/yWc3u ki0gC/p98UTPNtZNqYfUVYHB34nyn85BtbbVva9QFUP+nYKA+CQj6bz4Pt3q55W2Faf9 Zjj8U94rm+SL+On2imipeP5wNu7565rEMp6JyJVZziqqDIzr9rt5QjFfTo96w3hyRrpt NSs7fWkppTPuY8d50WhOvfeh7EEts16I4tQHCyuiijWiGOA2KMEgqNJjWZCGBFKhiYYh m0mA== 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=QIAfowOjCt8Aa5+xM7mLxnBjE0X9wWC8tzuqTbfhScc=; fh=wZsTJjjR4v8BRcXwQWcyfe6tMSjhJr9Wj68rYddjXWo=; b=iPsdg9ZxVnkDm1usNlnZVAiMZSMY95PFnaabHXAc/01N0f/Ao8rTOIyc8NLiChfzsM mh6XZjw6wlBDWG1S6xlC+kBBdptEuffwHklRB6z1jGbfhT/Orr5+btMuULRxMY6PKCHL 8O3qhcAqrantodY7Dj0KdDnYe6B2eEKVzTpYv+qlGwt4ioNVdI9Kz1cBP4Hi8Nm668Bv oL5h4pjHVrb5zY4AXmI/PEna602queZ9JExVwy4koriQ8vc2oBn8m54TIHg3wf2ARZq4 J1340aR4Jsz7Wo8D/B59a+V9tN/c3jmBfyN6Ty5LXJF9nlMxO1EKX1xX2X3aSzDbuUsQ heWw== 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 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u1-20020a05620a084100b00781be7d1b48si6644800qku.68.2024.01.07.17.01.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 17:01:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; 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 8.43.85.97 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 47B743858293 for ; Mon, 8 Jan 2024 01:01:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from sgoci-sdnproxy-4.icoremail.net (sgoci-sdnproxy-4.icoremail.net [129.150.39.64]) by sourceware.org (Postfix) with ESMTP id A7E973858C62 for ; Mon, 8 Jan 2024 01:00:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A7E973858C62 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 A7E973858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.150.39.64 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704675633; cv=none; b=qKUYmm6ZKfcS1ButuWtukmunBDALLu9ZTKmc3sVuarWj3047r4iLjxt/rJaIsFoGj2jTh+yv+elpKmnLCy3e2tjxw1d9iEwoe6oMbmVEujKhFSbuckqYNTsuva5SX54ZexcgwquWelgfM+KMWt4b/d4Kbid4RXyL+h18b4afXy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704675633; c=relaxed/simple; bh=DGzLrGjqjiaC8AXraxwVOJ9lH6Wj/2Go3KrOURX138A=; h=From:To:Subject:Date:Message-Id; b=BqB5+Gh3KpWgIRXGySIDKgMT3sYlhn6maRwoRf5sEpdEKqb2laaVZGpkXOKdqz18RxYknOkm3INDQlLhlWK5lDvGwDHbghdgbu40C6O+E9Kz30Ns4S72xATOhNM+aIM16VWude6VSAEyz8e0lbS5/dFoCfyy3ARaG0Y0o1qyVNg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost.localdomain (unknown [10.12.130.31]) by app2 (Coremail) with SMTP id TQJkCgAnttS1SJtlKbsEAA--.45379S4; Mon, 08 Jan 2024 08:58:30 +0800 (CST) From: Feng Wang To: gcc-patches@gcc.gnu.org Cc: Feng Wang Subject: [committed] RISC-V: Fix avl-type operand index error for ZVBC Date: Mon, 8 Jan 2024 00:58:31 +0000 Message-Id: <20240108005831.35467-1-wangfeng@eswincomputing.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: TQJkCgAnttS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derInfo: pzdqwwxhqjqvxvzl0uprps33xlqjhudrp/ X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, 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: 1787482010424231393 X-GMAIL-MSGID: 1787482010424231393 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 be5beb5ab64..24b7b4394be 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")