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