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/16399] New: lrint / llrint / lround / llround missing exceptions (MIPS)


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

            Bug ID: 16399
           Summary: lrint / llrint / lround / llround missing exceptions
                    (MIPS)
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org

This is a similar issue to bug 15470, but for MIPS:

For 32-bit MIPS (maybe only some architecture versions), lrint, llrint, lround
and llround fail to raise "invalid" exceptions for at least some out-of-range
arguments, e.g.:

testing double (without inline functions)
Failure: lrint (inf): Exception "Invalid operation" not set
Failure: lrint (-inf): Exception "Invalid operation" not set
Failure: lrint (qNaN): Exception "Invalid operation" not set
Failure: lrint_tonearest (inf): Exception "Invalid operation" not set
Failure: lrint_tonearest (-inf): Exception "Invalid operation" not set
Failure: lrint_tonearest (qNaN): Exception "Invalid operation" not set
Failure: lrint_towardzero (inf): Exception "Invalid operation" not set
Failure: lrint_towardzero (-inf): Exception "Invalid operation" not set
Failure: lrint_towardzero (qNaN): Exception "Invalid operation" not set
Failure: lrint_downward (inf): Exception "Invalid operation" not set
Failure: lrint_downward (-inf): Exception "Invalid operation" not set
Failure: lrint_downward (qNaN): Exception "Invalid operation" not set
Failure: lrint_upward (inf): Exception "Invalid operation" not set
Failure: lrint_upward (-inf): Exception "Invalid operation" not set
Failure: lrint_upward (qNaN): Exception "Invalid operation" not set
Failure: llrint (inf): Exception "Invalid operation" not set
Failure: llrint (-inf): Exception "Invalid operation" not set
Failure: llrint_tonearest (inf): Exception "Invalid operation" not set
Failure: llrint_tonearest (-inf): Exception "Invalid operation" not set
Failure: llrint_towardzero (inf): Exception "Invalid operation" not set
Failure: llrint_towardzero (-inf): Exception "Invalid operation" not set
Failure: llrint_downward (inf): Exception "Invalid operation" not set
Failure: llrint_downward (-inf): Exception "Invalid operation" not set
Failure: llrint_upward (inf): Exception "Invalid operation" not set
Failure: llrint_upward (-inf): Exception "Invalid operation" not set
Failure: lround (inf): Exception "Invalid operation" not set
Failure: lround (-inf): Exception "Invalid operation" not set
Failure: lround (qNaN): Exception "Invalid operation" not set
Failure: llround (inf): Exception "Invalid operation" not set
Failure: llround (-inf): Exception "Invalid operation" not set

(and likewise for float).

-- 
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]