diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-07-27 12:00:36 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-07-28 14:09:04 +0200 |
commit | e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e (patch) | |
tree | 0beaf42129a9e9cbaac00d679419475f78e997da | |
parent | ee781daa10c46cb0bedfcd44c2b9a13dd332e194 (diff) | |
download | gcc-e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e.zip gcc-e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e.tar.gz gcc-e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e.tar.bz2 |
testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397]
-fprefetch-loop-arrays isn't supported on ia32 with just -march=i386 and
similar, the following patch adds extra options similar testcases use.
2022-07-27 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/106397
* gcc.dg/pr106397.c: For ia32, add dg-additional-options
-march=i686 -msse.
-rw-r--r-- | gcc/testsuite/gcc.dg/pr106397.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr106397.c b/gcc/testsuite/gcc.dg/pr106397.c index a6b2e91..2bc17f8 100644 --- a/gcc/testsuite/gcc.dg/pr106397.c +++ b/gcc/testsuite/gcc.dg/pr106397.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O3 -fprefetch-loop-arrays --param l2-cache-size=0 --param prefetch-latency=3 -fprefetch-loop-arrays" } */ +/* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ int bar (void) |