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.
This commit is contained in:
Jakub Jelinek 2022-07-27 12:00:36 +02:00
parent 800781f939
commit 3044a7a824

View 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)