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 d7098ae8dc7d3d5aa686622044747f018ed35bfe..00444838af17c41394ae94452c1198dde3fd09f7 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -353,6 +353,24 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kSSEFloat64Sqrt: |
__ sqrtsd(i.OutputDoubleRegister(), i.InputOperand(0)); |
break; |
+ case kSSEFloat64Floor: { |
+ CpuFeatureScope sse_scope(masm(), SSE4_1); |
+ __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
+ v8::internal::Assembler::kRoundDown); |
+ break; |
+ } |
+ case kSSEFloat64Ceil: { |
+ CpuFeatureScope sse_scope(masm(), SSE4_1); |
+ __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
+ v8::internal::Assembler::kRoundUp); |
+ break; |
+ } |
+ case kSSEFloat64RoundTruncate: { |
+ CpuFeatureScope sse_scope(masm(), SSE4_1); |
+ __ roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
+ v8::internal::Assembler::kRoundToZero); |
+ break; |
+ } |
case kSSECvtss2sd: |
__ cvtss2sd(i.OutputDoubleRegister(), i.InputOperand(0)); |
break; |