Commit a0f105c8 authored by Zhi An Ng's avatar Zhi An Ng Committed by Commit Bot

[wasm-simd][x64] Add missing CpuFeatureScope to some instructions

It doesn't seem to be a problem at all, I think we already have SSE4_1
scope enabled somewhere.

Change-Id: I501166a4e45214832e85df8a2594dabe6976bfd3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2567191Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71584}
parent 6e9c60e6
...@@ -1906,6 +1906,7 @@ void TurboAssembler::Pblendvb(XMMRegister dst, XMMRegister src1, ...@@ -1906,6 +1906,7 @@ void TurboAssembler::Pblendvb(XMMRegister dst, XMMRegister src1,
CpuFeatureScope avx_scope(this, AVX); CpuFeatureScope avx_scope(this, AVX);
vpblendvb(dst, src1, src2, mask); vpblendvb(dst, src1, src2, mask);
} else { } else {
CpuFeatureScope scope(this, SSE4_1);
DCHECK_EQ(dst, src1); DCHECK_EQ(dst, src1);
DCHECK_EQ(xmm0, mask); DCHECK_EQ(xmm0, mask);
pblendvb(dst, src2); pblendvb(dst, src2);
...@@ -1918,6 +1919,7 @@ void TurboAssembler::Blendvps(XMMRegister dst, XMMRegister src1, ...@@ -1918,6 +1919,7 @@ void TurboAssembler::Blendvps(XMMRegister dst, XMMRegister src1,
CpuFeatureScope avx_scope(this, AVX); CpuFeatureScope avx_scope(this, AVX);
vblendvps(dst, src1, src2, mask); vblendvps(dst, src1, src2, mask);
} else { } else {
CpuFeatureScope scope(this, SSE4_1);
DCHECK_EQ(dst, src1); DCHECK_EQ(dst, src1);
DCHECK_EQ(xmm0, mask); DCHECK_EQ(xmm0, mask);
blendvps(dst, src2); blendvps(dst, src2);
...@@ -1930,6 +1932,7 @@ void TurboAssembler::Blendvpd(XMMRegister dst, XMMRegister src1, ...@@ -1930,6 +1932,7 @@ void TurboAssembler::Blendvpd(XMMRegister dst, XMMRegister src1,
CpuFeatureScope avx_scope(this, AVX); CpuFeatureScope avx_scope(this, AVX);
vblendvpd(dst, src1, src2, mask); vblendvpd(dst, src1, src2, mask);
} else { } else {
CpuFeatureScope scope(this, SSE4_1);
DCHECK_EQ(dst, src1); DCHECK_EQ(dst, src1);
DCHECK_EQ(xmm0, mask); DCHECK_EQ(xmm0, mask);
blendvpd(dst, src2); blendvpd(dst, src2);
......
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