Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266707

Consider aligning dneg/fneg specs with IEEE 754-2019 NaN handling

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 17
    • specification
    • None
    • vm

      The IEEE 754-2019 standard tightened the specification its negate operation so that is it a sign bit operation rather than an arithmetic operation. Operationally, that means that IEEE 754-2019 negate is also required to flip the sign bit of the input if the input is a NaN, even though the sign of a NaN doesn't have a meaning per se. See sections 5.5.1 and 6.3 of that standard.

      The dneg/fneg JVM instructions do not have a similar requirement and are allowed to return any NaN for a NaN input.

            dlsmith Dan Smith
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: