Commit 483e30d0 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[x64] Add missing SSE4_1 scope

pmovsxdq, pmovzxdq, and pcmpeqq requires SSE4.1.

Bug: v8:11215,v8:10972
Change-Id: I77e17378f819ce44ccc09a42f1d5778d7f6cf0e2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2683222Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72602}
parent 21b3181a
......@@ -2179,6 +2179,7 @@ void TurboAssembler::I64x2SConvertI32x4High(XMMRegister dst, XMMRegister src) {
vpunpckhqdq(dst, src, src);
vpmovsxdq(dst, dst);
} else {
CpuFeatureScope sse_scope(this, SSE4_1);
pshufd(dst, src, 0xEE);
pmovsxdq(dst, dst);
}
......@@ -2190,6 +2191,7 @@ void TurboAssembler::I64x2UConvertI32x4High(XMMRegister dst, XMMRegister src) {
vpxor(kScratchDoubleReg, kScratchDoubleReg, kScratchDoubleReg);
vpunpckhdq(dst, src, kScratchDoubleReg);
} else {
CpuFeatureScope sse_scope(this, SSE4_1);
pshufd(dst, src, 0xEE);
pmovzxdq(dst, dst);
}
......
......@@ -2909,6 +2909,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
break;
}
case kX64I64x2Eq: {
CpuFeatureScope sse_scope(tasm(), SSE4_1);
ASSEMBLE_SIMD_BINOP(pcmpeqq);
break;
}
......
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