diff --git a/src/diagnostics/x64/disasm-x64.cc b/src/diagnostics/x64/disasm-x64.cc index 7347ab712d..9b978be8c0 100644 --- a/src/diagnostics/x64/disasm-x64.cc +++ b/src/diagnostics/x64/disasm-x64.cc @@ -1684,6 +1684,7 @@ int DisassemblerX64::TwoByteOpcodeInstruction(byte* data) { SSSE3_INSTRUCTION_LIST(SSE34_DIS_CASE) SSE4_INSTRUCTION_LIST(SSE34_DIS_CASE) + SSE4_2_INSTRUCTION_LIST(SSE34_DIS_CASE) #undef SSE34_DIS_CASE default: UnimplementedInstruction(); diff --git a/test/cctest/test-disasm-x64.cc b/test/cctest/test-disasm-x64.cc index 15c043a784..a571bf9c6a 100644 --- a/test/cctest/test-disasm-x64.cc +++ b/test/cctest/test-disasm-x64.cc @@ -606,6 +606,14 @@ TEST(DisasmX64) { SSE4_INSTRUCTION_LIST(EMIT_SSE34_INSTR) } } + + { + if (CpuFeatures::IsSupported(SSE4_2)) { + CpuFeatureScope scope(&assm, SSE4_2); + + SSE4_2_INSTRUCTION_LIST(EMIT_SSE34_INSTR) + } + } #undef EMIT_SSE34_INSTR // AVX instruction