From patchwork Sun Nov 5 02:37:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1859372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SNJZ16qxHz1yQ4 for ; Sun, 5 Nov 2023 13:38:12 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 661D2385840C for ; Sun, 5 Nov 2023 02:38:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by sourceware.org (Postfix) with ESMTPS id 4CA463858CDA for ; Sun, 5 Nov 2023 02:37:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4CA463858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4CA463858CDA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699151879; cv=none; b=AMkCkAXkjAS2OVa0hvplyUdhf02ncIhjLXDlExZmPC9rNj7ycigQgV7tCTvjcd0AQQZAY1I/xgggVULV5pvADwtUx0mMYF8WyEE/HYagAgLE+JcJN1i6l6hxwNF0afjIH4MvhuT6Uk+OEaKa+2yr/4K8uwPoU1p3D5QI7x21/r4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699151879; c=relaxed/simple; bh=GIB0k6ch2RYpYBfMY4frk28BJFuXuV/trVcNRZpPhbI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=buBvzyekXZ5OdUgBoRqqXkQOMACM9CgRM6AKdGt9DtEBekN/WwgTUY8munYwtTehTdf+rpXQNohcvfeOD5Moxu+OP449csjvec+LDZyzn2zh2IIrZAHJ/l42eCfc1Dn1EZgBb/xzVrYIF5zt7TcABQVKjh/70VhZHV5qPv0g1H0= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp64t1699151871tx5jgvfs Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 05 Nov 2023 10:37:50 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: znfcQSa1hKZcAgisoZnYF3TYyaqKfF1iHAD3hoZ1iukTmfHx92BZdg5YpZYL8 YpCdbb1Qo5HvoaQPsdUaX7F2DVy4xOJpErwddsL97ZUJcK2pf8xP4WuedsmqxQ4CVwo+out L9zE0Ek6vZlTKkOMLW4Te+xKparuP3tMOmuxT1ISyE+RbZOhRtpYW60q/TsiaQbfLkr32Z7 M2ifh628j5K/mEQc5AZKe1vOhYVEEP1mZ/PwMidPnVqQnFfRp+1ZwWaqIBngXjUkVxApmOT QoKxxqFhXkhsEfj506tb3fSSoH79CIYL7rIRraTQhVpajBvcjGV7dZKnKFJ7pBavU265qWs Nbhjb56tyFfR8wGVvvvuR8eY979i0QldPUJzdF6HLAIY2L9vak= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 10872428558000814486 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: pan2.li@intel.com, Juzhe-Zhong Subject: [Committed] RISC-V: Fix bug of vlds attribute Date: Sun, 5 Nov 2023 10:37:44 +0800 Message-Id: <20231105023744.2158302-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org This issue is noticed when support strided load/store auto-vectorization. Commit it as it is obvious. gcc/ChangeLog: * config/riscv/vector.md: Fix bug. --- gcc/config/riscv/vector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index ce5c5be8e42..c47bc77ab7c 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -840,7 +840,7 @@ ;; wheras it is pred_strided_load if operands[3] is vector mode. (eq_attr "type" "vlds") (if_then_else (match_test "VECTOR_MODE_P (GET_MODE (operands[3]))") - (const_int INVALID_ATTRIBUTE) + (const_int 8) (const_int 7)) (eq_attr "type" "vldux,vldox,vialu,vshift,viminmax,vimul,vidiv,vsalu,\