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

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

Issue 1356913002: [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: Rename ReinterpretAs to BitcastTo 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 | « 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 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 #if V8_TARGET_ARCH_PPC64
1080 case kPPC_BitcastDL:
1081 __ mffprd(i.OutputRegister(), i.InputDoubleRegister(0));
1082 break;
1083 case kPPC_BitcastLD:
1084 __ mtfprd(i.OutputDoubleRegister(), i.InputRegister(0));
1085 break;
1086 #endif
1079 case kPPC_LoadWordU8: 1087 case kPPC_LoadWordU8:
1080 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); 1088 ASSEMBLE_LOAD_INTEGER(lbz, lbzx);
1081 break; 1089 break;
1082 case kPPC_LoadWordS8: 1090 case kPPC_LoadWordS8:
1083 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); 1091 ASSEMBLE_LOAD_INTEGER(lbz, lbzx);
1084 __ extsb(i.OutputRegister(), i.OutputRegister()); 1092 __ extsb(i.OutputRegister(), i.OutputRegister());
1085 break; 1093 break;
1086 case kPPC_LoadWordU16: 1094 case kPPC_LoadWordU16:
1087 ASSEMBLE_LOAD_INTEGER(lhz, lhzx); 1095 ASSEMBLE_LOAD_INTEGER(lhz, lhzx);
1088 break; 1096 break;
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 padding_size -= v8::internal::Assembler::kInstrSize; 1634 padding_size -= v8::internal::Assembler::kInstrSize;
1627 } 1635 }
1628 } 1636 }
1629 } 1637 }
1630 1638
1631 #undef __ 1639 #undef __
1632 1640
1633 } // namespace compiler 1641 } // namespace compiler
1634 } // namespace internal 1642 } // namespace internal
1635 } // namespace v8 1643 } // 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