Re: [PATCH] ifcombine field merge: handle masks with sign extensions

2024-12-20 Thread Jakub Jelinek
On Wed, Dec 18, 2024 at 12:59:11AM -0300, Alexandre Oliva wrote: > * gcc.dg/field-merge-16.c: New. Note the test FAILs on i686-linux or on x86_64-linux with -m32. The IL is identical before ifcombine, but -m64 to -m32 ifcombine dump shows -optimizing two comparisons to (_10 & 18446462598732

Re: [PATCH] ifcombine field merge: handle masks with sign extensions

2024-12-17 Thread Richard Biener
> Am 18.12.2024 um 05:00 schrieb Alexandre Oliva : > > When a loaded field is sign extended, masked and compared, we used to > drop from the mask the bits past the original field width, which is > not correct. > > Take note of the fact that the mask covered copies of the sign bit, > before cl