x86_64-tbm-encoding.s
5.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
// bextri 32 reg
// CHECK: bextrl $2814, %edi, %eax
// CHECK: encoding: [0x8f,0xea,0x78,0x10,0xc7,0xfe,0x0a,0x00,0x00]
bextr $2814, %edi, %eax
// bextri 32 mem
// CHECK: bextrl $2814, (%rdi), %eax
// CHECK: encoding: [0x8f,0xea,0x78,0x10,0x07,0xfe,0x0a,0x00,0x00]
bextr $2814, (%rdi), %eax
// bextri 64 reg
// CHECK: bextrq $2814, %rdi, %rax
// CHECK: encoding: [0x8f,0xea,0xf8,0x10,0xc7,0xfe,0x0a,0x00,0x00]
bextr $2814, %rdi, %rax
// bextri 64 mem
// CHECK: bextrq $2814, (%rdi), %rax
// CHECK: encoding: [0x8f,0xea,0xf8,0x10,0x07,0xfe,0x0a,0x00,0x00]
bextr $2814, (%rdi), %rax
// blcfill 32 reg
// CHECK: blcfilll %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xcf]
blcfill %edi, %eax
// blcfill 32 mem
// CHECK: blcfilll (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x0f]
blcfill (%rdi), %eax
// blcfill 64 reg
// CHECK: blcfillq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xcf]
blcfill %rdi, %rax
// blcfill 64 mem
// CHECK: blcfillq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0x0f]
blcfill (%rdi), %rax
// blci 32 reg
// CHECK: blcil %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x02,0xf7]
blci %edi, %eax
// blci 32 mem
// CHECK: blcil (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x02,0x37]
blci (%rdi), %eax
// blci 64 reg
// CHECK: blciq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x02,0xf7]
blci %rdi, %rax
// blci 64 mem
// CHECK: blciq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x02,0x37]
blci (%rdi), %rax
// blcic 32 reg
// CHECK: blcicl %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xef]
blcic %edi, %eax
// blcic 32 mem
// CHECK: blcicl (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x2f]
blcic (%rdi), %eax
// blcic 64 reg
// CHECK: blcicq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xef]
blcic %rdi, %rax
// blcic 64 mem
// CHECK: blcicq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0x2f]
blcic (%rdi), %rax
// blcmsk 32 reg
// CHECK: blcmskl %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x02,0xcf]
blcmsk %edi, %eax
// blcmsk 32 mem
// CHECK: blcmskl (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x02,0x0f]
blcmsk (%rdi), %eax
// blcmsk 64 reg
// CHECK: blcmskq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x02,0xcf]
blcmsk %rdi, %rax
// blcmsk 64 mem
// CHECK: blcmskq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x02,0x0f]
blcmsk (%rdi), %rax
// blcs 32 reg
// CHECK: blcsl %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xdf]
blcs %edi, %eax
// blcs 32 mem
// CHECK: blcsl (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x1f]
blcs (%rdi), %eax
// blcs 64 reg
// CHECK: blcsq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xdf]
blcs %rdi, %rax
// blcs 64 mem
// CHECK: blcsq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0x1f]
blcs (%rdi), %rax
// blsfill 32 reg
// CHECK: blsfilll %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xd7]
blsfill %edi, %eax
// blsfill 32 mem
// CHECK: blsfilll (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x17]
blsfill (%rdi), %eax
// blsfill 64 reg
// CHECK: blsfillq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xd7]
blsfill %rdi, %rax
// blsfill 64 mem
// CHECK: blsfillq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0x17]
blsfill (%rdi), %rax
// blsic 32 reg
// CHECK: blsicl %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xf7]
blsic %edi, %eax
// blsic 32 mem
// CHECK: blsicl (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x37]
blsic (%rdi), %eax
// blsic 64 reg
// CHECK: blsicq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xf7]
blsic %rdi, %rax
// t1mskc 32 reg
// CHECK: t1mskcl %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xff]
t1mskc %edi, %eax
// t1mskc 32 mem
// CHECK: t1mskcl (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x3f]
t1mskc (%rdi), %eax
// t1mskc 64 reg
// CHECK: t1mskcq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xff]
t1mskc %rdi, %rax
// t1mskc 64 mem
// CHECK: t1mskcq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0x3f]
t1mskc (%rdi), %rax
// tzmsk 32 reg
// CHECK: tzmskl %edi, %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0xe7]
tzmsk %edi, %eax
// tzmsk 32 mem
// CHECK: tzmskl (%rdi), %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x01,0x27]
tzmsk (%rdi), %eax
// tzmsk 64 reg
// CHECK: tzmskq %rdi, %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0xe7]
tzmsk %rdi, %rax
// tzmsk 64 mem
// CHECK: tzmskq (%rdi), %rax
// CHECK: encoding: [0x8f,0xe9,0xf8,0x01,0x27]
tzmsk (%rdi), %rax
// CHECK: encoding: [0x67,0xc4,0xe2,0x60,0xf7,0x07]
bextr %ebx, (%edi), %eax
// CHECK: encoding: [0x67,0x8f,0xea,0x78,0x10,0x07,A,A,A,A]
bextr $foo, (%edi), %eax