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

RISC-V: pipeline class for several instructions is not set correctly

    XMLWordPrintable

Details

    • 21
    • b08
    • riscv
    • linux

    Backports

      Description

        Witness that some c2 instructions use the inappropriate ins_pipe, e.g.:

        ```
        instruct MoveI2F_stack_reg(fRegF dst, stackSlotI src) %{

          match(Set dst (MoveI2F src));

          effect(DEF dst, USE src);

          ins_cost(LOAD_COST);

          format %{ "flw $dst, $src\t#@MoveI2F_stack_reg" %}

          ins_encode %{
            __ flw(as_FloatRegister($dst$$reg), Address(sp, $src$$disp));
          %}

          ins_pipe(pipe_class_memory);

        %}
        ```

        We can use the more accurate pipe_class `fp_load_mem_s` instead.

        Attachments

          Issue Links

            Activity

              People

                fjiang Feilong Jiang
                fjiang Feilong Jiang
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: