# RUN: llvm-mc -triple x86_64 -disassemble %s | FileCheck %s --check-prefix=ATT
# RUN: llvm-mc -triple x86_64 -disassemble -output-asm-variant=1 %s | FileCheck %s --check-prefix=INTEL
# ATT: {evex} lzcntw %dx, %ax
# INTEL: {evex} lzcnt ax, dx
0x62,0xf4,0x7d,0x08,0xf5,0xc2
# ATT: {nf} lzcntw %dx, %ax
# INTEL: {nf} lzcnt ax, dx
0x62,0xf4,0x7d,0x0c,0xf5,0xc2
# ATT: {evex} lzcntl %ecx, %edx
# INTEL: {evex} lzcnt edx, ecx
0x62,0xf4,0x7c,0x08,0xf5,0xd1
# ATT: {nf} lzcntl %ecx, %edx
# INTEL: {nf} lzcnt edx, ecx
0x62,0xf4,0x7c,0x0c,0xf5,0xd1
# ATT: {evex} lzcntq %r9, %r15
# INTEL: {evex} lzcnt r15, r9
0x62,0x54,0xfc,0x08,0xf5,0xf9
# ATT: {nf} lzcntq %r9, %r15
# INTEL: {nf} lzcnt r15, r9
0x62,0x54,0xfc,0x0c,0xf5,0xf9
# ATT: {evex} lzcntw 123(%r8,%rax,4), %dx
# INTEL: {evex} lzcnt dx, word ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7d,0x08,0xf5,0x54,0x80,0x7b
# ATT: {nf} lzcntw 123(%r8,%rax,4), %dx
# INTEL: {nf} lzcnt dx, word ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7d,0x0c,0xf5,0x54,0x80,0x7b
# ATT: {evex} lzcntl 123(%r8,%rax,4), %ecx
# INTEL: {evex} lzcnt ecx, dword ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7c,0x08,0xf5,0x4c,0x80,0x7b
# ATT: {nf} lzcntl 123(%r8,%rax,4), %ecx
# INTEL: {nf} lzcnt ecx, dword ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7c,0x0c,0xf5,0x4c,0x80,0x7b
# ATT: {evex} lzcntq 123(%r8,%rax,4), %r9
# INTEL: {evex} lzcnt r9, qword ptr [r8 + 4*rax + 123]
0x62,0x54,0xfc,0x08,0xf5,0x4c,0x80,0x7b
# ATT: {nf} lzcntq 123(%r8,%rax,4), %r9
# INTEL: {nf} lzcnt r9, qword ptr [r8 + 4*rax + 123]
0x62,0x54,0xfc,0x0c,0xf5,0x4c,0x80,0x7b