On Mon, 8 Jun 2026 08:29:00 GMT, Jatin Bhateja <[email protected]> wrote:

>> I see, thanks! I was thinking there is a new BasicType for FP16 added as 
>> well. I do not suggest adding new IRs for FP16 types. Do you think it's 
>> better to maintain a list of supported vector ops for FP16 instead of 
>> checking the type for each intrinsic? We can check the list firstly in 
>> `arch_supports_vector`,  and remove the list once all the vector ops are 
>> supported in future.
>
> Hi @XiaohongGong ,
> Looking at the interface of 
> [arch_supported_vector](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/vectorIntrinsics.cpp#L193),
>   it again accepts vector opcode , element type and num_elems etc... so we 
> will need an additional argument which demarcates Float16 vector operations 
> based on java side LaneType and then comparing it against a supported vector 
> list will be cumbersome and still need changes in each inline expander.
> 
> Hi @eme64,
> Good point — I've flipped is_unsupported_lane_type into an allowlist 
> is_supported_lane_type that accepts only the primitive lane types for now. I 
> will remove these calls one by one from each inline expander as we add the 
> support for Float16Vector operations incrementally.

@jatin-bhateja Thanks for the changes!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28002#discussion_r3378204452

Reply via email to