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

[PPC64] Introduce and use setbc and setnbc P10 instructions

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • None
    • b25
    • ppc

    Description

      - setbc RT,BI: sets RT to 1 if CR(BI) is 1, otherwise 0.
      - setnbc RT,BI: sets RT to -1 if CR(BI) is 1, otherwise 0.
      Ref: PowerISA 3.1, page 129.

      These instructions are particularly interesting to improve the following pattern `(src1<src2)? -1: ((src1>src2)? 1: 0)`, which can be found in `instruct cmpL3_reg_reg_ExEx()@ppc.ad`, by removing its branches.

      Long.toString, that generate such pattern in getChars, has showed a good performance gain by using these new instructions.

      Attachments

        Issue Links

          Activity

            People

              jziviani Jose Ziviani
              jziviani Jose Ziviani
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: