Commit 301372c3 authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

S390[simd]: make sure registers are not aliased under swizzle

Change-Id: I0938fa9cf52334cbf84a0b38b8e80b88431dff0d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3494439Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/main@{#79307}
parent 615a6da3
......@@ -5984,7 +5984,7 @@ void TurboAssembler::I8x16Swizzle(Simd128Register dst, Simd128Register src1,
Simd128Register src2, Register scratch1,
Register scratch2, Simd128Register scratch3,
Simd128Register scratch4) {
DCHECK_NE(src1, scratch2);
DCHECK(!AreAliased(src1, src2, scratch3, scratch4));
// Saturate the indices to 5 bits. Input indices more than 31 should
// return 0.
vrepi(scratch3, Operand(31), Condition(0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment