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

RISC-V: Remove revb_h_h_u and revb_h_w_u macro assembler routines

XMLWordPrintable

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

      This is a further step after https://bugs.openjdk.org/browse/JDK-8345110.
      `revb_h_h_u` and `revb_h_w_u` assembler routines are mainly used to change byte-ordering for one halfword or two halfwords.
      The names don't look obvious and the callsites emit more instructions when Zbb is not available (6 and 14 instructions respectively).
      Seems the code will be more readable if we do the ordering while loading the bytes for these callsites, which results in less instructions.
      Similar approach is taken for other callsites in riscv and other ports like arm.

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

              Created:
              Updated:
              Resolved: