On Wed, Mar 31, 2021 at 11:15:08AM +0100, Richard Sandiford via Gcc-patches 
wrote:
> gcc/testsuite/
>       PR tree-optimization/99726
>       * gcc.target/i386/pr99726.c: New test.

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

Tested on x86_64-linux -m32/-m64, committed to trunk.

2021-04-02  Jakub Jelinek  <ja...@redhat.com>

        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.

--- gcc/testsuite/gcc.target/i386/pr99726.c.jj  2021-03-31 21:25:20.447714222 
+0200
+++ gcc/testsuite/gcc.target/i386/pr99726.c     2021-04-02 10:04:01.492401220 
+0200
@@ -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;

        Jakub

Reply via email to