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

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

Issue 1409073016: PPC64: Implemented the RoundInt64ToFloat32 TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix build break in simulator. 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 | « no previous file | 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 case kPPC_Uint32ToUint64: 1074 case kPPC_Uint32ToUint64:
1075 // Zero extend 1075 // Zero extend
1076 __ clrldi(i.OutputRegister(), i.InputRegister(0), Operand(32)); 1076 __ clrldi(i.OutputRegister(), i.InputRegister(0), Operand(32));
1077 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1077 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1078 break; 1078 break;
1079 case kPPC_Int64ToInt32: 1079 case kPPC_Int64ToInt32:
1080 // TODO(mbrandy): sign extend? 1080 // TODO(mbrandy): sign extend?
1081 __ Move(i.OutputRegister(), i.InputRegister(0)); 1081 __ Move(i.OutputRegister(), i.InputRegister(0));
1082 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1082 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1083 break; 1083 break;
1084 case kPPC_Int64ToFloat32:
1085 __ ConvertInt64ToFloat(i.InputRegister(0), i.OutputDoubleRegister());
1086 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1087 break;
1084 case kPPC_Int64ToDouble: 1088 case kPPC_Int64ToDouble:
1085 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1089 __ ConvertInt64ToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1086 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1090 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1087 break; 1091 break;
1088 #endif 1092 #endif
1089 case kPPC_Int32ToDouble: 1093 case kPPC_Int32ToDouble:
1090 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister()); 1094 __ ConvertIntToDouble(i.InputRegister(0), i.OutputDoubleRegister());
1091 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1095 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1092 break; 1096 break;
1093 case kPPC_Uint32ToDouble: 1097 case kPPC_Uint32ToDouble:
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 padding_size -= v8::internal::Assembler::kInstrSize; 1703 padding_size -= v8::internal::Assembler::kInstrSize;
1700 } 1704 }
1701 } 1705 }
1702 } 1706 }
1703 1707
1704 #undef __ 1708 #undef __
1705 1709
1706 } // namespace compiler 1710 } // namespace compiler
1707 } // namespace internal 1711 } // namespace internal
1708 } // namespace v8 1712 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ppc/instruction-codes-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698