Re: [PATCH] tilegx: Fix infinite loop in gen-mul-tables generator

2022-06-24 Thread Jeff Law via Gcc-patches
On 6/24/2022 12:19 PM, Iain Buclaw wrote: Excerpts from Jeff Law via Gcc-patches's message of Juni 22, 2022 8:16 pm: On 6/22/2022 11:30 AM, Iain Buclaw via Gcc-patches wrote: Hi, Since around GCC 10, the condition `j < (INTMAX_MAX / 10)' will get optimized into `j != 922337203685477580', w

Re: [PATCH] tilegx: Fix infinite loop in gen-mul-tables generator

2022-06-24 Thread Iain Buclaw via Gcc-patches
Excerpts from Jeff Law via Gcc-patches's message of Juni 22, 2022 8:16 pm: > > > On 6/22/2022 11:30 AM, Iain Buclaw via Gcc-patches wrote: >> Hi, >> >> Since around GCC 10, the condition `j < (INTMAX_MAX / 10)' will get >> optimized into `j != 922337203685477580', which will result in an >> infin

Re: [PATCH] tilegx: Fix infinite loop in gen-mul-tables generator

2022-06-22 Thread Jeff Law via Gcc-patches
On 6/22/2022 11:30 AM, Iain Buclaw via Gcc-patches wrote: Hi, Since around GCC 10, the condition `j < (INTMAX_MAX / 10)' will get optimized into `j != 922337203685477580', which will result in an infinite loop for certain inputs of `j'. This patch just copies the condition already used by th