From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by sourceware.org (Postfix) with ESMTPS id 505653858410; Sat, 9 Oct 2021 02:51:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 505653858410 Received: by mail-ua1-x92b.google.com with SMTP id u5so7981617uao.13; Fri, 08 Oct 2021 19:51:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=YLMPLsTID9SR+/Ed52Z42c2sw3eSbtc70ia11L0jbo4=; b=0hxil4uyqaMU+2kQpDDEX20KMS6jgIw8ny1Tc0lGO5GifVZp7Z9YiAp67Y9HoTT+4Q FPb1XTA0mJlPfyw4D0R+MHgpbS8aIARk6hC2KTH3fvf+Aq/+UwzHv/5UV3rgrcKDOWYQ t8J6da0xsdseVfVlMqq9bVgStkIdrv2JW5ljJH2Ctd2GuALFS2VI42noaizucVig5M2F fAEq/WafVZO9cRObBgqlUhza6dEh0W2twU15rz93HVmJyXpOg/y0v29lVS59c1zUOMtM xCChobxsfrmNP7FUusmMZz3Mz7Ra87Sow+FL+NqfX2UKPuF97qdRaPbnkJBn24I7L8bY 6xrQ== X-Gm-Message-State: AOAM532nRs+Fd0XK66OCWxR38wruo0MwPnC5lF/2nT9mosDTt43usIcC Ozsqj1kvOrv07WhUFiZuE8ohanijGs5wq58em7olJ6rG+Gg6qA== X-Google-Smtp-Source: ABdhPJwlNcAYfCCfI5V9D3gSKymlwmeI83DC//Ql55EVv9cKVPWA7tYh/fwl7yVQIoWTqABIrs9C90N76FFhl6HDqBI= X-Received: by 2002:ab0:540d:: with SMTP id n13mr7269148uaa.78.1633747883993; Fri, 08 Oct 2021 19:51:23 -0700 (PDT) MIME-Version: 1.0 References: <20211008172701.151452864721@gskx-2.sc.intel.com> In-Reply-To: From: Hongtao Liu Date: Sat, 9 Oct 2021 10:57:56 +0800 Message-ID: Subject: Re: [r12-4240 Regression] FAIL: libgomp.c++/scan-9.C scan-tree-dump-times vect "vectorized [2-6] loops" 2 on Linux/x86_64 To: "sunil.k.pandey" Cc: GCC Patches , gcc-regression@gcc.gnu.org, "Liu, Hongtao" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: Sat, 09 Oct 2021 02:51:25 -0000 On Sat, Oct 9, 2021 at 10:53 AM Hongtao Liu wrote: > > On Sat, Oct 9, 2021 at 1:27 AM sunil.k.pandey via Gcc-patches > wrote: > > > > On Linux/x86_64, > > > > 2b8453c401b699ed93c085d0413ab4b5030bcdb8 is the first bad commit > > commit 2b8453c401b699ed93c085d0413ab4b5030bcdb8 > > Author: liuhongt > > Date: Mon Sep 6 13:48:49 2021 +0800 > > > > Enable auto-vectorization at O2 with very-cheap cost model. > > > > caused > > > > FAIL: gcc.dg/optimize-bswapsi-5.c scan-tree-dump-times optimized "=3D _= _builtin_bswap32 \\(" 2 > > FAIL: gcc.dg/optimize-bswapsi-6.c scan-tree-dump store-merging "32 bit = bswap implementation found at" > > FAIL: gcc.dg/torture/pr69760.c -O2 -flto -fuse-linker-plugin -fno-fat= -lto-objects (test for excess errors) > Those testcase should be adjusted with either add -fno-tree-vectorize > or add -mtune=3Dgeneric when target is x86 except for runtime test > pr69760.c which seems to be a real bug. Oh, it's not runtime failure, its extra warning message after vectorization= . /export/users2/liuhongt/gcc/intel-innersource/O2_vectorization/gcc/testsuit= e/gcc.dg/torture/pr69760.c: In function 'test_func': /export/users2/liuhongt/gcc/intel-innersource/O2_vectorization/gcc/testsuit= e/gcc.dg/torture/pr69760.c:16:10: warning: iteration 54 invokes undefined behavior [-Waggressive-loop-optimizations] /export/users2/liuhongt/gcc/intel-innersource/O2_vectorization/gcc/testsuit= e/gcc.dg/torture/pr69760.c:12:17: note: within this loop > > FAIL: gcc.dg/Warray-bounds-51.c target { i?86-*-* x86_64-*-* } (test = for warnings, line 41) > > FAIL: gcc.dg/Wstringop-overflow-14.c target { i?86-*-* x86_64-*-* } (= test for warnings, line 38) > > FAIL: g++.dg/tree-ssa/pr94403.C scan-tree-dump-times store-merging "_= _builtin_bswap32" 1 > > FAIL: g++.dg/tree-ssa/pr94403.C scan-tree-dump-times store-merging "_= _builtin_bswap64" 1 > > > > with GCC configured with > > > > ../../gcc/configure --prefix=3D/local/skpandey/gccwork/toolwork/gcc-bis= ect-master/master/r12-4240/usr --enable-clocale=3Dgnu --with-system-zlib --= with-demangler-in-ld --with-fpmath=3Dsse --enable-languages=3Dc,c++,fortran= --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstra= p > > > > To reproduce: > > > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/opti= mize-bswapsi-5.c --target_board=3D'unix{-m64\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/opti= mize-bswapsi-6.c --target_board=3D'unix{-m32\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/opti= mize-bswapsi-6.c --target_board=3D'unix{-m64\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg-torture.exp=3Dgcc= .dg/torture/pr69760.c --target_board=3D'unix{-m32\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/Warr= ay-bounds-51.c --target_board=3D'unix{-m32\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/Warr= ay-bounds-51.c --target_board=3D'unix{-m64\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/Wstr= ingop-overflow-14.c --target_board=3D'unix{-m32\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dgcc.dg/Wstr= ingop-overflow-14.c --target_board=3D'unix{-m64\ -march=3Dcascadelake}'" > > $ cd {build_dir}/gcc && make check RUNTESTFLAGS=3D"dg.exp=3Dg++.dg/tree= -ssa/pr94403.C --target_board=3D'unix{-m64\ -march=3Dcascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-7.c --target_= board=3D'unix{-m32}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-7.c --target_= board=3D'unix{-m32\ -march=3Dcascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-7.c --target_= board=3D'unix{-m64}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-7.c --target_= board=3D'unix{-m64\ -march=3Dcascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-8.c --target_= board=3D'unix{-m32}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-8.c --target_= board=3D'unix{-m32\ -march=3Dcascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-8.c --target_= board=3D'unix{-m64}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check RUNTESTFL= AGS=3D"c++.exp=3Dlibgomp.c-c++-common/lastprivate-conditional-8.c --target_= board=3D'unix{-m64\ -march=3Dcascadelake}'" > > > > (Please do not reply to this email, for question about this report, con= tact me at skpgkp2 at gmail dot com) > > > > -- > BR, > Hongtao --=20 BR, Hongtao