From patchwork Sun Oct 8 11:35:31 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: 149735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1324484vqo; Sun, 8 Oct 2023 04:36:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeWWQVBUDIltg0Zo4MFAUk3Vod/PtA2DY92DcciorhuPY8bo/fkhn4YlZJMmFwKjibkD21 X-Received: by 2002:a17:907:75c6:b0:9a5:d972:af50 with SMTP id jl6-20020a17090775c600b009a5d972af50mr11600767ejc.19.1696764978157; Sun, 08 Oct 2023 04:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696764978; cv=none; d=google.com; s=arc-20160816; b=fUKyexHixuXCYjrUPQ1S1MlbvA/cP6RA9E8tVCCbEZwIUk1awNfd/vCkUxBhfZUAyI NpZk8gvNKMKDVymtC6xygv/n0zwspHyAPjZI82wKm7UW+Btlv6aQFpgMkBKY28o6Cc3R JlQf1kXxSyAsLpBJmpRgnMbuBnUE3Vx0vxZ+gaK4q3n/wto1kpIvcuUp9cVbmr2qpAm/ E0P3x2XyP+ts96KxQIH+ksOFiDJJs+A5C5CGj1jKBMRVQ8xPWIV2bD3AMhU3IwkRkgkZ J1TJwFubxPuebFieM5z+fGjaLPHR9prNSziAzGvC1PxOSyzdsqLAwTt1teUWnnVn0vx1 jyhA== 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=Lg4UG/ZEUKkdPE1r4+Go9Np82MYQJH8gnzBJh+81Pko=; fh=Ytz0BgUryGxSKnlvo5iIYZYov/AuWMbdn9WUJJDE2rE=; b=TFykuabq1YL40TGSrEFEUEyw7metCQZt9xnIaUMIkU3VcUFe06rbgjcK5jNQOYBkL8 8h8Fs9SF+Ph9Y5XrEXpzEEPQtLEJ9FLBUovE6qtqUAB9FGtUms/AVFt1A8lm/NxA/DRY Q682mWf6N5hSVa9TPUBjnWl19zS4GLxIjWHI6S3e2VgcXOW/7DFrOVz6QGSYMZRD6nLP ok6hJjhgXx3mqyi3hfB5n6R85r04jl8T4Nudt9BvXRn6wJgBeqKQu2cdHyMIHxxHV3ey QNmZo7DC+DQSd0UEiM5qDttZZayWb2QFycb1J9MTuBNdeUpxSrAW0ncwY6kNHih1zIg1 fg5A== ARC-Authentication-Results: i=1; mx.google.com; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t12-20020a1709066bcc00b009930c030830si3530485ejs.633.2023.10.08.04.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 04:36:18 -0700 (PDT) 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; 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 EB41C3858C20 for ; Sun, 8 Oct 2023 11:36:11 +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 43A1E3858D1E for ; Sun, 8 Oct 2023 11:35:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43A1E3858D1E 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: bizesmtp78t1696764935t36bfxs0 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 08 Oct 2023 19:35:34 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: /gpUuYPpeIVTjwKuNilrtglBCnuNEr0o+pd96K0VKp/0lm26b0HwQC78PvanJ hOzaXl4Q706Aiit4CKTxpPZLHT0DkQcEkf60+mLUf4TVTDNDipZt8Iaxftr0Y4mhgH3/d4F JGonaZKeVtSqhzGFz7n6eyBssFR00+jClaLMdnPqrph/QeRwF2bB6Ke+8sRk/p3FWn3P1XX r0RWsLHN/Gwcr/qi+OjUZLxqkxuxmwI6UFh+ltWNEL9ktRmZ1jeB0XzGDPDJvflcBeGMZzA PQQwmr4RDG2/HaBZNoDQF1r5wOI2PYbFca/IeK83rsdjdlCSAV31iexCsBYkksFlGQ1/rqN knC/7fdtxsOZv/AsqOYQDWDjkb0yMMvUMhDtPqGZ0NJ4DNsBFmKIMyQif82bj8GxICZTgHp 0jlSB08HD3E= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 723147824046329131 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, jeffreyalaw@gmail.com, Juzhe-Zhong Subject: [PATCH] TEST: Fix dump FAIL of vect-multitypes-16.c for RVV Date: Sun, 8 Oct 2023 19:35:31 +0800 Message-Id: <20231008113531.3905091-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 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: 1779187033642155137 X-GMAIL-MSGID: 1779187033642155137 RVV (RISC-V Vector) doesn't enable vect_unpack, but we still vectorize this case well. So, adjust dump check for RVV. gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-multitypes-16.c: Fix dump FAIL of RVV. --- gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c b/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c index a61f1a9a221..829a4d41601 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c +++ b/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c @@ -35,6 +35,6 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_unpack } } } */ -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_unpack } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_unpack || riscv_v } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { { ! vect_unpack } && { ! riscv_v } } } } } */