[committed] Fix PR testsuite/38864

Adam Nemet anemet@caviumnetworks.com
Tue Jan 27 08:46:00 GMT 2009


As explained in the PR these tests rely on fixed-point support but the
target-check was removed by Richard MIPS's testsuite improvements.  This patch
puts the check back.  The patch was approved in the PR.

Tested with mips.exp on mipsisa64r2-elfoabi configured with and without
fixed-point.

2009-01-26  Adam Nemet  <anemet@caviumnetworks.com>

	PR testsuite/38864
	* gcc.target/mips/fixed-vector-type.c: Add target { fixed_point}
	to dg-do compile.
	* gcc.target/mips/fixed-scalar-type.c: Likewise.
	* gcc.target/mips/dpaq_sa_l_w.c: Likewise.
	* gcc.target/mips/dpsq_sa_l_w.c: Likewise.

Index: gcc.target/mips/fixed-vector-type.c
===================================================================
--- gcc.target/mips/fixed-vector-type.c	(revision 143448)
+++ gcc.target/mips/fixed-vector-type.c	(working copy)
@@ -1,5 +1,5 @@
 /* Test vector fixed-point instructions */
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
 /* { dg-options "-mdspr2 -O2" } */
 /* { dg-final { scan-assembler-times "\taddq_s.ph\t" 2 } } */
 /* { dg-final { scan-assembler-times "\tsubq_s.ph\t" 2 } } */
Index: gcc.target/mips/fixed-scalar-type.c
===================================================================
--- gcc.target/mips/fixed-scalar-type.c	(revision 143448)
+++ gcc.target/mips/fixed-scalar-type.c	(working copy)
@@ -1,5 +1,5 @@
 /* Test scalar fixed-point instructions */
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
 /* { dg-options "-mdspr2 -O2" } */
 /* { dg-final { scan-assembler-times "\taddu\t" 10 } } */
 /* { dg-final { scan-assembler-times "\tsubu\t" 10 } } */
Index: gcc.target/mips/dpaq_sa_l_w.c
===================================================================
--- gcc.target/mips/dpaq_sa_l_w.c	(revision 143448)
+++ gcc.target/mips/dpaq_sa_l_w.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
 /* { dg-options "-O2 -mgp32 -mdsp" } */
 /* { dg-final { scan-assembler-times "\tdpaq_sa.l.w\t\\\$ac" 3 } } */
 
Index: gcc.target/mips/dpsq_sa_l_w.c
===================================================================
--- gcc.target/mips/dpsq_sa_l_w.c	(revision 143448)
+++ gcc.target/mips/dpsq_sa_l_w.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
 /* { dg-options "-O2 -mgp32 -mdsp" } */
 /* { dg-final { scan-assembler-times "\tdpsq_sa.l.w\t\\\$ac" 2 } } */
 



More information about the Gcc-patches mailing list