From 1b5669752426d225b0088d57d1d2fffba9625032 Mon Sep 17 00:00:00 2001 From: Hongyu Wang Date: Tue, 29 Dec 2020 15:14:09 +0800 Subject: [PATCH] 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. --- 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.30.2