]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386/testsuite: Fix gcc.target/i386/pr118067*.c tests
authorUros Bizjak <ubizjak@gmail.com>
Sun, 19 Jan 2025 19:23:20 +0000 (20:23 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 19 Jan 2025 19:24:54 +0000 (20:24 +0100)
These tests use int128 type, so require target int128 instead of ! ia32.
Also, use -mtune= instead of deprecated -mcpu= to avoid compiler warning.

PR rtl-optimization/118067

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.

gcc/testsuite/gcc.target/i386/pr118067-2.c
gcc/testsuite/gcc.target/i386/pr118067.c

index 831871db0b437422e00bd90fc74a5c689af08447..24f6e6f430ddac9176eb34f70606256caf3e9d9d 100644 (file)
@@ -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)));
index 7a7f072a5d8a4bf2fc3b78a6cbad384ba5c01440..ca9f5ddf50e83c339368fbe0667f55a12d91923d 100644 (file)
@@ -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)));