diff mbox

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

Message ID 53E93CCC.7090203@mentor.com
State New
Headers show

Commit Message

Janis Johnson Aug. 11, 2014, 9:59 p.m. UTC
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
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.

Comments

Mike Stump Aug. 11, 2014, 11:49 p.m. UTC | #1
On Aug 11, 2014, at 2:59 PM, Janis Johnson <janis_johnson@mentor.com> wrote:
> 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?

Ok.
diff mbox

Patch

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 } */