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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 17
    • Component/s: 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.

            Assignee:
            Dan Smith
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: