This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug math/22660] New: fmax, fmin sNaN handling on alpha


https://sourceware.org/bugzilla/show_bug.cgi?id=22660

            Bug ID: 22660
           Summary: fmax, fmin sNaN handling on alpha
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: aurelien at aurel32 dot net
          Reporter: aurelien at aurel32 dot net
  Target Milestone: ---
              Host: alpha-linux-gnu
            Target: alpha-linux-gnu
             Build: alpha-linux-gnu

The fmax and fmin functions on alpha do not handle sNaN correctly, causing
math/test-float-fmax, math/test-float-fmin, math/test-idouble-fmax,
math/test-idouble-fmin, math/test-ifloat-fmax and math/test-ifloat-fmin to fail
with issues like:

testing float (inline functions)
Failure: Test: fmax (0, sNaN)
Result:
 is:          0.00000000e+00   0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (0, -sNaN)
Result:
 is:          0.00000000e+00   0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (-0, sNaN)
Resutesting float (inline functions)
Failure: Test: fmax (0, sNaN)
Result:
 is:          0.00000000e+00   0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (0, -sNaN)
Result:
 is:          0.00000000e+00   0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (-0, sNaN)
Result:
 is:         -0.00000000e+00  -0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (-0, -sNaN)
Result:
 is:         -0.00000000e+00  -0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (9, sNaN)
Result:
 is:          9.00000000e+00   0x1.200000p+3
 should be:  qNaN
Failure: Test: fmax (9, -sNaN)
Result:
 is:          9.00000000e+00   0x1.200000p+3
 should be:  qNaN
Failure: Test: fmax (-9, sNaN)
Result:
 is:         -9.00000000e+00  -0x1.200000p+3
 should be:  qNaN
Failure: Test: fmax (-9, -sNaN)
lt:
 is:         -0.00000000e+00  -0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (-0, -sNaN)
Result:
 is:         -0.00000000e+00  -0x0.000000p+0
 should be:  qNaN
Failure: Test: fmax (9, sNaN)
Result:
 is:          9.00000000e+00   0x1.200000p+3
 should be:  qNaN
Failure: Test: fmax (9, -sNaN)
Result:
 is:          9.00000000e+00   0x1.200000p+3
 should be:  qNaN
Failure: Test: fmax (-9, sNaN)
Result:
 is:         -9.00000000e+00  -0x1.200000p+3
 should be:  qNaN
Failure: Test: fmax (-9, -sNaN)

...

This is basically bug 20947 but for alpha.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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