diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-07-27 12:00:36 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-07-27 12:00:36 +0200 |
commit | 3044a7a824981496875acc6debf467fb904c55f2 (patch) | |
tree | 9249206e06cfd8382d94320bf87ea7b51b2e1f6e | |
parent | 800781f93925aa71a7395f27c9953def47401196 (diff) | |
download | gcc-3044a7a824981496875acc6debf467fb904c55f2.zip gcc-3044a7a824981496875acc6debf467fb904c55f2.tar.gz gcc-3044a7a824981496875acc6debf467fb904c55f2.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) |