Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index 4a8defa63914470800fb4d6da146ece07eda6a0d..b52146b4d24a2c08d970a56951df08947d123ff4 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -654,16 +654,10 @@ |
break; |
} |
case kSSEFloat32Round: { |
+ CpuFeatureScope sse_scope(masm(), SSE4_1); |
RoundingMode const mode = |
static_cast<RoundingMode>(MiscField::decode(instr->opcode())); |
- if (CpuFeatures::IsSupported(SSE4_1)) { |
- CpuFeatureScope sse_scope(masm(), SSE4_1); |
__ roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
- } else { |
- Register scratch = i.TempRegister(0); |
- __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), scratch, |
- mode); |
- } |
break; |
} |
case kSSEFloat64Cmp: |
@@ -733,16 +727,10 @@ |
__ sqrtsd(i.OutputDoubleRegister(), i.InputOperand(0)); |
break; |
case kSSEFloat64Round: { |
+ CpuFeatureScope sse_scope(masm(), SSE4_1); |
RoundingMode const mode = |
static_cast<RoundingMode>(MiscField::decode(instr->opcode())); |
- if (CpuFeatures::IsSupported(SSE4_1)) { |
- CpuFeatureScope sse_scope(masm(), SSE4_1); |
- __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
- } else { |
- Register scratch = i.TempRegister(0); |
- __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), scratch, |
- kScratchDoubleReg, mode); |
- } |
+ __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); |
break; |
} |
case kSSEFloat32ToFloat64: |