On 12/3/24 7:45 AM, Georg-Johann Lay wrote:
Am 03.12.24 um 15:36 schrieb Jeff Law:

On 12/3/24 3:57 AM, Georg-Johann Lay wrote:
This patch skips some tests that don't work on avr.

Ok for trunk?

Johann

--

AVR: Skip some test cases that don't work for it.

gcc/testsuite/
     * gcc.c-torture/execute/ieee/cdivchkd.x: New file.
     * gcc.c-torture/execute/ieee/cdivchkf.x: New file.
     * gcc.dg/flex-array-counted-by.c: Skip on avr.
     * gcc.dg/fold-copysign-1.c [avr]: Add -mdouble=64.
Do you think there's more of these likely to pop up?  If so, then I'd recommend some kind of a test in target-supports.exp and isolate the avr-isms there.  If this is about it, then it's OK.

jeff

Yes, there are likely to be more.

Though there's not one single reason for why some tests are failing
on avr.  For example, one of the above tests failed because wchar_t
support is incomplete, an other one failed because ilogb is missing,
etc.
Got it.  So it's really about missing things in the target environment.


So I don't see what exactly such a dg-require test should test for.
Probably not a good one that would cover all of what you're trying to do.


But flex-array-counted-by.c would better do dg-require wchar which
is already there.
So let's go with the dg-require wchar for that.

When you see commonality between reasons to skip, try to create a suitable target-support.exp test. But when there isn't any obvious commonality, go ahead with your skip approach.

Thanks and sorry for the delays.

jeff


Reply via email to