1 | /* $Id: IEMAllInstructionsVexMap2.cpp.h 100138 2023-06-09 14:09:24Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IEM - Instruction Decoding and Emulation.
|
---|
4 | *
|
---|
5 | * @remarks IEMAllInstructionsThree0f38.cpp.h is a VEX mirror of this file.
|
---|
6 | * Any update here is likely needed in that file too.
|
---|
7 | */
|
---|
8 |
|
---|
9 | /*
|
---|
10 | * Copyright (C) 2011-2023 Oracle and/or its affiliates.
|
---|
11 | *
|
---|
12 | * This file is part of VirtualBox base platform packages, as
|
---|
13 | * available from https://www.virtualbox.org.
|
---|
14 | *
|
---|
15 | * This program is free software; you can redistribute it and/or
|
---|
16 | * modify it under the terms of the GNU General Public License
|
---|
17 | * as published by the Free Software Foundation, in version 3 of the
|
---|
18 | * License.
|
---|
19 | *
|
---|
20 | * This program is distributed in the hope that it will be useful, but
|
---|
21 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
23 | * General Public License for more details.
|
---|
24 | *
|
---|
25 | * You should have received a copy of the GNU General Public License
|
---|
26 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
27 | *
|
---|
28 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
29 | */
|
---|
30 |
|
---|
31 |
|
---|
32 | /** @name VEX Opcode Map 2
|
---|
33 | * @{
|
---|
34 | */
|
---|
35 |
|
---|
36 | /* Opcode VEX.0F38 0x00 - invalid. */
|
---|
37 |
|
---|
38 |
|
---|
39 | /** Opcode VEX.66.0F38 0x00. */
|
---|
40 | FNIEMOP_DEF(iemOp_vpshufb_Vx_Hx_Wx)
|
---|
41 | {
|
---|
42 | IEMOP_MNEMONIC3(VEX_RVM, VPSHUFB, vpshufb, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
43 | IEMOPMEDIAF3_INIT_VARS(vpshufb);
|
---|
44 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
45 | }
|
---|
46 |
|
---|
47 |
|
---|
48 | /* Opcode VEX.0F38 0x01 - invalid. */
|
---|
49 |
|
---|
50 |
|
---|
51 | /** Opcode VEX.66.0F38 0x01. */
|
---|
52 | FNIEMOP_DEF(iemOp_vphaddw_Vx_Hx_Wx)
|
---|
53 | {
|
---|
54 | IEMOP_MNEMONIC3(VEX_RVM, VPHADDW, vphaddw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
55 | IEMOPMEDIAOPTF3_INIT_VARS(vphaddw);
|
---|
56 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
57 | }
|
---|
58 |
|
---|
59 |
|
---|
60 | /* Opcode VEX.0F38 0x02 - invalid. */
|
---|
61 |
|
---|
62 |
|
---|
63 | /** Opcode VEX.66.0F38 0x02. */
|
---|
64 | FNIEMOP_DEF(iemOp_vphaddd_Vx_Hx_Wx)
|
---|
65 | {
|
---|
66 | IEMOP_MNEMONIC3(VEX_RVM, VPHADDD, vphaddd, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
67 | IEMOPMEDIAOPTF3_INIT_VARS(vphaddd);
|
---|
68 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
69 | }
|
---|
70 |
|
---|
71 |
|
---|
72 | /* Opcode VEX.0F38 0x03 - invalid. */
|
---|
73 |
|
---|
74 |
|
---|
75 | /** Opcode VEX.66.0F38 0x03. */
|
---|
76 | FNIEMOP_DEF(iemOp_vphaddsw_Vx_Hx_Wx)
|
---|
77 | {
|
---|
78 | IEMOP_MNEMONIC3(VEX_RVM, VPHADDSW, vphaddsw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
79 | IEMOPMEDIAOPTF3_INIT_VARS(vphaddsw);
|
---|
80 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
81 | }
|
---|
82 |
|
---|
83 |
|
---|
84 | /* Opcode VEX.0F38 0x04 - invalid. */
|
---|
85 |
|
---|
86 |
|
---|
87 | /** Opcode VEX.66.0F38 0x04. */
|
---|
88 | FNIEMOP_DEF(iemOp_vpmaddubsw_Vx_Hx_Wx)
|
---|
89 | {
|
---|
90 | IEMOP_MNEMONIC3(VEX_RVM, VPMADDUBSW, vpmaddubsw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
91 | IEMOPMEDIAOPTF3_INIT_VARS(vpmaddubsw);
|
---|
92 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
93 | }
|
---|
94 |
|
---|
95 |
|
---|
96 | /* Opcode VEX.0F38 0x05 - invalid. */
|
---|
97 |
|
---|
98 |
|
---|
99 | /** Opcode VEX.66.0F38 0x05. */
|
---|
100 | FNIEMOP_DEF(iemOp_vphsubw_Vx_Hx_Wx)
|
---|
101 | {
|
---|
102 | IEMOP_MNEMONIC3(VEX_RVM, VPHSUBW, vphsubw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
103 | IEMOPMEDIAOPTF3_INIT_VARS(vphsubw);
|
---|
104 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
105 | }
|
---|
106 |
|
---|
107 |
|
---|
108 | /* Opcode VEX.0F38 0x06 - invalid. */
|
---|
109 |
|
---|
110 |
|
---|
111 | /** Opcode VEX.66.0F38 0x06. */
|
---|
112 | FNIEMOP_DEF(iemOp_vphsubd_Vx_Hx_Wx)
|
---|
113 | {
|
---|
114 | IEMOP_MNEMONIC3(VEX_RVM, VPHSUBD, vphsubd, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
115 | IEMOPMEDIAOPTF3_INIT_VARS(vphsubd);
|
---|
116 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
117 | }
|
---|
118 |
|
---|
119 |
|
---|
120 | /* Opcode VEX.0F38 0x07 - invalid. */
|
---|
121 |
|
---|
122 |
|
---|
123 | /** Opcode VEX.66.0F38 0x07. */
|
---|
124 | FNIEMOP_DEF(iemOp_vphsubsw_Vx_Hx_Wx)
|
---|
125 | {
|
---|
126 | IEMOP_MNEMONIC3(VEX_RVM, VPHSUBSW, vphsubsw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
127 | IEMOPMEDIAOPTF3_INIT_VARS(vphsubsw);
|
---|
128 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
129 | }
|
---|
130 |
|
---|
131 |
|
---|
132 | /* Opcode VEX.0F38 0x08 - invalid. */
|
---|
133 |
|
---|
134 |
|
---|
135 | /** Opcode VEX.66.0F38 0x08. */
|
---|
136 | FNIEMOP_DEF(iemOp_vpsignb_Vx_Hx_Wx)
|
---|
137 | {
|
---|
138 | IEMOP_MNEMONIC3(VEX_RVM, VPSIGNB, vpsignb, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
139 | IEMOPMEDIAOPTF3_INIT_VARS(vpsignb);
|
---|
140 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
141 | }
|
---|
142 |
|
---|
143 |
|
---|
144 | /* Opcode VEX.0F38 0x09 - invalid. */
|
---|
145 |
|
---|
146 |
|
---|
147 | /** Opcode VEX.66.0F38 0x09. */
|
---|
148 | FNIEMOP_DEF(iemOp_vpsignw_Vx_Hx_Wx)
|
---|
149 | {
|
---|
150 | IEMOP_MNEMONIC3(VEX_RVM, VPSIGNW, vpsignw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
151 | IEMOPMEDIAOPTF3_INIT_VARS(vpsignw);
|
---|
152 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
153 | }
|
---|
154 |
|
---|
155 |
|
---|
156 | /* Opcode VEX.0F38 0x0a - invalid. */
|
---|
157 |
|
---|
158 |
|
---|
159 | /** Opcode VEX.66.0F38 0x0a. */
|
---|
160 | FNIEMOP_DEF(iemOp_vpsignd_Vx_Hx_Wx)
|
---|
161 | {
|
---|
162 | IEMOP_MNEMONIC3(VEX_RVM, VPSIGND, vpsignd, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
163 | IEMOPMEDIAOPTF3_INIT_VARS(vpsignd);
|
---|
164 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
165 | }
|
---|
166 |
|
---|
167 |
|
---|
168 | /* Opcode VEX.0F38 0x0b - invalid. */
|
---|
169 |
|
---|
170 |
|
---|
171 | /** Opcode VEX.66.0F38 0x0b. */
|
---|
172 | FNIEMOP_DEF(iemOp_vpmulhrsw_Vx_Hx_Wx)
|
---|
173 | {
|
---|
174 | IEMOP_MNEMONIC3(VEX_RVM, VPMULHRSW, vpmulhrsw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
175 | IEMOPMEDIAOPTF3_INIT_VARS(vpmulhrsw);
|
---|
176 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
177 | }
|
---|
178 |
|
---|
179 |
|
---|
180 | /* Opcode VEX.0F38 0x0c - invalid. */
|
---|
181 | /** Opcode VEX.66.0F38 0x0c. */
|
---|
182 | FNIEMOP_STUB(iemOp_vpermilps_Vx_Hx_Wx);
|
---|
183 | /* Opcode VEX.0F38 0x0d - invalid. */
|
---|
184 | /** Opcode VEX.66.0F38 0x0d. */
|
---|
185 | FNIEMOP_STUB(iemOp_vpermilpd_Vx_Hx_Wx);
|
---|
186 | /* Opcode VEX.0F38 0x0e - invalid. */
|
---|
187 | /** Opcode VEX.66.0F38 0x0e. */
|
---|
188 | FNIEMOP_STUB(iemOp_vtestps_Vx_Wx);
|
---|
189 | /* Opcode VEX.0F38 0x0f - invalid. */
|
---|
190 | /** Opcode VEX.66.0F38 0x0f. */
|
---|
191 | FNIEMOP_STUB(iemOp_vtestpd_Vx_Wx);
|
---|
192 |
|
---|
193 |
|
---|
194 | /* Opcode VEX.0F38 0x10 - invalid */
|
---|
195 | /* Opcode VEX.66.0F38 0x10 - invalid (legacy only). */
|
---|
196 | /* Opcode VEX.0F38 0x11 - invalid */
|
---|
197 | /* Opcode VEX.66.0F38 0x11 - invalid */
|
---|
198 | /* Opcode VEX.0F38 0x12 - invalid */
|
---|
199 | /* Opcode VEX.66.0F38 0x12 - invalid */
|
---|
200 | /* Opcode VEX.0F38 0x13 - invalid */
|
---|
201 | /* Opcode VEX.66.0F38 0x13 - invalid (vex only). */
|
---|
202 | /* Opcode VEX.0F38 0x14 - invalid */
|
---|
203 | /* Opcode VEX.66.0F38 0x14 - invalid (legacy only). */
|
---|
204 | /* Opcode VEX.0F38 0x15 - invalid */
|
---|
205 | /* Opcode VEX.66.0F38 0x15 - invalid (legacy only). */
|
---|
206 | /* Opcode VEX.0F38 0x16 - invalid */
|
---|
207 | /** Opcode VEX.66.0F38 0x16. */
|
---|
208 | FNIEMOP_STUB(iemOp_vpermps_Vqq_Hqq_Wqq);
|
---|
209 | /* Opcode VEX.0F38 0x17 - invalid */
|
---|
210 |
|
---|
211 |
|
---|
212 | /** Opcode VEX.66.0F38 0x17 - invalid */
|
---|
213 | FNIEMOP_DEF(iemOp_vptest_Vx_Wx)
|
---|
214 | {
|
---|
215 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
216 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
217 | {
|
---|
218 | /*
|
---|
219 | * Register, register.
|
---|
220 | */
|
---|
221 | if (pVCpu->iem.s.uVexLength)
|
---|
222 | {
|
---|
223 | IEMOP_HLP_DONE_VEX_DECODING_EX(fAvx2);
|
---|
224 | IEM_MC_BEGIN(3, 2);
|
---|
225 | IEM_MC_LOCAL(RTUINT256U, uSrc1);
|
---|
226 | IEM_MC_LOCAL(RTUINT256U, uSrc2);
|
---|
227 | IEM_MC_ARG_LOCAL_REF(PCRTUINT256U, puSrc1, uSrc1, 0);
|
---|
228 | IEM_MC_ARG_LOCAL_REF(PCRTUINT256U, puSrc2, uSrc2, 1);
|
---|
229 | IEM_MC_ARG(uint32_t *, pEFlags, 2);
|
---|
230 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
231 | IEM_MC_PREPARE_AVX_USAGE();
|
---|
232 | IEM_MC_FETCH_YREG_U256(uSrc1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
233 | IEM_MC_FETCH_YREG_U256(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
234 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
235 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fAvx, iemAImpl_vptest_u256, iemAImpl_vptest_u256_fallback),
|
---|
236 | puSrc1, puSrc2, pEFlags);
|
---|
237 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
238 | IEM_MC_END();
|
---|
239 | }
|
---|
240 | else
|
---|
241 | {
|
---|
242 | IEMOP_HLP_DONE_VEX_DECODING_EX(fAvx);
|
---|
243 | IEM_MC_BEGIN(3, 0);
|
---|
244 | IEM_MC_ARG(PCRTUINT128U, puSrc1, 0);
|
---|
245 | IEM_MC_ARG(PCRTUINT128U, puSrc2, 1);
|
---|
246 | IEM_MC_ARG(uint32_t *, pEFlags, 2);
|
---|
247 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
248 | IEM_MC_PREPARE_AVX_USAGE();
|
---|
249 | IEM_MC_REF_XREG_U128_CONST(puSrc1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
250 | IEM_MC_REF_XREG_U128_CONST(puSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
251 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
252 | IEM_MC_CALL_VOID_AIMPL_3(iemAImpl_ptest_u128, puSrc1, puSrc2, pEFlags);
|
---|
253 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
254 | IEM_MC_END();
|
---|
255 | }
|
---|
256 | }
|
---|
257 | else
|
---|
258 | {
|
---|
259 | /*
|
---|
260 | * Register, memory.
|
---|
261 | */
|
---|
262 | if (pVCpu->iem.s.uVexLength)
|
---|
263 | {
|
---|
264 | IEM_MC_BEGIN(3, 3);
|
---|
265 | IEM_MC_LOCAL(RTUINT256U, uSrc1);
|
---|
266 | IEM_MC_LOCAL(RTUINT256U, uSrc2);
|
---|
267 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
268 | IEM_MC_ARG_LOCAL_REF(PCRTUINT256U, puSrc1, uSrc1, 0);
|
---|
269 | IEM_MC_ARG_LOCAL_REF(PCRTUINT256U, puSrc2, uSrc2, 1);
|
---|
270 | IEM_MC_ARG(uint32_t *, pEFlags, 2);
|
---|
271 |
|
---|
272 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
273 | IEMOP_HLP_DONE_VEX_DECODING_EX(fAvx2);
|
---|
274 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
275 | IEM_MC_PREPARE_AVX_USAGE();
|
---|
276 |
|
---|
277 | IEM_MC_FETCH_MEM_U256_NO_AC(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
278 | IEM_MC_FETCH_YREG_U256(uSrc1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
279 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
280 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fAvx, iemAImpl_vptest_u256, iemAImpl_vptest_u256_fallback),
|
---|
281 | puSrc1, puSrc2, pEFlags);
|
---|
282 |
|
---|
283 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
284 | IEM_MC_END();
|
---|
285 | }
|
---|
286 | else
|
---|
287 | {
|
---|
288 | IEM_MC_BEGIN(3, 2);
|
---|
289 | IEM_MC_LOCAL(RTUINT128U, uSrc2);
|
---|
290 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
291 | IEM_MC_ARG(PCRTUINT128U, puSrc1, 0);
|
---|
292 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc2, uSrc2, 1);
|
---|
293 | IEM_MC_ARG(uint32_t *, pEFlags, 2);
|
---|
294 |
|
---|
295 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
296 | IEMOP_HLP_DONE_VEX_DECODING_EX(fAvx);
|
---|
297 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
298 | IEM_MC_PREPARE_AVX_USAGE();
|
---|
299 |
|
---|
300 | IEM_MC_FETCH_MEM_U128_NO_AC(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
301 | IEM_MC_REF_XREG_U128_CONST(puSrc1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
302 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
303 | IEM_MC_CALL_VOID_AIMPL_3(iemAImpl_ptest_u128, puSrc1, puSrc2, pEFlags);
|
---|
304 |
|
---|
305 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
306 | IEM_MC_END();
|
---|
307 | }
|
---|
308 | }
|
---|
309 | }
|
---|
310 |
|
---|
311 |
|
---|
312 | /* Opcode VEX.0F38 0x18 - invalid */
|
---|
313 | /** Opcode VEX.66.0F38 0x18. */
|
---|
314 | FNIEMOP_STUB(iemOp_vbroadcastss_Vx_Wd);
|
---|
315 | /* Opcode VEX.0F38 0x19 - invalid */
|
---|
316 | /** Opcode VEX.66.0F38 0x19. */
|
---|
317 | FNIEMOP_STUB(iemOp_vbroadcastsd_Vqq_Wq);
|
---|
318 | /* Opcode VEX.0F38 0x1a - invalid */
|
---|
319 | /** Opcode VEX.66.0F38 0x1a. */
|
---|
320 | FNIEMOP_STUB(iemOp_vbroadcastf128_Vqq_Mdq);
|
---|
321 | /* Opcode VEX.0F38 0x1b - invalid */
|
---|
322 | /* Opcode VEX.66.0F38 0x1b - invalid */
|
---|
323 | /* Opcode VEX.0F38 0x1c - invalid. */
|
---|
324 |
|
---|
325 |
|
---|
326 | /** Opcode VEX.66.0F38 0x1c. */
|
---|
327 | FNIEMOP_DEF(iemOp_vpabsb_Vx_Wx)
|
---|
328 | {
|
---|
329 | IEMOP_MNEMONIC2(VEX_RM, VPABSB, vpabsb, Vx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
330 | IEMOPMEDIAOPTF2_INIT_VARS(vpabsb);
|
---|
331 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
332 | }
|
---|
333 |
|
---|
334 |
|
---|
335 | /* Opcode VEX.0F38 0x1d - invalid. */
|
---|
336 |
|
---|
337 |
|
---|
338 | /** Opcode VEX.66.0F38 0x1d. */
|
---|
339 | FNIEMOP_DEF(iemOp_vpabsw_Vx_Wx)
|
---|
340 | {
|
---|
341 | IEMOP_MNEMONIC2(VEX_RM, VPABSW, vpabsw, Vx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
342 | IEMOPMEDIAOPTF2_INIT_VARS(vpabsw);
|
---|
343 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
344 | }
|
---|
345 |
|
---|
346 | /* Opcode VEX.0F38 0x1e - invalid. */
|
---|
347 |
|
---|
348 |
|
---|
349 | /** Opcode VEX.66.0F38 0x1e. */
|
---|
350 | FNIEMOP_DEF(iemOp_vpabsd_Vx_Wx)
|
---|
351 | {
|
---|
352 | IEMOP_MNEMONIC2(VEX_RM, VPABSD, vpabsd, Vx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
353 | IEMOPMEDIAOPTF2_INIT_VARS(vpabsd);
|
---|
354 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
355 | }
|
---|
356 |
|
---|
357 |
|
---|
358 | /* Opcode VEX.0F38 0x1f - invalid */
|
---|
359 | /* Opcode VEX.66.0F38 0x1f - invalid */
|
---|
360 |
|
---|
361 |
|
---|
362 | /** Body for the vpmov{s,z}x* instructions. */
|
---|
363 | #define IEMOP_BODY_VPMOV_S_Z(a_Instr, a_SrcWidth) \
|
---|
364 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
365 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
366 | { \
|
---|
367 | /* \
|
---|
368 | * Register, register. \
|
---|
369 | */ \
|
---|
370 | if (pVCpu->iem.s.uVexLength) \
|
---|
371 | { \
|
---|
372 | IEMOP_HLP_DONE_VEX_DECODING_NO_VVVV_EX(fAvx2); \
|
---|
373 | IEM_MC_BEGIN(2, 1); \
|
---|
374 | IEM_MC_LOCAL(RTUINT256U, uDst); \
|
---|
375 | IEM_MC_ARG_LOCAL_REF(PRTUINT256U, puDst, uDst, 0); \
|
---|
376 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1); \
|
---|
377 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT(); \
|
---|
378 | IEM_MC_PREPARE_AVX_USAGE(); \
|
---|
379 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
380 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fAvx2, iemAImpl_ ## a_Instr ## _u256, \
|
---|
381 | iemAImpl_ ## a_Instr ## _u256_fallback), \
|
---|
382 | puDst, puSrc); \
|
---|
383 | IEM_MC_STORE_YREG_U256_ZX_VLMAX(IEM_GET_MODRM_REG(pVCpu, bRm), uDst); \
|
---|
384 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
385 | IEM_MC_END(); \
|
---|
386 | } \
|
---|
387 | else \
|
---|
388 | { \
|
---|
389 | IEMOP_HLP_DONE_VEX_DECODING_NO_VVVV_EX(fAvx); \
|
---|
390 | IEM_MC_BEGIN(2, 0); \
|
---|
391 | IEM_MC_ARG(PRTUINT128U, puDst, 0); \
|
---|
392 | IEM_MC_ARG(uint64_t, uSrc, 1); \
|
---|
393 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT(); \
|
---|
394 | IEM_MC_PREPARE_AVX_USAGE(); \
|
---|
395 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
396 | IEM_MC_FETCH_XREG_U64(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm), 0 /* a_iQword*/); \
|
---|
397 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fAvx2, iemAImpl_ ## a_Instr ## _u128, \
|
---|
398 | iemAImpl_## a_Instr ## _u128_fallback), \
|
---|
399 | puDst, uSrc); \
|
---|
400 | IEM_MC_CLEAR_YREG_128_UP( IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
401 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
402 | IEM_MC_END(); \
|
---|
403 | } \
|
---|
404 | } \
|
---|
405 | else \
|
---|
406 | { \
|
---|
407 | /* \
|
---|
408 | * Register, memory. \
|
---|
409 | */ \
|
---|
410 | if (pVCpu->iem.s.uVexLength) \
|
---|
411 | { \
|
---|
412 | IEM_MC_BEGIN(2, 3); \
|
---|
413 | IEM_MC_LOCAL(RTUINT256U, uDst); \
|
---|
414 | IEM_MC_LOCAL(RTUINT128U, uSrc); \
|
---|
415 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
416 | IEM_MC_ARG_LOCAL_REF(PRTUINT256U, puDst, uDst, 0); \
|
---|
417 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1); \
|
---|
418 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
419 | IEMOP_HLP_DONE_VEX_DECODING_NO_VVVV_EX(fAvx2); \
|
---|
420 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT(); \
|
---|
421 | IEM_MC_PREPARE_AVX_USAGE(); \
|
---|
422 | IEM_MC_FETCH_MEM_U128(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
423 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fAvx2, iemAImpl_ ## a_Instr ## _u256, \
|
---|
424 | iemAImpl_ ## a_Instr ## _u256_fallback), \
|
---|
425 | puDst, puSrc); \
|
---|
426 | IEM_MC_STORE_YREG_U256_ZX_VLMAX( IEM_GET_MODRM_REG(pVCpu, bRm), uDst); \
|
---|
427 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
428 | IEM_MC_END(); \
|
---|
429 | } \
|
---|
430 | else \
|
---|
431 | { \
|
---|
432 | IEM_MC_BEGIN(2, 1); \
|
---|
433 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
434 | IEM_MC_ARG(PRTUINT128U, puDst, 0); \
|
---|
435 | IEM_MC_ARG(uint ## a_SrcWidth ##_t, uSrc, 1); \
|
---|
436 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
437 | IEMOP_HLP_DONE_VEX_DECODING_NO_VVVV_EX(fAvx); \
|
---|
438 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT(); \
|
---|
439 | IEM_MC_PREPARE_AVX_USAGE(); \
|
---|
440 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
441 | IEM_MC_FETCH_MEM_U ## a_SrcWidth (uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
442 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fAvx2, iemAImpl_ ## a_Instr ## _u128, \
|
---|
443 | iemAImpl_ ## a_Instr ## _u128_fallback), \
|
---|
444 | puDst, uSrc); \
|
---|
445 | IEM_MC_CLEAR_YREG_128_UP( IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
446 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
447 | IEM_MC_END(); \
|
---|
448 | } \
|
---|
449 | } \
|
---|
450 | (void)0
|
---|
451 |
|
---|
452 | /** Opcode VEX.66.0F38 0x20. */
|
---|
453 | FNIEMOP_DEF(iemOp_vpmovsxbw_Vx_UxMq)
|
---|
454 | {
|
---|
455 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
456 | IEMOP_MNEMONIC2(VEX_RM, VPMOVSXBW, vpmovsxbw, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
457 | IEMOP_BODY_VPMOV_S_Z(vpmovsxbw, 64);
|
---|
458 | }
|
---|
459 |
|
---|
460 |
|
---|
461 | /** Opcode VEX.66.0F38 0x21. */
|
---|
462 | FNIEMOP_DEF(iemOp_vpmovsxbd_Vx_UxMd)
|
---|
463 | {
|
---|
464 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
465 | IEMOP_MNEMONIC2(VEX_RM, VPMOVSXBD, vpmovsxbd, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
466 | IEMOP_BODY_VPMOV_S_Z(vpmovsxbd, 32);
|
---|
467 | }
|
---|
468 |
|
---|
469 |
|
---|
470 | /** Opcode VEX.66.0F38 0x22. */
|
---|
471 | FNIEMOP_DEF(iemOp_vpmovsxbq_Vx_UxMw)
|
---|
472 | {
|
---|
473 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
474 | IEMOP_MNEMONIC2(VEX_RM, VPMOVSXBQ, vpmovsxbq, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
475 | IEMOP_BODY_VPMOV_S_Z(vpmovsxbq, 16);
|
---|
476 | }
|
---|
477 |
|
---|
478 |
|
---|
479 | /** Opcode VEX.66.0F38 0x23. */
|
---|
480 | FNIEMOP_DEF(iemOp_vpmovsxwd_Vx_UxMq)
|
---|
481 | {
|
---|
482 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
483 | IEMOP_MNEMONIC2(VEX_RM, VPMOVSXWD, vpmovsxwd, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
484 | IEMOP_BODY_VPMOV_S_Z(vpmovsxwd, 64);
|
---|
485 | }
|
---|
486 |
|
---|
487 |
|
---|
488 | /** Opcode VEX.66.0F38 0x24. */
|
---|
489 | FNIEMOP_DEF(iemOp_vpmovsxwq_Vx_UxMd)
|
---|
490 | {
|
---|
491 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
492 | IEMOP_MNEMONIC2(VEX_RM, VPMOVSXWQ, vpmovsxwq, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
493 | IEMOP_BODY_VPMOV_S_Z(vpmovsxwq, 32);
|
---|
494 | }
|
---|
495 |
|
---|
496 |
|
---|
497 | /** Opcode VEX.66.0F38 0x25. */
|
---|
498 | FNIEMOP_DEF(iemOp_vpmovsxdq_Vx_UxMq)
|
---|
499 | {
|
---|
500 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
501 | IEMOP_MNEMONIC2(VEX_RM, VPMOVSXDQ, vpmovsxdq, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
502 | IEMOP_BODY_VPMOV_S_Z(vpmovsxdq, 64);
|
---|
503 | }
|
---|
504 |
|
---|
505 |
|
---|
506 | /* Opcode VEX.66.0F38 0x26 - invalid */
|
---|
507 | /* Opcode VEX.66.0F38 0x27 - invalid */
|
---|
508 |
|
---|
509 |
|
---|
510 | /** Opcode VEX.66.0F38 0x28. */
|
---|
511 | FNIEMOP_DEF(iemOp_vpmuldq_Vx_Hx_Wx)
|
---|
512 | {
|
---|
513 | IEMOP_MNEMONIC3(VEX_RVM, VPMULDQ, vpmuldq, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
514 | IEMOPMEDIAOPTF3_INIT_VARS(vpmuldq);
|
---|
515 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
516 | }
|
---|
517 |
|
---|
518 |
|
---|
519 | /** Opcode VEX.66.0F38 0x29. */
|
---|
520 | FNIEMOP_DEF(iemOp_vpcmpeqq_Vx_Hx_Wx)
|
---|
521 | {
|
---|
522 | IEMOP_MNEMONIC3(VEX_RVM, VPCMPEQQ, vpcmpeqq, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
523 | IEMOPMEDIAF3_INIT_VARS(vpcmpeqq);
|
---|
524 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
525 | }
|
---|
526 |
|
---|
527 |
|
---|
528 | FNIEMOP_DEF(iemOp_vmovntdqa_Vx_Mx)
|
---|
529 | {
|
---|
530 | Assert(pVCpu->iem.s.uVexLength <= 1);
|
---|
531 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
532 | if (IEM_IS_MODRM_MEM_MODE(bRm))
|
---|
533 | {
|
---|
534 | if (pVCpu->iem.s.uVexLength == 0)
|
---|
535 | {
|
---|
536 | /**
|
---|
537 | * @opcode 0x2a
|
---|
538 | * @opcodesub !11 mr/reg vex.l=0
|
---|
539 | * @oppfx 0x66
|
---|
540 | * @opcpuid avx
|
---|
541 | * @opgroup og_avx_cachect
|
---|
542 | * @opxcpttype 1
|
---|
543 | * @optest op1=-1 op2=2 -> op1=2
|
---|
544 | * @optest op1=0 op2=-42 -> op1=-42
|
---|
545 | */
|
---|
546 | /* 128-bit: Memory, register. */
|
---|
547 | IEMOP_MNEMONIC2EX(vmovntdqa_Vdq_WO_Mdq_L0, "vmovntdqa, Vdq_WO, Mdq", VEX_RM_MEM, VMOVNTDQA, vmovntdqa, Vx_WO, Mx,
|
---|
548 | DISOPTYPE_HARMLESS | DISOPTYPE_X86_AVX, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
549 | IEM_MC_BEGIN(0, 2);
|
---|
550 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
551 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
552 |
|
---|
553 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
554 | IEMOP_HLP_DONE_VEX_DECODING_NO_VVVV_EX(fAvx);
|
---|
555 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
556 | IEM_MC_ACTUALIZE_AVX_STATE_FOR_CHANGE();
|
---|
557 |
|
---|
558 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
559 | IEM_MC_STORE_YREG_U128_ZX_VLMAX(IEM_GET_MODRM_REG(pVCpu, bRm), uSrc);
|
---|
560 |
|
---|
561 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
562 | IEM_MC_END();
|
---|
563 | }
|
---|
564 | else
|
---|
565 | {
|
---|
566 | /**
|
---|
567 | * @opdone
|
---|
568 | * @opcode 0x2a
|
---|
569 | * @opcodesub !11 mr/reg vex.l=1
|
---|
570 | * @oppfx 0x66
|
---|
571 | * @opcpuid avx2
|
---|
572 | * @opgroup og_avx2_cachect
|
---|
573 | * @opxcpttype 1
|
---|
574 | * @optest op1=-1 op2=2 -> op1=2
|
---|
575 | * @optest op1=0 op2=-42 -> op1=-42
|
---|
576 | */
|
---|
577 | /* 256-bit: Memory, register. */
|
---|
578 | IEMOP_MNEMONIC2EX(vmovntdqa_Vqq_WO_Mqq_L1, "vmovntdqa, Vqq_WO,Mqq", VEX_RM_MEM, VMOVNTDQA, vmovntdqa, Vx_WO, Mx,
|
---|
579 | DISOPTYPE_HARMLESS | DISOPTYPE_X86_AVX, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
580 | IEM_MC_BEGIN(0, 2);
|
---|
581 | IEM_MC_LOCAL(RTUINT256U, uSrc);
|
---|
582 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
583 |
|
---|
584 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
585 | IEMOP_HLP_DONE_VEX_DECODING_NO_VVVV_EX(fAvx2);
|
---|
586 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
587 | IEM_MC_ACTUALIZE_AVX_STATE_FOR_CHANGE();
|
---|
588 |
|
---|
589 | IEM_MC_FETCH_MEM_U256_ALIGN_AVX(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
590 | IEM_MC_STORE_YREG_U256_ZX_VLMAX(IEM_GET_MODRM_REG(pVCpu, bRm), uSrc);
|
---|
591 |
|
---|
592 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
593 | IEM_MC_END();
|
---|
594 | }
|
---|
595 | }
|
---|
596 |
|
---|
597 | /**
|
---|
598 | * @opdone
|
---|
599 | * @opmnemonic udvex660f382arg
|
---|
600 | * @opcode 0x2a
|
---|
601 | * @opcodesub 11 mr/reg
|
---|
602 | * @oppfx 0x66
|
---|
603 | * @opunused immediate
|
---|
604 | * @opcpuid avx
|
---|
605 | * @optest ->
|
---|
606 | */
|
---|
607 | else
|
---|
608 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
609 | }
|
---|
610 |
|
---|
611 |
|
---|
612 | /** Opcode VEX.66.0F38 0x2b. */
|
---|
613 | FNIEMOP_DEF(iemOp_vpackusdw_Vx_Hx_Wx)
|
---|
614 | {
|
---|
615 | IEMOP_MNEMONIC3(VEX_RVM, VPACKUSDW, vpackusdw, Vx, Hx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_AVX, 0);
|
---|
616 | IEMOPMEDIAOPTF3_INIT_VARS( vpackusdw);
|
---|
617 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
618 | }
|
---|
619 |
|
---|
620 |
|
---|
621 | /** Opcode VEX.66.0F38 0x2c. */
|
---|
622 | FNIEMOP_STUB(iemOp_vmaskmovps_Vx_Hx_Mx);
|
---|
623 | /** Opcode VEX.66.0F38 0x2d. */
|
---|
624 | FNIEMOP_STUB(iemOp_vmaskmovpd_Vx_Hx_Mx);
|
---|
625 | /** Opcode VEX.66.0F38 0x2e. */
|
---|
626 | FNIEMOP_STUB(iemOp_vmaskmovps_Mx_Hx_Vx);
|
---|
627 | /** Opcode VEX.66.0F38 0x2f. */
|
---|
628 | FNIEMOP_STUB(iemOp_vmaskmovpd_Mx_Hx_Vx);
|
---|
629 |
|
---|
630 |
|
---|
631 | /** Opcode VEX.66.0F38 0x30. */
|
---|
632 | FNIEMOP_DEF(iemOp_vpmovzxbw_Vx_UxMq)
|
---|
633 | {
|
---|
634 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
635 | IEMOP_MNEMONIC2(VEX_RM, VPMOVZXBW, vpmovzxbw, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
636 | IEMOP_BODY_VPMOV_S_Z(vpmovzxbw, 64);
|
---|
637 | }
|
---|
638 |
|
---|
639 |
|
---|
640 | /** Opcode VEX.66.0F38 0x31. */
|
---|
641 | FNIEMOP_DEF(iemOp_vpmovzxbd_Vx_UxMd)
|
---|
642 | {
|
---|
643 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
644 | IEMOP_MNEMONIC2(VEX_RM, VPMOVZXBD, vpmovzxbd, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
645 | IEMOP_BODY_VPMOV_S_Z(vpmovzxbd, 32);
|
---|
646 | }
|
---|
647 |
|
---|
648 |
|
---|
649 | /** Opcode VEX.66.0F38 0x32. */
|
---|
650 | FNIEMOP_DEF(iemOp_vpmovzxbq_Vx_UxMw)
|
---|
651 | {
|
---|
652 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
653 | IEMOP_MNEMONIC2(VEX_RM, VPMOVZXBQ, vpmovzxbq, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
654 | IEMOP_BODY_VPMOV_S_Z(vpmovzxbq, 16);
|
---|
655 | }
|
---|
656 |
|
---|
657 |
|
---|
658 | /** Opcode VEX.66.0F38 0x33. */
|
---|
659 | FNIEMOP_DEF(iemOp_vpmovzxwd_Vx_UxMq)
|
---|
660 | {
|
---|
661 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
662 | IEMOP_MNEMONIC2(VEX_RM, VPMOVZXWD, vpmovzxwd, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
663 | IEMOP_BODY_VPMOV_S_Z(vpmovzxwd, 64);
|
---|
664 | }
|
---|
665 |
|
---|
666 |
|
---|
667 | /** Opcode VEX.66.0F38 0x34. */
|
---|
668 | FNIEMOP_DEF(iemOp_vpmovzxwq_Vx_UxMd)
|
---|
669 | {
|
---|
670 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
671 | IEMOP_MNEMONIC2(VEX_RM, VPMOVZXWQ, vpmovzxwq, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
672 | IEMOP_BODY_VPMOV_S_Z(vpmovzxwq, 32);
|
---|
673 | }
|
---|
674 |
|
---|
675 |
|
---|
676 | /** Opcode VEX.66.0F38 0x35. */
|
---|
677 | FNIEMOP_DEF(iemOp_vpmovzxdq_Vx_UxMq)
|
---|
678 | {
|
---|
679 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
680 | IEMOP_MNEMONIC2(VEX_RM, VPMOVZXDQ, vpmovzxdq, Vx, Wq, DISOPTYPE_HARMLESS, 0);
|
---|
681 | IEMOP_BODY_VPMOV_S_Z(vpmovzxdq, 64);
|
---|
682 | }
|
---|
683 |
|
---|
684 |
|
---|
685 | /* Opcode VEX.66.0F38 0x36. */
|
---|
686 | FNIEMOP_STUB(iemOp_vpermd_Vqq_Hqq_Wqq);
|
---|
687 |
|
---|
688 |
|
---|
689 | /** Opcode VEX.66.0F38 0x37. */
|
---|
690 | FNIEMOP_DEF(iemOp_vpcmpgtq_Vx_Hx_Wx)
|
---|
691 | {
|
---|
692 | IEMOP_MNEMONIC3(VEX_RVM, VPCMPGTQ, vpcmpgtq, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
693 | IEMOPMEDIAF3_INIT_VARS(vpcmpgtq);
|
---|
694 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
695 | }
|
---|
696 |
|
---|
697 |
|
---|
698 | /** Opcode VEX.66.0F38 0x38. */
|
---|
699 | FNIEMOP_DEF(iemOp_vpminsb_Vx_Hx_Wx)
|
---|
700 | {
|
---|
701 | IEMOP_MNEMONIC3(VEX_RVM, VPMINSB, vpminsb, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
702 | IEMOPMEDIAF3_INIT_VARS(vpminsb);
|
---|
703 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
704 | }
|
---|
705 |
|
---|
706 |
|
---|
707 | /** Opcode VEX.66.0F38 0x39. */
|
---|
708 | FNIEMOP_DEF(iemOp_vpminsd_Vx_Hx_Wx)
|
---|
709 | {
|
---|
710 | IEMOP_MNEMONIC3(VEX_RVM, VPMINSD, vpminsd, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
711 | IEMOPMEDIAF3_INIT_VARS(vpminsd);
|
---|
712 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
713 | }
|
---|
714 |
|
---|
715 |
|
---|
716 | /** Opcode VEX.66.0F38 0x3a. */
|
---|
717 | FNIEMOP_DEF(iemOp_vpminuw_Vx_Hx_Wx)
|
---|
718 | {
|
---|
719 | IEMOP_MNEMONIC3(VEX_RVM, VPMINUW, vpminuw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
720 | IEMOPMEDIAF3_INIT_VARS(vpminuw);
|
---|
721 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
722 | }
|
---|
723 |
|
---|
724 |
|
---|
725 | /** Opcode VEX.66.0F38 0x3b. */
|
---|
726 | FNIEMOP_DEF(iemOp_vpminud_Vx_Hx_Wx)
|
---|
727 | {
|
---|
728 | IEMOP_MNEMONIC3(VEX_RVM, VPMINUD, vpminud, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
729 | IEMOPMEDIAF3_INIT_VARS(vpminud);
|
---|
730 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
731 | }
|
---|
732 |
|
---|
733 |
|
---|
734 | /** Opcode VEX.66.0F38 0x3c. */
|
---|
735 | FNIEMOP_DEF(iemOp_vpmaxsb_Vx_Hx_Wx)
|
---|
736 | {
|
---|
737 | IEMOP_MNEMONIC3(VEX_RVM, VPMAXSB, vpmaxsb, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
738 | IEMOPMEDIAF3_INIT_VARS(vpmaxsb);
|
---|
739 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
740 | }
|
---|
741 |
|
---|
742 |
|
---|
743 | /** Opcode VEX.66.0F38 0x3d. */
|
---|
744 | FNIEMOP_DEF(iemOp_vpmaxsd_Vx_Hx_Wx)
|
---|
745 | {
|
---|
746 | IEMOP_MNEMONIC3(VEX_RVM, VPMAXSD, vpmaxsd, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
747 | IEMOPMEDIAF3_INIT_VARS(vpmaxsd);
|
---|
748 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
749 | }
|
---|
750 |
|
---|
751 |
|
---|
752 | /** Opcode VEX.66.0F38 0x3e. */
|
---|
753 | FNIEMOP_DEF(iemOp_vpmaxuw_Vx_Hx_Wx)
|
---|
754 | {
|
---|
755 | IEMOP_MNEMONIC3(VEX_RVM, VPMAXUW, vpmaxuw, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
756 | IEMOPMEDIAF3_INIT_VARS(vpmaxuw);
|
---|
757 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
758 | }
|
---|
759 |
|
---|
760 |
|
---|
761 | /** Opcode VEX.66.0F38 0x3f. */
|
---|
762 | FNIEMOP_DEF(iemOp_vpmaxud_Vx_Hx_Wx)
|
---|
763 | {
|
---|
764 | IEMOP_MNEMONIC3(VEX_RVM, VPMAXUD, vpmaxud, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
765 | IEMOPMEDIAF3_INIT_VARS(vpmaxud);
|
---|
766 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
767 | }
|
---|
768 |
|
---|
769 |
|
---|
770 | /** Opcode VEX.66.0F38 0x40. */
|
---|
771 | FNIEMOP_DEF(iemOp_vpmulld_Vx_Hx_Wx)
|
---|
772 | {
|
---|
773 | IEMOP_MNEMONIC3(VEX_RVM, VPMULLD, vpmulld, Vx, Hx, Wx, DISOPTYPE_HARMLESS, 0);
|
---|
774 | IEMOPMEDIAOPTF3_INIT_VARS(vpmulld);
|
---|
775 | return FNIEMOP_CALL_1(iemOpCommonAvxAvx2_Vx_Hx_Wx_Opt, IEM_SELECT_HOST_OR_FALLBACK(fAvx2, &s_Host, &s_Fallback));
|
---|
776 | }
|
---|
777 |
|
---|
778 |
|
---|
779 | /** Opcode VEX.66.0F38 0x41. */
|
---|
780 | FNIEMOP_DEF(iemOp_vphminposuw_Vdq_Wdq)
|
---|
781 | {
|
---|
782 | IEMOP_MNEMONIC2(VEX_RM, VPHMINPOSUW, vphminposuw, Vdq, Wdq, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
783 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
784 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
785 | {
|
---|
786 | /*
|
---|
787 | * Register, register.
|
---|
788 | */
|
---|
789 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fAvx);
|
---|
790 | IEM_MC_BEGIN(2, 0);
|
---|
791 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
792 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
793 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
794 | IEM_MC_PREPARE_AVX_USAGE();
|
---|
795 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
796 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
797 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fAvx, iemAImpl_vphminposuw_u128, iemAImpl_vphminposuw_u128_fallback),
|
---|
798 | puDst, puSrc);
|
---|
799 | IEM_MC_CLEAR_YREG_128_UP( IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
800 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
801 | IEM_MC_END();
|
---|
802 | }
|
---|
803 | else
|
---|
804 | {
|
---|
805 | /*
|
---|
806 | * Register, memory.
|
---|
807 | */
|
---|
808 | IEM_MC_BEGIN(2, 2);
|
---|
809 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
810 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
811 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
812 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
813 |
|
---|
814 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
815 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fAvx);
|
---|
816 | IEM_MC_MAYBE_RAISE_AVX_RELATED_XCPT();
|
---|
817 | IEM_MC_PREPARE_AVX_USAGE();
|
---|
818 |
|
---|
819 | IEM_MC_FETCH_MEM_U128_NO_AC(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
820 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
821 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fAvx, iemAImpl_vphminposuw_u128, iemAImpl_vphminposuw_u128_fallback),
|
---|
822 | puDst, puSrc);
|
---|
823 | IEM_MC_CLEAR_YREG_128_UP( IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
824 |
|
---|
825 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
826 | IEM_MC_END();
|
---|
827 | }
|
---|
828 | }
|
---|
829 |
|
---|
830 |
|
---|
831 | /* Opcode VEX.66.0F38 0x42 - invalid. */
|
---|
832 | /* Opcode VEX.66.0F38 0x43 - invalid. */
|
---|
833 | /* Opcode VEX.66.0F38 0x44 - invalid. */
|
---|
834 | /** Opcode VEX.66.0F38 0x45. */
|
---|
835 | FNIEMOP_STUB(iemOp_vpsrlvd_q_Vx_Hx_Wx);
|
---|
836 | /** Opcode VEX.66.0F38 0x46. */
|
---|
837 | FNIEMOP_STUB(iemOp_vsravd_Vx_Hx_Wx);
|
---|
838 | /** Opcode VEX.66.0F38 0x47. */
|
---|
839 | FNIEMOP_STUB(iemOp_vpsllvd_q_Vx_Hx_Wx);
|
---|
840 | /* Opcode VEX.66.0F38 0x48 - invalid. */
|
---|
841 | /* Opcode VEX.66.0F38 0x49 - invalid. */
|
---|
842 | /* Opcode VEX.66.0F38 0x4a - invalid. */
|
---|
843 | /* Opcode VEX.66.0F38 0x4b - invalid. */
|
---|
844 | /* Opcode VEX.66.0F38 0x4c - invalid. */
|
---|
845 | /* Opcode VEX.66.0F38 0x4d - invalid. */
|
---|
846 | /* Opcode VEX.66.0F38 0x4e - invalid. */
|
---|
847 | /* Opcode VEX.66.0F38 0x4f - invalid. */
|
---|
848 |
|
---|
849 | /* Opcode VEX.66.0F38 0x50 - invalid. */
|
---|
850 | /* Opcode VEX.66.0F38 0x51 - invalid. */
|
---|
851 | /* Opcode VEX.66.0F38 0x52 - invalid. */
|
---|
852 | /* Opcode VEX.66.0F38 0x53 - invalid. */
|
---|
853 | /* Opcode VEX.66.0F38 0x54 - invalid. */
|
---|
854 | /* Opcode VEX.66.0F38 0x55 - invalid. */
|
---|
855 | /* Opcode VEX.66.0F38 0x56 - invalid. */
|
---|
856 | /* Opcode VEX.66.0F38 0x57 - invalid. */
|
---|
857 | /** Opcode VEX.66.0F38 0x58. */
|
---|
858 | FNIEMOP_STUB(iemOp_vpbroadcastd_Vx_Wx);
|
---|
859 | /** Opcode VEX.66.0F38 0x59. */
|
---|
860 | FNIEMOP_STUB(iemOp_vpbroadcastq_Vx_Wx);
|
---|
861 | /** Opcode VEX.66.0F38 0x5a. */
|
---|
862 | FNIEMOP_STUB(iemOp_vbroadcasti128_Vqq_Mdq);
|
---|
863 | /* Opcode VEX.66.0F38 0x5b - invalid. */
|
---|
864 | /* Opcode VEX.66.0F38 0x5c - invalid. */
|
---|
865 | /* Opcode VEX.66.0F38 0x5d - invalid. */
|
---|
866 | /* Opcode VEX.66.0F38 0x5e - invalid. */
|
---|
867 | /* Opcode VEX.66.0F38 0x5f - invalid. */
|
---|
868 |
|
---|
869 | /* Opcode VEX.66.0F38 0x60 - invalid. */
|
---|
870 | /* Opcode VEX.66.0F38 0x61 - invalid. */
|
---|
871 | /* Opcode VEX.66.0F38 0x62 - invalid. */
|
---|
872 | /* Opcode VEX.66.0F38 0x63 - invalid. */
|
---|
873 | /* Opcode VEX.66.0F38 0x64 - invalid. */
|
---|
874 | /* Opcode VEX.66.0F38 0x65 - invalid. */
|
---|
875 | /* Opcode VEX.66.0F38 0x66 - invalid. */
|
---|
876 | /* Opcode VEX.66.0F38 0x67 - invalid. */
|
---|
877 | /* Opcode VEX.66.0F38 0x68 - invalid. */
|
---|
878 | /* Opcode VEX.66.0F38 0x69 - invalid. */
|
---|
879 | /* Opcode VEX.66.0F38 0x6a - invalid. */
|
---|
880 | /* Opcode VEX.66.0F38 0x6b - invalid. */
|
---|
881 | /* Opcode VEX.66.0F38 0x6c - invalid. */
|
---|
882 | /* Opcode VEX.66.0F38 0x6d - invalid. */
|
---|
883 | /* Opcode VEX.66.0F38 0x6e - invalid. */
|
---|
884 | /* Opcode VEX.66.0F38 0x6f - invalid. */
|
---|
885 |
|
---|
886 | /* Opcode VEX.66.0F38 0x70 - invalid. */
|
---|
887 | /* Opcode VEX.66.0F38 0x71 - invalid. */
|
---|
888 | /* Opcode VEX.66.0F38 0x72 - invalid. */
|
---|
889 | /* Opcode VEX.66.0F38 0x73 - invalid. */
|
---|
890 | /* Opcode VEX.66.0F38 0x74 - invalid. */
|
---|
891 | /* Opcode VEX.66.0F38 0x75 - invalid. */
|
---|
892 | /* Opcode VEX.66.0F38 0x76 - invalid. */
|
---|
893 | /* Opcode VEX.66.0F38 0x77 - invalid. */
|
---|
894 | /** Opcode VEX.66.0F38 0x78. */
|
---|
895 | FNIEMOP_STUB(iemOp_vpbroadcastb_Vx_Wx);
|
---|
896 | /** Opcode VEX.66.0F38 0x79. */
|
---|
897 | FNIEMOP_STUB(iemOp_vpbroadcastw_Vx_Wx);
|
---|
898 | /* Opcode VEX.66.0F38 0x7a - invalid. */
|
---|
899 | /* Opcode VEX.66.0F38 0x7b - invalid. */
|
---|
900 | /* Opcode VEX.66.0F38 0x7c - invalid. */
|
---|
901 | /* Opcode VEX.66.0F38 0x7d - invalid. */
|
---|
902 | /* Opcode VEX.66.0F38 0x7e - invalid. */
|
---|
903 | /* Opcode VEX.66.0F38 0x7f - invalid. */
|
---|
904 |
|
---|
905 | /* Opcode VEX.66.0F38 0x80 - invalid (legacy only). */
|
---|
906 | /* Opcode VEX.66.0F38 0x81 - invalid (legacy only). */
|
---|
907 | /* Opcode VEX.66.0F38 0x82 - invalid (legacy only). */
|
---|
908 | /* Opcode VEX.66.0F38 0x83 - invalid. */
|
---|
909 | /* Opcode VEX.66.0F38 0x84 - invalid. */
|
---|
910 | /* Opcode VEX.66.0F38 0x85 - invalid. */
|
---|
911 | /* Opcode VEX.66.0F38 0x86 - invalid. */
|
---|
912 | /* Opcode VEX.66.0F38 0x87 - invalid. */
|
---|
913 | /* Opcode VEX.66.0F38 0x88 - invalid. */
|
---|
914 | /* Opcode VEX.66.0F38 0x89 - invalid. */
|
---|
915 | /* Opcode VEX.66.0F38 0x8a - invalid. */
|
---|
916 | /* Opcode VEX.66.0F38 0x8b - invalid. */
|
---|
917 | /** Opcode VEX.66.0F38 0x8c. */
|
---|
918 | FNIEMOP_STUB(iemOp_vpmaskmovd_q_Vx_Hx_Mx);
|
---|
919 | /* Opcode VEX.66.0F38 0x8d - invalid. */
|
---|
920 | /** Opcode VEX.66.0F38 0x8e. */
|
---|
921 | FNIEMOP_STUB(iemOp_vpmaskmovd_q_Mx_Vx_Hx);
|
---|
922 | /* Opcode VEX.66.0F38 0x8f - invalid. */
|
---|
923 |
|
---|
924 | /** Opcode VEX.66.0F38 0x90 (vex only). */
|
---|
925 | FNIEMOP_STUB(iemOp_vgatherdd_q_Vx_Hx_Wx);
|
---|
926 | /** Opcode VEX.66.0F38 0x91 (vex only). */
|
---|
927 | FNIEMOP_STUB(iemOp_vgatherqd_q_Vx_Hx_Wx);
|
---|
928 | /** Opcode VEX.66.0F38 0x92 (vex only). */
|
---|
929 | FNIEMOP_STUB(iemOp_vgatherdps_d_Vx_Hx_Wx);
|
---|
930 | /** Opcode VEX.66.0F38 0x93 (vex only). */
|
---|
931 | FNIEMOP_STUB(iemOp_vgatherqps_d_Vx_Hx_Wx);
|
---|
932 | /* Opcode VEX.66.0F38 0x94 - invalid. */
|
---|
933 | /* Opcode VEX.66.0F38 0x95 - invalid. */
|
---|
934 | /** Opcode VEX.66.0F38 0x96 (vex only). */
|
---|
935 | FNIEMOP_STUB(iemOp_vfmaddsub132ps_q_Vx_Hx_Wx);
|
---|
936 | /** Opcode VEX.66.0F38 0x97 (vex only). */
|
---|
937 | FNIEMOP_STUB(iemOp_vfmsubadd132ps_d_Vx_Hx_Wx);
|
---|
938 | /** Opcode VEX.66.0F38 0x98 (vex only). */
|
---|
939 | FNIEMOP_STUB(iemOp_vfmadd132ps_d_Vx_Hx_Wx);
|
---|
940 | /** Opcode VEX.66.0F38 0x99 (vex only). */
|
---|
941 | FNIEMOP_STUB(iemOp_vfmadd132ss_d_Vx_Hx_Wx);
|
---|
942 | /** Opcode VEX.66.0F38 0x9a (vex only). */
|
---|
943 | FNIEMOP_STUB(iemOp_vfmsub132ps_d_Vx_Hx_Wx);
|
---|
944 | /** Opcode VEX.66.0F38 0x9b (vex only). */
|
---|
945 | FNIEMOP_STUB(iemOp_vfmsub132ss_d_Vx_Hx_Wx);
|
---|
946 | /** Opcode VEX.66.0F38 0x9c (vex only). */
|
---|
947 | FNIEMOP_STUB(iemOp_vfnmadd132ps_d_Vx_Hx_Wx);
|
---|
948 | /** Opcode VEX.66.0F38 0x9d (vex only). */
|
---|
949 | FNIEMOP_STUB(iemOp_vfnmadd132ss_d_Vx_Hx_Wx);
|
---|
950 | /** Opcode VEX.66.0F38 0x9e (vex only). */
|
---|
951 | FNIEMOP_STUB(iemOp_vfnmsub132ps_d_Vx_Hx_Wx);
|
---|
952 | /** Opcode VEX.66.0F38 0x9f (vex only). */
|
---|
953 | FNIEMOP_STUB(iemOp_vfnmsub132ss_d_Vx_Hx_Wx);
|
---|
954 |
|
---|
955 | /* Opcode VEX.66.0F38 0xa0 - invalid. */
|
---|
956 | /* Opcode VEX.66.0F38 0xa1 - invalid. */
|
---|
957 | /* Opcode VEX.66.0F38 0xa2 - invalid. */
|
---|
958 | /* Opcode VEX.66.0F38 0xa3 - invalid. */
|
---|
959 | /* Opcode VEX.66.0F38 0xa4 - invalid. */
|
---|
960 | /* Opcode VEX.66.0F38 0xa5 - invalid. */
|
---|
961 | /** Opcode VEX.66.0F38 0xa6 (vex only). */
|
---|
962 | FNIEMOP_STUB(iemOp_vfmaddsub213ps_d_Vx_Hx_Wx);
|
---|
963 | /** Opcode VEX.66.0F38 0xa7 (vex only). */
|
---|
964 | FNIEMOP_STUB(iemOp_vfmsubadd213ps_d_Vx_Hx_Wx);
|
---|
965 | /** Opcode VEX.66.0F38 0xa8 (vex only). */
|
---|
966 | FNIEMOP_STUB(iemOp_vfmadd213ps_d_Vx_Hx_Wx);
|
---|
967 | /** Opcode VEX.66.0F38 0xa9 (vex only). */
|
---|
968 | FNIEMOP_STUB(iemOp_vfmadd213ss_d_Vx_Hx_Wx);
|
---|
969 | /** Opcode VEX.66.0F38 0xaa (vex only). */
|
---|
970 | FNIEMOP_STUB(iemOp_vfmsub213ps_d_Vx_Hx_Wx);
|
---|
971 | /** Opcode VEX.66.0F38 0xab (vex only). */
|
---|
972 | FNIEMOP_STUB(iemOp_vfmsub213ss_d_Vx_Hx_Wx);
|
---|
973 | /** Opcode VEX.66.0F38 0xac (vex only). */
|
---|
974 | FNIEMOP_STUB(iemOp_vfnmadd213ps_d_Vx_Hx_Wx);
|
---|
975 | /** Opcode VEX.66.0F38 0xad (vex only). */
|
---|
976 | FNIEMOP_STUB(iemOp_vfnmadd213ss_d_Vx_Hx_Wx);
|
---|
977 | /** Opcode VEX.66.0F38 0xae (vex only). */
|
---|
978 | FNIEMOP_STUB(iemOp_vfnmsub213ps_d_Vx_Hx_Wx);
|
---|
979 | /** Opcode VEX.66.0F38 0xaf (vex only). */
|
---|
980 | FNIEMOP_STUB(iemOp_vfnmsub213ss_d_Vx_Hx_Wx);
|
---|
981 |
|
---|
982 | /* Opcode VEX.66.0F38 0xb0 - invalid. */
|
---|
983 | /* Opcode VEX.66.0F38 0xb1 - invalid. */
|
---|
984 | /* Opcode VEX.66.0F38 0xb2 - invalid. */
|
---|
985 | /* Opcode VEX.66.0F38 0xb3 - invalid. */
|
---|
986 | /* Opcode VEX.66.0F38 0xb4 - invalid. */
|
---|
987 | /* Opcode VEX.66.0F38 0xb5 - invalid. */
|
---|
988 | /** Opcode VEX.66.0F38 0xb6 (vex only). */
|
---|
989 | FNIEMOP_STUB(iemOp_vfmaddsub231ps_d_Vx_Hx_Wx);
|
---|
990 | /** Opcode VEX.66.0F38 0xb7 (vex only). */
|
---|
991 | FNIEMOP_STUB(iemOp_vfmsubadd231ps_d_Vx_Hx_Wx);
|
---|
992 | /** Opcode VEX.66.0F38 0xb8 (vex only). */
|
---|
993 | FNIEMOP_STUB(iemOp_vfmadd231ps_d_Vx_Hx_Wx);
|
---|
994 | /** Opcode VEX.66.0F38 0xb9 (vex only). */
|
---|
995 | FNIEMOP_STUB(iemOp_vfmadd231ss_d_Vx_Hx_Wx);
|
---|
996 | /** Opcode VEX.66.0F38 0xba (vex only). */
|
---|
997 | FNIEMOP_STUB(iemOp_vfmsub231ps_d_Vx_Hx_Wx);
|
---|
998 | /** Opcode VEX.66.0F38 0xbb (vex only). */
|
---|
999 | FNIEMOP_STUB(iemOp_vfmsub231ss_d_Vx_Hx_Wx);
|
---|
1000 | /** Opcode VEX.66.0F38 0xbc (vex only). */
|
---|
1001 | FNIEMOP_STUB(iemOp_vfnmadd231ps_d_Vx_Hx_Wx);
|
---|
1002 | /** Opcode VEX.66.0F38 0xbd (vex only). */
|
---|
1003 | FNIEMOP_STUB(iemOp_vfnmadd231ss_d_Vx_Hx_Wx);
|
---|
1004 | /** Opcode VEX.66.0F38 0xbe (vex only). */
|
---|
1005 | FNIEMOP_STUB(iemOp_vfnmsub231ps_d_Vx_Hx_Wx);
|
---|
1006 | /** Opcode VEX.66.0F38 0xbf (vex only). */
|
---|
1007 | FNIEMOP_STUB(iemOp_vfnmsub231ss_d_Vx_Hx_Wx);
|
---|
1008 |
|
---|
1009 | /* Opcode VEX.0F38 0xc0 - invalid. */
|
---|
1010 | /* Opcode VEX.66.0F38 0xc0 - invalid. */
|
---|
1011 | /* Opcode VEX.0F38 0xc1 - invalid. */
|
---|
1012 | /* Opcode VEX.66.0F38 0xc1 - invalid. */
|
---|
1013 | /* Opcode VEX.0F38 0xc2 - invalid. */
|
---|
1014 | /* Opcode VEX.66.0F38 0xc2 - invalid. */
|
---|
1015 | /* Opcode VEX.0F38 0xc3 - invalid. */
|
---|
1016 | /* Opcode VEX.66.0F38 0xc3 - invalid. */
|
---|
1017 | /* Opcode VEX.0F38 0xc4 - invalid. */
|
---|
1018 | /* Opcode VEX.66.0F38 0xc4 - invalid. */
|
---|
1019 | /* Opcode VEX.0F38 0xc5 - invalid. */
|
---|
1020 | /* Opcode VEX.66.0F38 0xc5 - invalid. */
|
---|
1021 | /* Opcode VEX.0F38 0xc6 - invalid. */
|
---|
1022 | /* Opcode VEX.66.0F38 0xc6 - invalid. */
|
---|
1023 | /* Opcode VEX.0F38 0xc7 - invalid. */
|
---|
1024 | /* Opcode VEX.66.0F38 0xc7 - invalid. */
|
---|
1025 | /** Opcode VEX.0F38 0xc8. */
|
---|
1026 | FNIEMOP_STUB(iemOp_vsha1nexte_Vdq_Wdq);
|
---|
1027 | /* Opcode VEX.66.0F38 0xc8 - invalid. */
|
---|
1028 | /** Opcode VEX.0F38 0xc9. */
|
---|
1029 | FNIEMOP_STUB(iemOp_vsha1msg1_Vdq_Wdq);
|
---|
1030 | /* Opcode VEX.66.0F38 0xc9 - invalid. */
|
---|
1031 | /** Opcode VEX.0F38 0xca. */
|
---|
1032 | FNIEMOP_STUB(iemOp_vsha1msg2_Vdq_Wdq);
|
---|
1033 | /* Opcode VEX.66.0F38 0xca - invalid. */
|
---|
1034 | /** Opcode VEX.0F38 0xcb. */
|
---|
1035 | FNIEMOP_STUB(iemOp_vsha256rnds2_Vdq_Wdq);
|
---|
1036 | /* Opcode VEX.66.0F38 0xcb - invalid. */
|
---|
1037 | /** Opcode VEX.0F38 0xcc. */
|
---|
1038 | FNIEMOP_STUB(iemOp_vsha256msg1_Vdq_Wdq);
|
---|
1039 | /* Opcode VEX.66.0F38 0xcc - invalid. */
|
---|
1040 | /** Opcode VEX.0F38 0xcd. */
|
---|
1041 | FNIEMOP_STUB(iemOp_vsha256msg2_Vdq_Wdq);
|
---|
1042 | /* Opcode VEX.66.0F38 0xcd - invalid. */
|
---|
1043 | /* Opcode VEX.0F38 0xce - invalid. */
|
---|
1044 | /* Opcode VEX.66.0F38 0xce - invalid. */
|
---|
1045 | /* Opcode VEX.0F38 0xcf - invalid. */
|
---|
1046 | /* Opcode VEX.66.0F38 0xcf - invalid. */
|
---|
1047 |
|
---|
1048 | /* Opcode VEX.66.0F38 0xd0 - invalid. */
|
---|
1049 | /* Opcode VEX.66.0F38 0xd1 - invalid. */
|
---|
1050 | /* Opcode VEX.66.0F38 0xd2 - invalid. */
|
---|
1051 | /* Opcode VEX.66.0F38 0xd3 - invalid. */
|
---|
1052 | /* Opcode VEX.66.0F38 0xd4 - invalid. */
|
---|
1053 | /* Opcode VEX.66.0F38 0xd5 - invalid. */
|
---|
1054 | /* Opcode VEX.66.0F38 0xd6 - invalid. */
|
---|
1055 | /* Opcode VEX.66.0F38 0xd7 - invalid. */
|
---|
1056 | /* Opcode VEX.66.0F38 0xd8 - invalid. */
|
---|
1057 | /* Opcode VEX.66.0F38 0xd9 - invalid. */
|
---|
1058 | /* Opcode VEX.66.0F38 0xda - invalid. */
|
---|
1059 | /** Opcode VEX.66.0F38 0xdb. */
|
---|
1060 | FNIEMOP_STUB(iemOp_vaesimc_Vdq_Wdq);
|
---|
1061 | /** Opcode VEX.66.0F38 0xdc. */
|
---|
1062 | FNIEMOP_STUB(iemOp_vaesenc_Vdq_Wdq);
|
---|
1063 | /** Opcode VEX.66.0F38 0xdd. */
|
---|
1064 | FNIEMOP_STUB(iemOp_vaesenclast_Vdq_Wdq);
|
---|
1065 | /** Opcode VEX.66.0F38 0xde. */
|
---|
1066 | FNIEMOP_STUB(iemOp_vaesdec_Vdq_Wdq);
|
---|
1067 | /** Opcode VEX.66.0F38 0xdf. */
|
---|
1068 | FNIEMOP_STUB(iemOp_vaesdeclast_Vdq_Wdq);
|
---|
1069 |
|
---|
1070 | /* Opcode VEX.66.0F38 0xe0 - invalid. */
|
---|
1071 | /* Opcode VEX.66.0F38 0xe1 - invalid. */
|
---|
1072 | /* Opcode VEX.66.0F38 0xe2 - invalid. */
|
---|
1073 | /* Opcode VEX.66.0F38 0xe3 - invalid. */
|
---|
1074 | /* Opcode VEX.66.0F38 0xe4 - invalid. */
|
---|
1075 | /* Opcode VEX.66.0F38 0xe5 - invalid. */
|
---|
1076 | /* Opcode VEX.66.0F38 0xe6 - invalid. */
|
---|
1077 | /* Opcode VEX.66.0F38 0xe7 - invalid. */
|
---|
1078 | /* Opcode VEX.66.0F38 0xe8 - invalid. */
|
---|
1079 | /* Opcode VEX.66.0F38 0xe9 - invalid. */
|
---|
1080 | /* Opcode VEX.66.0F38 0xea - invalid. */
|
---|
1081 | /* Opcode VEX.66.0F38 0xeb - invalid. */
|
---|
1082 | /* Opcode VEX.66.0F38 0xec - invalid. */
|
---|
1083 | /* Opcode VEX.66.0F38 0xed - invalid. */
|
---|
1084 | /* Opcode VEX.66.0F38 0xee - invalid. */
|
---|
1085 | /* Opcode VEX.66.0F38 0xef - invalid. */
|
---|
1086 |
|
---|
1087 |
|
---|
1088 | /* Opcode VEX.0F38 0xf0 - invalid (legacy only). */
|
---|
1089 | /* Opcode VEX.66.0F38 0xf0 - invalid (legacy only). */
|
---|
1090 | /* Opcode VEX.F3.0F38 0xf0 - invalid. */
|
---|
1091 | /* Opcode VEX.F2.0F38 0xf0 - invalid (legacy only). */
|
---|
1092 |
|
---|
1093 | /* Opcode VEX.0F38 0xf1 - invalid (legacy only). */
|
---|
1094 | /* Opcode VEX.66.0F38 0xf1 - invalid (legacy only). */
|
---|
1095 | /* Opcode VEX.F3.0F38 0xf1 - invalid. */
|
---|
1096 | /* Opcode VEX.F2.0F38 0xf1 - invalid (legacy only). */
|
---|
1097 |
|
---|
1098 | /** Opcode VEX.0F38 0xf2 - ANDN (vex only). */
|
---|
1099 | FNIEMOP_DEF(iemOp_andn_Gy_By_Ey)
|
---|
1100 | {
|
---|
1101 | IEMOP_MNEMONIC3(VEX_RVM, ANDN, andn, Gy, By, Ey, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1102 | IEMOP_VERIFICATION_UNDEFINED_EFLAGS(X86_EFL_AF | X86_EFL_PF);
|
---|
1103 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1104 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1105 | {
|
---|
1106 | /*
|
---|
1107 | * Register, register.
|
---|
1108 | */
|
---|
1109 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi1);
|
---|
1110 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W)
|
---|
1111 | {
|
---|
1112 | IEM_MC_BEGIN(4, 0);
|
---|
1113 | IEM_MC_ARG(uint64_t *, pDst, 0);
|
---|
1114 | IEM_MC_ARG(uint64_t, uSrc1, 1);
|
---|
1115 | IEM_MC_ARG(uint64_t, uSrc2, 2);
|
---|
1116 | IEM_MC_ARG(uint32_t *, pEFlags, 3);
|
---|
1117 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1118 | IEM_MC_FETCH_GREG_U64(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1119 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1120 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
1121 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_andn_u64, iemAImpl_andn_u64_fallback),
|
---|
1122 | pDst, uSrc1, uSrc2, pEFlags);
|
---|
1123 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1124 | IEM_MC_END();
|
---|
1125 | }
|
---|
1126 | else
|
---|
1127 | {
|
---|
1128 | IEM_MC_BEGIN(4, 0);
|
---|
1129 | IEM_MC_ARG(uint32_t *, pDst, 0);
|
---|
1130 | IEM_MC_ARG(uint32_t, uSrc1, 1);
|
---|
1131 | IEM_MC_ARG(uint32_t, uSrc2, 2);
|
---|
1132 | IEM_MC_ARG(uint32_t *, pEFlags, 3);
|
---|
1133 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1134 | IEM_MC_FETCH_GREG_U32(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1135 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1136 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
1137 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_andn_u32, iemAImpl_andn_u32_fallback),
|
---|
1138 | pDst, uSrc1, uSrc2, pEFlags);
|
---|
1139 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst);
|
---|
1140 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1141 | IEM_MC_END();
|
---|
1142 | }
|
---|
1143 | }
|
---|
1144 | else
|
---|
1145 | {
|
---|
1146 | /*
|
---|
1147 | * Register, memory.
|
---|
1148 | */
|
---|
1149 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W)
|
---|
1150 | {
|
---|
1151 | IEM_MC_BEGIN(4, 1);
|
---|
1152 | IEM_MC_ARG(uint64_t *, pDst, 0);
|
---|
1153 | IEM_MC_ARG(uint64_t, uSrc1, 1);
|
---|
1154 | IEM_MC_ARG(uint64_t, uSrc2, 2);
|
---|
1155 | IEM_MC_ARG(uint32_t *, pEFlags, 3);
|
---|
1156 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1157 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1158 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi1);
|
---|
1159 | IEM_MC_FETCH_MEM_U64(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1160 | IEM_MC_FETCH_GREG_U64(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1161 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1162 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
1163 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_andn_u64, iemAImpl_andn_u64_fallback),
|
---|
1164 | pDst, uSrc1, uSrc2, pEFlags);
|
---|
1165 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1166 | IEM_MC_END();
|
---|
1167 | }
|
---|
1168 | else
|
---|
1169 | {
|
---|
1170 | IEM_MC_BEGIN(4, 1);
|
---|
1171 | IEM_MC_ARG(uint32_t *, pDst, 0);
|
---|
1172 | IEM_MC_ARG(uint32_t, uSrc1, 1);
|
---|
1173 | IEM_MC_ARG(uint32_t, uSrc2, 2);
|
---|
1174 | IEM_MC_ARG(uint32_t *, pEFlags, 3);
|
---|
1175 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1176 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1177 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi1);
|
---|
1178 | IEM_MC_FETCH_MEM_U32(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1179 | IEM_MC_FETCH_GREG_U32(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1180 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1181 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
1182 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_andn_u32, iemAImpl_andn_u32_fallback),
|
---|
1183 | pDst, uSrc1, uSrc2, pEFlags);
|
---|
1184 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst);
|
---|
1185 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1186 | IEM_MC_END();
|
---|
1187 | }
|
---|
1188 | }
|
---|
1189 | }
|
---|
1190 |
|
---|
1191 | /* Opcode VEX.66.0F38 0xf2 - invalid. */
|
---|
1192 | /* Opcode VEX.F3.0F38 0xf2 - invalid. */
|
---|
1193 | /* Opcode VEX.F2.0F38 0xf2 - invalid. */
|
---|
1194 |
|
---|
1195 |
|
---|
1196 | /* Opcode VEX.0F38 0xf3 - invalid. */
|
---|
1197 | /* Opcode VEX.66.0F38 0xf3 - invalid. */
|
---|
1198 |
|
---|
1199 | /* Opcode VEX.F3.0F38 0xf3 /0 - invalid. */
|
---|
1200 |
|
---|
1201 | /** Body for the vex group 17 instructions. */
|
---|
1202 | #define IEMOP_BODY_By_Ey(a_Instr) \
|
---|
1203 | IEMOP_VERIFICATION_UNDEFINED_EFLAGS(X86_EFL_AF | X86_EFL_PF); \
|
---|
1204 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
1205 | { \
|
---|
1206 | /* \
|
---|
1207 | * Register, register. \
|
---|
1208 | */ \
|
---|
1209 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi1); \
|
---|
1210 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1211 | { \
|
---|
1212 | IEM_MC_BEGIN(3, 0); \
|
---|
1213 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1214 | IEM_MC_ARG(uint64_t, uSrc, 1); \
|
---|
1215 | IEM_MC_ARG(uint32_t *, pEFlags, 2); \
|
---|
1216 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1217 | IEM_MC_FETCH_GREG_U64(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1218 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1219 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_ ## a_Instr ## _u64, \
|
---|
1220 | iemAImpl_ ## a_Instr ## _u64_fallback), pDst, uSrc, pEFlags); \
|
---|
1221 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1222 | IEM_MC_END(); \
|
---|
1223 | } \
|
---|
1224 | else \
|
---|
1225 | { \
|
---|
1226 | IEM_MC_BEGIN(3, 0); \
|
---|
1227 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1228 | IEM_MC_ARG(uint32_t, uSrc, 1); \
|
---|
1229 | IEM_MC_ARG(uint32_t *, pEFlags, 2); \
|
---|
1230 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1231 | IEM_MC_FETCH_GREG_U32(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1232 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1233 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_ ## a_Instr ## _u32, \
|
---|
1234 | iemAImpl_ ## a_Instr ## _u32_fallback), pDst, uSrc, pEFlags); \
|
---|
1235 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1236 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1237 | IEM_MC_END(); \
|
---|
1238 | } \
|
---|
1239 | } \
|
---|
1240 | else \
|
---|
1241 | { \
|
---|
1242 | /* \
|
---|
1243 | * Register, memory. \
|
---|
1244 | */ \
|
---|
1245 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1246 | { \
|
---|
1247 | IEM_MC_BEGIN(3, 1); \
|
---|
1248 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1249 | IEM_MC_ARG(uint64_t, uSrc, 1); \
|
---|
1250 | IEM_MC_ARG(uint32_t *, pEFlags, 2); \
|
---|
1251 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1252 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1253 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi1); \
|
---|
1254 | IEM_MC_FETCH_MEM_U64(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1255 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1256 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1257 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_ ## a_Instr ## _u64, \
|
---|
1258 | iemAImpl_ ## a_Instr ## _u64_fallback), pDst, uSrc, pEFlags); \
|
---|
1259 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1260 | IEM_MC_END(); \
|
---|
1261 | } \
|
---|
1262 | else \
|
---|
1263 | { \
|
---|
1264 | IEM_MC_BEGIN(3, 1); \
|
---|
1265 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1266 | IEM_MC_ARG(uint32_t, uSrc, 1); \
|
---|
1267 | IEM_MC_ARG(uint32_t *, pEFlags, 2); \
|
---|
1268 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1269 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1270 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi1); \
|
---|
1271 | IEM_MC_FETCH_MEM_U32(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1272 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1273 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1274 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fBmi1, iemAImpl_ ## a_Instr ## _u32, \
|
---|
1275 | iemAImpl_ ## a_Instr ## _u32_fallback), pDst, uSrc, pEFlags); \
|
---|
1276 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1277 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1278 | IEM_MC_END(); \
|
---|
1279 | } \
|
---|
1280 | } \
|
---|
1281 | (void)0
|
---|
1282 |
|
---|
1283 |
|
---|
1284 | /* Opcode VEX.F3.0F38 0xf3 /1. */
|
---|
1285 | /** @opcode /1
|
---|
1286 | * @opmaps vexgrp17 */
|
---|
1287 | FNIEMOP_DEF_1(iemOp_VGrp17_blsr_By_Ey, uint8_t, bRm)
|
---|
1288 | {
|
---|
1289 | IEMOP_MNEMONIC2(VEX_VM, BLSR, blsr, By, Ey, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1290 | IEMOP_BODY_By_Ey(blsr);
|
---|
1291 | }
|
---|
1292 |
|
---|
1293 |
|
---|
1294 | /* Opcode VEX.F3.0F38 0xf3 /2. */
|
---|
1295 | /** @opcode /2
|
---|
1296 | * @opmaps vexgrp17 */
|
---|
1297 | FNIEMOP_DEF_1(iemOp_VGrp17_blsmsk_By_Ey, uint8_t, bRm)
|
---|
1298 | {
|
---|
1299 | IEMOP_MNEMONIC2(VEX_VM, BLSMSK, blsmsk, By, Ey, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1300 | IEMOP_BODY_By_Ey(blsmsk);
|
---|
1301 | }
|
---|
1302 |
|
---|
1303 |
|
---|
1304 | /* Opcode VEX.F3.0F38 0xf3 /3. */
|
---|
1305 | /** @opcode /3
|
---|
1306 | * @opmaps vexgrp17 */
|
---|
1307 | FNIEMOP_DEF_1(iemOp_VGrp17_blsi_By_Ey, uint8_t, bRm)
|
---|
1308 | {
|
---|
1309 | IEMOP_MNEMONIC2(VEX_VM, BLSI, blsi, By, Ey, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1310 | IEMOP_BODY_By_Ey(blsi);
|
---|
1311 | }
|
---|
1312 |
|
---|
1313 |
|
---|
1314 | /* Opcode VEX.F3.0F38 0xf3 /4 - invalid. */
|
---|
1315 | /* Opcode VEX.F3.0F38 0xf3 /5 - invalid. */
|
---|
1316 | /* Opcode VEX.F3.0F38 0xf3 /6 - invalid. */
|
---|
1317 | /* Opcode VEX.F3.0F38 0xf3 /7 - invalid. */
|
---|
1318 |
|
---|
1319 | /**
|
---|
1320 | * Group 17 jump table for the VEX.F3 variant.
|
---|
1321 | */
|
---|
1322 | IEM_STATIC const PFNIEMOPRM g_apfnVexGroup17_f3[] =
|
---|
1323 | {
|
---|
1324 | /* /0 */ iemOp_InvalidWithRM,
|
---|
1325 | /* /1 */ iemOp_VGrp17_blsr_By_Ey,
|
---|
1326 | /* /2 */ iemOp_VGrp17_blsmsk_By_Ey,
|
---|
1327 | /* /3 */ iemOp_VGrp17_blsi_By_Ey,
|
---|
1328 | /* /4 */ iemOp_InvalidWithRM,
|
---|
1329 | /* /5 */ iemOp_InvalidWithRM,
|
---|
1330 | /* /6 */ iemOp_InvalidWithRM,
|
---|
1331 | /* /7 */ iemOp_InvalidWithRM
|
---|
1332 | };
|
---|
1333 | AssertCompile(RT_ELEMENTS(g_apfnVexGroup17_f3) == 8);
|
---|
1334 |
|
---|
1335 | /** Opcode VEX.F3.0F38 0xf3 - invalid (vex only - group 17). */
|
---|
1336 | FNIEMOP_DEF(iemOp_VGrp17_f3)
|
---|
1337 | {
|
---|
1338 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1339 | return FNIEMOP_CALL_1(g_apfnVexGroup17_f3[IEM_GET_MODRM_REG_8(bRm)], bRm);
|
---|
1340 | }
|
---|
1341 |
|
---|
1342 | /* Opcode VEX.F2.0F38 0xf3 - invalid (vex only - group 17). */
|
---|
1343 |
|
---|
1344 |
|
---|
1345 | /* Opcode VEX.0F38 0xf4 - invalid. */
|
---|
1346 | /* Opcode VEX.66.0F38 0xf4 - invalid. */
|
---|
1347 | /* Opcode VEX.F3.0F38 0xf4 - invalid. */
|
---|
1348 | /* Opcode VEX.F2.0F38 0xf4 - invalid. */
|
---|
1349 |
|
---|
1350 | /** Body for BZHI, BEXTR, ++; assumes VEX.L must be 0. */
|
---|
1351 | #define IEMOP_BODY_Gy_Ey_By(a_Instr, a_fFeatureMember, a_fUndefFlags) \
|
---|
1352 | IEMOP_VERIFICATION_UNDEFINED_EFLAGS(a_fUndefFlags); \
|
---|
1353 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
1354 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
1355 | { \
|
---|
1356 | /* \
|
---|
1357 | * Register, register. \
|
---|
1358 | */ \
|
---|
1359 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1360 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1361 | { \
|
---|
1362 | IEM_MC_BEGIN(4, 0); \
|
---|
1363 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1364 | IEM_MC_ARG(uint64_t, uSrc1, 1); \
|
---|
1365 | IEM_MC_ARG(uint64_t, uSrc2, 2); \
|
---|
1366 | IEM_MC_ARG(uint32_t *, pEFlags, 3); \
|
---|
1367 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1368 | IEM_MC_FETCH_GREG_U64(uSrc1, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1369 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1370 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1371 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u64, \
|
---|
1372 | iemAImpl_ ## a_Instr ## _u64_fallback), \
|
---|
1373 | pDst, uSrc1, uSrc2, pEFlags); \
|
---|
1374 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1375 | IEM_MC_END(); \
|
---|
1376 | } \
|
---|
1377 | else \
|
---|
1378 | { \
|
---|
1379 | IEM_MC_BEGIN(4, 0); \
|
---|
1380 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1381 | IEM_MC_ARG(uint32_t, uSrc1, 1); \
|
---|
1382 | IEM_MC_ARG(uint32_t, uSrc2, 2); \
|
---|
1383 | IEM_MC_ARG(uint32_t *, pEFlags, 3); \
|
---|
1384 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1385 | IEM_MC_FETCH_GREG_U32(uSrc1, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1386 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1387 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1388 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u32, \
|
---|
1389 | iemAImpl_ ## a_Instr ## _u32_fallback), \
|
---|
1390 | pDst, uSrc1, uSrc2, pEFlags); \
|
---|
1391 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1392 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1393 | IEM_MC_END(); \
|
---|
1394 | } \
|
---|
1395 | } \
|
---|
1396 | else \
|
---|
1397 | { \
|
---|
1398 | /* \
|
---|
1399 | * Register, memory. \
|
---|
1400 | */ \
|
---|
1401 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1402 | { \
|
---|
1403 | IEM_MC_BEGIN(4, 1); \
|
---|
1404 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1405 | IEM_MC_ARG(uint64_t, uSrc1, 1); \
|
---|
1406 | IEM_MC_ARG(uint64_t, uSrc2, 2); \
|
---|
1407 | IEM_MC_ARG(uint32_t *, pEFlags, 3); \
|
---|
1408 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1409 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1410 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1411 | IEM_MC_FETCH_MEM_U64(uSrc1, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1412 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1413 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1414 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1415 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u64, \
|
---|
1416 | iemAImpl_ ## a_Instr ## _u64_fallback), \
|
---|
1417 | pDst, uSrc1, uSrc2, pEFlags); \
|
---|
1418 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1419 | IEM_MC_END(); \
|
---|
1420 | } \
|
---|
1421 | else \
|
---|
1422 | { \
|
---|
1423 | IEM_MC_BEGIN(4, 1); \
|
---|
1424 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1425 | IEM_MC_ARG(uint32_t, uSrc1, 1); \
|
---|
1426 | IEM_MC_ARG(uint32_t, uSrc2, 2); \
|
---|
1427 | IEM_MC_ARG(uint32_t *, pEFlags, 3); \
|
---|
1428 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1429 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1430 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1431 | IEM_MC_FETCH_MEM_U32(uSrc1, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1432 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1433 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1434 | IEM_MC_REF_EFLAGS(pEFlags); \
|
---|
1435 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u32, \
|
---|
1436 | iemAImpl_ ## a_Instr ## _u32_fallback), \
|
---|
1437 | pDst, uSrc1, uSrc2, pEFlags); \
|
---|
1438 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1439 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1440 | IEM_MC_END(); \
|
---|
1441 | } \
|
---|
1442 | } \
|
---|
1443 | (void)0
|
---|
1444 |
|
---|
1445 | /** Body for SARX, SHLX, SHRX; assumes VEX.L must be 0. */
|
---|
1446 | #define IEMOP_BODY_Gy_Ey_By_NoEflags(a_Instr, a_fFeatureMember, a_fUndefFlags) \
|
---|
1447 | IEMOP_VERIFICATION_UNDEFINED_EFLAGS(a_fUndefFlags); \
|
---|
1448 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
1449 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
1450 | { \
|
---|
1451 | /* \
|
---|
1452 | * Register, register. \
|
---|
1453 | */ \
|
---|
1454 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1455 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1456 | { \
|
---|
1457 | IEM_MC_BEGIN(3, 0); \
|
---|
1458 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1459 | IEM_MC_ARG(uint64_t, uSrc1, 1); \
|
---|
1460 | IEM_MC_ARG(uint64_t, uSrc2, 2); \
|
---|
1461 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1462 | IEM_MC_FETCH_GREG_U64(uSrc1, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1463 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1464 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u64, \
|
---|
1465 | iemAImpl_ ## a_Instr ## _u64_fallback), pDst, uSrc1, uSrc2); \
|
---|
1466 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1467 | IEM_MC_END(); \
|
---|
1468 | } \
|
---|
1469 | else \
|
---|
1470 | { \
|
---|
1471 | IEM_MC_BEGIN(3, 0); \
|
---|
1472 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1473 | IEM_MC_ARG(uint32_t, uSrc1, 1); \
|
---|
1474 | IEM_MC_ARG(uint32_t, uSrc2, 2); \
|
---|
1475 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1476 | IEM_MC_FETCH_GREG_U32(uSrc1, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1477 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1478 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u32, \
|
---|
1479 | iemAImpl_ ## a_Instr ## _u32_fallback), pDst, uSrc1, uSrc2); \
|
---|
1480 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1481 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1482 | IEM_MC_END(); \
|
---|
1483 | } \
|
---|
1484 | } \
|
---|
1485 | else \
|
---|
1486 | { \
|
---|
1487 | /* \
|
---|
1488 | * Register, memory. \
|
---|
1489 | */ \
|
---|
1490 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1491 | { \
|
---|
1492 | IEM_MC_BEGIN(3, 1); \
|
---|
1493 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1494 | IEM_MC_ARG(uint64_t, uSrc1, 1); \
|
---|
1495 | IEM_MC_ARG(uint64_t, uSrc2, 2); \
|
---|
1496 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1497 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1498 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1499 | IEM_MC_FETCH_MEM_U64(uSrc1, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1500 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1501 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1502 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u64, \
|
---|
1503 | iemAImpl_ ## a_Instr ## _u64_fallback), pDst, uSrc1, uSrc2); \
|
---|
1504 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1505 | IEM_MC_END(); \
|
---|
1506 | } \
|
---|
1507 | else \
|
---|
1508 | { \
|
---|
1509 | IEM_MC_BEGIN(3, 1); \
|
---|
1510 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1511 | IEM_MC_ARG(uint32_t, uSrc1, 1); \
|
---|
1512 | IEM_MC_ARG(uint32_t, uSrc2, 2); \
|
---|
1513 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1514 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1515 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1516 | IEM_MC_FETCH_MEM_U32(uSrc1, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1517 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1518 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1519 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, iemAImpl_ ## a_Instr ## _u32, \
|
---|
1520 | iemAImpl_ ## a_Instr ## _u32_fallback), pDst, uSrc1, uSrc2); \
|
---|
1521 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1522 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1523 | IEM_MC_END(); \
|
---|
1524 | } \
|
---|
1525 | } \
|
---|
1526 | (void)0
|
---|
1527 |
|
---|
1528 | /** Opcode VEX.0F38 0xf5 (vex only). */
|
---|
1529 | FNIEMOP_DEF(iemOp_bzhi_Gy_Ey_By)
|
---|
1530 | {
|
---|
1531 | IEMOP_MNEMONIC3(VEX_RMV, BZHI, bzhi, Gy, Ey, By, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1532 | IEMOP_BODY_Gy_Ey_By(bzhi, fBmi2, X86_EFL_AF | X86_EFL_PF);
|
---|
1533 | }
|
---|
1534 |
|
---|
1535 | /* Opcode VEX.66.0F38 0xf5 - invalid. */
|
---|
1536 |
|
---|
1537 | /** Body for PDEP and PEXT (similar to ANDN, except no EFLAGS). */
|
---|
1538 | #define IEMOP_BODY_Gy_By_Ey_NoEflags(a_Instr, a_fFeatureMember) \
|
---|
1539 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
1540 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
1541 | { \
|
---|
1542 | /* \
|
---|
1543 | * Register, register. \
|
---|
1544 | */ \
|
---|
1545 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1546 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1547 | { \
|
---|
1548 | IEM_MC_BEGIN(3, 0); \
|
---|
1549 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1550 | IEM_MC_ARG(uint64_t, uSrc1, 1); \
|
---|
1551 | IEM_MC_ARG(uint64_t, uSrc2, 2); \
|
---|
1552 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1553 | IEM_MC_FETCH_GREG_U64(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1554 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1555 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, \
|
---|
1556 | iemAImpl_ ## a_Instr ## _u64, \
|
---|
1557 | iemAImpl_ ## a_Instr ## _u64_fallback), pDst, uSrc1, uSrc2); \
|
---|
1558 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1559 | IEM_MC_END(); \
|
---|
1560 | } \
|
---|
1561 | else \
|
---|
1562 | { \
|
---|
1563 | IEM_MC_BEGIN(3, 0); \
|
---|
1564 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1565 | IEM_MC_ARG(uint32_t, uSrc1, 1); \
|
---|
1566 | IEM_MC_ARG(uint32_t, uSrc2, 2); \
|
---|
1567 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1568 | IEM_MC_FETCH_GREG_U32(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1569 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
1570 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, \
|
---|
1571 | iemAImpl_ ## a_Instr ## _u32, \
|
---|
1572 | iemAImpl_ ## a_Instr ## _u32_fallback), pDst, uSrc1, uSrc2); \
|
---|
1573 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1574 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1575 | IEM_MC_END(); \
|
---|
1576 | } \
|
---|
1577 | } \
|
---|
1578 | else \
|
---|
1579 | { \
|
---|
1580 | /* \
|
---|
1581 | * Register, memory. \
|
---|
1582 | */ \
|
---|
1583 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
1584 | { \
|
---|
1585 | IEM_MC_BEGIN(3, 1); \
|
---|
1586 | IEM_MC_ARG(uint64_t *, pDst, 0); \
|
---|
1587 | IEM_MC_ARG(uint64_t, uSrc1, 1); \
|
---|
1588 | IEM_MC_ARG(uint64_t, uSrc2, 2); \
|
---|
1589 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1590 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1591 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1592 | IEM_MC_FETCH_MEM_U64(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1593 | IEM_MC_FETCH_GREG_U64(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1594 | IEM_MC_REF_GREG_U64(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1595 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, \
|
---|
1596 | iemAImpl_ ## a_Instr ## _u64, \
|
---|
1597 | iemAImpl_ ## a_Instr ## _u64_fallback), pDst, uSrc1, uSrc2); \
|
---|
1598 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1599 | IEM_MC_END(); \
|
---|
1600 | } \
|
---|
1601 | else \
|
---|
1602 | { \
|
---|
1603 | IEM_MC_BEGIN(3, 1); \
|
---|
1604 | IEM_MC_ARG(uint32_t *, pDst, 0); \
|
---|
1605 | IEM_MC_ARG(uint32_t, uSrc1, 1); \
|
---|
1606 | IEM_MC_ARG(uint32_t, uSrc2, 2); \
|
---|
1607 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
1608 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
1609 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(a_fFeatureMember); \
|
---|
1610 | IEM_MC_FETCH_MEM_U32(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
1611 | IEM_MC_FETCH_GREG_U32(uSrc1, IEM_GET_EFFECTIVE_VVVV(pVCpu)); \
|
---|
1612 | IEM_MC_REF_GREG_U32(pDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
1613 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(a_fFeatureMember, \
|
---|
1614 | iemAImpl_ ## a_Instr ## _u32, \
|
---|
1615 | iemAImpl_ ## a_Instr ## _u32_fallback), pDst, uSrc1, uSrc2); \
|
---|
1616 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst); \
|
---|
1617 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
1618 | IEM_MC_END(); \
|
---|
1619 | } \
|
---|
1620 | } \
|
---|
1621 | (void)0
|
---|
1622 |
|
---|
1623 |
|
---|
1624 | /** Opcode VEX.F3.0F38 0xf5 (vex only). */
|
---|
1625 | FNIEMOP_DEF(iemOp_pext_Gy_By_Ey)
|
---|
1626 | {
|
---|
1627 | IEMOP_MNEMONIC3(VEX_RVM, PEXT, pext, Gy, By, Ey, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1628 | IEMOP_BODY_Gy_By_Ey_NoEflags(pext, fBmi2);
|
---|
1629 | }
|
---|
1630 |
|
---|
1631 |
|
---|
1632 | /** Opcode VEX.F2.0F38 0xf5 (vex only). */
|
---|
1633 | FNIEMOP_DEF(iemOp_pdep_Gy_By_Ey)
|
---|
1634 | {
|
---|
1635 | IEMOP_MNEMONIC3(VEX_RVM, PDEP, pdep, Gy, By, Ey, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1636 | IEMOP_BODY_Gy_By_Ey_NoEflags(pdep, fBmi2);
|
---|
1637 | }
|
---|
1638 |
|
---|
1639 |
|
---|
1640 | /* Opcode VEX.0F38 0xf6 - invalid. */
|
---|
1641 | /* Opcode VEX.66.0F38 0xf6 - invalid (legacy only). */
|
---|
1642 | /* Opcode VEX.F3.0F38 0xf6 - invalid (legacy only). */
|
---|
1643 |
|
---|
1644 |
|
---|
1645 | /** Opcode VEX.F2.0F38 0xf6 (vex only) */
|
---|
1646 | FNIEMOP_DEF(iemOp_mulx_By_Gy_rDX_Ey)
|
---|
1647 | {
|
---|
1648 | IEMOP_MNEMONIC4(VEX_RVM, MULX, mulx, Gy, By, Ey, rDX, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1649 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1650 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1651 | {
|
---|
1652 | /*
|
---|
1653 | * Register, register.
|
---|
1654 | */
|
---|
1655 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi2);
|
---|
1656 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W)
|
---|
1657 | {
|
---|
1658 | IEM_MC_BEGIN(4, 0);
|
---|
1659 | IEM_MC_ARG(uint64_t *, pDst1, 0);
|
---|
1660 | IEM_MC_ARG(uint64_t *, pDst2, 1);
|
---|
1661 | IEM_MC_ARG(uint64_t, uSrc1, 2);
|
---|
1662 | IEM_MC_ARG(uint64_t, uSrc2, 3);
|
---|
1663 | IEM_MC_REF_GREG_U64(pDst1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1664 | IEM_MC_REF_GREG_U64(pDst2, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1665 | IEM_MC_FETCH_GREG_U64(uSrc1, X86_GREG_xDX);
|
---|
1666 | IEM_MC_FETCH_GREG_U64(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1667 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi2, iemAImpl_mulx_u64, iemAImpl_mulx_u64_fallback),
|
---|
1668 | pDst1, pDst2, uSrc1, uSrc2);
|
---|
1669 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1670 | IEM_MC_END();
|
---|
1671 | }
|
---|
1672 | else
|
---|
1673 | {
|
---|
1674 | IEM_MC_BEGIN(4, 0);
|
---|
1675 | IEM_MC_ARG(uint32_t *, pDst1, 0);
|
---|
1676 | IEM_MC_ARG(uint32_t *, pDst2, 1);
|
---|
1677 | IEM_MC_ARG(uint32_t, uSrc1, 2);
|
---|
1678 | IEM_MC_ARG(uint32_t, uSrc2, 3);
|
---|
1679 | IEM_MC_REF_GREG_U32(pDst1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1680 | IEM_MC_REF_GREG_U32(pDst2, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1681 | IEM_MC_FETCH_GREG_U32(uSrc1, X86_GREG_xDX);
|
---|
1682 | IEM_MC_FETCH_GREG_U32(uSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1683 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi2, iemAImpl_mulx_u32, iemAImpl_mulx_u32_fallback),
|
---|
1684 | pDst1, pDst2, uSrc1, uSrc2);
|
---|
1685 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst2);
|
---|
1686 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst1);
|
---|
1687 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1688 | IEM_MC_END();
|
---|
1689 | }
|
---|
1690 | }
|
---|
1691 | else
|
---|
1692 | {
|
---|
1693 | /*
|
---|
1694 | * Register, memory.
|
---|
1695 | */
|
---|
1696 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W)
|
---|
1697 | {
|
---|
1698 | IEM_MC_BEGIN(4, 1);
|
---|
1699 | IEM_MC_ARG(uint64_t *, pDst1, 0);
|
---|
1700 | IEM_MC_ARG(uint64_t *, pDst2, 1);
|
---|
1701 | IEM_MC_ARG(uint64_t, uSrc1, 2);
|
---|
1702 | IEM_MC_ARG(uint64_t, uSrc2, 3);
|
---|
1703 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1704 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1705 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi2);
|
---|
1706 | IEM_MC_FETCH_MEM_U64(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1707 | IEM_MC_FETCH_GREG_U64(uSrc1, X86_GREG_xDX);
|
---|
1708 | IEM_MC_REF_GREG_U64(pDst2, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1709 | IEM_MC_REF_GREG_U64(pDst1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1710 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi2, iemAImpl_mulx_u64, iemAImpl_mulx_u64_fallback),
|
---|
1711 | pDst1, pDst2, uSrc1, uSrc2);
|
---|
1712 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1713 | IEM_MC_END();
|
---|
1714 | }
|
---|
1715 | else
|
---|
1716 | {
|
---|
1717 | IEM_MC_BEGIN(4, 1);
|
---|
1718 | IEM_MC_ARG(uint32_t *, pDst1, 0);
|
---|
1719 | IEM_MC_ARG(uint32_t *, pDst2, 1);
|
---|
1720 | IEM_MC_ARG(uint32_t, uSrc1, 2);
|
---|
1721 | IEM_MC_ARG(uint32_t, uSrc2, 3);
|
---|
1722 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1723 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1724 | IEMOP_HLP_DONE_VEX_DECODING_L0_EX(fBmi2);
|
---|
1725 | IEM_MC_FETCH_MEM_U32(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1726 | IEM_MC_FETCH_GREG_U32(uSrc1, X86_GREG_xDX);
|
---|
1727 | IEM_MC_REF_GREG_U32(pDst2, IEM_GET_EFFECTIVE_VVVV(pVCpu));
|
---|
1728 | IEM_MC_REF_GREG_U32(pDst1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1729 | IEM_MC_CALL_VOID_AIMPL_4(IEM_SELECT_HOST_OR_FALLBACK(fBmi2, iemAImpl_mulx_u32, iemAImpl_mulx_u32_fallback),
|
---|
1730 | pDst1, pDst2, uSrc1, uSrc2);
|
---|
1731 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst2);
|
---|
1732 | IEM_MC_CLEAR_HIGH_GREG_U64_BY_REF(pDst1);
|
---|
1733 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1734 | IEM_MC_END();
|
---|
1735 | }
|
---|
1736 | }
|
---|
1737 | }
|
---|
1738 |
|
---|
1739 |
|
---|
1740 | /** Opcode VEX.0F38 0xf7 (vex only). */
|
---|
1741 | FNIEMOP_DEF(iemOp_bextr_Gy_Ey_By)
|
---|
1742 | {
|
---|
1743 | IEMOP_MNEMONIC3(VEX_RMV, BEXTR, bextr, Gy, Ey, By, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1744 | IEMOP_BODY_Gy_Ey_By(bextr, fBmi1, X86_EFL_SF | X86_EFL_AF | X86_EFL_PF);
|
---|
1745 | }
|
---|
1746 |
|
---|
1747 |
|
---|
1748 | /** Opcode VEX.66.0F38 0xf7 (vex only). */
|
---|
1749 | FNIEMOP_DEF(iemOp_shlx_Gy_Ey_By)
|
---|
1750 | {
|
---|
1751 | IEMOP_MNEMONIC3(VEX_RMV, SHLX, shlx, Gy, Ey, By, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1752 | IEMOP_BODY_Gy_Ey_By_NoEflags(shlx, fBmi2, 0);
|
---|
1753 | }
|
---|
1754 |
|
---|
1755 |
|
---|
1756 | /** Opcode VEX.F3.0F38 0xf7 (vex only). */
|
---|
1757 | FNIEMOP_DEF(iemOp_sarx_Gy_Ey_By)
|
---|
1758 | {
|
---|
1759 | IEMOP_MNEMONIC3(VEX_RMV, SARX, sarx, Gy, Ey, By, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1760 | IEMOP_BODY_Gy_Ey_By_NoEflags(sarx, fBmi2, 0);
|
---|
1761 | }
|
---|
1762 |
|
---|
1763 |
|
---|
1764 | /** Opcode VEX.F2.0F38 0xf7 (vex only). */
|
---|
1765 | FNIEMOP_DEF(iemOp_shrx_Gy_Ey_By)
|
---|
1766 | {
|
---|
1767 | IEMOP_MNEMONIC3(VEX_RMV, SHRX, shrx, Gy, Ey, By, DISOPTYPE_HARMLESS, IEMOPHINT_VEX_L_ZERO);
|
---|
1768 | IEMOP_BODY_Gy_Ey_By_NoEflags(shrx, fBmi2, 0);
|
---|
1769 | }
|
---|
1770 |
|
---|
1771 | /* Opcode VEX.0F38 0xf8 - invalid. */
|
---|
1772 | /* Opcode VEX.66.0F38 0xf8 - invalid. */
|
---|
1773 | /* Opcode VEX.F3.0F38 0xf8 - invalid. */
|
---|
1774 | /* Opcode VEX.F2.0F38 0xf8 - invalid. */
|
---|
1775 |
|
---|
1776 | /* Opcode VEX.0F38 0xf9 - invalid. */
|
---|
1777 | /* Opcode VEX.66.0F38 0xf9 - invalid. */
|
---|
1778 | /* Opcode VEX.F3.0F38 0xf9 - invalid. */
|
---|
1779 | /* Opcode VEX.F2.0F38 0xf9 - invalid. */
|
---|
1780 |
|
---|
1781 | /* Opcode VEX.0F38 0xfa - invalid. */
|
---|
1782 | /* Opcode VEX.66.0F38 0xfa - invalid. */
|
---|
1783 | /* Opcode VEX.F3.0F38 0xfa - invalid. */
|
---|
1784 | /* Opcode VEX.F2.0F38 0xfa - invalid. */
|
---|
1785 |
|
---|
1786 | /* Opcode VEX.0F38 0xfb - invalid. */
|
---|
1787 | /* Opcode VEX.66.0F38 0xfb - invalid. */
|
---|
1788 | /* Opcode VEX.F3.0F38 0xfb - invalid. */
|
---|
1789 | /* Opcode VEX.F2.0F38 0xfb - invalid. */
|
---|
1790 |
|
---|
1791 | /* Opcode VEX.0F38 0xfc - invalid. */
|
---|
1792 | /* Opcode VEX.66.0F38 0xfc - invalid. */
|
---|
1793 | /* Opcode VEX.F3.0F38 0xfc - invalid. */
|
---|
1794 | /* Opcode VEX.F2.0F38 0xfc - invalid. */
|
---|
1795 |
|
---|
1796 | /* Opcode VEX.0F38 0xfd - invalid. */
|
---|
1797 | /* Opcode VEX.66.0F38 0xfd - invalid. */
|
---|
1798 | /* Opcode VEX.F3.0F38 0xfd - invalid. */
|
---|
1799 | /* Opcode VEX.F2.0F38 0xfd - invalid. */
|
---|
1800 |
|
---|
1801 | /* Opcode VEX.0F38 0xfe - invalid. */
|
---|
1802 | /* Opcode VEX.66.0F38 0xfe - invalid. */
|
---|
1803 | /* Opcode VEX.F3.0F38 0xfe - invalid. */
|
---|
1804 | /* Opcode VEX.F2.0F38 0xfe - invalid. */
|
---|
1805 |
|
---|
1806 | /* Opcode VEX.0F38 0xff - invalid. */
|
---|
1807 | /* Opcode VEX.66.0F38 0xff - invalid. */
|
---|
1808 | /* Opcode VEX.F3.0F38 0xff - invalid. */
|
---|
1809 | /* Opcode VEX.F2.0F38 0xff - invalid. */
|
---|
1810 |
|
---|
1811 |
|
---|
1812 | /**
|
---|
1813 | * VEX opcode map \#2.
|
---|
1814 | *
|
---|
1815 | * @sa g_apfnThreeByte0f38
|
---|
1816 | */
|
---|
1817 | IEM_STATIC const PFNIEMOP g_apfnVexMap2[] =
|
---|
1818 | {
|
---|
1819 | /* no prefix, 066h prefix f3h prefix, f2h prefix */
|
---|
1820 | /* 0x00 */ iemOp_InvalidNeedRM, iemOp_vpshufb_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1821 | /* 0x01 */ iemOp_InvalidNeedRM, iemOp_vphaddw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1822 | /* 0x02 */ iemOp_InvalidNeedRM, iemOp_vphaddd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1823 | /* 0x03 */ iemOp_InvalidNeedRM, iemOp_vphaddsw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1824 | /* 0x04 */ iemOp_InvalidNeedRM, iemOp_vpmaddubsw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1825 | /* 0x05 */ iemOp_InvalidNeedRM, iemOp_vphsubw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1826 | /* 0x06 */ iemOp_InvalidNeedRM, iemOp_vphsubd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1827 | /* 0x07 */ iemOp_InvalidNeedRM, iemOp_vphsubsw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1828 | /* 0x08 */ iemOp_InvalidNeedRM, iemOp_vpsignb_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1829 | /* 0x09 */ iemOp_InvalidNeedRM, iemOp_vpsignw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1830 | /* 0x0a */ iemOp_InvalidNeedRM, iemOp_vpsignd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1831 | /* 0x0b */ iemOp_InvalidNeedRM, iemOp_vpmulhrsw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1832 | /* 0x0c */ iemOp_InvalidNeedRM, iemOp_vpermilps_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1833 | /* 0x0d */ iemOp_InvalidNeedRM, iemOp_vpermilpd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1834 | /* 0x0e */ iemOp_InvalidNeedRM, iemOp_vtestps_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1835 | /* 0x0f */ iemOp_InvalidNeedRM, iemOp_vtestpd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1836 |
|
---|
1837 | /* 0x10 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1838 | /* 0x11 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1839 | /* 0x12 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1840 | /* 0x13 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1841 | /* 0x14 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1842 | /* 0x15 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1843 | /* 0x16 */ iemOp_InvalidNeedRM, iemOp_vpermps_Vqq_Hqq_Wqq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1844 | /* 0x17 */ iemOp_InvalidNeedRM, iemOp_vptest_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1845 | /* 0x18 */ iemOp_InvalidNeedRM, iemOp_vbroadcastss_Vx_Wd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1846 | /* 0x19 */ iemOp_InvalidNeedRM, iemOp_vbroadcastsd_Vqq_Wq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1847 | /* 0x1a */ iemOp_InvalidNeedRM, iemOp_vbroadcastf128_Vqq_Mdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1848 | /* 0x1b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1849 | /* 0x1c */ iemOp_InvalidNeedRM, iemOp_vpabsb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1850 | /* 0x1d */ iemOp_InvalidNeedRM, iemOp_vpabsw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1851 | /* 0x1e */ iemOp_InvalidNeedRM, iemOp_vpabsd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1852 | /* 0x1f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1853 |
|
---|
1854 | /* 0x20 */ iemOp_InvalidNeedRM, iemOp_vpmovsxbw_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1855 | /* 0x21 */ iemOp_InvalidNeedRM, iemOp_vpmovsxbd_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1856 | /* 0x22 */ iemOp_InvalidNeedRM, iemOp_vpmovsxbq_Vx_UxMw, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1857 | /* 0x23 */ iemOp_InvalidNeedRM, iemOp_vpmovsxwd_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1858 | /* 0x24 */ iemOp_InvalidNeedRM, iemOp_vpmovsxwq_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1859 | /* 0x25 */ iemOp_InvalidNeedRM, iemOp_vpmovsxdq_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1860 | /* 0x26 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1861 | /* 0x27 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1862 | /* 0x28 */ iemOp_InvalidNeedRM, iemOp_vpmuldq_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1863 | /* 0x29 */ iemOp_InvalidNeedRM, iemOp_vpcmpeqq_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1864 | /* 0x2a */ iemOp_InvalidNeedRM, iemOp_vmovntdqa_Vx_Mx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1865 | /* 0x2b */ iemOp_InvalidNeedRM, iemOp_vpackusdw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1866 | /* 0x2c */ iemOp_InvalidNeedRM, iemOp_vmaskmovps_Vx_Hx_Mx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1867 | /* 0x2d */ iemOp_InvalidNeedRM, iemOp_vmaskmovpd_Vx_Hx_Mx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1868 | /* 0x2e */ iemOp_InvalidNeedRM, iemOp_vmaskmovps_Mx_Hx_Vx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1869 | /* 0x2f */ iemOp_InvalidNeedRM, iemOp_vmaskmovpd_Mx_Hx_Vx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1870 |
|
---|
1871 | /* 0x30 */ iemOp_InvalidNeedRM, iemOp_vpmovzxbw_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1872 | /* 0x31 */ iemOp_InvalidNeedRM, iemOp_vpmovzxbd_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1873 | /* 0x32 */ iemOp_InvalidNeedRM, iemOp_vpmovzxbq_Vx_UxMw, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1874 | /* 0x33 */ iemOp_InvalidNeedRM, iemOp_vpmovzxwd_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1875 | /* 0x34 */ iemOp_InvalidNeedRM, iemOp_vpmovzxwq_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1876 | /* 0x35 */ iemOp_InvalidNeedRM, iemOp_vpmovzxdq_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1877 | /* 0x36 */ iemOp_InvalidNeedRM, iemOp_vpermd_Vqq_Hqq_Wqq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1878 | /* 0x37 */ iemOp_InvalidNeedRM, iemOp_vpcmpgtq_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1879 | /* 0x38 */ iemOp_InvalidNeedRM, iemOp_vpminsb_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1880 | /* 0x39 */ iemOp_InvalidNeedRM, iemOp_vpminsd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1881 | /* 0x3a */ iemOp_InvalidNeedRM, iemOp_vpminuw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1882 | /* 0x3b */ iemOp_InvalidNeedRM, iemOp_vpminud_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1883 | /* 0x3c */ iemOp_InvalidNeedRM, iemOp_vpmaxsb_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1884 | /* 0x3d */ iemOp_InvalidNeedRM, iemOp_vpmaxsd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1885 | /* 0x3e */ iemOp_InvalidNeedRM, iemOp_vpmaxuw_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1886 | /* 0x3f */ iemOp_InvalidNeedRM, iemOp_vpmaxud_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1887 |
|
---|
1888 | /* 0x40 */ iemOp_InvalidNeedRM, iemOp_vpmulld_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1889 | /* 0x41 */ iemOp_InvalidNeedRM, iemOp_vphminposuw_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1890 | /* 0x42 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1891 | /* 0x43 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1892 | /* 0x44 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1893 | /* 0x45 */ iemOp_InvalidNeedRM, iemOp_vpsrlvd_q_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1894 | /* 0x46 */ iemOp_InvalidNeedRM, iemOp_vsravd_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1895 | /* 0x47 */ iemOp_InvalidNeedRM, iemOp_vpsllvd_q_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1896 | /* 0x48 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1897 | /* 0x49 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1898 | /* 0x4a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1899 | /* 0x4b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1900 | /* 0x4c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1901 | /* 0x4d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1902 | /* 0x4e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1903 | /* 0x4f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1904 |
|
---|
1905 | /* 0x50 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1906 | /* 0x51 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1907 | /* 0x52 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1908 | /* 0x53 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1909 | /* 0x54 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1910 | /* 0x55 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1911 | /* 0x56 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1912 | /* 0x57 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1913 | /* 0x58 */ iemOp_InvalidNeedRM, iemOp_vpbroadcastd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1914 | /* 0x59 */ iemOp_InvalidNeedRM, iemOp_vpbroadcastq_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1915 | /* 0x5a */ iemOp_InvalidNeedRM, iemOp_vbroadcasti128_Vqq_Mdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1916 | /* 0x5b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1917 | /* 0x5c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1918 | /* 0x5d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1919 | /* 0x5e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1920 | /* 0x5f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1921 |
|
---|
1922 | /* 0x60 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1923 | /* 0x61 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1924 | /* 0x62 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1925 | /* 0x63 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1926 | /* 0x64 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1927 | /* 0x65 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1928 | /* 0x66 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1929 | /* 0x67 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1930 | /* 0x68 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1931 | /* 0x69 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1932 | /* 0x6a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1933 | /* 0x6b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1934 | /* 0x6c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1935 | /* 0x6d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1936 | /* 0x6e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1937 | /* 0x6f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1938 |
|
---|
1939 | /* 0x70 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1940 | /* 0x71 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1941 | /* 0x72 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1942 | /* 0x73 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1943 | /* 0x74 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1944 | /* 0x75 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1945 | /* 0x76 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1946 | /* 0x77 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1947 | /* 0x78 */ iemOp_InvalidNeedRM, iemOp_vpbroadcastb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1948 | /* 0x79 */ iemOp_InvalidNeedRM, iemOp_vpbroadcastw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1949 | /* 0x7a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1950 | /* 0x7b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1951 | /* 0x7c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1952 | /* 0x7d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1953 | /* 0x7e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1954 | /* 0x7f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1955 |
|
---|
1956 | /* 0x80 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1957 | /* 0x81 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1958 | /* 0x82 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1959 | /* 0x83 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1960 | /* 0x84 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1961 | /* 0x85 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1962 | /* 0x86 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1963 | /* 0x87 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1964 | /* 0x88 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1965 | /* 0x89 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1966 | /* 0x8a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1967 | /* 0x8b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1968 | /* 0x8c */ iemOp_InvalidNeedRM, iemOp_vpmaskmovd_q_Vx_Hx_Mx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1969 | /* 0x8d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1970 | /* 0x8e */ iemOp_InvalidNeedRM, iemOp_vpmaskmovd_q_Mx_Vx_Hx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1971 | /* 0x8f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1972 |
|
---|
1973 | /* 0x90 */ iemOp_InvalidNeedRM, iemOp_vgatherdd_q_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1974 | /* 0x91 */ iemOp_InvalidNeedRM, iemOp_vgatherqd_q_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1975 | /* 0x92 */ iemOp_InvalidNeedRM, iemOp_vgatherdps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1976 | /* 0x93 */ iemOp_InvalidNeedRM, iemOp_vgatherqps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1977 | /* 0x94 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1978 | /* 0x95 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1979 | /* 0x96 */ iemOp_InvalidNeedRM, iemOp_vfmaddsub132ps_q_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1980 | /* 0x97 */ iemOp_InvalidNeedRM, iemOp_vfmsubadd132ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1981 | /* 0x98 */ iemOp_InvalidNeedRM, iemOp_vfmadd132ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1982 | /* 0x99 */ iemOp_InvalidNeedRM, iemOp_vfmadd132ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1983 | /* 0x9a */ iemOp_InvalidNeedRM, iemOp_vfmsub132ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1984 | /* 0x9b */ iemOp_InvalidNeedRM, iemOp_vfmsub132ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1985 | /* 0x9c */ iemOp_InvalidNeedRM, iemOp_vfnmadd132ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1986 | /* 0x9d */ iemOp_InvalidNeedRM, iemOp_vfnmadd132ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1987 | /* 0x9e */ iemOp_InvalidNeedRM, iemOp_vfnmsub132ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1988 | /* 0x9f */ iemOp_InvalidNeedRM, iemOp_vfnmsub132ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1989 |
|
---|
1990 | /* 0xa0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1991 | /* 0xa1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1992 | /* 0xa2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1993 | /* 0xa3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1994 | /* 0xa4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1995 | /* 0xa5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
1996 | /* 0xa6 */ iemOp_InvalidNeedRM, iemOp_vfmaddsub213ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1997 | /* 0xa7 */ iemOp_InvalidNeedRM, iemOp_vfmsubadd213ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1998 | /* 0xa8 */ iemOp_InvalidNeedRM, iemOp_vfmadd213ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
1999 | /* 0xa9 */ iemOp_InvalidNeedRM, iemOp_vfmadd213ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2000 | /* 0xaa */ iemOp_InvalidNeedRM, iemOp_vfmsub213ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2001 | /* 0xab */ iemOp_InvalidNeedRM, iemOp_vfmsub213ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2002 | /* 0xac */ iemOp_InvalidNeedRM, iemOp_vfnmadd213ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2003 | /* 0xad */ iemOp_InvalidNeedRM, iemOp_vfnmadd213ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2004 | /* 0xae */ iemOp_InvalidNeedRM, iemOp_vfnmsub213ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2005 | /* 0xaf */ iemOp_InvalidNeedRM, iemOp_vfnmsub213ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2006 |
|
---|
2007 | /* 0xb0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2008 | /* 0xb1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2009 | /* 0xb2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2010 | /* 0xb3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2011 | /* 0xb4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2012 | /* 0xb5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2013 | /* 0xb6 */ iemOp_InvalidNeedRM, iemOp_vfmaddsub231ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2014 | /* 0xb7 */ iemOp_InvalidNeedRM, iemOp_vfmsubadd231ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2015 | /* 0xb8 */ iemOp_InvalidNeedRM, iemOp_vfmadd231ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2016 | /* 0xb9 */ iemOp_InvalidNeedRM, iemOp_vfmadd231ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2017 | /* 0xba */ iemOp_InvalidNeedRM, iemOp_vfmsub231ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2018 | /* 0xbb */ iemOp_InvalidNeedRM, iemOp_vfmsub231ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2019 | /* 0xbc */ iemOp_InvalidNeedRM, iemOp_vfnmadd231ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2020 | /* 0xbd */ iemOp_InvalidNeedRM, iemOp_vfnmadd231ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2021 | /* 0xbe */ iemOp_InvalidNeedRM, iemOp_vfnmsub231ps_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2022 | /* 0xbf */ iemOp_InvalidNeedRM, iemOp_vfnmsub231ss_d_Vx_Hx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2023 |
|
---|
2024 | /* 0xc0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2025 | /* 0xc1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2026 | /* 0xc2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2027 | /* 0xc3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2028 | /* 0xc4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2029 | /* 0xc5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2030 | /* 0xc6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2031 | /* 0xc7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2032 | /* 0xc8 */ iemOp_vsha1nexte_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2033 | /* 0xc9 */ iemOp_vsha1msg1_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2034 | /* 0xca */ iemOp_vsha1msg2_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2035 | /* 0xcb */ iemOp_vsha256rnds2_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2036 | /* 0xcc */ iemOp_vsha256msg1_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2037 | /* 0xcd */ iemOp_vsha256msg2_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2038 | /* 0xce */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2039 | /* 0xcf */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2040 |
|
---|
2041 | /* 0xd0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2042 | /* 0xd1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2043 | /* 0xd2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2044 | /* 0xd3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2045 | /* 0xd4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2046 | /* 0xd5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2047 | /* 0xd6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2048 | /* 0xd7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2049 | /* 0xd8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2050 | /* 0xd9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2051 | /* 0xda */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2052 | /* 0xdb */ iemOp_InvalidNeedRM, iemOp_vaesimc_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2053 | /* 0xdc */ iemOp_InvalidNeedRM, iemOp_vaesenc_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2054 | /* 0xdd */ iemOp_InvalidNeedRM, iemOp_vaesenclast_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2055 | /* 0xde */ iemOp_InvalidNeedRM, iemOp_vaesdec_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2056 | /* 0xdf */ iemOp_InvalidNeedRM, iemOp_vaesdeclast_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2057 |
|
---|
2058 | /* 0xe0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2059 | /* 0xe1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2060 | /* 0xe2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2061 | /* 0xe3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2062 | /* 0xe4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2063 | /* 0xe5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2064 | /* 0xe6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2065 | /* 0xe7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2066 | /* 0xe8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2067 | /* 0xe9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2068 | /* 0xea */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2069 | /* 0xeb */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2070 | /* 0xec */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2071 | /* 0xed */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2072 | /* 0xee */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2073 | /* 0xef */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2074 |
|
---|
2075 | /* 0xf0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2076 | /* 0xf1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2077 | /* 0xf2 */ iemOp_andn_Gy_By_Ey, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2078 | /* 0xf3 */ iemOp_VGrp17_f3, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2079 | /* 0xf4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2080 | /* 0xf5 */ iemOp_bzhi_Gy_Ey_By, iemOp_InvalidNeedRM, iemOp_pext_Gy_By_Ey, iemOp_pdep_Gy_By_Ey,
|
---|
2081 | /* 0xf6 */ iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_mulx_By_Gy_rDX_Ey,
|
---|
2082 | /* 0xf7 */ iemOp_bextr_Gy_Ey_By, iemOp_shlx_Gy_Ey_By, iemOp_sarx_Gy_Ey_By, iemOp_shrx_Gy_Ey_By,
|
---|
2083 | /* 0xf8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2084 | /* 0xf9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2085 | /* 0xfa */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2086 | /* 0xfb */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2087 | /* 0xfc */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2088 | /* 0xfd */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2089 | /* 0xfe */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2090 | /* 0xff */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2091 | };
|
---|
2092 | AssertCompile(RT_ELEMENTS(g_apfnVexMap2) == 1024);
|
---|
2093 |
|
---|
2094 | /** @} */
|
---|
2095 |
|
---|