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: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 162435 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp176612vqo; Tue, 7 Nov 2023 03:48:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5am2v5ZxsqBOOxXCA+OAdhCA7f8jUBOu+fjBlaQF6RfH+PJ1PJK8FZWpPRyZj3CXjg0Ow X-Received: by 2002:a05:620a:4711:b0:775:7e16:2cdf with SMTP id bs17-20020a05620a471100b007757e162cdfmr35839250qkb.39.1699357728431; Tue, 07 Nov 2023 03:48:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699357728; cv=pass; d=google.com; s=arc-20160816; b=jtXDqz4ksD0PxNHf/bETsGdv0J7r5djUp8ey3wxq0IgZc2WLJF4ir1q8s2yaka77TQ hA70mo05tbhcujeP/lBnTuY3KTVR638XVzLu7Fin535t1YMYXrUhlchvTdb6xAx1j5MV j+qIET+UKvTRhNTuN/+EAt22vMU73U6BHLY+6mVnXZrMgTXzxvLchZdBgI1eZGU0XakP +1MAFl9Xk1JuNk16oCBE0JINAtHzy6AMhjoNTXUk6ScLBL+z5CsLHtxzgQ35EFO1glz4 ENyZ8qU0f6lNJg7lSFSnYv3ul1ae2pM0qZ5nYzdkznBDlT/Oeyzj9GKQ8boSofoyWpKs y2VA== 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:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=p1M8DqP4nAnKyqo/xw2nz/F2t0yo7QsrKwDvfAPCLxg=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=ry7K/gnDh4xrCmDWL+Kec8RmGOFARRJVR8xDGeSVzAx/HClXGHbqB1f0yrnheau+xi sIk/Ji1ZcHc2NgTZPvrlFBalv3x5ng2vmnu1o7uNtIeqRz8qcXV2S5w0qFMprztOsFmw FtTy4UYSjT+1orSCY0q8/tkH7D4+ji8JIw+4HiLHfL3Y9pA75biIysvEdoSHG0EwxZAb cIpl3DzTjZEXrCEbKpSVkOpl3Hw96rJSq1/QOscSBzu7po41HFGiputvFswvVuEOjs85 gRvDXWDIYbAEdEOf+1m8DYSFFynM50c0vCStZMHrwb1UJmsNyCk0WQz1F2zhWxBn2Jy+ Eptg== 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 u12-20020a05620a0c4c00b0077a630232e7si4608227qki.136.2023.11.07.03.48.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 03:48:48 -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 30F05385DC1F for ; Tue, 7 Nov 2023 11:48:48 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781905729776626720 X-GMAIL-MSGID: 1781905729776626720 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