| 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 897e96c1d3b99b798904c77af1f5b649b5228a5b..ccafb3cbed2e26f1821697b8360302982054dfbc 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -782,6 +782,13 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
|
| __ Lzcntl(i.OutputRegister(), i.InputOperand(0));
|
| }
|
| break;
|
| + case kX64Tzcnt:
|
| + if (instr->InputAt(0)->IsRegister()) {
|
| + __ Tzcntq(i.OutputRegister(), i.InputRegister(0));
|
| + } else {
|
| + __ Tzcntq(i.OutputRegister(), i.InputOperand(0));
|
| + }
|
| + break;
|
| case kX64Tzcnt32:
|
| if (instr->InputAt(0)->IsRegister()) {
|
| __ Tzcntl(i.OutputRegister(), i.InputRegister(0));
|
|
|