Re: [PATCH] optabs: Fix widening optabs for vec-mode -> scalar-mode [PR116926]

2025-02-04 Thread Richard Biener
On Tue, Feb 4, 2025 at 8:42 AM Andrew Pinski wrote: > > r15-4317-ga6f4404689f12 tried to add support for widending optabs > for vec-mode -> scalar-mode but it misunderstood how FOR_EACH_MODE worked, > the limit in this case is not inclusive. Which means setting limit to from, > would cause the loo

[PATCH] optabs: Fix widening optabs for vec-mode -> scalar-mode [PR116926]

2025-02-03 Thread Andrew Pinski
r15-4317-ga6f4404689f12 tried to add support for widending optabs for vec-mode -> scalar-mode but it misunderstood how FOR_EACH_MODE worked, the limit in this case is not inclusive. Which means setting limit to from, would cause the loop not be executed at all. This fixes by setting the limit to be