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

RISC-V: Optimize and and clean up byte reverse assembler routines

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • b27
    • riscv
    • linux

      There is no need for `revb_w` to reverse bytes for each 32-bit word. All the callers only care about the lower 32-bit word. This reimplement `revb_w` so that it only reverses bytes in lower 32-bit word and sign-extends the result. This makes `revb_w_w` duplicate. And the new `revb_w` will also emit less instructions than `revb_w_w`.

            fyang Fei Yang
            fyang Fei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: