testsuite: Fix up scev-16.c test [PR113446]
commit484f48f03cf9a382b3bcf4dadac09c4ee59c2ddf
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:51:53 +0000 (18 08:51 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:51:53 +0000 (18 08:51 +0100)
tree3a1beb0855e80f4f48961c7b2ec88275c47c490a
parentb032f4b7da56a225a0a14d40da2d47a6fcbab3f3
testsuite: Fix up scev-16.c test [PR113446]

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]