RFR: 8277997: Intrinsic creation for VectorMask.fromLong API [v2]

Jatin Bhateja jbhateja at openjdk.java.net
Mon Dec 6 17:44:03 UTC 2021


On Fri, 3 Dec 2021 20:44:49 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> The coerced terms comes from representing the value to convert (one bit, byte, float, long, etc) to a mask or vector as a set of bits held in a long value.
> 
> Thus having an extra mode `MODE_BITS_COERCED_BROADCAST` is confusing in that regard and i think you can just reuse `MODE_BROADCAST` when broadcast the 1 bit to a mask. Since the class argument determines whether we are referring to a vector or not, as determined by `is_mask`.
> 
> Thus i would retain the existing `scalar2vector` boolean argument, thereby the mode is localized just to the intrinsic.

Comments addressed.

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

PR: https://git.openjdk.java.net/jdk/pull/6646


More information about the hotspot-compiler-dev mailing list