1 // RUN
: llvm-mc
-triple x86_64-unknown-unknown
--show-encoding
%s | FileCheck
%s
3 // CHECK
: invept
485498096, %r15
4 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x80,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
7 // CHECK
: invept
64(%rdx
), %r15
8 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x80,0x7a,0x40]
11 // CHECK
: invept
64(%rdx
,%rax
,4), %r15
12 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x80,0x7c,0x82,0x40]
13 invept
64(%rdx
,%rax
,4), %r15
15 // CHECK
: invept
-64(%rdx
,%rax
,4), %r15
16 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x80,0x7c,0x82,0xc0]
17 invept
-64(%rdx
,%rax
,4), %r15
19 // CHECK
: invept
64(%rdx
,%rax
), %r15
20 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x80,0x7c,0x02,0x40]
21 invept
64(%rdx
,%rax
), %r15
23 // CHECK
: invept
(%rdx
), %r15
24 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x80,0x3a]
27 // CHECK
: invvpid
485498096, %r15
28 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x81,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
29 invvpid
485498096, %r15
31 // CHECK
: invvpid
64(%rdx
), %r15
32 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x81,0x7a,0x40]
33 invvpid
64(%rdx
), %r15
35 // CHECK
: invvpid
64(%rdx
,%rax
,4), %r15
36 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x81,0x7c,0x82,0x40]
37 invvpid
64(%rdx
,%rax
,4), %r15
39 // CHECK
: invvpid
-64(%rdx
,%rax
,4), %r15
40 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x81,0x7c,0x82,0xc0]
41 invvpid
-64(%rdx
,%rax
,4), %r15
43 // CHECK
: invvpid
64(%rdx
,%rax
), %r15
44 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x81,0x7c,0x02,0x40]
45 invvpid
64(%rdx
,%rax
), %r15
47 // CHECK
: invvpid
(%rdx
), %r15
48 // CHECK
: encoding
: [0x66,0x44,0x0f,0x38,0x81,0x3a]
52 // CHECK
: encoding
: [0x0f,0x01,0xc1]
55 // CHECK
: vmclear
485498096
56 // CHECK
: encoding
: [0x66,0x0f,0xc7,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
59 // CHECK
: vmclear
64(%rdx
)
60 // CHECK
: encoding
: [0x66,0x0f,0xc7,0x72,0x40]
63 // CHECK
: vmclear
64(%rdx
,%rax
,4)
64 // CHECK
: encoding
: [0x66,0x0f,0xc7,0x74,0x82,0x40]
65 vmclear
64(%rdx
,%rax
,4)
67 // CHECK
: vmclear
-64(%rdx
,%rax
,4)
68 // CHECK
: encoding
: [0x66,0x0f,0xc7,0x74,0x82,0xc0]
69 vmclear
-64(%rdx
,%rax
,4)
71 // CHECK
: vmclear
64(%rdx
,%rax
)
72 // CHECK
: encoding
: [0x66,0x0f,0xc7,0x74,0x02,0x40]
75 // CHECK
: vmclear
(%rdx
)
76 // CHECK
: encoding
: [0x66,0x0f,0xc7,0x32]
80 // CHECK
: encoding
: [0x0f,0x01,0xc2]
83 // CHECK
: vmptrld
485498096
84 // CHECK
: encoding
: [0x0f,0xc7,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
87 // CHECK
: vmptrld
64(%rdx
)
88 // CHECK
: encoding
: [0x0f,0xc7,0x72,0x40]
91 // CHECK
: vmptrld
64(%rdx
,%rax
,4)
92 // CHECK
: encoding
: [0x0f,0xc7,0x74,0x82,0x40]
93 vmptrld
64(%rdx
,%rax
,4)
95 // CHECK
: vmptrld
-64(%rdx
,%rax
,4)
96 // CHECK
: encoding
: [0x0f,0xc7,0x74,0x82,0xc0]
97 vmptrld
-64(%rdx
,%rax
,4)
99 // CHECK
: vmptrld
64(%rdx
,%rax
)
100 // CHECK
: encoding
: [0x0f,0xc7,0x74,0x02,0x40]
101 vmptrld
64(%rdx
,%rax
)
103 // CHECK
: vmptrld
(%rdx
)
104 // CHECK
: encoding
: [0x0f,0xc7,0x32]
107 // CHECK
: vmptrst
485498096
108 // CHECK
: encoding
: [0x0f,0xc7,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
111 // CHECK
: vmptrst
64(%rdx
)
112 // CHECK
: encoding
: [0x0f,0xc7,0x7a,0x40]
115 // CHECK
: vmptrst
64(%rdx
,%rax
,4)
116 // CHECK
: encoding
: [0x0f,0xc7,0x7c,0x82,0x40]
117 vmptrst
64(%rdx
,%rax
,4)
119 // CHECK
: vmptrst
-64(%rdx
,%rax
,4)
120 // CHECK
: encoding
: [0x0f,0xc7,0x7c,0x82,0xc0]
121 vmptrst
-64(%rdx
,%rax
,4)
123 // CHECK
: vmptrst
64(%rdx
,%rax
)
124 // CHECK
: encoding
: [0x0f,0xc7,0x7c,0x02,0x40]
125 vmptrst
64(%rdx
,%rax
)
127 // CHECK
: vmptrst
(%rdx
)
128 // CHECK
: encoding
: [0x0f,0xc7,0x3a]
131 // CHECK
: vmreadq
%r15, 485498096
132 // CHECK
: encoding
: [0x44,0x0f,0x78,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
133 vmreadq
%r15, 485498096
135 // CHECK
: vmreadq
%r15, 64(%rdx
)
136 // CHECK
: encoding
: [0x44,0x0f,0x78,0x7a,0x40]
137 vmreadq
%r15, 64(%rdx
)
139 // CHECK
: vmreadq
%r15, 64(%rdx
,%rax
,4)
140 // CHECK
: encoding
: [0x44,0x0f,0x78,0x7c,0x82,0x40]
141 vmreadq
%r15, 64(%rdx
,%rax
,4)
143 // CHECK
: vmreadq
%r15, -64(%rdx
,%rax
,4)
144 // CHECK
: encoding
: [0x44,0x0f,0x78,0x7c,0x82,0xc0]
145 vmreadq
%r15, -64(%rdx
,%rax
,4)
147 // CHECK
: vmreadq
%r15, 64(%rdx
,%rax
)
148 // CHECK
: encoding
: [0x44,0x0f,0x78,0x7c,0x02,0x40]
149 vmreadq
%r15, 64(%rdx
,%rax
)
151 // CHECK
: vmreadq
%r15, %r15
152 // CHECK
: encoding
: [0x45,0x0f,0x78,0xff]
155 // CHECK
: vmreadq
%r15, (%rdx
)
156 // CHECK
: encoding
: [0x44,0x0f,0x78,0x3a]
160 // CHECK
: encoding
: [0x0f,0x01,0xc3]
163 // CHECK
: vmwriteq
485498096, %r15
164 // CHECK
: encoding
: [0x44,0x0f,0x79,0x3c,0x25,0xf0,0x1c,0xf0,0x1c]
165 vmwriteq
485498096, %r15
167 // CHECK
: vmwriteq
64(%rdx
), %r15
168 // CHECK
: encoding
: [0x44,0x0f,0x79,0x7a,0x40]
169 vmwriteq
64(%rdx
), %r15
171 // CHECK
: vmwriteq
64(%rdx
,%rax
,4), %r15
172 // CHECK
: encoding
: [0x44,0x0f,0x79,0x7c,0x82,0x40]
173 vmwriteq
64(%rdx
,%rax
,4), %r15
175 // CHECK
: vmwriteq
-64(%rdx
,%rax
,4), %r15
176 // CHECK
: encoding
: [0x44,0x0f,0x79,0x7c,0x82,0xc0]
177 vmwriteq
-64(%rdx
,%rax
,4), %r15
179 // CHECK
: vmwriteq
64(%rdx
,%rax
), %r15
180 // CHECK
: encoding
: [0x44,0x0f,0x79,0x7c,0x02,0x40]
181 vmwriteq
64(%rdx
,%rax
), %r15
183 // CHECK
: vmwriteq
%r15, %r15
184 // CHECK
: encoding
: [0x45,0x0f,0x79,0xff]
187 // CHECK
: vmwriteq
(%rdx
), %r15
188 // CHECK
: encoding
: [0x44,0x0f,0x79,0x3a]
189 vmwriteq
(%rdx
), %r15
192 // CHECK
: encoding
: [0x0f,0x01,0xc4]
195 // CHECK
: vmxon
485498096
196 // CHECK
: encoding
: [0xf3,0x0f,0xc7,0x34,0x25,0xf0,0x1c,0xf0,0x1c]
199 // CHECK
: vmxon
64(%rdx
)
200 // CHECK
: encoding
: [0xf3,0x0f,0xc7,0x72,0x40]
203 // CHECK
: vmxon
64(%rdx
,%rax
,4)
204 // CHECK
: encoding
: [0xf3,0x0f,0xc7,0x74,0x82,0x40]
205 vmxon
64(%rdx
,%rax
,4)
207 // CHECK
: vmxon
-64(%rdx
,%rax
,4)
208 // CHECK
: encoding
: [0xf3,0x0f,0xc7,0x74,0x82,0xc0]
209 vmxon
-64(%rdx
,%rax
,4)
211 // CHECK
: vmxon
64(%rdx
,%rax
)
212 // CHECK
: encoding
: [0xf3,0x0f,0xc7,0x74,0x02,0x40]
215 // CHECK
: vmxon
(%rdx
)
216 // CHECK
: encoding
: [0xf3,0x0f,0xc7,0x32]