Message ID | 20230612121844.1412921-1-pan2.li@intel.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2545009vqr; Mon, 12 Jun 2023 05:20:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ667J7wKRf91fLX+NjFZca6z/jBl2aNd3XJ8U6U+6qkbZi/CLj7WvVmY9eUuGx0J5i+PPwC X-Received: by 2002:a17:906:730d:b0:978:666e:3bf with SMTP id di13-20020a170906730d00b00978666e03bfmr8324442ejc.35.1686572417821; Mon, 12 Jun 2023 05:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686572417; cv=none; d=google.com; s=arc-20160816; b=ru9Vse592QedKjZ5bk508O/nZiBM828UYCfwIDDtNNZszxHGbTfullJ77YMqrOUqlS HG1QNu3qJxp5Dre5Fw3BOlQH2O2CSfAvvBdMK/jrqu0p4qihefNWFniEcwixWl26v10J TE7YcX9jlBxzrowSfxVuL3QlW5vQAYP6jUXezb3kMWQCDpyRfHu09SamftcUJn22xl94 RETYELfy+6gXhnePgpgR7CFWmr+hrn5pEoydtN4KOaW33fr9hOohwOi804K5CbRVPf5K JO5hzf1fDNBbN3onBwsVB9EDGXekdsFrdDiy0YQ90NUibfTPZQ4svsnsgB9f40qpJ/N5 RqbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=KofPkTTo4aHRCi6WVSSJ6qHnIa7vwDcvqpdiIZaCGIU=; b=ppOwo0QbrUmwfL4Jc+YfDmbDkKKCbVW+nxLFwuEC16/B/J+0aLJBvDKtVO30geyQv/ dsQlMzsBve/Pm50ar8ZGv9UDvsr80cDbTqzlQwPhjU0wDh8WC+VLqxWKKNSsgsYHe7// M07dptUVos8K+twKKNVBqWvxXjpRpv6xf0D8+/l4aDPguIRMeHu0VAdEWQIc75Zz+eRB NFYRS6Tu47gg0kKJQ6uOH0cHamzu+S6NozYu363RUakyw28snZTJ2xpaMJOkad21YHFl Da5clojPKZ3ZMBz4j8mIO4mEEKtZUPePYRqdqgN8/I4fqn9uR8r60XtMD1bbV3Y6tYFU j5ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tAnecqId; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id q23-20020a170906941700b00978875dcc9asi5251845ejx.131.2023.06.12.05.20.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 05:20:17 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tAnecqId; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 982DA385842B for <ouuuleilei@gmail.com>; Mon, 12 Jun 2023 12:20:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 982DA385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686572413; bh=KofPkTTo4aHRCi6WVSSJ6qHnIa7vwDcvqpdiIZaCGIU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tAnecqIdiKHnnpH9ChCqK3pBLccfC2OcyLMbGzrAW1E2Iv9xHG76SkXQxOo825AcW I9877ha1CQxT/tZozkORNXTmk93vlE4vNd0gU8fyJz2JXxd5XAJF2bwtn+KpHlp7dk dmtzoWduAnkY6+UXbCvKyk47RRjQDKxBl+mNr/XU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by sourceware.org (Postfix) with ESMTPS id A83583858425 for <gcc-patches@gcc.gnu.org>; Mon, 12 Jun 2023 12:19:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A83583858425 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="337655427" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="337655427" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 05:18:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="958002443" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="958002443" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmsmga006.fm.intel.com with ESMTP; 12 Jun 2023 05:18:46 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 727F710079B2; Mon, 12 Jun 2023 20:18:45 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, rdapp.gcc@gmail.com, jeffreyalaw@gmail.com, pan2.li@intel.com, yanzhang.wang@intel.com, kito.cheng@gmail.com Subject: [PATCH v1] RISC-V: Fix one potential test failure for RVV vsetvl Date: Mon, 12 Jun 2023 20:18:44 +0800 Message-Id: <20230612121844.1412921-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, LIKELY_SPAM_BODY, SPF_HELO_PASS, SPF_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Pan Li via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: pan2.li@intel.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768499359774822046?= X-GMAIL-MSGID: =?utf-8?q?1768499359774822046?= |
Series |
[v1] RISC-V: Fix one potential test failure for RVV vsetvl
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Li, Pan2 via Gcc-patches
June 12, 2023, 12:18 p.m. UTC
From: Pan Li <pan2.li@intel.com> The test will fail on below command with multi-thread like below. However, it comes from one missed "Oz" option when check vsetvl. make -j $(nproc) report RUNTESTFLAGS="rvv.exp riscv.exp" To some reason, this failure cannot be reproduced by RUNTESTFLAGS="rvv.exp" or make without -j option. We would like to fix it and root cause the reason later. Signed-off-by: Pan Li <pan2.li@intel.com> gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/vsetvl/vsetvl-23.c: Adjust test checking. --- gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
OK for this patch, and I am thinking we should adjust rvv.exp to just exclude -O0, -Os and -Oz for some testcases run to simplify many testcases. On Mon, Jun 12, 2023 at 8:20 PM Pan Li via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > From: Pan Li <pan2.li@intel.com> > > The test will fail on below command with multi-thread like below. However, > it comes from one missed "Oz" option when check vsetvl. > > make -j $(nproc) report RUNTESTFLAGS="rvv.exp riscv.exp" > > To some reason, this failure cannot be reproduced by RUNTESTFLAGS="rvv.exp" > or make without -j option. We would like to fix it and root cause the > reason later. > > Signed-off-by: Pan Li <pan2.li@intel.com> > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/rvv/vsetvl/vsetvl-23.c: Adjust test checking. > --- > gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > index 66c90ac10e7..f3420be8ab6 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > @@ -34,4 +34,4 @@ void f(int8_t *base, int8_t *out, size_t vl, size_t m, size_t k) { > /* { dg-final { scan-assembler-times {slli\s+[a-x0-9]+,\s*[a-x0-9]+,\s*4} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */ > /* { dg-final { scan-assembler-times {srli\s+[a-x0-9]+,\s*[a-x0-9]+,\s*8} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */ > /* { dg-final { scan-assembler-times {vsetvli} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts "-funroll-loops" } } } } */ > -/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*tu,\s*m[au]} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } } } */ > +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*tu,\s*m[au]} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts "-funroll-loops" } } } } */ > -- > 2.34.1 >
Committed, thanks Kito. Sounds good to me. Not sure if there are some tests focus on -O0/Os/Oz, we can refine this in another PATCH. Pan -----Original Message----- From: Kito Cheng <kito.cheng@gmail.com> Sent: Monday, June 12, 2023 8:30 PM To: Li, Pan2 <pan2.li@intel.com> Cc: gcc-patches@gcc.gnu.org; juzhe.zhong@rivai.ai; rdapp.gcc@gmail.com; jeffreyalaw@gmail.com; Wang, Yanzhang <yanzhang.wang@intel.com> Subject: Re: [PATCH v1] RISC-V: Fix one potential test failure for RVV vsetvl OK for this patch, and I am thinking we should adjust rvv.exp to just exclude -O0, -Os and -Oz for some testcases run to simplify many testcases. On Mon, Jun 12, 2023 at 8:20 PM Pan Li via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > From: Pan Li <pan2.li@intel.com> > > The test will fail on below command with multi-thread like below. > However, it comes from one missed "Oz" option when check vsetvl. > > make -j $(nproc) report RUNTESTFLAGS="rvv.exp riscv.exp" > > To some reason, this failure cannot be reproduced by RUNTESTFLAGS="rvv.exp" > or make without -j option. We would like to fix it and root cause the > reason later. > > Signed-off-by: Pan Li <pan2.li@intel.com> > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/rvv/vsetvl/vsetvl-23.c: Adjust test checking. > --- > gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > index 66c90ac10e7..f3420be8ab6 100644 > --- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > +++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c > @@ -34,4 +34,4 @@ void f(int8_t *base, int8_t *out, size_t vl, size_t > m, size_t k) { > /* { dg-final { scan-assembler-times > {slli\s+[a-x0-9]+,\s*[a-x0-9]+,\s*4} 1 { target { no-opts "-O0" > no-opts "-g" no-opts "-funroll-loops" } } } } */ > /* { dg-final { scan-assembler-times > {srli\s+[a-x0-9]+,\s*[a-x0-9]+,\s*8} 1 { target { no-opts "-O0" > no-opts "-g" no-opts "-funroll-loops" } } } } */ > /* { dg-final { scan-assembler-times {vsetvli} 5 { target { no-opts > "-O0" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts > "-funroll-loops" } } } } */ > -/* { dg-final { scan-assembler-times > {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*tu,\s*m[au]} 5 { target { > no-opts "-O0" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } > } } */ > +/* { dg-final { scan-assembler-times > +{vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*tu,\s*m[au]} 5 { target > +{ no-opts "-O0" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts > +"-funroll-loops" } } } } */ > -- > 2.34.1 >
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c index 66c90ac10e7..f3420be8ab6 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl-23.c @@ -34,4 +34,4 @@ void f(int8_t *base, int8_t *out, size_t vl, size_t m, size_t k) { /* { dg-final { scan-assembler-times {slli\s+[a-x0-9]+,\s*[a-x0-9]+,\s*4} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */ /* { dg-final { scan-assembler-times {srli\s+[a-x0-9]+,\s*[a-x0-9]+,\s*8} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */ /* { dg-final { scan-assembler-times {vsetvli} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts "-funroll-loops" } } } } */ -/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*tu,\s*m[au]} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-g" no-opts "-funroll-loops" } } } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*tu,\s*m[au]} 5 { target { no-opts "-O0" no-opts "-Os" no-opts "-Oz" no-opts "-g" no-opts "-funroll-loops" } } } } */