https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115176
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:c2f0aaf7539c42b024ed6b3fb6909bd2c86bb206

commit r15-1216-gc2f0aaf7539c42b024ed6b3fb6909bd2c86bb206
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Tue Jun 11 20:36:34 2024 +0000

    aarch64: Use bitreverse rtl code instead of unspec [PR115176]

    Bitreverse rtl code was added with r14-1586-g6160572f8d243c. So let's
    use it instead of an unspec. This is just a small cleanup but it does
    have one small fix with respect to rtx costs which didn't handle vector
modes
    correctly for the UNSPEC and now it does.
    This is part of the first step in adding __builtin_bitreverse's builtins
    but it is independent of it though.

    Bootstrapped and tested on aarch64-linux-gnu with no regressions.

    gcc/ChangeLog:

            PR target/115176
            * config/aarch64/aarch64-simd.md
(aarch64_rbit<mode><vczle><vczbe>): Use
            bitreverse instead of unspec.
            * config/aarch64/aarch64-sve-builtins-base.cc (svrbit): Convert
over to using
            rtx_code_function instead of unspec_based_function.
            * config/aarch64/aarch64-sve.md: Update comment where RBIT is
included.
            * config/aarch64/aarch64.cc (aarch64_rtx_costs): Handle BITREVERSE
like BSWAP.
            Remove UNSPEC_RBIT support.
            * config/aarch64/aarch64.md (unspec): Remove UNSPEC_RBIT.
            (aarch64_rbit<mode>): Use bitreverse instead of unspec.
            * config/aarch64/iterators.md (SVE_INT_UNARY): Add bitreverse.
            (optab): Likewise.
            (sve_int_op): Likewise.
            (SVE_INT_UNARY): Remove UNSPEC_RBIT.
            (optab): Likewise.
            (sve_int_op): Likewise.
            (min_elem_bits): Likewise.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Reply via email to