| Index: src/compiler/ppc/instruction-selector-ppc.cc
|
| diff --git a/src/compiler/ppc/instruction-selector-ppc.cc b/src/compiler/ppc/instruction-selector-ppc.cc
|
| index d8543a377dacadaadc60fdd444401f4b5a90bcfc..5df5b781889efec325c6667aa27a44545da69546 100644
|
| --- a/src/compiler/ppc/instruction-selector-ppc.cc
|
| +++ b/src/compiler/ppc/instruction-selector-ppc.cc
|
| @@ -910,6 +910,33 @@ void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) {
|
| #endif
|
|
|
|
|
| +void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
|
| + VisitRR(this, kPPC_DoubleExtractLowWord32, node);
|
| +}
|
| +
|
| +
|
| +#if V8_TARGET_ARCH_PPC64
|
| +void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) {
|
| + VisitRR(this, kPPC_BitcastDL, node);
|
| +}
|
| +#endif
|
| +
|
| +
|
| +void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) {
|
| + PPCOperandGenerator g(this);
|
| + Emit(kPPC_DoubleInsertLowWord32, g.DefineAsRegister(node),
|
| + ImmediateOperand(ImmediateOperand::INLINE, 0),
|
| + g.UseRegister(node->InputAt(0)));
|
| +}
|
| +
|
| +
|
| +#if V8_TARGET_ARCH_PPC64
|
| +void InstructionSelector::VisitBitcastInt64ToFloat64(Node* node) {
|
| + VisitRR(this, kPPC_BitcastLD, node);
|
| +}
|
| +#endif
|
| +
|
| +
|
| void InstructionSelector::VisitFloat32Add(Node* node) {
|
| VisitRRR(this, kPPC_AddDouble, node);
|
| }
|
|
|