diff mbox

[committed] Fix failure of gcc.dg/torture/pr68264.c on hppa*-*-hpux*

Message ID 1DF52726-EC35-4ADA-BC07-74B319FC2DD8@bell.net
State New
Headers show

Commit Message

John David Anglin Jan. 12, 2016, 2:10 a.m. UTC
The HP libm doesn't support the ERANGE error for exp2().  So, we need to skip this test as on sun unix.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.

Committed to trunk.

Dave
--
John David Anglin	dave.anglin@bell.net
2016-01-11  John David Anglin  <danglin@gcc.gnu.org>

	PR tree-optimization/68356
	* gcc.dg/torture/pr68264.c: Disable exp2 ERANGE test on hppa unix.
diff mbox

Patch

Index: gcc.dg/torture/pr68264.c
===================================================================
--- gcc.dg/torture/pr68264.c	(revision 232191)
+++ gcc.dg/torture/pr68264.c	(working copy)
@@ -78,8 +78,9 @@ 
   if (0)
     TEST (log1p (d), LARGE_NEG_EDOM);
   TEST (exp (d), POWER_ERANGE);
-#if defined (__sun__) && defined (__unix__)
-  /* Disabled due to a bug in Solaris libm.  */
+#if (defined (__sun__) || defined(__hppa__)) && defined (__unix__)
+  /* Disabled due to a bug in Solaris libm.  HP PA-RISC libm doesn't support
+     ERANGE for exp2.  */
   if (0)
 #endif
     {