Index: src/compiler/ppc/code-generator-ppc.cc |
diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc |
index 47d4f2b7dc6769e33ac5bbd018aabeb558f1014c..4fc6bc017672128507089b57421869407cd42dbf 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -1076,12 +1076,18 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
#endif |
DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
break; |
+ case kPPC_BitcastFloat32ToInt32: |
+ __ MovFloatToInt(i.OutputRegister(), i.InputDoubleRegister(0)); |
+ break; |
+ case kPPC_BitcastInt32ToFloat32: |
+ __ MovIntToFloat(i.OutputDoubleRegister(), i.InputRegister(0)); |
+ break; |
#if V8_TARGET_ARCH_PPC64 |
- case kPPC_BitcastDL: |
- __ mffprd(i.OutputRegister(), i.InputDoubleRegister(0)); |
+ case kPPC_BitcastDoubleToInt64: |
+ __ MovDoubleToInt64(i.OutputRegister(), i.InputDoubleRegister(0)); |
break; |
- case kPPC_BitcastLD: |
- __ mtfprd(i.OutputDoubleRegister(), i.InputRegister(0)); |
+ case kPPC_BitcastInt64ToDouble: |
+ __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0)); |
break; |
#endif |
case kPPC_LoadWordU8: |