From patchwork Mon Oct 9 23:23:26 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: 150418 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp2173914vqo; Mon, 9 Oct 2023 16:24:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkPVQjamvRD1WRu0x7/dateZcOBfg7vpSBms01oHXvyre7wFvS0Ffm7kvr99clfiI5zkk9 X-Received: by 2002:a17:907:270a:b0:9b2:b749:ff93 with SMTP id w10-20020a170907270a00b009b2b749ff93mr15221706ejk.24.1696893847163; Mon, 09 Oct 2023 16:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696893847; cv=none; d=google.com; s=arc-20160816; b=09NgywkNal20DKcviGKeH5aFbSfkKhPa0hRbcId5/vyXbRPrvVbXXWOV223Nh2HQn4 btyu+wFsWwNfmWPhWgggoMtGo6VsFSzulIzLoahTOmdWSC0GGP5lJrLShwCUl73Rda3c jCE2P452D9cZplES10xTJ4Hr9PpBsyH4Mr/SRpiLjudNOuNdedxfmWofPfabZdDiEknj h6ZWD8MsqcWHnpfQOatz7+5Z68NhDktBu4jKEKiHvL7E2FBZqZkQmS08jnUJfuoiyDwr F4Z5eZV3d6pRP6AS7bmduDeKq8ROxK2nAJvWieABI1f8hbNs4XBYTlQM4MrDHU9M8dsG bdcQ== ARC-Message-Signature: i=1; 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:dmarc-filter:delivered-to; bh=7hb7jmqmziEbVhMO8G9BPaykrTiDpxF2ZV4YBATqqfc=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=jXI30ZMlOiDyujf+DBlxGO86PAA6BiXGWIwaHZRWtK/osKOepSJDUivL6Z2d/c1KwJ 27k4DgBZTFDgN548ybOWtQmzQy0+1pcoF+AoQIOVuK8TdCyXvMeZ+lvjWeD0CzKbDX8t uzVdSZ4GcTfQiWDFTfndRdRrvOXQqoI7RnrTKxhKMbKLABWzv3rZVlHL2yLnHBvqeewn SEwOkJrqhY9UWHfOY6lwEBsj+5NLHMMS9anMQSA6dD7kBH4zlbdv3JE1OysLeHrtGXQz tq1IPXbKvB9RUQXTFQrNAJ7EQ6EiXgdBrqpJA+QMn2AOd8ozw4bJCcfr94zbO9CLWtXG I9TQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d2-20020a1709064c4200b009ae5a0dfc42si4743410ejw.626.2023.10.09.16.24.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 16:24:07 -0700 (PDT) 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; 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 E04053858D35 for ; Mon, 9 Oct 2023 23:24:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by sourceware.org (Postfix) with ESMTPS id 3BA613858D28 for ; Mon, 9 Oct 2023 23:23:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3BA613858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp86t1696893808tgp56m6f Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 10 Oct 2023 07:23:27 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: W+onFc5Tw4NnCf6R/JUK4RxSqImeV+dQ4kLffDC2ioQSMUzwsBTUrzExZTTl8 BUYso5vqvXmkhEoMvEG5oeajoSGomidIDtjR33DWV86RU2ILOEJi+B59eSY4skzUAIempcp OUI/5HGkji0VvclAlEBdMduDzF6Q7X5Sigj+h6uMO33C4+qB+LRuILtZrRgGPD61U/wB3Zo uPtcwfHtteMq5lP1JvvKwmfDAQxx0CmrW+go9MwqP2LA58VS/PkNH2ydroJn5MtRbEs+x7a X9Pie7bdrhSGH19d6rHbMyaClfVbfJzj/6AFMV5y43N4mJ6cClyCF9nz9LfbUcJjdeoJh04 qR3xYwTOhGfFGQrb95ZBksE19HcCwFp+h1cQaCzCgjgE3bcZec= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13529166640978228976 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 available vector size for RVV Date: Tue, 10 Oct 2023 07:23:26 +0800 Message-Id: <20231009232326.91336-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=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP 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: 1779322162707942422 X-GMAIL-MSGID: 1779322162707942422 For RVV, we have VLS modes enable according to TARGET_MIN_VLEN from M1 to M8. For example, when TARGET_MIN_VLEN = 128 bits, we enable 128/256/512/1024 bits VLS modes. This patch fixes following FAIL: FAIL: gcc.dg/vect/bb-slp-subgroups-2.c -flto -ffat-lto-objects scan-tree-dump-times slp2 "optimized: basic block" 2 FAIL: gcc.dg/vect/bb-slp-subgroups-2.c scan-tree-dump-times slp2 "optimized: basic block" 2 gcc/testsuite/ChangeLog: * lib/target-supports.exp: Add 256/512/1024 --- gcc/testsuite/lib/target-supports.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index af52c38433d..dc366d35a0a 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -8881,7 +8881,7 @@ proc available_vector_sizes { } { lappend result 4096 2048 1024 512 256 128 64 32 16 8 4 2 } elseif { [istarget riscv*-*-*] } { if { [check_effective_target_riscv_v] } { - lappend result 0 32 64 128 + lappend result 0 32 64 128 256 512 1024 } lappend result 128 } else {