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 9d946b8094291b1e2143f241d2fa9531189e309d..0027d49bec5a6f443568e4392ac761ca4c1bd6d3 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -741,6 +741,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ addq(rsp, Immediate(kDoubleSize)); |
break; |
} |
+ case kSSEFloat64Max: |
+ ASSEMBLE_DOUBLE_BINOP(maxsd); |
+ break; |
+ case kSSEFloat64Min: |
+ ASSEMBLE_DOUBLE_BINOP(minsd); |
+ break; |
case kSSEFloat64Sqrt: |
if (instr->InputAt(0)->IsDoubleRegister()) { |
__ sqrtsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
@@ -847,6 +853,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kAVXFloat64Div: |
ASSEMBLE_AVX_DOUBLE_BINOP(vdivsd); |
break; |
+ case kAVXFloat64Max: |
+ ASSEMBLE_AVX_DOUBLE_BINOP(vmaxsd); |
+ break; |
+ case kAVXFloat64Min: |
+ ASSEMBLE_AVX_DOUBLE_BINOP(vminsd); |
+ break; |
case kX64Movsxbl: |
ASSEMBLE_MOVX(movsxbl); |
__ AssertZeroExtended(i.OutputRegister()); |