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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Sandiford
<rsand...@gcc.gnu.org>:

https://gcc.gnu.org/g:690aa217cf2882e58a0572171a3dd8e346f616cf

commit r10-9754-g690aa217cf2882e58a0572171a3dd8e346f616cf
Author: Richard Sandiford <richard.sandif...@arm.com>
Date:   Fri Apr 23 10:09:42 2021 +0100

    aarch64: Handle more SVE vector constants [PR99246]

    PR99246 is about a case in which we failed to handle a CONST_VECTOR
    with NELTS_PER_PATTERN==2, i.e. a vector with a âforegroundâ sequence
    of N vectors followed by a repeating âbackgroundâ sequence of N
vectors.

    At the moment, it's difficult to produce these vectors directly,
    but I'm hoping that for GCC 12 we'll do more folding, which will
    in turn make this easier to test and easier to optimise.  Until then,
    the patch simply relies on the testcase in the PR.

    gcc/
            PR target/99249
            * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
            New function.
            (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.

    gcc/testsuite/
            PR target/99249
            * gcc.target/aarch64/sve/acle/general/pr99246.c: New test.

    (cherry picked from commit a065e0bb092a010664777394530ab1a52bb5293b)

Reply via email to