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

[PPC64] Introduce and use setbc and setnbc P10 instructions

XMLWordPrintable

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

      - 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.

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

              Created:
              Updated:
              Resolved: