Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: src/x64/macro-assembler-x64.cc

Issue 2161503002: [x64] Fix Xorps macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/macro-assembler-x64.cc
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
index 407703ef8ffb303d4e46f4f35681edb31aa62a8d..f797237af523ab64e50017ee9393e40166a84365 100644
--- a/src/x64/macro-assembler-x64.cc
+++ b/src/x64/macro-assembler-x64.cc
@@ -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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698