This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libstdc++ testsuite] fix dg-require in decimal float tests


Each of the tests for decimal floating-point support in libstdc++ has
a typo in the test directive checking for dfp support, which caused the
tests to be run on targets that don't support this functionality,
resulting in lots of FAILs.  Fixed thusly; sorry about that.

2009-10-06  Janis Johnson  <janis187@us.ibm.com>

	* testsuite/decimal/binary-arith.cc: Fix directive to skip test.
	* testsuite/decimal/cast_neg.cc: Ditto.
	* testsuite/decimal/comparison.cc: Ditto.
	* testsuite/decimal/compound-assignment.cc: Ditto.
	* testsuite/decimal/compound-assignment-memfunc.cc: Ditto.
	* testsuite/decimal/conversion-from-float.cc: Ditto.
	* testsuite/decimal/conversion-from-integral.cc: Ditto.
	* testsuite/decimal/conversion-to-generic-float.cc: Ditto.
	* testsuite/decimal/conversion-to-integral.cc: Ditto.
	* testsuite/decimal/ctor.cc: Ditto.
	* testsuite/decimal/incdec.cc: Ditto.
	* testsuite/decimal/incdec-memfunc.cc: Ditto.
	* testsuite/decimal/make-decimal.cc: Ditto.
	* testsuite/decimal/mixed-mode_neg.cc: Ditto.
	* testsuite/decimal/operator_neg.cc: Ditto.
	* testsuite/decimal/unary-arith.cc: Ditto.

Index: libstdc++-v3/testsuite/decimal/unary-arith.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/unary-arith.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/unary-arith.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.7  Unary arithmetic operators.
 
Index: libstdc++-v3/testsuite/decimal/ctor.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/ctor.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/ctor.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.1  Construct/copy/destroy (decimal32).
 // ISO/IEC TR 24733  3.2.3.1  Construct/copy/destroy (decimal64).
Index: libstdc++-v3/testsuite/decimal/conversion-to-integral.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/conversion-to-integral.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/conversion-to-integral.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.4  Conversion to integral type (decimal32).
 // ISO/IEC TR 24733  3.2.3.4  Conversion to integral type (decimal64).
Index: libstdc++-v3/testsuite/decimal/make-decimal.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/make-decimal.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/make-decimal.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.5  Initialization from coefficient and exponent.
 
Index: libstdc++-v3/testsuite/decimal/comparison.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/comparison.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/comparison.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.9  Comparison operators.
 
Index: libstdc++-v3/testsuite/decimal/incdec-memfunc.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/incdec-memfunc.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/incdec-memfunc.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.5  Increment and decrement operators (decimal32).
 // ISO/IEC TR 24733  3.2.3.5  Increment and decrement operators (decimal64).
Index: libstdc++-v3/testsuite/decimal/mixed-mode_neg.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/mixed-mode_neg.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/mixed-mode_neg.cc	(working copy)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // Test that binary operators do not accept mixed decimal and generic
 // floating-point operands.  This isn't explicity prohibited in
Index: libstdc++-v3/testsuite/decimal/conversion-to-generic-float.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/conversion-to-generic-float.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/conversion-to-generic-float.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.6  Conversion to generic floating-point type.
 
Index: libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.6  Compound assignment (decimal32).
 // ISO/IEC TR 24733  3.2.3.6  Compound assignment (decimal64).
Index: libstdc++-v3/testsuite/decimal/cast_neg.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/cast_neg.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/cast_neg.cc	(working copy)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733 doesn't say explicitly that the conversion from a
 // decimal floating-point type to a generic float type is prohibited but
Index: libstdc++-v3/testsuite/decimal/operator_neg.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/operator_neg.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/operator_neg.cc	(working copy)
@@ -16,7 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do compile }
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // Test that C++ binary operators that are restricted to integer operands
 // do not accept decimal float operands.
Index: libstdc++-v3/testsuite/decimal/incdec.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/incdec.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/incdec.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.5  Increment and decrement operators (decimal32).
 // ISO/IEC TR 24733  3.2.3.5  Increment and decrement operators (decimal64).
Index: libstdc++-v3/testsuite/decimal/conversion-from-integral.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/conversion-from-integral.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/conversion-from-integral.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.3  Conversion from integral type (decimal32).
 // ISO/IEC TR 24733  3.2.3.3  Conversion from integral type (decimal64).
Index: libstdc++-v3/testsuite/decimal/conversion-from-float.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/conversion-from-float.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/conversion-from-float.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.2  Conversion from floating-point type (decimal32).
 // ISO/IEC TR 24733  3.2.3.2  Conversion from floating-point type (decimal64).
Index: libstdc++-v3/testsuite/decimal/binary-arith.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/binary-arith.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/binary-arith.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.8  Binary arithmetic operators.
 
Index: libstdc++-v3/testsuite/decimal/compound-assignment.cc
===================================================================
--- libstdc++-v3/testsuite/decimal/compound-assignment.cc	(revision 152501)
+++ libstdc++-v3/testsuite/decimal/compound-assignment.cc	(working copy)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-require-effective-target-dfp }
+// { dg-require-effective-target dfp }
 
 // ISO/IEC TR 24733  3.2.2.6  Compound assignment (decimal32).
 // ISO/IEC TR 24733  3.2.3.6  Compound assignment (decimal64).



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]