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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>:

https://gcc.gnu.org/g:71f3036b8a83da7fb559923bc80687ea1dabe14a

commit r13-4303-g71f3036b8a83da7fb559923bc80687ea1dabe14a
Author: Tamar Christina <tamar.christ...@arm.com>
Date:   Fri Nov 25 12:57:24 2022 +0000

    sve2: Fix expansion of division [PR107830]

    SVE has an actual division optab, and when using -Os we don't
    optimize the division away.  This means that we need to distinguish
    between a div which we can optimize and one we cannot even during
    expansion.

    gcc/ChangeLog:

            PR target/107830
            * config/aarch64/aarch64.cc
            (aarch64_vectorize_can_special_div_by_constant): Check validity
during
            codegen phase as well.

    gcc/testsuite/ChangeLog:

            PR target/107830
            * gcc.target/aarch64/sve2/pr107830-1.c: New test.
            * gcc.target/aarch64/sve2/pr107830-2.c: New test.

Reply via email to