]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397]
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Jul 2022 10:00:36 +0000 (12:00 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 27 Jul 2022 10:00:36 +0000 (12:00 +0200)
-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.

gcc/testsuite/gcc.dg/pr106397.c

index a6b2e91334680d3aa4306cd2a213839023310107..2bc17f8cf8060fbf2505f909f94a35bb6e44badf 100644 (file)
@@ -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)