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

[PPC64] C2: Math.rint intrinsic uses wrong rounding mode

    XMLWordPrintable

Details

    • b31
    • ppc

    Backports

      Description

        The test api/java_lang/Math/rintround is failing on PPC64 platforms when running with -Xcomp -XX:-TieredCompilation.
        C2 uses frin and xvrdpi instructions which don't use the required rounding mode. Rounding mode "RoundToDPIntegerNearEven" needs to be used. See
        https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#rint-double-

        Attachments

          Issue Links

            Activity

              People

                mdoerr Martin Doerr
                mdoerr Martin Doerr
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: