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

Unified Diff: src/compiler/x64/code-generator-x64.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/arm64/code-generator-arm64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ffc62107b583ab82f52a15dff565d7a8315f3118..2b5b4a0e4dd19139f206c7e99160c8a3ebf1b79a 100644
--- a/src/compiler/x64/code-generator-x64.cc
+++ b/src/compiler/x64/code-generator-x64.cc
@@ -1109,14 +1109,6 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
Label success;
if (instr->OutputCount() > 1) {
__ Set(i.OutputRegister(1), 0);
- __ xorps(kScratchDoubleReg, kScratchDoubleReg);
-
- if (instr->InputAt(0)->IsDoubleRegister()) {
- __ Ucomiss(kScratchDoubleReg, i.InputDoubleRegister(0));
- } else {
- __ Ucomiss(kScratchDoubleReg, i.InputOperand(0));
- }
- __ j(above, &done);
}
// There does not exist a Float32ToUint64 instruction, so we have to use
// the Float32ToInt64 instruction.
@@ -1160,14 +1152,6 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
Label success;
if (instr->OutputCount() > 1) {
__ Set(i.OutputRegister(1), 0);
- __ xorps(kScratchDoubleReg, kScratchDoubleReg);
-
- if (instr->InputAt(0)->IsDoubleRegister()) {
- __ Ucomisd(kScratchDoubleReg, i.InputDoubleRegister(0));
- } else {
- __ Ucomisd(kScratchDoubleReg, i.InputOperand(0));
- }
- __ j(above, &done);
}
// There does not exist a Float64ToUint64 instruction, so we have to use
// the Float64ToInt64 instruction.
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698