Chromium Code Reviews

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 1513463002: MIPS64: [turbofan] Change TruncateFloat64ToUint64 to TryTruncateFloatToUint64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@trytrunc-uint64
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1086 matching lines...)
1097 break; 1097 break;
1098 } 1098 }
1099 case kMips64TruncUlS: { 1099 case kMips64TruncUlS: {
1100 FPURegister scratch = kScratchDoubleReg; 1100 FPURegister scratch = kScratchDoubleReg;
1101 // TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function. 1101 // TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function.
1102 __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch); 1102 __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
1103 break; 1103 break;
1104 } 1104 }
1105 case kMips64TruncUlD: { 1105 case kMips64TruncUlD: {
1106 FPURegister scratch = kScratchDoubleReg; 1106 FPURegister scratch = kScratchDoubleReg;
1107 Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg;
1107 // TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function. 1108 // TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function.
1108 __ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); 1109 __ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(0), scratch,
1110 result);
1109 break; 1111 break;
1110 } 1112 }
1111 case kMips64BitcastDL: 1113 case kMips64BitcastDL:
1112 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0)); 1114 __ dmfc1(i.OutputRegister(), i.InputDoubleRegister(0));
1113 break; 1115 break;
1114 case kMips64BitcastLD: 1116 case kMips64BitcastLD:
1115 __ dmtc1(i.InputRegister(0), i.OutputDoubleRegister()); 1117 __ dmtc1(i.InputRegister(0), i.OutputDoubleRegister());
1116 break; 1118 break;
1117 case kMips64Float64ExtractLowWord32: 1119 case kMips64Float64ExtractLowWord32:
1118 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); 1120 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0));
(...skipping 707 matching lines...)
1826 padding_size -= v8::internal::Assembler::kInstrSize; 1828 padding_size -= v8::internal::Assembler::kInstrSize;
1827 } 1829 }
1828 } 1830 }
1829 } 1831 }
1830 1832
1831 #undef __ 1833 #undef __
1832 1834
1833 } // namespace compiler 1835 } // namespace compiler
1834 } // namespace internal 1836 } // namespace internal
1835 } // namespace v8 1837 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine