# 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} popcntw %dx, %ax
# INTEL: {evex} popcnt ax, dx
0x62,0xf4,0x7d,0x08,0x88,0xc2
# ATT: {nf} popcntw %dx, %ax
# INTEL: {nf} popcnt ax, dx
0x62,0xf4,0x7d,0x0c,0x88,0xc2
# ATT: {evex} popcntl %ecx, %edx
# INTEL: {evex} popcnt edx, ecx
0x62,0xf4,0x7c,0x08,0x88,0xd1
# ATT: {nf} popcntl %ecx, %edx
# INTEL: {nf} popcnt edx, ecx
0x62,0xf4,0x7c,0x0c,0x88,0xd1
# ATT: {evex} popcntq %r9, %r15
# INTEL: {evex} popcnt r15, r9
0x62,0x54,0xfc,0x08,0x88,0xf9
# ATT: {nf} popcntq %r9, %r15
# INTEL: {nf} popcnt r15, r9
0x62,0x54,0xfc,0x0c,0x88,0xf9
# ATT: {evex} popcntw 123(%r8,%rax,4), %dx
# INTEL: {evex} popcnt dx, word ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7d,0x08,0x88,0x54,0x80,0x7b
# ATT: {nf} popcntw 123(%r8,%rax,4), %dx
# INTEL: {nf} popcnt dx, word ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7d,0x0c,0x88,0x54,0x80,0x7b
# ATT: {evex} popcntl 123(%r8,%rax,4), %ecx
# INTEL: {evex} popcnt ecx, dword ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7c,0x08,0x88,0x4c,0x80,0x7b
# ATT: {nf} popcntl 123(%r8,%rax,4), %ecx
# INTEL: {nf} popcnt ecx, dword ptr [r8 + 4*rax + 123]
0x62,0xd4,0x7c,0x0c,0x88,0x4c,0x80,0x7b
# ATT: {evex} popcntq 123(%r8,%rax,4), %r9
# INTEL: {evex} popcnt r9, qword ptr [r8 + 4*rax + 123]
0x62,0x54,0xfc,0x08,0x88,0x4c,0x80,0x7b
# ATT: {nf} popcntq 123(%r8,%rax,4), %r9
# INTEL: {nf} popcnt r9, qword ptr [r8 + 4*rax + 123]
0x62,0x54,0xfc,0x0c,0x88,0x4c,0x80,0x7b