On 30/07/2019 21:51, Bernd Edlinger wrote:
+/* { dg-options "-marm -march=armv6 -mno-unaligned-access -mfloat-abi=soft 
-mabi=aapcs -O3" } */

This isn't going to work as-is, we test many combinations of the compiler, either with explicit dejagnu settings or with the compiler defaults and the dejagnu settings can't generally be overridden this way.

For -marm you require an effective-target of arm_arm_ok. For ldrd, it should be enough to just require an effective-target of arm_ldrd_strd_ok, then you can .

I don't think we really care about any ABIs other than aapcs, so I'd just leave that off. And as for setting the float-abi, I don't see anything in the tests that would require that, so that can probably be omitted as well.

I think with all this, you can then write something like

/* { dg-require-effective-target arm_arm_ok && arm_ldrd_strd_ok } */
/* { dg-options "-marm -mno-unaligned-access -O3 } */

But I haven't tested that, so you might need to fiddle with it a bit, especially the effective-target rule.

R.

Reply via email to