]> gcc.gnu.org Git - gcc.git/commit
testsuite: Use explicit -ftree-cselim in tests using -fdump-tree-cselim-details
authorJoseph Myers <joseph@codesourcery.com>
Wed, 8 Sep 2021 14:59:41 +0000 (14:59 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 8 Sep 2021 14:59:41 +0000 (14:59 +0000)
commitaf18863eb7da24b444fac5d0ca834da852745e31
tree5623c4bd9ed119f29ddda64f07cecc66fb7c86d5
parent94c9c0ab7ce06fe7ac4d2d3ed5f808e261e89437
testsuite: Use explicit -ftree-cselim in tests using -fdump-tree-cselim-details

When testing for Nios II (gcc-testresults shows this for various other
targets as well), tests scanning cselim dumps produce an UNRESOLVED
result because those dumps do not exist.

cselim is enabled conditionally by code in toplev.c:

  if (flag_tree_cselim == AUTODETECT_VALUE)
    {
      if (HAVE_conditional_move)
flag_tree_cselim = 1;
      else
flag_tree_cselim = 0;
    }

Add explicit -ftree-cselim to dg-options in the affected tests (as
already used by some other tests of cselim dumps) so that this dump
exists on all architectures.

Tested with no regressions with cross to nios2-elf, where this causes
the tests in question to PASS instead of being UNRESOLVED.

* gcc.dg/tree-ssa/pr89430-1.c, gcc.dg/tree-ssa/pr89430-2.c,
gcc.dg/tree-ssa/pr89430-3.c, gcc.dg/tree-ssa/pr89430-4.c,
gcc.dg/tree-ssa/pr89430-5.c, gcc.dg/tree-ssa/pr89430-6.c,
gcc.dg/tree-ssa/pr89430-7-comp-ref.c,
gcc.dg/tree-ssa/pr89430-8-mem-ref-size.c: Use -ftree-cselim.

(cherry picked from commit d081516ae1771984bfacb9f2c402a1973fa70d69)
gcc/testsuite/gcc.dg/tree-ssa/pr89430-1.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-2.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-3.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-4.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-5.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-6.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-7-comp-ref.c
gcc/testsuite/gcc.dg/tree-ssa/pr89430-8-mem-ref-size.c
This page took 0.067821 seconds and 6 git commands to generate.