Re: [PATCH] combine: Fix handling of unsigned constants

2023-10-13 Thread Jeff Law
On 10/6/23 01:45, Stefan Schulze Frielinghaus wrote: If a CONST_INT represents an integer of a mode with fewer bits than in HOST_WIDE_INT, then the integer is sign extended. For those two optimizations touched by this patch, the integers of interest have only the most significant bit set w.r.

[PATCH] combine: Fix handling of unsigned constants

2023-10-06 Thread Stefan Schulze Frielinghaus
If a CONST_INT represents an integer of a mode with fewer bits than in HOST_WIDE_INT, then the integer is sign extended. For those two optimizations touched by this patch, the integers of interest have only the most significant bit set w.r.t their mode, therefore, they were sign extended. Thus in