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

RISC-V: Improve temporary vector register usage avoiding the use of v0

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b25
    • riscv
    • linux

      We have some macro assembler functions that use v0 hardcoded as a temporary register currently.
      However, the mask value used to control execution of a masked vector instruction is always supplied by vector register v0 in RVV1.0[1]. So if v0 is not used as a mask register in subsequent instructions, it is better to replace it with other vector registers to improve code execution efficiency.

      [1] https://github.com/riscv/riscv-v-spec/blob/v1.0/v-spec.adoc

            dzhang Dingli Zhang
            dzhang Dingli Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: