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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Uros Bizjak <u...@gcc.gnu.org>:

https://gcc.gnu.org/g:09684c53bca7dad47d36875b359e83551f9015fd

commit r15-7593-g09684c53bca7dad47d36875b359e83551f9015fd
Author: Uros Bizjak <ubiz...@gmail.com>
Date:   Sun Feb 16 22:01:27 2025 +0100

    middle-end: Fixup constant integers when expanding __builtin_crc [PR118288]

    Constant integers with MSB set have to be represented as corresponding
    signed integers.  Use gen_int_mode to emit them in the correct way.

            PR middle-end/118288

    gcc/ChangeLog:

            * builtins.cc (expand_builtin_crc_table_based):
            Use gen_int_mode to emit constant integers with MSB set.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr118288.c: New test.

Reply via email to