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

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

Issue 1533503002: [turbofan] Fixed the second return value of TryTruncateFloatXXToUint64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code cleanup 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 | « src/compiler/x64/code-generator-x64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/macro-assembler-mips64.cc
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc
index 99daa1b00a447407e24f30bb434cf26881c9cdc6..5aaf5269847067d3c9eedd0d084789810ecf63a3 100644
--- a/src/mips64/macro-assembler-mips64.cc
+++ b/src/mips64/macro-assembler-mips64.cc
@@ -1705,9 +1705,9 @@ void MacroAssembler::Trunc_ul_d(FPURegister fd, Register rs,
Label simple_convert, done, fail;
if (result.is_valid()) {
mov(result, zero_reg);
- Move(kDoubleRegZero, 0.0);
- // If fd < 0 or unordered, then the conversion fails.
- BranchF(&fail, &fail, lt, fd, kDoubleRegZero);
+ Move(scratch, -1.0);
+ // If fd =< -1 or unordered, then the conversion fails.
+ BranchF(&fail, &fail, le, fd, scratch);
}
// Load 2^63 into scratch as its double representation.
@@ -1753,9 +1753,9 @@ void MacroAssembler::Trunc_ul_s(FPURegister fd, Register rs,
Label simple_convert, done, fail;
if (result.is_valid()) {
mov(result, zero_reg);
- Move(kDoubleRegZero, 0.0);
- // If fd < 0 or unordered, then the conversion fails.
- BranchF32(&fail, &fail, lt, fd, kDoubleRegZero);
+ Move(scratch, -1.0f);
+ // If fd =< -1 or unordered, then the conversion fails.
+ BranchF32(&fail, &fail, le, fd, scratch);
}
// Load 2^63 into scratch as its float representation.
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698