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

Test compiler/c2/irTests/TestIfMinMax.java fails on RISC-V

    XMLWordPrintable

Details

    • b17
    • riscv
    • linux

    Description

      JDK-8324655 tries to identify min/max patterns in CMoves and transform them into Min and Max nodes.
      But architectures like RISC-V doesn't have support of conditional moves at the ISA level for now.
      So we set ConditionalMoveLimit parameter to 0 for this platform and conditionals moves are emulated
      with normal compare and branch instructions instead [1]. This is why the IR matching test added by
      JDK-8324655 fails on this platform. A simple way to fix this would be skip this test for this case.

      [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/riscv/riscv.ad#L9775

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: