xref: /llvm-project/llvm/test/MC/X86/apx/popcnt-intel.s (revision d9e875dcc13359f2a399b04e7c54bf70c0306a89)
1# RUN: llvm-mc -triple x86_64 -show-encoding -x86-asm-syntax=intel -output-asm-variant=1 %s | FileCheck %s
2
3# CHECK: {evex}	popcnt	ax, dx
4# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0x88,0xc2]
5         {evex}	popcnt	ax, dx
6# CHECK: {nf}	popcnt	ax, dx
7# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0x88,0xc2]
8         {nf}	popcnt	ax, dx
9# CHECK: {evex}	popcnt	edx, ecx
10# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0x88,0xd1]
11         {evex}	popcnt	edx, ecx
12# CHECK: {nf}	popcnt	edx, ecx
13# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0x88,0xd1]
14         {nf}	popcnt	edx, ecx
15# CHECK: {evex}	popcnt	r15, r9
16# CHECK: encoding: [0x62,0x54,0xfc,0x08,0x88,0xf9]
17         {evex}	popcnt	r15, r9
18# CHECK: {nf}	popcnt	r15, r9
19# CHECK: encoding: [0x62,0x54,0xfc,0x0c,0x88,0xf9]
20         {nf}	popcnt	r15, r9
21# CHECK: {evex}	popcnt	dx, word ptr [r8 + 4*rax + 123]
22# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0x88,0x54,0x80,0x7b]
23         {evex}	popcnt	dx, word ptr [r8 + 4*rax + 123]
24# CHECK: {nf}	popcnt	dx, word ptr [r8 + 4*rax + 123]
25# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0x88,0x54,0x80,0x7b]
26         {nf}	popcnt	dx, word ptr [r8 + 4*rax + 123]
27# CHECK: {evex}	popcnt	ecx, dword ptr [r8 + 4*rax + 123]
28# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0x88,0x4c,0x80,0x7b]
29         {evex}	popcnt	ecx, dword ptr [r8 + 4*rax + 123]
30# CHECK: {nf}	popcnt	ecx, dword ptr [r8 + 4*rax + 123]
31# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0x88,0x4c,0x80,0x7b]
32         {nf}	popcnt	ecx, dword ptr [r8 + 4*rax + 123]
33# CHECK: {evex}	popcnt	r9, qword ptr [r8 + 4*rax + 123]
34# CHECK: encoding: [0x62,0x54,0xfc,0x08,0x88,0x4c,0x80,0x7b]
35         {evex}	popcnt	r9, qword ptr [r8 + 4*rax + 123]
36# CHECK: {nf}	popcnt	r9, qword ptr [r8 + 4*rax + 123]
37# CHECK: encoding: [0x62,0x54,0xfc,0x0c,0x88,0x4c,0x80,0x7b]
38         {nf}	popcnt	r9, qword ptr [r8 + 4*rax + 123]
39