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

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

Issue 1358193002: PPC: Fix "[turbofan] Add support for reinterpreting integers as floating point and vice versa." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 case kPPC_DoubleConstruct: 1069 case kPPC_DoubleConstruct:
1070 #if V8_TARGET_ARCH_PPC64 1070 #if V8_TARGET_ARCH_PPC64
1071 __ MovInt64ComponentsToDouble(i.OutputDoubleRegister(), 1071 __ MovInt64ComponentsToDouble(i.OutputDoubleRegister(),
1072 i.InputRegister(0), i.InputRegister(1), r0); 1072 i.InputRegister(0), i.InputRegister(1), r0);
1073 #else 1073 #else
1074 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0), 1074 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0),
1075 i.InputRegister(1)); 1075 i.InputRegister(1));
1076 #endif 1076 #endif
1077 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 1077 DCHECK_EQ(LeaveRC, i.OutputRCBit());
1078 break; 1078 break;
1079 case kPPC_BitcastFloat32ToInt32:
1080 __ MovFloatToInt(i.OutputRegister(), i.InputDoubleRegister(0));
1081 break;
1082 case kPPC_BitcastInt32ToFloat32:
1083 __ MovIntToFloat(i.OutputDoubleRegister(), i.InputRegister(0));
1084 break;
1079 #if V8_TARGET_ARCH_PPC64 1085 #if V8_TARGET_ARCH_PPC64
1080 case kPPC_BitcastDL: 1086 case kPPC_BitcastDoubleToInt64:
1081 __ mffprd(i.OutputRegister(), i.InputDoubleRegister(0)); 1087 __ MovDoubleToInt64(i.OutputRegister(), i.InputDoubleRegister(0));
1082 break; 1088 break;
1083 case kPPC_BitcastLD: 1089 case kPPC_BitcastInt64ToDouble:
1084 __ mtfprd(i.OutputDoubleRegister(), i.InputRegister(0)); 1090 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0));
1085 break; 1091 break;
1086 #endif 1092 #endif
1087 case kPPC_LoadWordU8: 1093 case kPPC_LoadWordU8:
1088 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); 1094 ASSEMBLE_LOAD_INTEGER(lbz, lbzx);
1089 break; 1095 break;
1090 case kPPC_LoadWordS8: 1096 case kPPC_LoadWordS8:
1091 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); 1097 ASSEMBLE_LOAD_INTEGER(lbz, lbzx);
1092 __ extsb(i.OutputRegister(), i.OutputRegister()); 1098 __ extsb(i.OutputRegister(), i.OutputRegister());
1093 break; 1099 break;
1094 case kPPC_LoadWordU16: 1100 case kPPC_LoadWordU16:
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 padding_size -= v8::internal::Assembler::kInstrSize; 1640 padding_size -= v8::internal::Assembler::kInstrSize;
1635 } 1641 }
1636 } 1642 }
1637 } 1643 }
1638 1644
1639 #undef __ 1645 #undef __
1640 1646
1641 } // namespace compiler 1647 } // namespace compiler
1642 } // namespace internal 1648 } // namespace internal
1643 } // namespace v8 1649 } // 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