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

--- Comment #9 from CVS 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:3f085e45755643f13d4fa45a12a6ade45be98f95

commit r14-1601-g3f085e45755643f13d4fa45a12a6ade45be98f95
Author: Andrew Pinski <apin...@marvell.com>
Date:   Sun Jun 4 19:42:08 2023 -0700

    Handle const_int in expand_single_bit_test

    After expanding directly to rtl instead of
    creating a tree, we could end up with
    a const_int which is not ready to be handled
    by extract_bit_field.
    So need to the constant folding here instead.

    OK? bootstrapped and tested on x86_64-linux-gnu with no regressions.

            PR middle-end/110117

    gcc/ChangeLog:

            * expr.cc (expand_single_bit_test): Handle
            const_int from expand_expr.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr110117-1.c: New test.
            * gcc.dg/pr110117-2.c: New test.

Reply via email to