[x64] Fix Xorps macro.

Review-Url: https://codereview.chromium.org/2161503002
Cr-Commit-Position: refs/heads/master@{#37813}
This commit is contained in:
weiliang.lin 2016-07-17 21:24:49 -07:00 committed by Commit bot
parent f6c45c5243
commit 7e4e6c52e6

View File

@ -2877,7 +2877,7 @@ void MacroAssembler::Movmskpd(Register dst, XMMRegister src) {
void MacroAssembler::Xorps(XMMRegister dst, XMMRegister src) {
if (CpuFeatures::IsSupported(AVX)) {
CpuFeatureScope scope(this, AVX);
vxorps(dst, kScratchDoubleReg, src);
vxorps(dst, dst, src);
} else {
xorps(dst, src);
}
@ -2886,7 +2886,7 @@ void MacroAssembler::Xorps(XMMRegister dst, XMMRegister src) {
void MacroAssembler::Xorps(XMMRegister dst, const Operand& src) {
if (CpuFeatures::IsSupported(AVX)) {
CpuFeatureScope scope(this, AVX);
vxorps(dst, kScratchDoubleReg, src);
vxorps(dst, dst, src);
} else {
xorps(dst, src);
}