On Mon, 24 Aug 2026 08:46:39 GMT, Xueming Shen <[email protected]> wrote:
> VectorOperators.ZOMO is specified as integral-only and is marked with > VO_NOFP. However, its special-case handling implementation in Float16Vector, > FloatVector, and DoubleVector ran before the normal opCode(op) validation, > allowing floating-point vectors to execute this unsupported operator. > > This change > (1) updates the ZOMO special-case fallback to integral vectors in > X-Vector.java.template and regenerates the affected floating-point vector > classes. Floating-point ZOMO operations now reach the normal compatibility > validation and throw UnsupportedOperationException, as specified. > Integral-vector behavior is unchanged. > ` X-Vector.java.template` > > (2) adds a standalone -ve test coverage for Vector.lanewise operations > (JDK-8389731) as the unit test. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 06f7bcd4 Author: Xueming Shen <[email protected]> URL: https://git.openjdk.org/jdk/commit/06f7bcd43d3ecfef325ca45e58026e00460fe09d Stats: 189 lines in 5 files changed: 161 ins; 20 del; 8 mod 8389844: VectorAPI: VectorOperators.ZOMO specifies "Integral only", inconsistency between spec vs impl Reviewed-by: psandoz ------------- PR: https://git.openjdk.org/jdk/pull/32498
