| 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 e62e725c4dfdc5a31445c8cd065dc911d455ca76..e3fddd0dbc5a1da0ab5da8597625ee4a53d348b6 100644
|
| --- a/src/compiler/ppc/code-generator-ppc.cc
|
| +++ b/src/compiler/ppc/code-generator-ppc.cc
|
| @@ -587,11 +587,12 @@ Condition FlagsConditionToCondition(FlagsCondition condition, ArchOpcode op) {
|
| AddressingMode mode = kMode_None; \
|
| MemOperand operand = i.MemoryOperand(&mode, &index); \
|
| DoubleRegister value = i.InputDoubleRegister(index); \
|
| - __ frsp(kScratchDoubleReg, value); \
|
| + /* removed frsp as instruction-selector checked */ \
|
| + /* value to be kFloat32 */ \
|
| if (mode == kMode_MRI) { \
|
| - __ stfs(kScratchDoubleReg, operand); \
|
| + __ stfs(value, operand); \
|
| } else { \
|
| - __ stfsx(kScratchDoubleReg, operand); \
|
| + __ stfsx(value, operand); \
|
| } \
|
| DCHECK_EQ(LeaveRC, i.OutputRCBit()); \
|
| } while (0)
|
| @@ -699,11 +700,13 @@ Condition FlagsConditionToCondition(FlagsCondition condition, ArchOpcode op) {
|
| __ bge(&done); \
|
| DoubleRegister value = i.InputDoubleRegister(3); \
|
| __ frsp(kScratchDoubleReg, value); \
|
| + /* removed frsp as instruction-selector checked */ \
|
| + /* value to be kFloat32 */ \
|
| if (mode == kMode_MRI) { \
|
| - __ stfs(kScratchDoubleReg, operand); \
|
| + __ stfs(value, operand); \
|
| } else { \
|
| CleanUInt32(offset); \
|
| - __ stfsx(kScratchDoubleReg, operand); \
|
| + __ stfsx(value, operand); \
|
| } \
|
| __ bind(&done); \
|
| DCHECK_EQ(LeaveRC, i.OutputRCBit()); \
|
|
|