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

Submitted by Janis Johnson on July 8, 2013, 7:44 p.m.

Details

Message ID 51DB168F.3080601@mentor.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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