On Tue, Dec 29, 2020 at 3:01 PM sunil.k.pandey via Gcc-regression <gcc-regress...@gcc.gnu.org> wrote: > > On Linux/x86_64, > > 12ae2bc70846a2be8255eaa41322cd1a5a7b7350 is the first bad commit > commit 12ae2bc70846a2be8255eaa41322cd1a5a7b7350 > Author: Hongyu Wang <hongyu.w...@intel.com> > Date: Fri Dec 25 09:25:39 2020 +0800 > > Fix standard name for zero/sign extend expanders > > caused > > FAIL: gcc.target/i386/pr92658-avx512bw-2.c scan-assembler-times pmovsxbd 2 > FAIL: gcc.target/i386/pr92658-avx512bw-2.c scan-assembler-times pmovsxbq 2 > FAIL: gcc.target/i386/pr92658-avx512bw-2.c scan-assembler-times pmovsxbw 2 > FAIL: gcc.target/i386/pr92658-avx512bw-2.c scan-assembler-times pmovsxdq 2 > FAIL: gcc.target/i386/pr92658-avx512bw-2.c scan-assembler-times pmovsxwd 2 > FAIL: gcc.target/i386/pr92658-avx512bw-2.c scan-assembler-times pmovsxwq 2 > > with GCC configured with > > ../../gcc/configure > --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r11-6351/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 >
I'm going to checkin this patch as a simple fix for adjusting the testcase. -- BR, Hongtao
From 63abcccb7a375bae6dea8a7885de0232f20f175f Mon Sep 17 00:00:00 2001 From: Hongyu Wang <hongyu.w...@intel.com> Date: Tue, 29 Dec 2020 15:14:09 +0800 Subject: [PATCH] Adjust testcase for PR 92658 gcc/testsuite/ChangeLog: * testsuite/gcc.target/i386/pr92658-avx512bw.c: Add -mprefer-vector-width=512 to avoid impact of different default mtune which gcc is built with. * testsuite/gcc.target/i386/pr92658-avx512bw-2.c: Ditto. --- gcc/testsuite/gcc.target/i386/pr92658-avx512bw-2.c | 2 +- gcc/testsuite/gcc.target/i386/pr92658-avx512bw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-2.c b/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-2.c index 811f21aa917..33eecbf3afa 100644 --- a/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-2.c +++ b/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-2.c @@ -1,6 +1,6 @@ /* PR target/92658 */ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -mavx512bw" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx512bw -mprefer-vector-width=512" } */ typedef char v64qi __attribute__((vector_size (64))); typedef short v32hi __attribute__((vector_size (64))); diff --git a/gcc/testsuite/gcc.target/i386/pr92658-avx512bw.c b/gcc/testsuite/gcc.target/i386/pr92658-avx512bw.c index b1d54d24a81..2e8978481e1 100644 --- a/gcc/testsuite/gcc.target/i386/pr92658-avx512bw.c +++ b/gcc/testsuite/gcc.target/i386/pr92658-avx512bw.c @@ -1,6 +1,6 @@ /* PR target/92658 */ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -mavx512bw" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx512bw -mprefer-vector-width=512" } */ typedef unsigned char v64qi __attribute__((vector_size (64))); typedef unsigned short v32hi __attribute__((vector_size (64))); -- 2.29.2