S390[simd]: make sure registers are not aliased under swizzle
Change-Id: I0938fa9cf52334cbf84a0b38b8e80b88431dff0d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3494439 Reviewed-by: Junliang Yan <junyan@redhat.com> Commit-Queue: Milad Farazmand <mfarazma@redhat.com> Cr-Commit-Position: refs/heads/main@{#79307}
This commit is contained in:
parent
615a6da355
commit
301372c393
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user