[testsuite patch] skip an ARM run test if not using neon hardware

Janis Johnson janis_johnson@mentor.com
Mon Aug 11 21:59:00 GMT 2014


Test gcc.target/arm/neon-vext-execute.c checks that the compiler can
generate neon instructions, but it should also check that the test will
be run using hardware that supports neon, which this patch adds.
Tested with arm-none-linux-gnu for mainline and 4.9 with a variety of
multilib flags.

OK for mainline and the 4.9 branch?

Janis
-------------- next part --------------
2014-08-11  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/neon-vext-execute.c: Skip if the test won't run
	on Neon hardware.

Index: gcc/testsuite/gcc.target/arm/neon-vext-execute.c
===================================================================
--- gcc/testsuite/gcc.target/arm/neon-vext-execute.c	(revision 437379)
+++ gcc/testsuite/gcc.target/arm/neon-vext-execute.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target arm_neon_ok } */
+/* { dg-require-effective-target arm_neon_hw } */
 /* { dg-require-effective-target arm_little_endian } */
 /* { dg-options "-O2" } */
 /* { dg-add-options arm_neon } */


More information about the Gcc-patches mailing list