Commit a942ed27 authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

Add DCHECKS for SSE instructions

Change-Id: I27f960268ae3aaf61ae8d7903e1b3b057e5d5ac8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1710158Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62857}
parent 76f789c3
......@@ -1776,6 +1776,7 @@ void TurboAssembler::Psllq(XMMRegister dst, byte imm8) {
CpuFeatureScope scope(this, AVX);
vpsllq(dst, dst, imm8);
} else {
DCHECK(!IsEnabled(AVX));
psllq(dst, imm8);
}
}
......@@ -1785,6 +1786,7 @@ void TurboAssembler::Psrlq(XMMRegister dst, byte imm8) {
CpuFeatureScope scope(this, AVX);
vpsrlq(dst, dst, imm8);
} else {
DCHECK(!IsEnabled(AVX));
psrlq(dst, imm8);
}
}
......@@ -1794,6 +1796,7 @@ void TurboAssembler::Pslld(XMMRegister dst, byte imm8) {
CpuFeatureScope scope(this, AVX);
vpslld(dst, dst, imm8);
} else {
DCHECK(!IsEnabled(AVX));
pslld(dst, imm8);
}
}
......@@ -1803,6 +1806,7 @@ void TurboAssembler::Psrld(XMMRegister dst, byte imm8) {
CpuFeatureScope scope(this, AVX);
vpsrld(dst, dst, imm8);
} else {
DCHECK(!IsEnabled(AVX));
psrld(dst, imm8);
}
}
......
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