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

Use lzcnt instruction for leading zero count on SPARC

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Environment:

      SPARC T4 or equivalent and above with VIS3 or later instruction set

    • Subcomponent:
    • Introduced In Version:
    • CPU:
      sparc
    • OS:
      generic

      Description

      The current intrinsic to count leading zeroes on SPARC was implemented prior to the release of the VIS3 instruction set which has an lzcnt instruction.

      For SPARC implementations which have VIS3 or later, the lzcnt can replace the current algorithm which is expensive

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              twatson Trevor Watson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: