https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96109

--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:96b63fa255e343bb9b3e7f77302213a91ce96293

commit r14-9427-g96b63fa255e343bb9b3e7f77302213a91ce96293
Author: Rainer Orth <r...@cebitec.uni-bielefeld.de>
Date:   Mon Mar 11 15:45:17 2024 +0100

    testsuite: vect: Require vect_perm in several tests [PR114071, PR113557,
PR96109]

    Several vectorization tests FAIL on 32 and 64-bit Solaris/SPARC:

    FAIL: gcc.dg/vect/pr37027.c -flto -ffat-lto-objects scan-tree-dump-times
    vect "vectorized 1 loops" 1
    FAIL: gcc.dg/vect/pr37027.c -flto -ffat-lto-objects scan-tree-dump-times
    vect "vectorizing stmts using SLP" 1
    FAIL: gcc.dg/vect/pr37027.c scan-tree-dump-times vect "vectorized 1 loops"
1
    FAIL: gcc.dg/vect/pr37027.c scan-tree-dump-times vect "vectorizing stmts
    using SLP" 1
    FAIL: gcc.dg/vect/pr67790.c -flto -ffat-lto-objects scan-tree-dump vect
    "vectorizing stmts using SLP"
    FAIL: gcc.dg/vect/pr67790.c scan-tree-dump vect "vectorizing stmts using
SLP"
    FAIL: gcc.dg/vect/slp-47.c -flto -ffat-lto-objects scan-tree-dump-times
    vect "vectorizing stmts using SLP" 2
    FAIL: gcc.dg/vect/slp-47.c scan-tree-dump-times vect "vectorizing stmts
    using SLP" 2
    FAIL: gcc.dg/vect/slp-48.c -flto -ffat-lto-objects scan-tree-dump-times
    vect "vectorizing stmts using SLP" 2
    FAIL: gcc.dg/vect/slp-48.c scan-tree-dump-times vect "vectorizing stmts
    using SLP" 2
    FAIL: gcc.dg/vect/slp-reduc-1.c -flto -ffat-lto-objects
    scan-tree-dump-times vect "vectorized 1 loops" 1
    FAIL: gcc.dg/vect/slp-reduc-1.c -flto -ffat-lto-objects
    scan-tree-dump-times vect "vectorizing stmts using SLP" 1
    FAIL: gcc.dg/vect/slp-reduc-1.c scan-tree-dump-times vect "vectorized 1
loops" 1
    FAIL: gcc.dg/vect/slp-reduc-1.c scan-tree-dump-times vect "vectorizing
    stmts using SLP" 1
    FAIL: gcc.dg/vect/slp-reduc-2.c -flto -ffat-lto-objects
    scan-tree-dump-times vect "vectorized 1 loops" 1
    FAIL: gcc.dg/vect/slp-reduc-2.c -flto -ffat-lto-objects
    scan-tree-dump-times vect "vectorizing stmts using SLP" 1
    FAIL: gcc.dg/vect/slp-reduc-2.c scan-tree-dump-times vect "vectorized 1
loops" 1
    FAIL: gcc.dg/vect/slp-reduc-2.c scan-tree-dump-times vect "vectorizing
    stmts using SLP" 1
    FAIL: gcc.dg/vect/slp-reduc-7.c -flto -ffat-lto-objects
    scan-tree-dump-times vect "vectorized 1 loops" 1
    FAIL: gcc.dg/vect/slp-reduc-7.c -flto -ffat-lto-objects
    scan-tree-dump-times vect "vectorizing stmts using SLP" 1
    FAIL: gcc.dg/vect/slp-reduc-7.c scan-tree-dump-times vect "vectorized 1
loops" 1
    FAIL: gcc.dg/vect/slp-reduc-7.c scan-tree-dump-times vect "vectorizing
    stmts using SLP" 1
    FAIL: gcc.dg/vect/slp-reduc-8.c -flto -ffat-lto-objects scan-tree-dump vect
    "vectorized 1 loops"
    FAIL: gcc.dg/vect/slp-reduc-8.c scan-tree-dump vect "vectorized 1 loops"
    FAIL: gcc.dg/vect/vect-multi-peel-gaps.c -flto -ffat-lto-objects
    scan-tree-dump vect "LOOP VECTORIZED"
    FAIL: gcc.dg/vect/vect-multi-peel-gaps.c scan-tree-dump vect "LOOP
VECTORIZED"

    The dumps show variations of

    /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/pr37027.c:24:17:
    note: ==> examining statement: _4 = a[i_19].f2;
    /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/pr37027.c:24:17:
    missed: unsupported vect permute { 1 0 3 2 5 4 }
    /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/pr37027.c:24:17:
    missed: unsupported load permutation
    /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/vect/pr37027.c:27:17:
    missed: not vectorized: relevant stmt not supported: _4 = a[i_19].f2;

    so I think the tests should require vect_perm.  This is what this patch
does

    Tested on sparc-sun-solaris2.11 and i386-pc-solaris2.11.

    2024-02-22  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

            gcc/testsuite:
            PR tree-optimization/114071
            * gcc.dg/vect/pr37027.c: Require vect_perm.
            * gcc.dg/vect/pr67790.c: Likewise.
            * gcc.dg/vect/slp-reduc-1.c: Likewise.
            * gcc.dg/vect/slp-reduc-2.c: Likewise.
            * gcc.dg/vect/slp-reduc-7.c: Likewise.
            * gcc.dg/vect/slp-reduc-8.c: Likewise.

            PR tree-optimization/113557
            * gcc.dg/vect/vect-multi-peel-gaps.c (scan-tree-dump): Also
            require vect_perm.

            PR testsuite/96109
            * gcc.dg/vect/slp-47.c: Require vect_perm.
            * gcc.dg/vect/slp-48.c: Likewise.

Reply via email to