testsuite: Fix up gcc.target/i386/pr99726.c test [PR99726]
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Apr 2021 08:07:50 +0000 (10:07 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 2 Apr 2021 08:07:50 +0000 (10:07 +0200)
-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  <jakub@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

index ff19bca..98ccce6 100644 (file)
@@ -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;