BranchOptimizer produces bad code for NaN FP comparison

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: