diff options
Diffstat (limited to 'deps/v8/src/compiler/ppc/code-generator-ppc.cc')
-rw-r--r-- | deps/v8/src/compiler/ppc/code-generator-ppc.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/deps/v8/src/compiler/ppc/code-generator-ppc.cc b/deps/v8/src/compiler/ppc/code-generator-ppc.cc index 2967ad73ed..be10a67f24 100644 --- a/deps/v8/src/compiler/ppc/code-generator-ppc.cc +++ b/deps/v8/src/compiler/ppc/code-generator-ppc.cc @@ -592,11 +592,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) @@ -704,11 +705,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()); \ |