Patchwork [testsuite] fix gcc.target/powerpc/sd-vsx.c and sd-pwr6.c

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

Comments

Janis Johnson - July 8, 2013, 7:42 p.m.
Tests gcc.target/powerpc/sd-vsx.c and sd-pwr6.c assume that decimal
floating point is supported on the target, but this is not true for
powerpc-none-eabi.  This obvious patch skips the test if dfp is
not supported; checked in for mainline.

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

	* gcc.target/powerpc/sd-vsx.c: Require dfp.
	* gcc.target/powerpc/sd-pwr6.c: Likewise.

Patch

Index: gcc.target/powerpc/sd-pwr6.c
===================================================================
--- gcc.target/powerpc/sd-pwr6.c	(revision 200789)
+++ gcc.target/powerpc/sd-pwr6.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "" { powerpc*-*-darwin* powerpc-ibm-aix* } { "*" } { "" } } */
 /* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-require-effective-target dfp } */
 /* { dg-options "-O2 -mcpu=power6 -mhard-dfp" } */
 /* { dg-final { scan-assembler-not   "lfiwzx"   } } */
 /* { dg-final { scan-assembler-times "lfd"    2 } } */
Index: gcc.target/powerpc/sd-vsx.c
===================================================================
--- gcc.target/powerpc/sd-vsx.c	(revision 200789)
+++ gcc.target/powerpc/sd-vsx.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "" { powerpc*-*-darwin* powerpc-ibm-aix* } { "*" } { "" } } */
 /* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-require-effective-target dfp } */
 /* { dg-options "-O2 -mcpu=power7 -mhard-dfp" } */
 /* { dg-final { scan-assembler-times "lfiwzx" 2 } } */
 /* { dg-final { scan-assembler-times "stfiwx" 1 } } */