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

Unified Diff: src/compiler/x64/code-generator-x64.cc

Issue 1504363002: [turbofan] Change TruncateFloat32ToInt64 to TryTruncateFloat32ToInt64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
Index: src/compiler/x64/code-generator-x64.cc
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
index 62003f10551c913b7673cdde1553915318a54406..9c8bd0391f1fe1df7f493a5e22df5b8bd6af62a7 100644
--- a/src/compiler/x64/code-generator-x64.cc
+++ b/src/compiler/x64/code-generator-x64.cc
@@ -1051,6 +1051,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
} else {
__ Cvttss2siq(i.OutputRegister(), i.InputOperand(0));
}
+ if (instr->OutputCount() > 1) {
+ __ Set(i.OutputRegister(1), 0x8000000000000000);
+ __ subq(i.OutputRegister(1), i.OutputRegister(0));
+ }
break;
case kSSEFloat64ToInt64:
if (instr->InputAt(0)->IsDoubleRegister()) {

Powered by Google App Engine
This is Rietveld 408576698