[testsuite] don't use IBM 128-bit long double for IEEE tests

Janis Johnson janis187@us.ibm.com
Mon Aug 25 23:16:00 GMT 2008


This patch modifies two tests of type generic functions that assume IEEE
arithmetic for all types.  IBM 128-bit long double is not IEEE, so
use 64-bit long double instead.  Tested on powerpc64-unknown-linux-gnu
with -m32/-m64 on a system where long double defaults to 128 bits and
one on which it defaults to 64 bits.  I'll check this in soon if there
are no objections.

2008-08-25  Janis Johnson  <janis187@us.ibm.com>

	gcc.dg/torture/type-generic-1.c: Don't use IBM 128-bit long double.
	g++.dg/torture/type-generic-1.C: Ditto.

Index: gcc/testsuite/gcc.dg/torture/type-generic-1.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/type-generic-1.c	(revision 139344)
+++ gcc/testsuite/gcc.dg/torture/type-generic-1.c	(working copy)
@@ -3,6 +3,8 @@
 
 /* { dg-do run } */
 /* { dg-options "-mieee" { target sh*-*-* } } */
+/* IBM 128-bit long double is not IEEE, don't use it for this test.  */
+/* { dg-options "-mlong-double-64" { target powerpc*-*-linux* } } */
 /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */
 
 #include "../tg-tests.h"
Index: gcc/testsuite/g++.dg/torture/type-generic-1.C
===================================================================
--- gcc/testsuite/g++.dg/torture/type-generic-1.C	(revision 139344)
+++ gcc/testsuite/g++.dg/torture/type-generic-1.C	(working copy)
@@ -3,6 +3,8 @@
 
 /* { dg-do run } */
 /* { dg-options "-mieee" { target sh*-*-* } } */
+/* IBM 128-bit long double is not IEEE, don't use it for this test.  */
+/* { dg-options "-mlong-double-64" { target powerpc*-*-linux* } } */
 /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */
 
 #include "../../gcc.dg/tg-tests.h"




More information about the Gcc-patches mailing list