xref: /llvm-project/llvm/test/MC/X86/apx/neg-intel.s (revision d79ccee8dc4aea52c146b10603f2a38646ad22fe)
1# RUN: llvm-mc -triple x86_64 -show-encoding -x86-asm-syntax=intel -output-asm-variant=1 %s | FileCheck %s
2
3# CHECK: {evex}	neg	bl
4# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf6,0xdb]
5         {evex}	neg	bl
6# CHECK: {nf}	neg	bl
7# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf6,0xdb]
8         {nf}	neg	bl
9# CHECK: neg	bl, bl
10# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xf6,0xdb]
11         neg	bl, bl
12# CHECK: {nf}	neg	bl, bl
13# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xf6,0xdb]
14         {nf}	neg	bl, bl
15# CHECK: {evex}	neg	dx
16# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf7,0xda]
17         {evex}	neg	dx
18# CHECK: {nf}	neg	dx
19# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xf7,0xda]
20         {nf}	neg	dx
21# CHECK: neg	dx, dx
22# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xf7,0xda]
23         neg	dx, dx
24# CHECK: {nf}	neg	dx, dx
25# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xf7,0xda]
26         {nf}	neg	dx, dx
27# CHECK: {evex}	neg	ecx
28# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf7,0xd9]
29         {evex}	neg	ecx
30# CHECK: {nf}	neg	ecx
31# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf7,0xd9]
32         {nf}	neg	ecx
33# CHECK: neg	ecx, ecx
34# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xf7,0xd9]
35         neg	ecx, ecx
36# CHECK: {nf}	neg	ecx, ecx
37# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xf7,0xd9]
38         {nf}	neg	ecx, ecx
39# CHECK: {evex}	neg	r9
40# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0xd9]
41         {evex}	neg	r9
42# CHECK: {nf}	neg	r9
43# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xf7,0xd9]
44         {nf}	neg	r9
45# CHECK: neg	r9, r9
46# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xf7,0xd9]
47         neg	r9, r9
48# CHECK: {nf}	neg	r9, r9
49# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xf7,0xd9]
50         {nf}	neg	r9, r9
51# CHECK: {evex}	neg	byte ptr [r8 + 4*rax + 291]
52# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00]
53         {evex}	neg	byte ptr [r8 + 4*rax + 291]
54# CHECK: {nf}	neg	byte ptr [r8 + 4*rax + 291]
55# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00]
56         {nf}	neg	byte ptr [r8 + 4*rax + 291]
57# CHECK: neg	bl, byte ptr [r8 + 4*rax + 291]
58# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00]
59         neg	bl, byte ptr [r8 + 4*rax + 291]
60# CHECK: {nf}	neg	bl, byte ptr [r8 + 4*rax + 291]
61# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xf6,0x9c,0x80,0x23,0x01,0x00,0x00]
62         {nf}	neg	bl, byte ptr [r8 + 4*rax + 291]
63# CHECK: {evex}	neg	word ptr [r8 + 4*rax + 291]
64# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
65         {evex}	neg	word ptr [r8 + 4*rax + 291]
66# CHECK: {nf}	neg	word ptr [r8 + 4*rax + 291]
67# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
68         {nf}	neg	word ptr [r8 + 4*rax + 291]
69# CHECK: neg	dx, word ptr [r8 + 4*rax + 291]
70# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
71         neg	dx, word ptr [r8 + 4*rax + 291]
72# CHECK: {nf}	neg	dx, word ptr [r8 + 4*rax + 291]
73# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
74         {nf}	neg	dx, word ptr [r8 + 4*rax + 291]
75# CHECK: {evex}	neg	dword ptr [r8 + 4*rax + 291]
76# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
77         {evex}	neg	dword ptr [r8 + 4*rax + 291]
78# CHECK: {nf}	neg	dword ptr [r8 + 4*rax + 291]
79# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
80         {nf}	neg	dword ptr [r8 + 4*rax + 291]
81# CHECK: neg	ecx, dword ptr [r8 + 4*rax + 291]
82# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
83         neg	ecx, dword ptr [r8 + 4*rax + 291]
84# CHECK: {nf}	neg	ecx, dword ptr [r8 + 4*rax + 291]
85# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
86         {nf}	neg	ecx, dword ptr [r8 + 4*rax + 291]
87# CHECK: {evex}	neg	qword ptr [r8 + 4*rax + 291]
88# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
89         {evex}	neg	qword ptr [r8 + 4*rax + 291]
90# CHECK: {nf}	neg	qword ptr [r8 + 4*rax + 291]
91# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
92         {nf}	neg	qword ptr [r8 + 4*rax + 291]
93# CHECK: neg	r9, qword ptr [r8 + 4*rax + 291]
94# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
95         neg	r9, qword ptr [r8 + 4*rax + 291]
96# CHECK: {nf}	neg	r9, qword ptr [r8 + 4*rax + 291]
97# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xf7,0x9c,0x80,0x23,0x01,0x00,0x00]
98         {nf}	neg	r9, qword ptr [r8 + 4*rax + 291]
99