On 3/30/2026 12:27 PM, Dimitar Dimitrov wrote:
The test case logic relies on the constant literal -4 being promoted to
32-bit int. But on AVR and other targets with 16-bit int types, the
literal is promoted to 16-bit int, which changes the expression value
and ultimately failing the test:
FAIL: gcc.dg/pr122925.c execution test
Fix by requiring an effective target with at least 32-bit ints.
Ok for trunk? The test was added in stage 4, so I think it's reasonable
to fix now.
gcc/testsuite/ChangeLog:
* gcc.dg/pr122925.c: Require int32plus effective target.
OK. And FWIW, we allow testsuite changes just about anytime as they
can't introduce regressions in the compiler or runtime behavior.
jeff