On 2/16/25 2:07 PM, Uros Bizjak wrote:
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.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

OK for mainline?
Definitely OK.  Thanks for chasing this down.



jeff

Reply via email to