Commit 38cdb5d1 authored by Zhi An Ng's avatar Zhi An Ng Committed by Commit Bot

[wasm-simd][liftoff][ia32][x64] Add missing CpuFeatureScope

pshufb is a SSSE3 feature and so requires the scope before using.

Change-Id: I42cf252079ba9aa9b09c2197a0e20b90ebc27b5d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2500927Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70813}
parent 4d600490
......@@ -2712,6 +2712,7 @@ void LiftoffAssembler::emit_i8x16_shuffle(LiftoffRegister dst,
if (dst != lhs) {
movups(dst.fp(), lhs.fp());
}
CpuFeatureScope sse_scope(this, SSSE3);
pshufb(dst.fp(), Operand(esp, 0));
}
mov(esp, tmp.gp());
......
......@@ -2336,6 +2336,7 @@ void LiftoffAssembler::emit_i8x16_shuffle(LiftoffRegister dst,
if (dst != lhs) {
movups(dst.fp(), lhs.fp());
}
CpuFeatureScope sse_scope(this, SSSE3);
pshufb(dst.fp(), kScratchDoubleReg);
}
return;
......
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