Debian Codegraph @

llvm/test/MC/X86/apx/dec-att.s

raw
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-32: error:
5 # ERROR-NOT: error:
6 # CHECK: {evex} decb %bl
7 # CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xfe,0xcb]
8 {evex} decb %bl
9 # CHECK: {nf} decb %bl
10 # CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xfe,0xcb]
11 {nf} decb %bl
12 # CHECK: decb %bl, %bl
13 # CHECK: encoding: [0x62,0xf4,0x64,0x18,0xfe,0xcb]
14 decb %bl, %bl
15 # CHECK: {nf} decb %bl, %bl
16 # CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xfe,0xcb]
17 {nf} decb %bl, %bl
18 # CHECK: {evex} decw %dx
19 # CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xff,0xca]
20 {evex} decw %dx
21 # CHECK: {nf} decw %dx
22 # CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xff,0xca]
23 {nf} decw %dx
24 # CHECK: decw %dx, %dx
25 # CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xff,0xca]
26 decw %dx, %dx
27 # CHECK: {nf} decw %dx, %dx
28 # CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xff,0xca]
29 {nf} decw %dx, %dx
30 # CHECK: {evex} decl %ecx
31 # CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xff,0xc9]
32 {evex} decl %ecx
33 # CHECK: {nf} decl %ecx
34 # CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xff,0xc9]
35 {nf} decl %ecx
36 # CHECK: decl %ecx, %ecx
37 # CHECK: encoding: [0x62,0xf4,0x74,0x18,0xff,0xc9]
38 decl %ecx, %ecx
39 # CHECK: {nf} decl %ecx, %ecx
40 # CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xff,0xc9]
41 {nf} decl %ecx, %ecx
42 # CHECK: {evex} decq %r9
43 # CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xff,0xc9]
44 {evex} decq %r9
45 # CHECK: {nf} decq %r9
46 # CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xff,0xc9]
47 {nf} decq %r9
48 # CHECK: decq %r9, %r9
49 # CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xff,0xc9]
50 decq %r9, %r9
51 # CHECK: {nf} decq %r9, %r9
52 # CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xff,0xc9]
53 {nf} decq %r9, %r9
54 # CHECK: {evex} decb 291(%r8,%rax,4)
55 # CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xfe,0x8c,0x80,0x23,0x01,0x00,0x00]
56 {evex} decb 291(%r8,%rax,4)
57 # CHECK: {nf} decb 291(%r8,%rax,4)
58 # CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xfe,0x8c,0x80,0x23,0x01,0x00,0x00]
59 {nf} decb 291(%r8,%rax,4)
60 # CHECK: decb 291(%r8,%rax,4), %bl
61 # CHECK: encoding: [0x62,0xd4,0x64,0x18,0xfe,0x8c,0x80,0x23,0x01,0x00,0x00]
62 decb 291(%r8,%rax,4), %bl
63 # CHECK: {nf} decb 291(%r8,%rax,4), %bl
64 # CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xfe,0x8c,0x80,0x23,0x01,0x00,0x00]
65 {nf} decb 291(%r8,%rax,4), %bl
66 # CHECK: {evex} decw 291(%r8,%rax,4)
67 # CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
68 {evex} decw 291(%r8,%rax,4)
69 # CHECK: {nf} decw 291(%r8,%rax,4)
70 # CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
71 {nf} decw 291(%r8,%rax,4)
72 # CHECK: decw 291(%r8,%rax,4), %dx
73 # CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
74 decw 291(%r8,%rax,4), %dx
75 # CHECK: {nf} decw 291(%r8,%rax,4), %dx
76 # CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
77 {nf} decw 291(%r8,%rax,4), %dx
78 # CHECK: {evex} decl 291(%r8,%rax,4)
79 # CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
80 {evex} decl 291(%r8,%rax,4)
81 # CHECK: {nf} decl 291(%r8,%rax,4)
82 # CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
83 {nf} decl 291(%r8,%rax,4)
84 # CHECK: decl 291(%r8,%rax,4), %ecx
85 # CHECK: encoding: [0x62,0xd4,0x74,0x18,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
86 decl 291(%r8,%rax,4), %ecx
87 # CHECK: {nf} decl 291(%r8,%rax,4), %ecx
88 # CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
89 {nf} decl 291(%r8,%rax,4), %ecx
90 # CHECK: {evex} decq 291(%r8,%rax,4)
91 # CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
92 {evex} decq 291(%r8,%rax,4)
93 # CHECK: {nf} decq 291(%r8,%rax,4)
94 # CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
95 {nf} decq 291(%r8,%rax,4)
96 # CHECK: decq 291(%r8,%rax,4), %r9
97 # CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
98 decq 291(%r8,%rax,4), %r9
99 # CHECK: {nf} decq 291(%r8,%rax,4), %r9
100 # CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xff,0x8c,0x80,0x23,0x01,0x00,0x00]
101 {nf} decq 291(%r8,%rax,4), %r9