xref: /llvm-project/llvm/test/MC/X86/apx/not-att.s (revision d79ccee8dc4aea52c146b10603f2a38646ad22fe)
1# RUN: llvm-mc -triple x86_64 -show-encoding %s | FileCheck %s
2# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR
3
4# ERROR-COUNT-16: error:
5# ERROR-NOT: error:
6# CHECK: {evex}	notb	%bl
7# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf6,0xd3]
8         {evex}	notb	%bl
9# CHECK: notb	%bl, %bl
10# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xf6,0xd3]
11         notb	%bl, %bl
12# CHECK: {evex}	notw	%dx
13# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf7,0xd2]
14         {evex}	notw	%dx
15# CHECK: notw	%dx, %dx
16# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xf7,0xd2]
17         notw	%dx, %dx
18# CHECK: {evex}	notl	%ecx
19# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf7,0xd1]
20         {evex}	notl	%ecx
21# CHECK: notl	%ecx, %ecx
22# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xf7,0xd1]
23         notl	%ecx, %ecx
24# CHECK: {evex}	notq	%r9
25# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0xd1]
26         {evex}	notq	%r9
27# CHECK: notq	%r9, %r9
28# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xf7,0xd1]
29         notq	%r9, %r9
30# CHECK: {evex}	notb	291(%r8,%rax,4)
31# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf6,0x94,0x80,0x23,0x01,0x00,0x00]
32         {evex}	notb	291(%r8,%rax,4)
33# CHECK: notb	291(%r8,%rax,4), %bl
34# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xf6,0x94,0x80,0x23,0x01,0x00,0x00]
35         notb	291(%r8,%rax,4), %bl
36# CHECK: {evex}	notw	291(%r8,%rax,4)
37# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xf7,0x94,0x80,0x23,0x01,0x00,0x00]
38         {evex}	notw	291(%r8,%rax,4)
39# CHECK: notw	291(%r8,%rax,4), %dx
40# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xf7,0x94,0x80,0x23,0x01,0x00,0x00]
41         notw	291(%r8,%rax,4), %dx
42# CHECK: {evex}	notl	291(%r8,%rax,4)
43# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf7,0x94,0x80,0x23,0x01,0x00,0x00]
44         {evex}	notl	291(%r8,%rax,4)
45# CHECK: notl	291(%r8,%rax,4), %ecx
46# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xf7,0x94,0x80,0x23,0x01,0x00,0x00]
47         notl	291(%r8,%rax,4), %ecx
48# CHECK: {evex}	notq	291(%r8,%rax,4)
49# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0x94,0x80,0x23,0x01,0x00,0x00]
50         {evex}	notq	291(%r8,%rax,4)
51# CHECK: notq	291(%r8,%rax,4), %r9
52# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xf7,0x94,0x80,0x23,0x01,0x00,0x00]
53         notq	291(%r8,%rax,4), %r9
54