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 <ja...@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.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) Jakub