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

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

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

commit r17-635-g82d9668ca6950419b1b00c0c4f8c9a87b6071051
Author: Xi Ruoyao <[email protected]>
Date:   Mon May 18 22:59:33 2026 +0800

    LoongArch: Rename rbit<mode> to bitreverse<mode>2 [PR 50481]

    r17-523 has added the __builtin_bitreverse{8,16,32,64} builtins and
    established that the standard optab names for them are
    bitreverse<mode>2.  Rename the rbit<mode> expanders so they'll be used
    for those builtins.

    r17-567 has already removed the uses of rbit<mode> so the old names do
    not need to be kept.

            PR target/50481

    gcc/

            * config/loongarch/loongarch.md (@rbit<GPR:mode>2): Rename to
            ...
            (@bitreverse<mode>2): ... this.
            (rbithi2): Rename to ...
            (bitreversehi2): ... this.
            (rbitqi2): Rename to ...
            (bitreverseqi2): ... this.
            (rbitsi_extended): Rename to ...
            (bitreversesi2_extended): ... this.

    gcc/testsuite/

            * gcc.target/loongarch/la64/bitreverse.c: New test.

Reply via email to