RISC-V: Fix redundant zext.w in macroAssembler_riscv.cpp

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 27
    • Component/s: hotspot
    • riscv
    • linux

      On behalf of Zhenjun Feng <fengzhenjun.fzj@alibaba-inc.com>

      The RISC-V addiw instruction includes built-in sign extension. When the 32-bit immediate value is 0, no sign extension is needed. The current JIT assembler generates a redundant zext.w instruction.

            Assignee:
            Unassigned
            Reporter:
            Dingli Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: