From: Hongyu Wang Date: Tue, 29 Dec 2020 07:14:09 +0000 (+0800) Subject: Adjust testcase for PR 92658 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b5669752426d225b0088d57d1d2fffba9625032;p=gcc.git Adjust testcase for PR 92658 gcc/testsuite/ChangeLog: * gcc.target/i386/pr92658-avx512bw.c: Add -mprefer-vector-width=512 to avoid impact of different default mtune which gcc is built with. * gcc.target/i386/pr92658-avx512bw-2.c: Ditto. --- 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)));