On Thu, 24 Sep 2026 07:06:07 GMT, Jatin Bhateja <[email protected]> wrote:
> Hi All, > > COMPRESS_BITS and EXPAND_BITS advertise compatibility with all integral lane > types, but ByteVector/ShortVector had no implementation and threw > UnsupportedOperationException. > > This patch extends COMPRESS_BITS and EXPAND_BITS to the sub-word integral > types byte and short, covering all integral types. > > The changes encompass: > - Java-side fallback handling for ByteVector and ShortVector. > - Inline expander side changes. > - C2/VectorSupport type plumbing for T_BYTE/T_SHORT. > - Classifying CompressBits/ExpandBits as non-truncating in SuperWord so > subword stores of Integer.compress do not crash debug builds. > - Extending Vector API jtreg tests to cover byte and short COMPRESS_BITS and > EXPAND_BITS. > > Please review and share your feedback. > > Best Regards, > Jatin > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). > @PaulSandoz has indicated that a [compatibility and > specification](https://wiki.openjdk.org/display/csr/Main) (CSR) request is > needed for this pull request. > > @jatin-bhateja please create a > [CSR](https://wiki.openjdk.org/display/csr/Main) request for issue > [JDK-8392465](https://bugs.openjdk.org/browse/JDK-8392465) with the correct > fix version. This pull request cannot be integrated until the CSR request is > approved. Hi @PaulSandoz , your comments on this pull request have been addressed and CSR is created, kindly review the CSR. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33050#issuecomment-5864029634
