RFR: 8355667: RISC-V: Add backend implementation for unsigned vector Min / Max operations [v2]

Fei Yang fyang at openjdk.org
Tue Apr 29 13:11:33 UTC 2025


On Tue, 29 Apr 2025 10:03:21 GMT, Hamlin Li <mli at openjdk.org> wrote:

> Looks good. Just one minor question, should we add an assert like below for these instructs? Seems not, but I'm not quite sure.
> 
> ```
> assert(Matcher::vector_element_basic_type(n) != T_FLOAT &&
>             Matcher::vector_element_basic_type(n) != T_DOUBLE);
> ```

Good suggestion! I have added following assertion for these instructions just like other CPU ports.
Please take another look. Thanks.

`assert(is_integral_type(bt), "unsupported type");`

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24909#issuecomment-2838817355


More information about the hotspot-compiler-dev mailing list