RFR: 8371187: [BigEndian Platforms] Vector lane reversal error [v2]
Varada M
varadam at openjdk.org
Tue Jan 20 16:46:04 UTC 2026
> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- 8371187: [BigEndian Platforms] Vector lane reversal error
- Merge remote-tracking branch 'origin/vecalign' into vecalign
- fix for vector alignment issue on big-endian
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28425/files
- new: https://git.openjdk.org/jdk/pull/28425/files/05d4b806..7c87d2bc
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28425&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28425&range=00-01
Stats: 489139 lines in 7084 files changed: 306787 ins; 107695 del; 74657 mod
Patch: https://git.openjdk.org/jdk/pull/28425.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28425/head:pull/28425
PR: https://git.openjdk.org/jdk/pull/28425
More information about the core-libs-dev
mailing list