RFR: 8355657: RISC-V: Improve PrintOptoAssembly output of vector-scalar instructions

Fei Yang fyang at openjdk.org
Mon Apr 28 01:44:54 UTC 2025


On Sun, 27 Apr 2025 07:17:36 GMT, Anjian-Wen <duke at openjdk.org> wrote:

> As the issue describe, some match rule and predict match not only type I, in case of the misleading, try to delete some "I" in the format and instruct name

src/hotspot/cpu/riscv/riscv_v.ad line 631:

> 629:   match(Set dst_src (SubVS (Binary dst_src (Replicate src2)) v0));
> 630:   match(Set dst_src (SubVI (Binary dst_src (Replicate src2)) v0));
> 631:   format %{ "vsub_vx_masked $dst_src, $dst_src, $src2, $v0" %}

Can you update the format of `instruct vsubL_vx_masked` while you are on it?
It should be `vsubL_vx_masked` instead of `vsub_vx_masked`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24904#discussion_r2062789808


More information about the hotspot-compiler-dev mailing list