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

RISC-V: Refactor add/sub assembler routines

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • hotspot
    • riscv
    • linux

      Currently, we have mixed use of `addi` and `add(int64_t)`/`sub(int64_t)`. The former adds a 12-bit immediate while the latter
      does not have a constraint on the immediate range. We should use `addi` when possible, which would help save one runtime check
      about the immediate range and save the tmp register used by the latter as well. In order to make the code more readable, this
      also introduces helper routines `subi`/`subiw` and adapts callsites of `addi`/`addiw` with negative immediates.

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

              Created:
              Updated: