llvm/llvm/test/MC/Disassembler/X86/apx/tzcnt.txt

# 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}	tzcntw	%dx, %ax
# INTEL: {evex}	tzcnt	ax, dx
0x62,0xf4,0x7d,0x08,0xf4,0xc2

# ATT:   {nf}	tzcntw	%dx, %ax
# INTEL: {nf}	tzcnt	ax, dx
0x62,0xf4,0x7d,0x0c,0xf4,0xc2

# ATT:   {evex}	tzcntl	%ecx, %edx
# INTEL: {evex}	tzcnt	edx, ecx
0x62,0xf4,0x7c,0x08,0xf4,0xd1

# ATT:   {nf}	tzcntl	%ecx, %edx
# INTEL: {nf}	tzcnt	edx, ecx
0x62,0xf4,0x7c,0x0c,0xf4,0xd1

# ATT:   {evex}	tzcntq	%r9, %r15
# INTEL: {evex}	tzcnt	r15, r9
0x62,0x54,0xfc,0x08,0xf4,0xf9

# ATT:   {nf}	tzcntq	%r9, %r15
# INTEL: {nf}	tzcnt	r15, r9
0x62,0x54,0xfc,0x0c,0xf4,0xf9

# ATT:   {evex}	tzcntw	123(%r8,%rax,4), %dx
# INTEL: {evex}	tzcnt	dx, word ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7d,0x08,0xf4,0x54,0x80,0x7b

# ATT:   {nf}	tzcntw	123(%r8,%rax,4), %dx
# INTEL: {nf}	tzcnt	dx, word ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7d,0x0c,0xf4,0x54,0x80,0x7b

# ATT:   {evex}	tzcntl	123(%r8,%rax,4), %ecx
# INTEL: {evex}	tzcnt	ecx, dword ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7c,0x08,0xf4,0x4c,0x80,0x7b

# ATT:   {nf}	tzcntl	123(%r8,%rax,4), %ecx
# INTEL: {nf}	tzcnt	ecx, dword ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7c,0x0c,0xf4,0x4c,0x80,0x7b

# ATT:   {evex}	tzcntq	123(%r8,%rax,4), %r9
# INTEL: {evex}	tzcnt	r9, qword ptr [r8 + 4*rax + 123]
0x62,0x54,0xfc,0x08,0xf4,0x4c,0x80,0x7b

# ATT:   {nf}	tzcntq	123(%r8,%rax,4), %r9
# INTEL: {nf}	tzcnt	r9, qword ptr [r8 + 4*rax + 123]
0x62,0x54,0xfc,0x0c,0xf4,0x4c,0x80,0x7b