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 0027d49bec5a6f443568e4392ac761ca4c1bd6d3..b3285dea9462547686514dcee76fb0eb57ff636f 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -694,6 +694,13 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kX64Ror: |
ASSEMBLE_SHIFT(rorq, 6); |
break; |
+ case kX64Lzcnt32: |
+ if (instr->InputAt(0)->IsRegister()) { |
+ __ Lzcntl(i.OutputRegister(), i.InputRegister(0)); |
+ } else { |
+ __ Lzcntl(i.OutputRegister(), i.InputOperand(0)); |
+ } |
+ break; |
case kSSEFloat64Cmp: |
ASSEMBLE_DOUBLE_BINOP(ucomisd); |
break; |