RFR: 8355074: RISC-V: C2: Support Vector-Scalar version of Zvbb Vector And-Not instruction

Fei Yang fyang at openjdk.org
Thu Apr 24 11:44:50 UTC 2025


On Thu, 17 Apr 2025 03:01:42 GMT, Anjian-Wen <duke at openjdk.org> wrote:

> support zvbb vand-not vector-scalar version, which Op1 is the sign-extended or truncated value in scalar register rs1
> add C2 match rule
> add related Tests in IRNode structure
> 
> passed jtreg test test/hotspot/jtreg/compiler/vectorapi/*

test/hotspot/jtreg/compiler/lib/ir_framework/IRNode.java line 2129:

> 2127:     }
> 2128: 
> 2129:     public static final String VAND_NOTI_VX = PREFIX + "VAND_NOTI_VX" + POSTFIX;

Since this is a shared file and these four instructions are RISCV-specific, seems better to add a `RISCV_` prefix to make that explicit. Consider names like `RISCV_VAND_NOTI_VX`, `RISCV_VAND_NOTL_VX`, `RISCV_VAND_NOTI_VX_MASKED` and `RISCV_VAND_NOTL_VX_MASKED`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24709#discussion_r2058181155


More information about the hotspot-compiler-dev mailing list