On Fri, Jan 17, 2025 at 10:01 PM Vladimir Makarov <vmaka...@redhat.com> wrote: > > This is one more patch to solve > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118067 > > with different -mcpu used. > > The patch was successfully bootstrapped and tested on x86-64, aarch64, and > ppc64le.
I have committed a small testsuite adjustment to refine target selector and to use -mtune= compiler directive instead of obsolete -mcpu= to avoid compiler warning. gcc/testsuite/ChangeLog: * gcc.target/i386/pr118067.c (dg-compile): Use target int128. * gcc.target/i386/pr118067-2.c (dg-compile): Ditto. (dg-options): Use -mtune= instead of deprecated -mcpu= option. Thanks, Uros.
diff --git a/gcc/testsuite/gcc.target/i386/pr118067-2.c b/gcc/testsuite/gcc.target/i386/pr118067-2.c index 831871db0b4..24f6e6f430d 100644 --- a/gcc/testsuite/gcc.target/i386/pr118067-2.c +++ b/gcc/testsuite/gcc.target/i386/pr118067-2.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target { ! ia32 } } } */ -/* { dg-options "-O -fno-split-wide-types -mavx512f -mcpu=k8" } */ +/* { dg-do compile { target int128 } } */ +/* { dg-options "-O -fno-split-wide-types -mavx512f -mtune=k8" } */ typedef unsigned short U __attribute__((__vector_size__(64))); typedef int V __attribute__((__vector_size__(64))); diff --git a/gcc/testsuite/gcc.target/i386/pr118067.c b/gcc/testsuite/gcc.target/i386/pr118067.c index 7a7f072a5d8..ca9f5ddf50e 100644 --- a/gcc/testsuite/gcc.target/i386/pr118067.c +++ b/gcc/testsuite/gcc.target/i386/pr118067.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { ! ia32 } } } */ +/* { dg-do compile { target int128 } } */ /* { dg-options "-O -fno-split-wide-types -mavx512f" } */ typedef unsigned short U __attribute__((__vector_size__(64)));