From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 5A43D385AE5B; Thu, 28 Jul 2022 12:10:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A43D385AE5B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/sphinx] testsuite: Add extra ia32 options so that -fprefetch-loop-arrays works [PR106397] X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/devel/sphinx X-Git-Oldrev: ee781daa10c46cb0bedfcd44c2b9a13dd332e194 X-Git-Newrev: e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e Message-Id: <20220728121033.5A43D385AE5B@sourceware.org> Date: Thu, 28 Jul 2022 12:10:33 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2022 12:10:33 -0000 https://gcc.gnu.org/g:e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e commit e23c73a42463fda2ca33a69d6b6af1d6b1fbc20e Author: Jakub Jelinek Date: Wed Jul 27 12:00:36 2022 +0200 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 PR tree-optimization/106397 * gcc.dg/pr106397.c: For ia32, add dg-additional-options -march=i686 -msse. Diff: --- gcc/testsuite/gcc.dg/pr106397.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/pr106397.c b/gcc/testsuite/gcc.dg/pr106397.c index a6b2e913346..2bc17f8cf80 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)