Skip to content

Fix vload/vstore for Short and Byte Vectors on P8 and below - #8100

Merged
dsouzai merged 1 commit into
eclipse-omr:masterfrom
midronij:vLoadStore-p8
Jan 30, 2026
Merged

Fix vload/vstore for Short and Byte Vectors on P8 and below#8100
dsouzai merged 1 commit into
eclipse-omr:masterfrom
midronij:vLoadStore-p8

Conversation

@midronij

@midronij midronij commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Addresses #6302 for P8 and below. Also fixes eclipse-openj9/openj9#23139.

@midronij

Copy link
Copy Markdown
Contributor Author

@zl-wang @gita-omr FYI

Because type-specific vector load/store instructions for Byte and
ShortVectors (lxvb16x/stxvb16x and lxvh8x/stxvh8x respectively) are only
available on P9 and up, we currently use the IntVector versions
(lxvw4x/stxvw4x) on P8 and below. However, this loads/stores the
vector's contents from/to memory in word-sized chunks, and as a result
the order of elements is not presevered from memory to the target
register. This contribution addresses this issue by manually rearranging
the vector contents just after loading/just before storing.

Signed-off-by: midronij <jackie.midroni@ibm.com>

@zl-wang zl-wang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@midronij

Copy link
Copy Markdown
Contributor Author

@dsouzai could you please run the CI tests and merge if everything looks okay?

@dsouzai

dsouzai commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

jenkins build aix,plinux

@dsouzai dsouzai self-assigned this Jan 29, 2026
@midronij

Copy link
Copy Markdown
Contributor Author

As far as I can tell, the CI test failure is this: #6571, so I think we can go ahead and merge my changes @dsouzai

@dsouzai
dsouzai merged commit 2c14761 into eclipse-omr:master Jan 30, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jdk_vector_short128_j9_0 jdk/incubator/vector/Short128VectorTests.java AssertionError

5 participants