Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 68aba0d371c523cdb0ee68b4a9999efecbceccde..288ce3e723bc157625c2cd30df3982295c64930a 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -941,10 +941,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
ASSEMBLE_SSE_UNOP(Cvtss2sd); |
break; |
case kSSEFloat32Round: { |
- CpuFeatureScope sse_scope(masm(), SSE4_1); |
RoundingMode const mode = |
static_cast<RoundingMode>(MiscField::decode(instr->opcode())); |
- __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
+ __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
+ kScratchRegister, kScratchDoubleReg, mode); |
break; |
} |
case kSSEFloat32ToInt32: |
@@ -1028,10 +1028,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
ASSEMBLE_SSE_UNOP(sqrtsd); |
break; |
case kSSEFloat64Round: { |
- CpuFeatureScope sse_scope(masm(), SSE4_1); |
RoundingMode const mode = |
static_cast<RoundingMode>(MiscField::decode(instr->opcode())); |
- __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
+ __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
+ kScratchRegister, kScratchDoubleReg, mode); |
break; |
} |
case kSSEFloat64ToFloat32: |