public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3588] Adjust gcc.target/i386/pr52252-{atom,core}.c
@ 2023-08-31 7:09 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-08-31 7:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9afdebbd5f581bdfb1f94dd944636c09ca553c5c
commit r14-3588-g9afdebbd5f581bdfb1f94dd944636c09ca553c5c
Author: Richard Biener <rguenther@suse.de>
Date: Thu Aug 31 09:06:24 2023 +0200
Adjust gcc.target/i386/pr52252-{atom,core}.c
The following adjusts the testcases to force 128bit vectorization
to make them more robust when for example adding -march=cascadelake
* gcc.target/i386/pr52252-atom.c: Add -mprefer-vector-width=128.
* gcc.target/i386/pr52252-core.c: Likewise.
Diff:
---
gcc/testsuite/gcc.target/i386/pr52252-atom.c | 2 +-
gcc/testsuite/gcc.target/i386/pr52252-core.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/pr52252-atom.c b/gcc/testsuite/gcc.target/i386/pr52252-atom.c
index ee604f2189a2..11f944115757 100644
--- a/gcc/testsuite/gcc.target/i386/pr52252-atom.c
+++ b/gcc/testsuite/gcc.target/i386/pr52252-atom.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -mssse3 -mtune=slm" } */
+/* { dg-options "-O2 -ftree-vectorize -mssse3 -mtune=slm -mprefer-vector-width=128" } */
#define byte unsigned char
void
diff --git a/gcc/testsuite/gcc.target/i386/pr52252-core.c b/gcc/testsuite/gcc.target/i386/pr52252-core.c
index 65d62cfa3658..897026b09975 100644
--- a/gcc/testsuite/gcc.target/i386/pr52252-core.c
+++ b/gcc/testsuite/gcc.target/i386/pr52252-core.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -mssse3 -mtune=corei7" } */
+/* { dg-options "-O2 -ftree-vectorize -mssse3 -mtune=corei7 -mprefer-vector-width=128" } */
#define byte unsigned char
void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-31 7:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-31 7:09 [gcc r14-3588] Adjust gcc.target/i386/pr52252-{atom,core}.c Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).