RFR: 8371187: [BigEndian Platforms] Vector lane reversal error [v5]
Jatin Bhateja
jbhateja at openjdk.org
Fri Feb 6 11:42:31 UTC 2026
On Fri, 23 Jan 2026 10:51:18 GMT, Varada M <varadam at openjdk.org> wrote:
>> This change fixes incorrect lane ordering in reinterpretation operations on big-endian platforms. When converting from wider to narrower lane types like Long to Int, Long to Short, big-endian systems produced reversed sub-lanes.
>> The patch adds a maybeSwapOnConverted() and a generic normalizeSubLanesForSpecies() shuffle builder to correct the sub-lane order based on element sizes on big-endian
>>
>> JBS: [JDK-8371187](https://bugs.openjdk.org/browse/JDK-8371187)
>
> Varada M has updated the pull request incrementally with two additional commits since the last revision:
>
> - 8371187: [BigEndian Platforms] Vector lane reversal error
> - 8371187: [BigEndian Platforms] Vector lane reversal error
We have forgotten to checkin X-Vector.java.template file which contains definition of 'swapIfNeeded'
Please address [JDK-8377355](https://bugs.openjdk.org/browse/JDK-8377355)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28425#issuecomment-3859952896
More information about the core-libs-dev
mailing list