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

BranchOptimizer produces bad code for NaN FP comparison

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • core-libs
    • None
    • b17
    • generic
    • generic

        When BranchOptimizer.execute() is invoked with "false" (jump when expression is false), it generates incorrect code for double comparison with NaNs. Attaching a test and expected results.

          1. nan-compare.js
            0.9 kB
            Attila Szegedi
          2. nan-compare.js.EXPECTED
            0.1 kB
            Attila Szegedi

              attila Attila Szegedi
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: