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 1362a3a0cf3f00213e33df6a81cfb81ed3bf5c96..68aba0d371c523cdb0ee68b4a9999efecbceccde 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -941,10 +941,10 @@ |
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), |
- kScratchRegister, mode); |
+ __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
break; |
} |
case kSSEFloat32ToInt32: |
@@ -1028,10 +1028,10 @@ |
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), |
- kScratchRegister, mode); |
+ __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
break; |
} |
case kSSEFloat64ToFloat32: |