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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alice Carlotti <[email protected]>:

https://gcc.gnu.org/g:82e4ddc02061b325735383c6cd4686a7d68230cf

commit r17-3884-g82e4ddc02061b325735383c6cd4686a7d68230cf
Author: Julio Sotoriva De Bastiani <[email protected]>
Date:   Tue Sep 1 10:22:05 2026 +0000

    aarch64: Fix folding for svwhilel*_c* builtins [PR126096]

    This fixes an ICE that occurred when trying to fold svwhilelt and
    svwhilele predicate-as-counter builtins as if they were
    predicate-as-mask builtins.

    gcc/ChangeLog:

            PR target/126096
            * config/aarch64/aarch64-acle-builtins.cc
            (gimple_folder::fold_to_pfalse): Handle svcount_t.
            * config/aarch64/aarch64-sve-builtins-base.cc
            (svpfalse_impl::fold): Handle svcount_t.
            (svwhilelx_impl::fold_type): Punt for non-pfalse svcount_t.

    gcc/testsuite/ChangeLog:

            PR target/126096
            * gcc.target/aarch64/sve2/acle/general/whilele_1.c: New test.
            * gcc.target/aarch64/sve2/acle/general/whilelt_1.c: New test.

Reply via email to