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

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

Issue 1708853002: MIPS: [turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.h » ('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 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 __ trunc_w_s(scratch, i.InputDoubleRegister(0)); 1081 __ trunc_w_s(scratch, i.InputDoubleRegister(0));
1082 __ mfc1(i.OutputRegister(), scratch); 1082 __ mfc1(i.OutputRegister(), scratch);
1083 break; 1083 break;
1084 } 1084 }
1085 case kMipsTruncUwD: { 1085 case kMipsTruncUwD: {
1086 FPURegister scratch = kScratchDoubleReg; 1086 FPURegister scratch = kScratchDoubleReg;
1087 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. 1087 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function.
1088 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); 1088 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
1089 break; 1089 break;
1090 } 1090 }
1091 case kMipsTruncUwS: {
1092 FPURegister scratch = kScratchDoubleReg;
1093 // TODO(plind): Fix wrong param order of Trunc_uw_s() macro-asm function.
1094 __ Trunc_uw_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch);
1095 break;
1096 }
1091 case kMipsFloat64ExtractLowWord32: 1097 case kMipsFloat64ExtractLowWord32:
1092 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); 1098 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0));
1093 break; 1099 break;
1094 case kMipsFloat64ExtractHighWord32: 1100 case kMipsFloat64ExtractHighWord32:
1095 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); 1101 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0));
1096 break; 1102 break;
1097 case kMipsFloat64InsertLowWord32: 1103 case kMipsFloat64InsertLowWord32:
1098 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); 1104 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1));
1099 break; 1105 break;
1100 case kMipsFloat64InsertHighWord32: 1106 case kMipsFloat64InsertHighWord32:
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 padding_size -= v8::internal::Assembler::kInstrSize; 1817 padding_size -= v8::internal::Assembler::kInstrSize;
1812 } 1818 }
1813 } 1819 }
1814 } 1820 }
1815 1821
1816 #undef __ 1822 #undef __
1817 1823
1818 } // namespace compiler 1824 } // namespace compiler
1819 } // namespace internal 1825 } // namespace internal
1820 } // namespace v8 1826 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698