Patchwork [testsuite] fix gcc.target/powerpc/pr47197.c

login
register
mail settings
Submitter Janis Johnson
Date July 8, 2013, 7:44 p.m.
Message ID <51DB168F.3080601@mentor.com>
Download mbox | patch
Permalink /patch/257595/
State New
Headers show

Comments

Janis Johnson - July 8, 2013, 7:44 p.m.
Test gcc.target/powerpc/pr47197.c passes "-maltivec" without first
checking that the option is allowed on the target, which is not the case
for powerpc-eabispe.  This obvious patch fixes the problem by requiring
powerpc_altivec_ok; checked in on mainline and the 4.8 branch.

Janis
2013-07-08  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok.

Patch

Index: gcc.target/powerpc/pr47197.c
===================================================================
--- gcc.target/powerpc/pr47197.c	(revision 200621)
+++ gcc.target/powerpc/pr47197.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
 /* { dg-options "-maltivec" } */
 
 /* Compile-only test to ensure that expressions can be passed to