Hi,

It seems gcc.target/arm/armv8_2-fp16-scalar-2.c needs an armhf target
to pass: it wants 4 fmov.f16, but there are only 2 on
arm-linux-gnueabi for instance.

Since the test includes arm_fp16.h, adding -mfloat-abi=hard implies
the usual problem of missing gnu/stubs-hard.h, so it seems to me that
the easiest way is just to skip this test on non-hf targets.

Is this simple patch OK or do we want something smarter?

Thanks,

Christophe
2018-04-13  Christophe Lyon  <christophe.l...@linaro.org>

        * gcc.target/arm/armv8_2-fp16-scalar-2.c: Require arm_hf_eabi.
diff --git a/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c 
b/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c
index fa4828d..fcd7db4 100644
--- a/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c
+++ b/gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c
@@ -1,4 +1,5 @@
 /* { dg-do compile }  */
+/* { dg-require-effective-target arm_hf_eabi }  */
 /* { dg-require-effective-target arm_v8_2a_fp16_scalar_ok }  */
 /* { dg-options "-O2 -std=c11" }  */
 /* { dg-add-options arm_v8_2a_fp16_scalar }  */

Reply via email to