Re: [PATCH] testsuite: Fixes for test case pr117546.c

2025-01-21 Thread Dimitar Dimitrov
On Tue, Jan 21, 2025 at 04:28:59PM +0100, Georg-Johann Lay wrote: > Am 18.01.25 um 19:30 schrieb Dimitar Dimitrov: > > This test fails on AVR. > > > > Debugging the test on x86 host, I noticed that u in function s sometimes > > has value 16128. The "t <= 3 * u" expression in the same function > >

Re: [PATCH] testsuite: Fixes for test case pr117546.c

2025-01-21 Thread Georg-Johann Lay
Am 18.01.25 um 19:30 schrieb Dimitar Dimitrov: This test fails on AVR. Debugging the test on x86 host, I noticed that u in function s sometimes has value 16128. The "t <= 3 * u" expression in the same function results in signed integer overflow for targets with sizeof(int)=16. Fix by requiring

Re: [PATCH] testsuite: Fixes for test case pr117546.c

2025-01-19 Thread Dimitar Dimitrov
On Sat, Jan 18, 2025 at 07:06:16PM +, Sam James wrote: > Dimitar Dimitrov writes: > > > This test fails on AVR. > > > > Debugging the test on x86 host, I noticed that u in function s sometimes > > has value 16128. The "t <= 3 * u" expression in the same function > > results in signed integer

Re: [PATCH] testsuite: Fixes for test case pr117546.c

2025-01-18 Thread Sam James
Dimitar Dimitrov writes: > This test fails on AVR. > > Debugging the test on x86 host, I noticed that u in function s sometimes > has value 16128. The "t <= 3 * u" expression in the same function > results in signed integer overflow for targets with sizeof(int)=16. > > Fix by requiring int32 eff

[PATCH] testsuite: Fixes for test case pr117546.c

2025-01-18 Thread Dimitar Dimitrov
This test fails on AVR. Debugging the test on x86 host, I noticed that u in function s sometimes has value 16128. The "t <= 3 * u" expression in the same function results in signed integer overflow for targets with sizeof(int)=16. Fix by requiring int32 effective target. Also add return stateme