On Sat, Oct 9, 2021 at 10:53 AM Hongtao Liu <crazy...@gmail.com> wrote: > > On Sat, Oct 9, 2021 at 1:27 AM sunil.k.pandey via Gcc-patches > <gcc-patches@gcc.gnu.org> wrote: > > > > On Linux/x86_64, > > > > 2b8453c401b699ed93c085d0413ab4b5030bcdb8 is the first bad commit > > commit 2b8453c401b699ed93c085d0413ab4b5030bcdb8 > > Author: liuhongt <hongtao....@intel.com> > > 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 "= > > __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=generic 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/testsuite/gcc.dg/torture/pr69760.c: In function 'test_func': /export/users2/liuhongt/gcc/intel-innersource/O2_vectorization/gcc/testsuite/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/testsuite/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=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-4240/usr > > --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld > > --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet > > --without-isl --enable-libmpx x86_64-linux --disable-bootstrap > > > > To reproduce: > > > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/optimize-bswapsi-5.c --target_board='unix{-m64\ > > -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/optimize-bswapsi-6.c --target_board='unix{-m32\ > > -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/optimize-bswapsi-6.c --target_board='unix{-m64\ > > -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg-torture.exp=gcc.dg/torture/pr69760.c > > --target_board='unix{-m32\ -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/Warray-bounds-51.c --target_board='unix{-m32\ > > -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/Warray-bounds-51.c --target_board='unix{-m64\ > > -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/Wstringop-overflow-14.c > > --target_board='unix{-m32\ -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=gcc.dg/Wstringop-overflow-14.c > > --target_board='unix{-m64\ -march=cascadelake}'" > > $ cd {build_dir}/gcc && make check > > RUNTESTFLAGS="dg.exp=g++.dg/tree-ssa/pr94403.C --target_board='unix{-m64\ > > -march=cascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-7.c > > --target_board='unix{-m32}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-7.c > > --target_board='unix{-m32\ -march=cascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-7.c > > --target_board='unix{-m64}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-7.c > > --target_board='unix{-m64\ -march=cascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-8.c > > --target_board='unix{-m32}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-8.c > > --target_board='unix{-m32\ -march=cascadelake}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-8.c > > --target_board='unix{-m64}'" > > $ cd {build_dir}/x86_64-linux/libgomp/testsuite && make check > > RUNTESTFLAGS="c++.exp=libgomp.c-c++-common/lastprivate-conditional-8.c > > --target_board='unix{-m64\ -march=cascadelake}'" > > > > (Please do not reply to this email, for question about this report, contact > > me at skpgkp2 at gmail dot com) > > > > -- > BR, > Hongtao -- BR, Hongtao