]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up scev-16.c test [PR113446]
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:51:53 +0000 (08:51 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:51:53 +0000 (08:51 +0100)
This test FAILs on i686-linux or e.g. sparc*-solaris*, because
it uses vect_int effective target outside of */vect/ testsuite.
That is wrong, vect_int assumes the extra added flags by vect.exp
by default, which aren't added in other testsuites.

The following patch fixes that by moving the test into gcc.dg/vect/
and doing small tweaks.

2024-01-18  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/112774
PR testsuite/113446
* gcc.dg/tree-ssa/scev-16.c: Move test ...
* gcc.dg/vect/pr112774.c: ... here.  Add PR comment line, use
dg-additional-options instead of dg-options and drop
-fdump-tree-vect-details.

gcc/testsuite/gcc.dg/vect/pr112774.c [moved from gcc/testsuite/gcc.dg/tree-ssa/scev-16.c with 82% similarity]

similarity index 82%
rename from gcc/testsuite/gcc.dg/tree-ssa/scev-16.c
rename to gcc/testsuite/gcc.dg/vect/pr112774.c
index 120f40c0b6cea0a586a7ebe094d58c1daa8088d4..2ada33b410e62240ee85c7ed9840c11894cdac10 100644 (file)
@@ -1,6 +1,7 @@
+/* PR tree-optimization/112774 */
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
-/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
+/* { dg-additional-options "-O2 -ftree-vectorize" } */
 
 int A[1024 * 2];