Repository navigation
Conversation
Collaborator
|
Review requested:
|
Collaborator
legendecas
reviewed
Dec 4, 2026
legendecas
left a comment
Member
There was a problem hiding this comment.
There are .orig and .rej files committed.
Original commit message:
[riscv] Allow vlen=1024
This resolves the remaining crashes observed in Node.js at
nodejs#64538 allowing execution on
systems with vlen=1024 such as the K3's A100 cores including raising
kMaxRvvVLEN from 512 to 1024. the code has a refactored helper
function to abstract out some of the changes across the SetSimd*
functions. The changes to the tests allow them to pass successfully in
vlen=1024 environment with functionality for lower vlen's unaffected.
Test: Run the code snippet from
nodejs#64538 (comment) -
it will give an illegal exception on a system with a vlen of 1024
without this patch. If someone else can test it on other systems that
would be good as I have only verified it on the K3's vlen=256 and
vlen=1024 cores (and also by building Node.js with these changes and
verifying that npm no longer crashes).
The main functional piece of the patch is quite small, but there have
been a number of changes to the unit tests required to support this
which are included in this CL. The updated tests have been executed on
vlen sizes of 256 and 1024 and pass.
This patch was assisted by cursor AI.
R=yahan@iscas.ac.cn
Signed-off-by: Stewart Addison <sxa@ibm.com>
Change-Id: I752f9ae23d3e605dbcf5bd8d97d104b0a788e5c6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8585179
Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn>
Reviewed-by: Yahan Lu (LuYahan) <yahan@iscas.ac.cn>
Commit-Queue: Ji Qiu <qiuji@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#111579}
Refs: v8/v8@5cbd9b7
sxa
force-pushed
the
v27.x-rvvbackport
branch
from
December 4, 2026 17:49
ea74181 to
16d8ccc
Compare
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FYI @nodejs/v8 I will do a separate backport PR to node 26 for V8 14.6. Due to some refactoring the patch will be a bit different but I do already got a version which works. This fixes a number of problems with Node on RISC-V machines with vector support (as it happens more than just when vlen=1024!)
Original commit message:
Refs: v8/v8@5cbd9b7