Re: [PATCH] bitintlower: Fix .MUL_OVERFLOW overflow checking [PR114038]

2024-02-22 Thread Richard Biener
On Thu, 22 Feb 2024, Jakub Jelinek wrote: > Hi! > > Currently, bitint_large_huge::lower_mul_overflow uses cnt 1 only if > startlimb == endlimb and in that case doesn't use a loop and handles > everything in a special if: > unsigned cnt; > bool use_loop = false; > if (startlimb =

[PATCH] bitintlower: Fix .MUL_OVERFLOW overflow checking [PR114038]

2024-02-22 Thread Jakub Jelinek
Hi! Currently, bitint_large_huge::lower_mul_overflow uses cnt 1 only if startlimb == endlimb and in that case doesn't use a loop and handles everything in a special if: unsigned cnt; bool use_loop = false; if (startlimb == endlimb) cnt = 1; else if (startlimb + 1 ==