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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Kyrylo Tkachov
<ktkac...@gcc.gnu.org>:

https://gcc.gnu.org/g:849c3cf7b4189342b4a0df941afddf8327585570

commit r12-9037-g849c3cf7b4189342b4a0df941afddf8327585570
Author: Kyrylo Tkachov <kyrylo.tkac...@arm.com>
Date:   Mon Dec 19 11:16:47 2022 +0000

    aarch64: PR target/108140 Handle NULL target in data intrinsic expansion

    In this PR we ICE when expanding the __rbit builtin with a NULL target rtx.
    I *think* that only happens when the result is unused and hence maybe we
shouldn't be expanding
    any RTL at all, but the ICE here is easily fixed by deriving the mode from
the type of the expression
    rather than the target.

    This patch does that.
    Bootstrapped and tested on aarch64-none-linux-gnu.

    gcc/ChangeLog:

            PR target/108140
            * config/aarch64/aarch64-builtins.cc
            (aarch64_expand_builtin_data_intrinsic): Handle NULL target.

    gcc/testsuite/ChangeLog:

            PR target/108140
            * gcc.target/aarch64/acle/pr108140.c: New test.

    (cherry picked from commit 98756bcbe27647f263f2b312d1d933d70cf56ba9)

Reply via email to