# RUN: llvm-mc -triple x86_64 -show-encoding %s | FileCheck %s
# CHECK: {evex} lzcntw %dx, %ax
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf5,0xc2]
{evex} lzcntw %dx, %ax
# CHECK: {nf} lzcntw %dx, %ax
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xf5,0xc2]
{nf} lzcntw %dx, %ax
# CHECK: {evex} lzcntl %ecx, %edx
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf5,0xd1]
{evex} lzcntl %ecx, %edx
# CHECK: {nf} lzcntl %ecx, %edx
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf5,0xd1]
{nf} lzcntl %ecx, %edx
# CHECK: {evex} lzcntq %r9, %r15
# CHECK: encoding: [0x62,0x54,0xfc,0x08,0xf5,0xf9]
{evex} lzcntq %r9, %r15
# CHECK: {nf} lzcntq %r9, %r15
# CHECK: encoding: [0x62,0x54,0xfc,0x0c,0xf5,0xf9]
{nf} lzcntq %r9, %r15
# CHECK: {evex} lzcntw 123(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xf5,0x54,0x80,0x7b]
{evex} lzcntw 123(%r8,%rax,4), %dx
# CHECK: {nf} lzcntw 123(%r8,%rax,4), %dx
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xf5,0x54,0x80,0x7b]
{nf} lzcntw 123(%r8,%rax,4), %dx
# CHECK: {evex} lzcntl 123(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf5,0x4c,0x80,0x7b]
{evex} lzcntl 123(%r8,%rax,4), %ecx
# CHECK: {nf} lzcntl 123(%r8,%rax,4), %ecx
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf5,0x4c,0x80,0x7b]
{nf} lzcntl 123(%r8,%rax,4), %ecx
# CHECK: {evex} lzcntq 123(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0x54,0xfc,0x08,0xf5,0x4c,0x80,0x7b]
{evex} lzcntq 123(%r8,%rax,4), %r9
# CHECK: {nf} lzcntq 123(%r8,%rax,4), %r9
# CHECK: encoding: [0x62,0x54,0xfc,0x0c,0xf5,0x4c,0x80,0x7b]
{nf} lzcntq 123(%r8,%rax,4), %r9