From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 228DA3858400 for ; Tue, 14 Dec 2021 07:49:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 228DA3858400 Received: by mail-wr1-x430.google.com with SMTP id a18so30886670wrn.6 for ; Mon, 13 Dec 2021 23:49:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:message-id:subject:mime-version :list-id; bh=LxQ1z5jx9YvhOS/zO8Z/dTDyPuS0iWmwmALRTWabwC4=; b=gBVTbOFKXym7dvmaSvSBZv9E00h1D3KMpsinlSo6DCcZtLbNpFRNobZbVvhTp9/OIt xZmYu2lB7ErQ4a5AJMYvC4ZrOXcPTdW+TETb7Y478HCeH5v70xIhw2ZMdVEmy4ygikzj 7zWgRfM7nAJjhh9W5+l2UFvsDp3cbaufWH3VAi/D4P/xCIhGdjgjOB+Kb1LEkFzothTD lceTXYIOepr9J/ek47WngJNyAvuzcDx2cZRLmTu7Ij42kZemd2+8XMaZNBDykjtI2OQr EtYNDNF2Djbp5bTwoeKgCViaT/uCdkOKOgNcnIrgw2uutxqI6NNA83UcPNQYyniGHcFW OL/g== X-Gm-Message-State: AOAM531m4yrQaUhJ/wJBDX3p2rSx5Ztd+Z+x8lnEr7sesaqF/l887/as buJfMNsPHwUfFo6EZGbf/3VuCw== X-Google-Smtp-Source: ABdhPJy+jU1kJRxCZcGLm1gBvPwjeVKh90uwSuaiJnniX3ovRq3BKR3T7Dvkab8p0wm+rfQhZbEorw== X-Received: by 2002:a05:6000:2ac:: with SMTP id l12mr3937198wry.441.1639468140130; Mon, 13 Dec 2021 23:49:00 -0800 (PST) Received: from jenkins.jenkins (ci.linaro.org. [88.99.136.175]) by smtp.gmail.com with ESMTPSA id q24sm1254983wmj.21.2021.12.13.23.48.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 23:48:59 -0800 (PST) From: ci_notify@linaro.org X-Google-Original-From: linaro-infrastructure-errors@lists.linaro.org Date: Tue, 14 Dec 2021 07:48:58 +0000 (UTC) To: Joel Hutton Cc: gcc-regression@gcc.gnu.org Message-ID: <243500195.4335.1639468139546@jenkins.jenkins> Subject: [TCWG CI] Regression caused by gcc: pr103523: Check for PLUS/MINUS support MIME-Version: 1.0 X-Jenkins-Job: TCWG Bisect tcwg_gnu_cross_build/release-aarch64 X-Jenkins-Result: SUCCESS X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_LOTSOFHASH, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2021 07:49:03 -0000 [TCWG CI] Regression caused by gcc: pr103523: Check for PLUS/MINUS support: commit f2cc8d059df8aea1b811a4a68512d137f4e83bd5 Author: Joel Hutton pr103523: Check for PLUS/MINUS support Results regressed to # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # First few build errors in logs: # 00:01:46 ../../../../../../gcc/gcc/tree-vect-loop.c:8000:8: error: =E2=80= =98directly_supported_p=E2=80=99 was not declared in this scope # 00:01:46 make[2]: *** [tree-vect-loop.o] Error 1 # 00:01:53 make[1]: *** [all-gcc] Error 2 # 00:01:53 make: *** [all] Error 2 from # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # build_abe stage1: 2 # build_abe linux: 3 # build_abe glibc: 4 # build_abe stage2: 5 # build_abe gdb: 6 # build_abe qemu: 7 THIS IS THE END OF INTERESTING STUFF. BELOW ARE LINKS TO BUILDS, REPRODUCT= ION INSTRUCTIONS, AND THE RAW COMMIT. This commit has regressed these CI configurations: - tcwg_gnu_cross_build/release-aarch64 First_bad build: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-rele= ase-aarch64/1/artifact/artifacts/build-f2cc8d059df8aea1b811a4a68512d137f4e8= 3bd5/ Last_good build: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-rele= ase-aarch64/1/artifact/artifacts/build-7054e8517c79dbc6f1fa0952f24f26e4d3cd= 842d/ Baseline build: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-relea= se-aarch64/1/artifact/artifacts/build-baseline/ Even more details: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-re= lease-aarch64/1/artifact/artifacts/ Reproduce builds: mkdir investigate-gcc-f2cc8d059df8aea1b811a4a68512d137f4e83bd5 cd investigate-gcc-f2cc8d059df8aea1b811a4a68512d137f4e83bd5 # Fetch scripts git clone https://git.linaro.org/toolchain/jenkins-scripts # Fetch manifests and test.sh script mkdir -p artifacts/manifests curl -o artifacts/manifests/build-baseline.sh https://ci.linaro.org/job/tcw= g_gnu_cross_build-bisect-release-aarch64/1/artifact/artifacts/manifests/bui= ld-baseline.sh --fail curl -o artifacts/manifests/build-parameters.sh https://ci.linaro.org/job/t= cwg_gnu_cross_build-bisect-release-aarch64/1/artifact/artifacts/manifests/b= uild-parameters.sh --fail curl -o artifacts/test.sh https://ci.linaro.org/job/tcwg_gnu_cross_build-bi= sect-release-aarch64/1/artifact/artifacts/test.sh --fail chmod +x artifacts/test.sh # Reproduce the baseline build (build all pre-requisites) ./jenkins-scripts/tcwg_gnu-build.sh @@ artifacts/manifests/build-baseline.s= h # Save baseline build state (which is then restored in artifacts/test.sh) mkdir -p ./bisect rsync -a --del --delete-excluded --exclude /bisect/ --exclude /artifacts/ -= -exclude /gcc/ ./ ./bisect/baseline/ cd gcc # Reproduce first_bad build git checkout --detach f2cc8d059df8aea1b811a4a68512d137f4e83bd5 ../artifacts/test.sh # Reproduce last_good build git checkout --detach 7054e8517c79dbc6f1fa0952f24f26e4d3cd842d ../artifacts/test.sh cd .. Full commit (up to 1000 lines): commit f2cc8d059df8aea1b811a4a68512d137f4e83bd5 Author: Joel Hutton Date: Fri Dec 10 10:26:42 2021 +0000 pr103523: Check for PLUS/MINUS support =20 Check for PLUS_EXPR/MINUS_EXPR support in vectorizable_induction. PR103523 is an ICE on valid code: =20 void d(float *a, float b, int c) { float e; for (; c; c--, e +=3D b) a[c] =3D e; } =20 This is due to not checking for PLUS_EXPR support, which is missing in VNx2sf mode. This causes an ICE at expand time. This patch adds a check for support in vectorizable_induction. =20 gcc/ChangeLog: =20 PR tree-optimization/103523 * tree-vect-loop.c (vectorizable_induction): Check for PLUS_EXPR/MINUS_EXPR support. =20 gcc/testsuite/ChangeLog: =20 * gcc.target/aarch64/pr103523.c: New test. --- gcc/testsuite/gcc.target/aarch64/pr103523.c | 8 ++++++++ gcc/tree-vect-loop.c | 13 +++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/pr103523.c b/gcc/testsuite/gc= c.target/aarch64/pr103523.c new file mode 100644 index 00000000000..736e8936c5f --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/pr103523.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ +/* { dg-options "-march=3Darmv8-a+sve -mtune=3Dneoverse-v1 -Ofast" } */ + +void d(float *a, float b, int c) { + float e; + for (; c; c--, e +=3D b) + a[c] =3D e; +} diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index e871df9d1a0..54320681119 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -7992,6 +7992,15 @@ vectorizable_induction (loop_vec_info loop_vinfo, return false; } =20 + step_expr =3D STMT_VINFO_LOOP_PHI_EVOLUTION_PART (stmt_info); + gcc_assert (step_expr !=3D NULL_TREE); + tree step_vectype =3D get_same_sized_vectype (TREE_TYPE (step_expr), vec= type); + + /* Check for backend support of PLUS/MINUS_EXPR. */ + if (!directly_supported_p (PLUS_EXPR, step_vectype) + || !directly_supported_p (MINUS_EXPR, step_vectype)) + return false; + if (!vec_stmt) /* transformation not required. */ { unsigned inside_cost =3D 0, prologue_cost =3D 0; @@ -8051,10 +8060,6 @@ vectorizable_induction (loop_vec_info loop_vinfo, if (dump_enabled_p ()) dump_printf_loc (MSG_NOTE, vect_location, "transform induction phi.\n"= ); =20 - step_expr =3D STMT_VINFO_LOOP_PHI_EVOLUTION_PART (stmt_info); - gcc_assert (step_expr !=3D NULL_TREE); - tree step_vectype =3D get_same_sized_vectype (TREE_TYPE (step_expr), vec= type); - pe =3D loop_preheader_edge (iv_loop); /* Find the first insertion point in the BB. */ basic_block bb =3D gimple_bb (phi); >>From hjl@sc.intel.com Tue Dec 14 09:11:29 2021 Return-Path: X-Original-To: gcc-regression@gcc.gnu.org Delivered-To: gcc-regression@gcc.gnu.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id 592F33858400 for ; Tue, 14 Dec 2021 09:11:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 592F33858400 X-IronPort-AV: E=McAfee;i="6200,9189,10197"; a="238747294" X-IronPort-AV: E=Sophos;i="5.88,204,1635231600"; d="scan'208";a="238747294" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2021 01:11:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,205,1635231600"; d="scan'208";a="518155061" Received: from scymds02.sc.intel.com ([10.82.73.244]) by orsmga008.jf.intel.com with ESMTP; 14 Dec 2021 01:11:24 -0800 Received: from gnu-snb-1.sc.intel.com (gnu-snb-1.sc.intel.com [172.25.33.219]) by scymds02.sc.intel.com with ESMTP id 1BE9BOv6017161; Tue, 14 Dec 2021 01:11:24 -0800 Received: by gnu-snb-1.sc.intel.com (Postfix, from userid 1000) id A8C16180069; Tue, 14 Dec 2021 01:11:24 -0800 (PST) Date: Tue, 14 Dec 2021 01:11:24 -0800 To: skpgkp2@gmail.com, hjl.tools@gmail.com, gcc-regression@gcc.gnu.org Subject: Regressions on master at commit r12-5945 vs commit r12-5919 on Linux/i686 User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20211214091124.A8C16180069@gnu-snb-1.sc.intel.com> From: "H.J. Lu" X-Spam-Status: No, score=-3468.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2021 09:11:29 -0000 New failures: FAIL: gfortran.dg/goacc/privatization-1-compute.f90 -O at line 46 (test for warnings, line 27) FAIL: gfortran.dg/goacc/privatization-1-compute-loop.f90 -O at line 53 (test for warnings, line 28) FAIL: gfortran.dg/goacc/privatization-1-routine_gang-loop.f90 -O at line 53 (test for warnings, line 28) New passes: