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

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

Issue 1438013003: [turbofan] Implemented the RoundUint64ToFloat32 TurboFan operator for x64, arm64, (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reformated the test Created 5 years, 1 month 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 | « src/compiler/opcodes.h ('k') | src/compiler/ppc/instruction-codes-ppc.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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1100 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1101 break; 1101 break;
1102 case kPPC_Int64ToFloat32: 1102 case kPPC_Int64ToFloat32:
1103 __ ConvertInt64ToFloat(i.InputRegister(0), i.OutputDoubleRegister()); 1103 __ ConvertInt64ToFloat(i.InputRegister(0), i.OutputDoubleRegister());
1104 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1104 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1105 break; 1105 break;
1106 case kPPC_Int64ToDouble: 1106 case kPPC_Int64ToDouble:
1107 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1107 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1108 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1108 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1109 break; 1109 break;
1110 case kPPC_Uint64ToFloat32:
1111 __ ConvertUnsignedInt64ToFloat(i.InputRegister(0),
1112 i.OutputDoubleRegister());
1113 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1114 break;
1110 case kPPC_Uint64ToDouble: 1115 case kPPC_Uint64ToDouble:
1111 __ ConvertUnsignedInt64ToDouble(i.InputRegister(0), 1116 __ ConvertUnsignedInt64ToDouble(i.InputRegister(0),
1112 i.OutputDoubleRegister()); 1117 i.OutputDoubleRegister());
1113 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1118 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1114 break; 1119 break;
1115 #endif 1120 #endif
1116 case kPPC_Int32ToDouble: 1121 case kPPC_Int32ToDouble:
1117 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1122 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1118 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1123 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1119 break; 1124 break;
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 padding_size -= v8::internal::Assembler::kInstrSize; 1734 padding_size -= v8::internal::Assembler::kInstrSize;
1730 } 1735 }
1731 } 1736 }
1732 } 1737 }
1733 1738
1734 #undef __ 1739 #undef __
1735 1740
1736 } // namespace compiler 1741 } // namespace compiler
1737 } // namespace internal 1742 } // namespace internal
1738 } // namespace v8 1743 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/ppc/instruction-codes-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698