Re: [PATCH] combine: Fix up make_extraction [PR118638]

2025-01-28 Thread Richard Biener
On Tue, 28 Jan 2025, Jakub Jelinek wrote: > Hi! > > The following testcase is miscompiled at -Os on x86_64-linux. > The problem is during make_compound_operation of > (ashiftrt:SI (ashift:SI (mult:SI (reg:SI 107 [ a_5 ]) > (const_int 3 [0x3])) > (const_int 31 [0x1f])) > (c

[PATCH] combine: Fix up make_extraction [PR118638]

2025-01-27 Thread Jakub Jelinek
Hi! The following testcase is miscompiled at -Os on x86_64-linux. The problem is during make_compound_operation of (ashiftrt:SI (ashift:SI (mult:SI (reg:SI 107 [ a_5 ]) (const_int 3 [0x3])) (const_int 31 [0x1f])) (const_int 31 [0x1f])) where it incorrectly returns (mult:SI