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

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

Issue 1537973002: MIPS: Fix uninitialized upper word bits for Cvt_d_uw macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | test/cctest/test-assembler-mips.cc » ('j') | test/cctest/test-assembler-mips.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/macro-assembler-mips.cc
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc
index 92a2419d30ae88ba45e1ff7e5c2dd45864c914b9..1c1ea20afbdfa17e25661ef5e704bdd51a952e22 100644
--- a/src/mips/macro-assembler-mips.cc
+++ b/src/mips/macro-assembler-mips.cc
@@ -1270,6 +1270,7 @@ void MacroAssembler::Cvt_d_uw(FPURegister fd, Register rs,
// In FP64Mode we do convertion from long.
if (IsFp64Mode()) {
mtc1(rs, scratch);
ivica.bogosavljevic 2015/12/18 15:07:56 After mtc1, upper 32 bits of the register are unpr
+ Mthc1(zero_reg, scratch);
cvt_d_l(fd, scratch);
} else {
// Convert rs to a FP value in fd.
« no previous file with comments | « no previous file | test/cctest/test-assembler-mips.cc » ('j') | test/cctest/test-assembler-mips.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698