From patchwork Tue Nov 7 11:48:14 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: 1860985 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 4SPmh81chnz1yQL for ; Tue, 7 Nov 2023 22:48:40 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1CBDF3857017 for ; Tue, 7 Nov 2023 11:48:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast3.qq.com (smtpbguseast3.qq.com [54.243.244.52]) by sourceware.org (Postfix) with ESMTPS id 771773858C66 for ; Tue, 7 Nov 2023 11:48:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 771773858C66 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 771773858C66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.243.244.52 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699357704; cv=none; b=Af/KNLzTBoryzJurRyvG308EVQfFmtejhyNhWBzPlqFZjtdRPNPqg3sObmD+p3pXwfhb9g7dWv52X7sUYrkFGXvpbiZrxV2/AU5h665EN4Bbl9igotSvMhh4jqg303CiktNg86BXjOu2bjH2XvqSi5uziAs5tiPBTPOw7l0UiZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699357704; c=relaxed/simple; bh=mHuIllGtxR7iLhhFFaD0Pg0eTxggFCJCrdhjekGTbZ8=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=HWP6veRbAumFpihEvudiSdgrgtzNqKOEAvx/aiL+9Qal45LbDGO0qGAA5Z1Bc99iikaQCUnKHLEFcqrkCYbIGuoMaoobgqFt/qUsxUcEVyfr8/mEtPZl0sAOKDwOV3s9wOi3iQuOq27Y/IlhZbJ08lR/G+w/qbdwG/pL66K0UPI= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp81t1699357697tks5bgu3 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 19:48:15 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: m0sgeotJNLVuz9JV2n/duMb1N6ysLxEteL6jcdUd+icUJZffavf+jfLBA4DXb xBl6KZE6Q+X1kod3c4zcRQuHRQ5VOGEe8V0I3Y/5zbrGGkqdeuu5GuNuEmYD2t5nitbhXT/ wgJyn+qnw04waK+kQ0j7YDkdFs9/iXAeQzLk31T5c5JfxSqmr8A27/0WCiEsVe+6r2Ln7r9 HkdMJvnqheGtdoihhghePmGL2gnhti3TGXx4m6IPVSFNiYSxMyoeMO8W9aZco4BIV2TLBdh 8ipn3PotHfy5cY6pCpXZZDVpjZ4AuR8McnDXvAkJ+y946pUNRgJoTimwm7uBszIjJyvEH+a gyCFHOgKYqpSpTXhYeQsurY8FX3T+hrGSNUjR5jbbbLqGC4jqJIZRcEMtHMMAC0y6TFYna/ knB9Ih+YeNE= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 18210718347144003447 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V: Add RISC-V into vect_cmdline_needed Date: Tue, 7 Nov 2023 19:48:14 +0800 Message-Id: <20231107114814.851059-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_H4, RCVD_IN_MSPIKE_WL, 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 Like all other targets, we add RISC-V into vect_cmdline_needed. This patch fixes following FAILs: FAIL: gcc.dg/tree-ssa/gen-vect-11b.c scan-tree-dump-times vect "vectorized 0 loops" 1 FAIL: gcc.dg/tree-ssa/gen-vect-11c.c scan-tree-dump-times vect "vectorized 0 loops" 1 FAIL: gcc.dg/tree-ssa/gen-vect-26.c scan-tree-dump-times vect "Alignment of access forced using peeling" 1 FAIL: gcc.dg/tree-ssa/gen-vect-28.c scan-tree-dump-times vect "Alignment of access forced using peeling" 1 gcc/testsuite/ChangeLog: * lib/target-supports.exp: Add RISC-V. --- gcc/testsuite/lib/target-supports.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 17a87db0007..285817ef16e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -4036,7 +4036,8 @@ proc check_effective_target_vect_cmdline_needed { } { || ([istarget sparc*-*-*] && [check_effective_target_sparc_vis]) || ([istarget arm*-*-*] && [check_effective_target_arm_neon]) || [istarget aarch64*-*-*] - || [istarget amdgcn*-*-*]} { + || [istarget amdgcn*-*-*] + || [istarget riscv*-*-*]} { return 0 } else { return 1