From: Jakub Jelinek Date: Fri, 2 Apr 2021 08:07:50 +0000 (+0200) Subject: testsuite: Fix up gcc.target/i386/pr99726.c test [PR99726] X-Git-Tag: basepoints/gcc-12~300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e53c0696113cced90561e79ade27445f6c0926d0;p=thirdparty%2Fgcc.git testsuite: Fix up gcc.target/i386/pr99726.c test [PR99726] -m32 shouldn't be used in gcc.target/i386/ testcases, people do test with -m32/-m64 to get 32-bit compilation tested. And, -floop-nest-optimize is a graphite optimization, so might not be enabled in all gcc builds. 2021-04-02 Jakub Jelinek PR tree-optimization/99726 * gcc.target/i386/pr99726.c: Remove -m32 from dg-options. Move -floop-nest-optimize to dg-additional-options guarded on fgraphite effective target. --- diff --git a/gcc/testsuite/gcc.target/i386/pr99726.c b/gcc/testsuite/gcc.target/i386/pr99726.c index ff19bcabe4fe..98ccce6a979a 100644 --- a/gcc/testsuite/gcc.target/i386/pr99726.c +++ b/gcc/testsuite/gcc.target/i386/pr99726.c @@ -1,4 +1,5 @@ -/* { dg-options "-flive-patching=inline-clone -mavx512f -O2 -floop-nest-optimize -ftree-loop-vectorize -ftrapv -m32" } */ +/* { dg-options "-flive-patching=inline-clone -mavx512f -O2 -ftree-loop-vectorize -ftrapv" } */ +/* { dg-additional-options "-floop-nest-optimize" { target fgraphite } } */ extern int a[256][1024]; int b;