| Index: src/ia32/lithium-ia32.cc
|
| ===================================================================
|
| --- src/ia32/lithium-ia32.cc (revision 6982)
|
| +++ src/ia32/lithium-ia32.cc (working copy)
|
| @@ -870,10 +870,18 @@
|
| ASSERT(instr->representation().IsDouble());
|
| ASSERT(instr->left()->representation().IsDouble());
|
| ASSERT(instr->right()->representation().IsDouble());
|
| - LOperand* left = UseRegisterAtStart(instr->left());
|
| - LOperand* right = UseRegisterAtStart(instr->right());
|
| - LArithmeticD* result = new LArithmeticD(op, left, right);
|
| - return DefineSameAsFirst(result);
|
| + if (op == Token::MOD) {
|
| + LOperand* left = UseFixedDouble(instr->left(), xmm2);
|
| + LOperand* right = UseFixedDouble(instr->right(), xmm1);
|
| + LArithmeticD* result = new LArithmeticD(op, left, right);
|
| + return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
|
| +
|
| + } else {
|
| + LOperand* left = UseRegisterAtStart(instr->left());
|
| + LOperand* right = UseRegisterAtStart(instr->right());
|
| + LArithmeticD* result = new LArithmeticD(op, left, right);
|
| + return DefineSameAsFirst(result);
|
| + }
|
| }
|
|
|
|
|
|
|