On Thu, 29 Jan 2026 11:47:33 GMT, Jatin Bhateja <[email protected]> wrote:

>> Please use a separate named type instead of `int`.
>
> It is indeed an integral value which is passed from Java side which is casted 
> to BasicType.

So please cast it in the intrinsics functions in `vectorIntrinsics.cpp` and 
pass the `LaneType` into this function.

    static bool is_primitive_lane_type(int laneType) {
      return laneType >= VectorSupport::LT_FLOAT && laneType <= 
VectorSupport::LT_LONG;
    }

This function could return a `LaneType` for you. Also, when do we pass in 
something that is not a valid value? Should this be an `assert`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29481#discussion_r2741273046

Reply via email to