[committed] testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397]

Message ID YuEOuOEX7Jg361CO@tucnak
State New, archived
Headers
Series [committed] testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397] |

Commit Message

Jakub Jelinek July 27, 2022, 10:08 a.m. UTC
  Hi!

-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.


	Jakub
  

Patch

--- gcc/testsuite/gcc.dg/pr106397.c.jj	2022-07-26 10:32:23.962268163 +0200
+++ gcc/testsuite/gcc.dg/pr106397.c	2022-07-27 10:55:49.492975896 +0200
@@ -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)