diff mbox

[committed] Disable intrinsic_nearest on AIX

Message ID CAGWvnymtNgqf3GLgOV6=m4AON_7xwkAadnowGN2dOw3tsZd8tg@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn July 19, 2013, 2:23 p.m. UTC
Fortran intrinsic_nearest testcase fails on AIX because the magic
single precision floating point value loaded as hex (z'7f7fffff') is
not preserved by PowerPC lfs instruction and nextafterf() does not
produce the expected result.
diff mbox

Patch

Index: intrinsic_nearest.x
===================================================================
--- intrinsic_nearest.x (revision 201046)
+++ intrinsic_nearest.x (working copy)
@@ -2,5 +2,9 @@ 
     # No Inf/NaN support on SPU.
     return 1
 }
+if [istarget "powerpc-ibm-aix*"] {
+    # z'7f7fffff' value not preserved by lfs instruction.
+    return 1
+}
 add-ieee-options
 return 0