1 | /* $Id: IEMAllInstThree0f38.cpp.h 104208 2024-04-05 21:17:41Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * IEM - Instruction Decoding and Emulation.
|
---|
4 | *
|
---|
5 | * @remarks IEMAllInstVexMap2.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 Three byte opcodes with first two bytes 0x0f 0x38
|
---|
33 | * @{
|
---|
34 | */
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * Common worker for MMX instructions on the form:
|
---|
38 | * pxxx mm1, mm2/mem64
|
---|
39 | * that was introduced with SSE3.
|
---|
40 | *
|
---|
41 | * The @a pfnU64 worker function takes no FXSAVE state, just the operands.
|
---|
42 | */
|
---|
43 | FNIEMOP_DEF_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3, PFNIEMAIMPLMEDIAOPTF2U64, pfnU64)
|
---|
44 | {
|
---|
45 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
46 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
47 | {
|
---|
48 | /*
|
---|
49 | * MMX, MMX.
|
---|
50 | */
|
---|
51 | /** @todo testcase: REX.B / REX.R and MMX register indexing. Ignored? */
|
---|
52 | /** @todo testcase: REX.B / REX.R and segment register indexing. Ignored? */
|
---|
53 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
54 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSsse3);
|
---|
55 | IEM_MC_ARG(uint64_t *, pDst, 0);
|
---|
56 | IEM_MC_ARG(uint64_t const *, pSrc, 1);
|
---|
57 | IEM_MC_MAYBE_RAISE_MMX_RELATED_XCPT();
|
---|
58 | IEM_MC_PREPARE_FPU_USAGE();
|
---|
59 | IEM_MC_FPU_TO_MMX_MODE();
|
---|
60 |
|
---|
61 | IEM_MC_REF_MREG_U64(pDst, IEM_GET_MODRM_REG_8(bRm));
|
---|
62 | IEM_MC_REF_MREG_U64_CONST(pSrc, IEM_GET_MODRM_RM_8(bRm));
|
---|
63 | IEM_MC_CALL_VOID_AIMPL_2(pfnU64, pDst, pSrc);
|
---|
64 | IEM_MC_MODIFIED_MREG_BY_REF(pDst);
|
---|
65 |
|
---|
66 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
67 | IEM_MC_END();
|
---|
68 | }
|
---|
69 | else
|
---|
70 | {
|
---|
71 | /*
|
---|
72 | * MMX, [mem64].
|
---|
73 | */
|
---|
74 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
75 | IEM_MC_ARG(uint64_t *, pDst, 0);
|
---|
76 | IEM_MC_LOCAL(uint64_t, uSrc);
|
---|
77 | IEM_MC_ARG_LOCAL_REF(uint64_t const *, pSrc, uSrc, 1);
|
---|
78 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
79 |
|
---|
80 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
81 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSsse3);
|
---|
82 | IEM_MC_MAYBE_RAISE_MMX_RELATED_XCPT();
|
---|
83 | IEM_MC_FETCH_MEM_U64(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
84 |
|
---|
85 | IEM_MC_PREPARE_FPU_USAGE();
|
---|
86 | IEM_MC_FPU_TO_MMX_MODE();
|
---|
87 |
|
---|
88 | IEM_MC_REF_MREG_U64(pDst, IEM_GET_MODRM_REG_8(bRm));
|
---|
89 | IEM_MC_CALL_VOID_AIMPL_2(pfnU64, pDst, pSrc);
|
---|
90 | IEM_MC_MODIFIED_MREG_BY_REF(pDst);
|
---|
91 |
|
---|
92 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
93 | IEM_MC_END();
|
---|
94 | }
|
---|
95 | }
|
---|
96 |
|
---|
97 |
|
---|
98 | /**
|
---|
99 | * Common worker for SSSE3 instructions on the forms:
|
---|
100 | * pxxx xmm1, xmm2/mem128
|
---|
101 | *
|
---|
102 | * Proper alignment of the 128-bit operand is enforced.
|
---|
103 | * Exceptions type 4. SSSE3 cpuid checks.
|
---|
104 | *
|
---|
105 | * The @a pfnU128 worker function takes no FXSAVE state, just the operands.
|
---|
106 | *
|
---|
107 | * @sa iemOpCommonSse2Opt_FullFull_To_Full
|
---|
108 | */
|
---|
109 | FNIEMOP_DEF_1(iemOpCommonSsse3Opt_FullFull_To_Full, PFNIEMAIMPLMEDIAOPTF2U128, pfnU128)
|
---|
110 | {
|
---|
111 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
112 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
113 | {
|
---|
114 | /*
|
---|
115 | * Register, register.
|
---|
116 | */
|
---|
117 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
118 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSsse3);
|
---|
119 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
120 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
121 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
122 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
123 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
124 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
125 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
126 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
127 | IEM_MC_END();
|
---|
128 | }
|
---|
129 | else
|
---|
130 | {
|
---|
131 | /*
|
---|
132 | * Register, memory.
|
---|
133 | */
|
---|
134 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
135 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
136 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
137 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
138 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
139 |
|
---|
140 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
141 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSsse3);
|
---|
142 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
143 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
144 |
|
---|
145 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
146 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
147 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
148 |
|
---|
149 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
150 | IEM_MC_END();
|
---|
151 | }
|
---|
152 | }
|
---|
153 |
|
---|
154 |
|
---|
155 | /**
|
---|
156 | * Common worker for SSE4.1 instructions on the forms:
|
---|
157 | * pxxx xmm1, xmm2/mem128
|
---|
158 | *
|
---|
159 | * Proper alignment of the 128-bit operand is enforced.
|
---|
160 | * Exceptions type 4. SSE4.1 cpuid checks.
|
---|
161 | *
|
---|
162 | * The @a pfnU128 worker function takes no FXSAVE state, just the operands.
|
---|
163 | *
|
---|
164 | * @sa iemOpCommonSse2Opt_FullFull_To_Full, iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
165 | * iemOpCommonSse41Opt_FullFull_To_Full, iemOpCommonSse42Opt_FullFull_To_Full
|
---|
166 | */
|
---|
167 | FNIEMOP_DEF_1(iemOpCommonSse41Opt_FullFull_To_Full, PFNIEMAIMPLMEDIAOPTF2U128, pfnU128)
|
---|
168 | {
|
---|
169 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
170 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
171 | {
|
---|
172 | /*
|
---|
173 | * Register, register.
|
---|
174 | */
|
---|
175 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
176 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41);
|
---|
177 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
178 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
179 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
180 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
181 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
182 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
183 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
184 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
185 | IEM_MC_END();
|
---|
186 | }
|
---|
187 | else
|
---|
188 | {
|
---|
189 | /*
|
---|
190 | * Register, memory.
|
---|
191 | */
|
---|
192 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
193 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
194 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
195 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
196 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
197 |
|
---|
198 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
199 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41);
|
---|
200 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
201 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
202 |
|
---|
203 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
204 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
205 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
206 |
|
---|
207 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
208 | IEM_MC_END();
|
---|
209 | }
|
---|
210 | }
|
---|
211 |
|
---|
212 |
|
---|
213 | /**
|
---|
214 | * Common worker for SSE4.2 instructions on the forms:
|
---|
215 | * pxxx xmm1, xmm2/mem128
|
---|
216 | *
|
---|
217 | * Proper alignment of the 128-bit operand is enforced.
|
---|
218 | * Exceptions type 4. SSE4.2 cpuid checks.
|
---|
219 | *
|
---|
220 | * @sa iemOpCommonSse2Opt_FullFull_To_Full, iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
221 | * iemOpCommonSse41Opt_FullFull_To_Full
|
---|
222 | */
|
---|
223 | FNIEMOP_DEF_1(iemOpCommonSse42Opt_FullFull_To_Full, PFNIEMAIMPLMEDIAOPTF2U128, pfnU128)
|
---|
224 | {
|
---|
225 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
226 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
227 | {
|
---|
228 | /*
|
---|
229 | * Register, register.
|
---|
230 | */
|
---|
231 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
232 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse42);
|
---|
233 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
234 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
235 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
236 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
237 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
238 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
239 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
240 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
241 | IEM_MC_END();
|
---|
242 | }
|
---|
243 | else
|
---|
244 | {
|
---|
245 | /*
|
---|
246 | * Register, memory.
|
---|
247 | */
|
---|
248 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
249 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
250 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
251 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
252 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
253 |
|
---|
254 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
255 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse42);
|
---|
256 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
257 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
258 |
|
---|
259 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
260 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
261 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
262 |
|
---|
263 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
264 | IEM_MC_END();
|
---|
265 | }
|
---|
266 | }
|
---|
267 |
|
---|
268 |
|
---|
269 | /**
|
---|
270 | * Common worker for SSE-style AES-NI instructions of the form:
|
---|
271 | * aesxxx xmm1, xmm2/mem128
|
---|
272 | *
|
---|
273 | * Proper alignment of the 128-bit operand is enforced.
|
---|
274 | * Exceptions type 4. AES-NI cpuid checks.
|
---|
275 | *
|
---|
276 | * Unlike iemOpCommonSse41_FullFull_To_Full, the @a pfnU128 worker function
|
---|
277 | * takes no FXSAVE state, just the operands.
|
---|
278 | *
|
---|
279 | * @sa iemOpCommonSse2_FullFull_To_Full, iemOpCommonSsse3_FullFull_To_Full,
|
---|
280 | * iemOpCommonSse41_FullFull_To_Full, iemOpCommonSha_FullFull_To_Full
|
---|
281 | */
|
---|
282 | FNIEMOP_DEF_1(iemOpCommonAesNi_FullFull_To_Full, PFNIEMAIMPLMEDIAOPTF2U128, pfnU128)
|
---|
283 | {
|
---|
284 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
285 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
286 | {
|
---|
287 | /*
|
---|
288 | * Register, register.
|
---|
289 | */
|
---|
290 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
291 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fAesNi);
|
---|
292 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
293 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
294 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
295 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
296 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
297 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
298 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
299 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
300 | IEM_MC_END();
|
---|
301 | }
|
---|
302 | else
|
---|
303 | {
|
---|
304 | /*
|
---|
305 | * Register, memory.
|
---|
306 | */
|
---|
307 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
308 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
309 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
310 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
311 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
312 |
|
---|
313 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
314 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fAesNi);
|
---|
315 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
316 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
317 |
|
---|
318 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
319 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
320 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
321 |
|
---|
322 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
323 | IEM_MC_END();
|
---|
324 | }
|
---|
325 | }
|
---|
326 |
|
---|
327 |
|
---|
328 | /**
|
---|
329 | * Common worker for SSE-style SHA instructions of the form:
|
---|
330 | * shaxxx xmm1, xmm2/mem128
|
---|
331 | *
|
---|
332 | * Proper alignment of the 128-bit operand is enforced.
|
---|
333 | * Exceptions type 4. SHA cpuid checks.
|
---|
334 | *
|
---|
335 | * Unlike iemOpCommonSse41_FullFull_To_Full, the @a pfnU128 worker function
|
---|
336 | * takes no FXSAVE state, just the operands.
|
---|
337 | *
|
---|
338 | * @sa iemOpCommonSse2_FullFull_To_Full, iemOpCommonSsse3_FullFull_To_Full,
|
---|
339 | * iemOpCommonSse41_FullFull_To_Full, iemOpCommonSse42_FullFull_To_Full,
|
---|
340 | * iemOpCommonAesNi_FullFull_To_Full
|
---|
341 | */
|
---|
342 | FNIEMOP_DEF_1(iemOpCommonSha_FullFull_To_Full, PFNIEMAIMPLMEDIAOPTF2U128, pfnU128)
|
---|
343 | {
|
---|
344 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
345 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
346 | {
|
---|
347 | /*
|
---|
348 | * Register, register.
|
---|
349 | */
|
---|
350 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
351 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSha);
|
---|
352 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
353 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
354 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
355 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
356 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
357 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
358 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
359 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
360 | IEM_MC_END();
|
---|
361 | }
|
---|
362 | else
|
---|
363 | {
|
---|
364 | /*
|
---|
365 | * Register, memory.
|
---|
366 | */
|
---|
367 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
368 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
369 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
370 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
371 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
372 |
|
---|
373 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
374 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSha);
|
---|
375 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
376 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
377 |
|
---|
378 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
379 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
380 | IEM_MC_CALL_VOID_AIMPL_2(pfnU128, puDst, puSrc);
|
---|
381 |
|
---|
382 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
383 | IEM_MC_END();
|
---|
384 | }
|
---|
385 | }
|
---|
386 |
|
---|
387 |
|
---|
388 | /** Opcode 0x0f 0x38 0x00. */
|
---|
389 | FNIEMOP_DEF(iemOp_pshufb_Pq_Qq)
|
---|
390 | {
|
---|
391 | IEMOP_MNEMONIC2(RM, PSHUFB, pshufb, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
392 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
393 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pshufb_u64,&iemAImpl_pshufb_u64_fallback));
|
---|
394 | }
|
---|
395 |
|
---|
396 |
|
---|
397 | /** Opcode 0x66 0x0f 0x38 0x00. */
|
---|
398 | FNIEMOP_DEF(iemOp_pshufb_Vx_Wx)
|
---|
399 | {
|
---|
400 | IEMOP_MNEMONIC2(RM, PSHUFB, pshufb, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
401 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
402 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pshufb_u128, iemAImpl_pshufb_u128_fallback));
|
---|
403 |
|
---|
404 | }
|
---|
405 |
|
---|
406 |
|
---|
407 | /* Opcode 0x0f 0x38 0x01. */
|
---|
408 | FNIEMOP_DEF(iemOp_phaddw_Pq_Qq)
|
---|
409 | {
|
---|
410 | IEMOP_MNEMONIC2(RM, PHADDW, phaddw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
411 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
412 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phaddw_u64,&iemAImpl_phaddw_u64_fallback));
|
---|
413 | }
|
---|
414 |
|
---|
415 |
|
---|
416 | /** Opcode 0x66 0x0f 0x38 0x01. */
|
---|
417 | FNIEMOP_DEF(iemOp_phaddw_Vx_Wx)
|
---|
418 | {
|
---|
419 | IEMOP_MNEMONIC2(RM, PHADDW, phaddw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
420 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
421 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phaddw_u128, iemAImpl_phaddw_u128_fallback));
|
---|
422 |
|
---|
423 | }
|
---|
424 |
|
---|
425 |
|
---|
426 | /** Opcode 0x0f 0x38 0x02. */
|
---|
427 | FNIEMOP_DEF(iemOp_phaddd_Pq_Qq)
|
---|
428 | {
|
---|
429 | IEMOP_MNEMONIC2(RM, PHADDD, phaddd, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
430 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
431 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phaddd_u64,&iemAImpl_phaddd_u64_fallback));
|
---|
432 | }
|
---|
433 |
|
---|
434 |
|
---|
435 | /** Opcode 0x66 0x0f 0x38 0x02. */
|
---|
436 | FNIEMOP_DEF(iemOp_phaddd_Vx_Wx)
|
---|
437 | {
|
---|
438 | IEMOP_MNEMONIC2(RM, PHADDD, phaddd, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
439 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
440 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phaddd_u128, iemAImpl_phaddd_u128_fallback));
|
---|
441 |
|
---|
442 | }
|
---|
443 |
|
---|
444 |
|
---|
445 | /** Opcode 0x0f 0x38 0x03. */
|
---|
446 | FNIEMOP_DEF(iemOp_phaddsw_Pq_Qq)
|
---|
447 | {
|
---|
448 | IEMOP_MNEMONIC2(RM, PHADDSW, phaddsw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
449 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
450 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phaddsw_u64,&iemAImpl_phaddsw_u64_fallback));
|
---|
451 | }
|
---|
452 |
|
---|
453 |
|
---|
454 | /** Opcode 0x66 0x0f 0x38 0x03. */
|
---|
455 | FNIEMOP_DEF(iemOp_phaddsw_Vx_Wx)
|
---|
456 | {
|
---|
457 | IEMOP_MNEMONIC2(RM, PHADDSW, phaddsw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
458 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
459 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phaddsw_u128, iemAImpl_phaddsw_u128_fallback));
|
---|
460 |
|
---|
461 | }
|
---|
462 |
|
---|
463 |
|
---|
464 | /** Opcode 0x0f 0x38 0x04. */
|
---|
465 | FNIEMOP_DEF(iemOp_pmaddubsw_Pq_Qq)
|
---|
466 | {
|
---|
467 | IEMOP_MNEMONIC2(RM, PMADDUBSW, pmaddubsw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
468 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
469 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pmaddubsw_u64, &iemAImpl_pmaddubsw_u64_fallback));
|
---|
470 | }
|
---|
471 |
|
---|
472 |
|
---|
473 | /** Opcode 0x66 0x0f 0x38 0x04. */
|
---|
474 | FNIEMOP_DEF(iemOp_pmaddubsw_Vx_Wx)
|
---|
475 | {
|
---|
476 | IEMOP_MNEMONIC2(RM, PMADDUBSW, pmaddubsw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
477 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
478 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pmaddubsw_u128, iemAImpl_pmaddubsw_u128_fallback));
|
---|
479 |
|
---|
480 | }
|
---|
481 |
|
---|
482 |
|
---|
483 | /** Opcode 0x0f 0x38 0x05. */
|
---|
484 | FNIEMOP_DEF(iemOp_phsubw_Pq_Qq)
|
---|
485 | {
|
---|
486 | IEMOP_MNEMONIC2(RM, PHSUBW, phsubw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
487 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
488 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phsubw_u64,&iemAImpl_phsubw_u64_fallback));
|
---|
489 | }
|
---|
490 |
|
---|
491 |
|
---|
492 | /** Opcode 0x66 0x0f 0x38 0x05. */
|
---|
493 | FNIEMOP_DEF(iemOp_phsubw_Vx_Wx)
|
---|
494 | {
|
---|
495 | IEMOP_MNEMONIC2(RM, PHSUBW, phsubw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
496 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
497 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phsubw_u128, iemAImpl_phsubw_u128_fallback));
|
---|
498 |
|
---|
499 | }
|
---|
500 |
|
---|
501 |
|
---|
502 | /** Opcode 0x0f 0x38 0x06. */
|
---|
503 | FNIEMOP_DEF(iemOp_phsubd_Pq_Qq)
|
---|
504 | {
|
---|
505 | IEMOP_MNEMONIC2(RM, PHSUBD, phsubd, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
506 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
507 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phsubd_u64,&iemAImpl_phsubd_u64_fallback));
|
---|
508 | }
|
---|
509 |
|
---|
510 |
|
---|
511 |
|
---|
512 | /** Opcode 0x66 0x0f 0x38 0x06. */
|
---|
513 | FNIEMOP_DEF(iemOp_phsubd_Vx_Wx)
|
---|
514 | {
|
---|
515 | IEMOP_MNEMONIC2(RM, PHSUBD, phsubd, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
516 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
517 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phsubd_u128, iemAImpl_phsubd_u128_fallback));
|
---|
518 |
|
---|
519 | }
|
---|
520 |
|
---|
521 |
|
---|
522 | /** Opcode 0x0f 0x38 0x07. */
|
---|
523 | FNIEMOP_DEF(iemOp_phsubsw_Pq_Qq)
|
---|
524 | {
|
---|
525 | IEMOP_MNEMONIC2(RM, PHSUBSW, phsubsw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
526 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
527 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phsubsw_u64,&iemAImpl_phsubsw_u64_fallback));
|
---|
528 | }
|
---|
529 |
|
---|
530 |
|
---|
531 | /** Opcode 0x66 0x0f 0x38 0x07. */
|
---|
532 | FNIEMOP_DEF(iemOp_phsubsw_Vx_Wx)
|
---|
533 | {
|
---|
534 | IEMOP_MNEMONIC2(RM, PHSUBSW, phsubsw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
535 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
536 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_phsubsw_u128, iemAImpl_phsubsw_u128_fallback));
|
---|
537 |
|
---|
538 | }
|
---|
539 |
|
---|
540 |
|
---|
541 | /** Opcode 0x0f 0x38 0x08. */
|
---|
542 | FNIEMOP_DEF(iemOp_psignb_Pq_Qq)
|
---|
543 | {
|
---|
544 | IEMOP_MNEMONIC2(RM, PSIGNB, psignb, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
545 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
546 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_psignb_u64, &iemAImpl_psignb_u64_fallback));
|
---|
547 | }
|
---|
548 |
|
---|
549 |
|
---|
550 | /** Opcode 0x66 0x0f 0x38 0x08. */
|
---|
551 | FNIEMOP_DEF(iemOp_psignb_Vx_Wx)
|
---|
552 | {
|
---|
553 | IEMOP_MNEMONIC2(RM, PSIGNB, psignb, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
554 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
555 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_psignb_u128, iemAImpl_psignb_u128_fallback));
|
---|
556 |
|
---|
557 | }
|
---|
558 |
|
---|
559 |
|
---|
560 | /** Opcode 0x0f 0x38 0x09. */
|
---|
561 | FNIEMOP_DEF(iemOp_psignw_Pq_Qq)
|
---|
562 | {
|
---|
563 | IEMOP_MNEMONIC2(RM, PSIGNW, psignw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
564 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
565 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_psignw_u64, &iemAImpl_psignw_u64_fallback));
|
---|
566 | }
|
---|
567 |
|
---|
568 |
|
---|
569 | /** Opcode 0x66 0x0f 0x38 0x09. */
|
---|
570 | FNIEMOP_DEF(iemOp_psignw_Vx_Wx)
|
---|
571 | {
|
---|
572 | IEMOP_MNEMONIC2(RM, PSIGNW, psignw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
573 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
574 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_psignw_u128, iemAImpl_psignw_u128_fallback));
|
---|
575 |
|
---|
576 | }
|
---|
577 |
|
---|
578 |
|
---|
579 | /** Opcode 0x0f 0x38 0x0a. */
|
---|
580 | FNIEMOP_DEF(iemOp_psignd_Pq_Qq)
|
---|
581 | {
|
---|
582 | IEMOP_MNEMONIC2(RM, PSIGND, psignd, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
583 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
584 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_psignd_u64, &iemAImpl_psignd_u64_fallback));
|
---|
585 | }
|
---|
586 |
|
---|
587 |
|
---|
588 | /** Opcode 0x66 0x0f 0x38 0x0a. */
|
---|
589 | FNIEMOP_DEF(iemOp_psignd_Vx_Wx)
|
---|
590 | {
|
---|
591 | IEMOP_MNEMONIC2(RM, PSIGND, psignd, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
592 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
593 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_psignd_u128, iemAImpl_psignd_u128_fallback));
|
---|
594 |
|
---|
595 | }
|
---|
596 |
|
---|
597 |
|
---|
598 | /** Opcode 0x0f 0x38 0x0b. */
|
---|
599 | FNIEMOP_DEF(iemOp_pmulhrsw_Pq_Qq)
|
---|
600 | {
|
---|
601 | IEMOP_MNEMONIC2(RM, PMULHRSW, pmulhrsw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
602 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
603 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pmulhrsw_u64, &iemAImpl_pmulhrsw_u64_fallback));
|
---|
604 | }
|
---|
605 |
|
---|
606 |
|
---|
607 | /** Opcode 0x66 0x0f 0x38 0x0b. */
|
---|
608 | FNIEMOP_DEF(iemOp_pmulhrsw_Vx_Wx)
|
---|
609 | {
|
---|
610 | IEMOP_MNEMONIC2(RM, PMULHRSW, pmulhrsw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
611 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
612 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pmulhrsw_u128, iemAImpl_pmulhrsw_u128_fallback));
|
---|
613 |
|
---|
614 | }
|
---|
615 |
|
---|
616 |
|
---|
617 | /* Opcode 0x0f 0x38 0x0c - invalid. */
|
---|
618 | /* Opcode 0x66 0x0f 0x38 0x0c - invalid (vex only). */
|
---|
619 | /* Opcode 0x0f 0x38 0x0d - invalid. */
|
---|
620 | /* Opcode 0x66 0x0f 0x38 0x0d - invalid (vex only). */
|
---|
621 | /* Opcode 0x0f 0x38 0x0e - invalid. */
|
---|
622 | /* Opcode 0x66 0x0f 0x38 0x0e - invalid (vex only). */
|
---|
623 | /* Opcode 0x0f 0x38 0x0f - invalid. */
|
---|
624 | /* Opcode 0x66 0x0f 0x38 0x0f - invalid (vex only). */
|
---|
625 |
|
---|
626 |
|
---|
627 | /* Opcode 0x0f 0x38 0x10 - invalid */
|
---|
628 |
|
---|
629 |
|
---|
630 | /** Body for the *blend* instructions. */
|
---|
631 | #define IEMOP_BODY_P_BLEND_X(a_Instr) \
|
---|
632 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
633 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
634 | { \
|
---|
635 | /* \
|
---|
636 | * Register, register. \
|
---|
637 | */ \
|
---|
638 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0); \
|
---|
639 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41); \
|
---|
640 | IEM_MC_ARG(PRTUINT128U, puDst, 0); \
|
---|
641 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1); \
|
---|
642 | IEM_MC_ARG(PCRTUINT128U, puMask, 2); \
|
---|
643 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT(); \
|
---|
644 | IEM_MC_PREPARE_SSE_USAGE(); \
|
---|
645 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
646 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
647 | IEM_MC_REF_XREG_U128_CONST(puMask, 0); \
|
---|
648 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fSse41, \
|
---|
649 | iemAImpl_ ## a_Instr ## _u128, \
|
---|
650 | iemAImpl_ ## a_Instr ## _u128_fallback), \
|
---|
651 | puDst, puSrc, puMask); \
|
---|
652 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
653 | IEM_MC_END(); \
|
---|
654 | } \
|
---|
655 | else \
|
---|
656 | { \
|
---|
657 | /* \
|
---|
658 | * Register, memory. \
|
---|
659 | */ \
|
---|
660 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0); \
|
---|
661 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
662 | IEM_MC_LOCAL(RTUINT128U, uSrc); \
|
---|
663 | IEM_MC_ARG(PRTUINT128U, puDst, 0); \
|
---|
664 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1); \
|
---|
665 | IEM_MC_ARG(PCRTUINT128U, puMask, 2); \
|
---|
666 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
667 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41); \
|
---|
668 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT(); \
|
---|
669 | IEM_MC_PREPARE_SSE_USAGE(); \
|
---|
670 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
671 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
672 | IEM_MC_REF_XREG_U128_CONST(puMask, 0); \
|
---|
673 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fSse41, \
|
---|
674 | iemAImpl_ ## a_Instr ## _u128, \
|
---|
675 | iemAImpl_ ## a_Instr ## _u128_fallback), \
|
---|
676 | puDst, puSrc, puMask); \
|
---|
677 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
678 | IEM_MC_END(); \
|
---|
679 | } \
|
---|
680 | (void)0
|
---|
681 |
|
---|
682 | /** Opcode 0x66 0x0f 0x38 0x10 (legacy only). */
|
---|
683 | FNIEMOP_DEF(iemOp_pblendvb_Vdq_Wdq)
|
---|
684 | {
|
---|
685 | IEMOP_MNEMONIC3EX(pblendvb_Vdq_Wdq_XMM0, "pblendvb Vdq,Wdq,xmm0",
|
---|
686 | RM0, PBLENDVB, pblendvb, Vdq, Wdq, REG_XMM0, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
687 | IEMOP_BODY_P_BLEND_X(pblendvb);
|
---|
688 | }
|
---|
689 |
|
---|
690 |
|
---|
691 | /* Opcode 0x0f 0x38 0x11 - invalid */
|
---|
692 | /* Opcode 0x66 0x0f 0x38 0x11 - invalid */
|
---|
693 | /* Opcode 0x0f 0x38 0x12 - invalid */
|
---|
694 | /* Opcode 0x66 0x0f 0x38 0x12 - invalid */
|
---|
695 | /* Opcode 0x0f 0x38 0x13 - invalid */
|
---|
696 | /* Opcode 0x66 0x0f 0x38 0x13 - invalid (vex only). */
|
---|
697 | /* Opcode 0x0f 0x38 0x14 - invalid */
|
---|
698 |
|
---|
699 |
|
---|
700 | /** Opcode 0x66 0x0f 0x38 0x14 (legacy only). */
|
---|
701 | FNIEMOP_DEF(iemOp_blendvps_Vdq_Wdq)
|
---|
702 | {
|
---|
703 | IEMOP_MNEMONIC3EX(blendvps_Vdq_Wdq_XMM0, "blendvps Vdq,Wdq,xmm0",
|
---|
704 | RM0, BLENDVPS, blendvps, Vdq, Wdq, REG_XMM0, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
705 | IEMOP_BODY_P_BLEND_X(blendvps);
|
---|
706 | }
|
---|
707 |
|
---|
708 |
|
---|
709 | /* Opcode 0x0f 0x38 0x15 - invalid */
|
---|
710 |
|
---|
711 |
|
---|
712 | /** Opcode 0x66 0x0f 0x38 0x15 (legacy only). */
|
---|
713 | FNIEMOP_DEF(iemOp_blendvpd_Vdq_Wdq)
|
---|
714 | {
|
---|
715 | IEMOP_MNEMONIC3EX(blendvpd_Vdq_Wdq_XMM0, "blendvpd Vdq,Wdq,xmm0",
|
---|
716 | RM0, BLENDVPD, blendvpd, Vdq, Wdq, REG_XMM0, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
717 | IEMOP_BODY_P_BLEND_X(blendvpd);
|
---|
718 | }
|
---|
719 |
|
---|
720 |
|
---|
721 | /* Opcode 0x0f 0x38 0x16 - invalid */
|
---|
722 | /* Opcode 0x66 0x0f 0x38 0x16 - invalid (vex only). */
|
---|
723 | /* Opcode 0x0f 0x38 0x17 - invalid */
|
---|
724 |
|
---|
725 |
|
---|
726 | /**
|
---|
727 | * @opcode 0x17
|
---|
728 | * @oppfx 0x66
|
---|
729 | * @opflmodify cf,pf,af,zf,sf,of
|
---|
730 | * @opflclear pf,af,sf,of
|
---|
731 | */
|
---|
732 | FNIEMOP_DEF(iemOp_ptest_Vx_Wx)
|
---|
733 | {
|
---|
734 | IEMOP_MNEMONIC2(RM, PTEST, ptest, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
735 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
736 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
737 | {
|
---|
738 | /*
|
---|
739 | * Register, register.
|
---|
740 | */
|
---|
741 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
742 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41);
|
---|
743 | IEM_MC_ARG(PCRTUINT128U, puSrc1, 0);
|
---|
744 | IEM_MC_ARG(PCRTUINT128U, puSrc2, 1);
|
---|
745 | IEM_MC_ARG(uint32_t *, pEFlags, 2);
|
---|
746 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
747 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
748 | IEM_MC_REF_XREG_U128_CONST(puSrc1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
749 | IEM_MC_REF_XREG_U128_CONST(puSrc2, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
750 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
751 | IEM_MC_CALL_VOID_AIMPL_3(iemAImpl_ptest_u128, puSrc1, puSrc2, pEFlags);
|
---|
752 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
753 | IEM_MC_END();
|
---|
754 | }
|
---|
755 | else
|
---|
756 | {
|
---|
757 | /*
|
---|
758 | * Register, memory.
|
---|
759 | */
|
---|
760 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
761 | IEM_MC_ARG(PCRTUINT128U, puSrc1, 0);
|
---|
762 | IEM_MC_LOCAL(RTUINT128U, uSrc2);
|
---|
763 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc2, uSrc2, 1);
|
---|
764 | IEM_MC_ARG(uint32_t *, pEFlags, 2);
|
---|
765 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
766 |
|
---|
767 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
768 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41);
|
---|
769 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
770 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc2, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
771 |
|
---|
772 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
773 | IEM_MC_REF_XREG_U128_CONST(puSrc1, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
774 | IEM_MC_REF_EFLAGS(pEFlags);
|
---|
775 | IEM_MC_CALL_VOID_AIMPL_3(iemAImpl_ptest_u128, puSrc1, puSrc2, pEFlags);
|
---|
776 |
|
---|
777 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
778 | IEM_MC_END();
|
---|
779 | }
|
---|
780 | }
|
---|
781 |
|
---|
782 |
|
---|
783 | /* Opcode 0x0f 0x38 0x18 - invalid */
|
---|
784 | /* Opcode 0x66 0x0f 0x38 0x18 - invalid (vex only). */
|
---|
785 | /* Opcode 0x0f 0x38 0x19 - invalid */
|
---|
786 | /* Opcode 0x66 0x0f 0x38 0x19 - invalid (vex only). */
|
---|
787 | /* Opcode 0x0f 0x38 0x1a - invalid */
|
---|
788 | /* Opcode 0x66 0x0f 0x38 0x1a - invalid (vex only). */
|
---|
789 | /* Opcode 0x0f 0x38 0x1b - invalid */
|
---|
790 | /* Opcode 0x66 0x0f 0x38 0x1b - invalid */
|
---|
791 |
|
---|
792 |
|
---|
793 | /** Opcode 0x0f 0x38 0x1c. */
|
---|
794 | FNIEMOP_DEF(iemOp_pabsb_Pq_Qq)
|
---|
795 | {
|
---|
796 | IEMOP_MNEMONIC2(RM, PABSB, pabsb, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
797 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
798 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pabsb_u64, &iemAImpl_pabsb_u64_fallback));
|
---|
799 | }
|
---|
800 |
|
---|
801 |
|
---|
802 | /** Opcode 0x66 0x0f 0x38 0x1c. */
|
---|
803 | FNIEMOP_DEF(iemOp_pabsb_Vx_Wx)
|
---|
804 | {
|
---|
805 | IEMOP_MNEMONIC2(RM, PABSB, pabsb, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
806 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
807 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pabsb_u128, iemAImpl_pabsb_u128_fallback));
|
---|
808 |
|
---|
809 | }
|
---|
810 |
|
---|
811 |
|
---|
812 | /** Opcode 0x0f 0x38 0x1d. */
|
---|
813 | FNIEMOP_DEF(iemOp_pabsw_Pq_Qq)
|
---|
814 | {
|
---|
815 | IEMOP_MNEMONIC2(RM, PABSW, pabsw, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
816 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
817 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pabsw_u64, &iemAImpl_pabsw_u64_fallback));
|
---|
818 | }
|
---|
819 |
|
---|
820 |
|
---|
821 | /** Opcode 0x66 0x0f 0x38 0x1d. */
|
---|
822 | FNIEMOP_DEF(iemOp_pabsw_Vx_Wx)
|
---|
823 | {
|
---|
824 | IEMOP_MNEMONIC2(RM, PABSW, pabsw, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
825 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
826 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pabsw_u128, iemAImpl_pabsw_u128_fallback));
|
---|
827 |
|
---|
828 | }
|
---|
829 |
|
---|
830 |
|
---|
831 | /** Opcode 0x0f 0x38 0x1e. */
|
---|
832 | FNIEMOP_DEF(iemOp_pabsd_Pq_Qq)
|
---|
833 | {
|
---|
834 | IEMOP_MNEMONIC2(RM, PABSD, pabsd, Pq, Qq, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
835 | return FNIEMOP_CALL_1(iemOpCommonMmxOpt_FullFull_To_Full_Ssse3,
|
---|
836 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pabsd_u64, &iemAImpl_pabsd_u64_fallback));
|
---|
837 | }
|
---|
838 |
|
---|
839 |
|
---|
840 | /** Opcode 0x66 0x0f 0x38 0x1e. */
|
---|
841 | FNIEMOP_DEF(iemOp_pabsd_Vx_Wx)
|
---|
842 | {
|
---|
843 | IEMOP_MNEMONIC2(RM, PABSD, pabsd, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
844 | return FNIEMOP_CALL_1(iemOpCommonSsse3Opt_FullFull_To_Full,
|
---|
845 | IEM_SELECT_HOST_OR_FALLBACK(fSsse3, iemAImpl_pabsd_u128, iemAImpl_pabsd_u128_fallback));
|
---|
846 |
|
---|
847 | }
|
---|
848 |
|
---|
849 |
|
---|
850 | /* Opcode 0x0f 0x38 0x1f - invalid */
|
---|
851 | /* Opcode 0x66 0x0f 0x38 0x1f - invalid */
|
---|
852 |
|
---|
853 |
|
---|
854 | /** Body for the pmov{s,z}x* instructions. */
|
---|
855 | #define IEMOP_BODY_PMOV_S_Z(a_Instr, a_SrcWidth) \
|
---|
856 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
857 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
858 | { \
|
---|
859 | /* \
|
---|
860 | * Register, register. \
|
---|
861 | */ \
|
---|
862 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0); \
|
---|
863 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41); \
|
---|
864 | IEM_MC_ARG(PRTUINT128U, puDst, 0); \
|
---|
865 | IEM_MC_ARG(uint ## a_SrcWidth ## _t, uSrc, 1); \
|
---|
866 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT(); \
|
---|
867 | IEM_MC_PREPARE_SSE_USAGE(); \
|
---|
868 | IEM_MC_FETCH_XREG_U ## a_SrcWidth (uSrc, IEM_GET_MODRM_RM(pVCpu, bRm), 0); \
|
---|
869 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
870 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse41, \
|
---|
871 | iemAImpl_ ## a_Instr ## _u128, \
|
---|
872 | iemAImpl_v ## a_Instr ## _u128_fallback), \
|
---|
873 | puDst, uSrc); \
|
---|
874 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
875 | IEM_MC_END(); \
|
---|
876 | } \
|
---|
877 | else \
|
---|
878 | { \
|
---|
879 | /* \
|
---|
880 | * Register, memory. \
|
---|
881 | */ \
|
---|
882 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0); \
|
---|
883 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
884 | IEM_MC_ARG(PRTUINT128U, puDst, 0); \
|
---|
885 | IEM_MC_ARG(uint ## a_SrcWidth ## _t, uSrc, 1); \
|
---|
886 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0); \
|
---|
887 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41); \
|
---|
888 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT(); \
|
---|
889 | IEM_MC_PREPARE_SSE_USAGE(); \
|
---|
890 | IEM_MC_FETCH_MEM_U## a_SrcWidth (uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
891 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
892 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse41, \
|
---|
893 | iemAImpl_ ## a_Instr ## _u128, \
|
---|
894 | iemAImpl_v ## a_Instr ## _u128_fallback), \
|
---|
895 | puDst, uSrc); \
|
---|
896 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
897 | IEM_MC_END(); \
|
---|
898 | } \
|
---|
899 | (void)0
|
---|
900 |
|
---|
901 |
|
---|
902 | /** Opcode 0x66 0x0f 0x38 0x20. */
|
---|
903 | FNIEMOP_DEF(iemOp_pmovsxbw_Vx_UxMq)
|
---|
904 | {
|
---|
905 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
906 | IEMOP_MNEMONIC2(RM, PMOVSXBW, pmovsxbw, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
907 | IEMOP_BODY_PMOV_S_Z(pmovsxbw, 64);
|
---|
908 | }
|
---|
909 |
|
---|
910 |
|
---|
911 | /** Opcode 0x66 0x0f 0x38 0x21. */
|
---|
912 | FNIEMOP_DEF(iemOp_pmovsxbd_Vx_UxMd)
|
---|
913 | {
|
---|
914 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
915 | IEMOP_MNEMONIC2(RM, PMOVSXBD, pmovsxbd, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
916 | IEMOP_BODY_PMOV_S_Z(pmovsxbd, 32);
|
---|
917 | }
|
---|
918 |
|
---|
919 |
|
---|
920 | /** Opcode 0x66 0x0f 0x38 0x22. */
|
---|
921 | FNIEMOP_DEF(iemOp_pmovsxbq_Vx_UxMw)
|
---|
922 | {
|
---|
923 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
924 | IEMOP_MNEMONIC2(RM, PMOVSXBQ, pmovsxbq, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
925 | IEMOP_BODY_PMOV_S_Z(pmovsxbq, 16);
|
---|
926 | }
|
---|
927 |
|
---|
928 |
|
---|
929 | /** Opcode 0x66 0x0f 0x38 0x23. */
|
---|
930 | FNIEMOP_DEF(iemOp_pmovsxwd_Vx_UxMq)
|
---|
931 | {
|
---|
932 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
933 | IEMOP_MNEMONIC2(RM, PMOVSXWD, pmovsxwd, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
934 | IEMOP_BODY_PMOV_S_Z(pmovsxwd, 64);
|
---|
935 | }
|
---|
936 |
|
---|
937 |
|
---|
938 | /** Opcode 0x66 0x0f 0x38 0x24. */
|
---|
939 | FNIEMOP_DEF(iemOp_pmovsxwq_Vx_UxMd)
|
---|
940 | {
|
---|
941 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
942 | IEMOP_MNEMONIC2(RM, PMOVSXWQ, pmovsxwq, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
943 | IEMOP_BODY_PMOV_S_Z(pmovsxwq, 32);
|
---|
944 | }
|
---|
945 |
|
---|
946 |
|
---|
947 | /** Opcode 0x66 0x0f 0x38 0x25. */
|
---|
948 | FNIEMOP_DEF(iemOp_pmovsxdq_Vx_UxMq)
|
---|
949 | {
|
---|
950 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
951 | IEMOP_MNEMONIC2(RM, PMOVSXDQ, pmovsxdq, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
952 | IEMOP_BODY_PMOV_S_Z(pmovsxdq, 64);
|
---|
953 | }
|
---|
954 |
|
---|
955 |
|
---|
956 | /* Opcode 0x66 0x0f 0x38 0x26 - invalid */
|
---|
957 | /* Opcode 0x66 0x0f 0x38 0x27 - invalid */
|
---|
958 |
|
---|
959 |
|
---|
960 | /** Opcode 0x66 0x0f 0x38 0x28. */
|
---|
961 | FNIEMOP_DEF(iemOp_pmuldq_Vx_Wx)
|
---|
962 | {
|
---|
963 | IEMOP_MNEMONIC2(RM, PMULDQ, pmuldq, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
964 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
965 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pmuldq_u128, iemAImpl_pmuldq_u128_fallback));
|
---|
966 | }
|
---|
967 |
|
---|
968 |
|
---|
969 | /** Opcode 0x66 0x0f 0x38 0x29. */
|
---|
970 | FNIEMOP_DEF(iemOp_pcmpeqq_Vx_Wx)
|
---|
971 | {
|
---|
972 | IEMOP_MNEMONIC2(RM, PCMPEQQ, pcmpeqq, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
973 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
974 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pcmpeqq_u128, iemAImpl_pcmpeqq_u128_fallback));
|
---|
975 | }
|
---|
976 |
|
---|
977 |
|
---|
978 | /**
|
---|
979 | * @opcode 0x2a
|
---|
980 | * @opcodesub !11 mr/reg
|
---|
981 | * @oppfx 0x66
|
---|
982 | * @opcpuid sse4.1
|
---|
983 | * @opgroup og_sse41_cachect
|
---|
984 | * @opxcpttype 1
|
---|
985 | * @optest op1=-1 op2=2 -> op1=2
|
---|
986 | * @optest op1=0 op2=-42 -> op1=-42
|
---|
987 | */
|
---|
988 | FNIEMOP_DEF(iemOp_movntdqa_Vdq_Mdq)
|
---|
989 | {
|
---|
990 | IEMOP_MNEMONIC2(RM_MEM, MOVNTDQA, movntdqa, Vdq_WO, Mdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
991 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
992 | if (IEM_IS_MODRM_MEM_MODE(bRm))
|
---|
993 | {
|
---|
994 | /* Register, memory. */
|
---|
995 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
996 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
997 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
998 |
|
---|
999 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1000 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSse41);
|
---|
1001 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
1002 | IEM_MC_ACTUALIZE_SSE_STATE_FOR_CHANGE();
|
---|
1003 |
|
---|
1004 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1005 | IEM_MC_STORE_XREG_U128(IEM_GET_MODRM_REG(pVCpu, bRm), uSrc);
|
---|
1006 |
|
---|
1007 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1008 | IEM_MC_END();
|
---|
1009 | }
|
---|
1010 |
|
---|
1011 | /**
|
---|
1012 | * @opdone
|
---|
1013 | * @opmnemonic ud660f382areg
|
---|
1014 | * @opcode 0x2a
|
---|
1015 | * @opcodesub 11 mr/reg
|
---|
1016 | * @oppfx 0x66
|
---|
1017 | * @opunused immediate
|
---|
1018 | * @opcpuid sse
|
---|
1019 | * @optest ->
|
---|
1020 | */
|
---|
1021 | else
|
---|
1022 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
1023 | }
|
---|
1024 |
|
---|
1025 |
|
---|
1026 | /** Opcode 0x66 0x0f 0x38 0x2b. */
|
---|
1027 | FNIEMOP_DEF(iemOp_packusdw_Vx_Wx)
|
---|
1028 | {
|
---|
1029 | IEMOP_MNEMONIC2(RM, PACKUSDW, packusdw, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, 0);
|
---|
1030 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full, iemAImpl_packusdw_u128);
|
---|
1031 | }
|
---|
1032 |
|
---|
1033 |
|
---|
1034 | /* Opcode 0x66 0x0f 0x38 0x2c - invalid (vex only). */
|
---|
1035 | /* Opcode 0x66 0x0f 0x38 0x2d - invalid (vex only). */
|
---|
1036 | /* Opcode 0x66 0x0f 0x38 0x2e - invalid (vex only). */
|
---|
1037 | /* Opcode 0x66 0x0f 0x38 0x2f - invalid (vex only). */
|
---|
1038 |
|
---|
1039 | /** Opcode 0x66 0x0f 0x38 0x30. */
|
---|
1040 | FNIEMOP_DEF(iemOp_pmovzxbw_Vx_UxMq)
|
---|
1041 | {
|
---|
1042 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
1043 | IEMOP_MNEMONIC2(RM, PMOVZXBW, pmovzxbw, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1044 | IEMOP_BODY_PMOV_S_Z(pmovzxbw, 64);
|
---|
1045 | }
|
---|
1046 |
|
---|
1047 |
|
---|
1048 | /** Opcode 0x66 0x0f 0x38 0x31. */
|
---|
1049 | FNIEMOP_DEF(iemOp_pmovzxbd_Vx_UxMd)
|
---|
1050 | {
|
---|
1051 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
1052 | IEMOP_MNEMONIC2(RM, PMOVZXBD, pmovzxbd, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1053 | IEMOP_BODY_PMOV_S_Z(pmovzxbd, 32);
|
---|
1054 | }
|
---|
1055 |
|
---|
1056 |
|
---|
1057 | /** Opcode 0x66 0x0f 0x38 0x32. */
|
---|
1058 | FNIEMOP_DEF(iemOp_pmovzxbq_Vx_UxMw)
|
---|
1059 | {
|
---|
1060 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
1061 | IEMOP_MNEMONIC2(RM, PMOVZXBQ, pmovzxbq, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1062 | IEMOP_BODY_PMOV_S_Z(pmovzxbq, 16);
|
---|
1063 | }
|
---|
1064 |
|
---|
1065 |
|
---|
1066 | /** Opcode 0x66 0x0f 0x38 0x33. */
|
---|
1067 | FNIEMOP_DEF(iemOp_pmovzxwd_Vx_UxMq)
|
---|
1068 | {
|
---|
1069 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
1070 | IEMOP_MNEMONIC2(RM, PMOVZXWD, pmovzxwd, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1071 | IEMOP_BODY_PMOV_S_Z(pmovzxwd, 64);
|
---|
1072 | }
|
---|
1073 |
|
---|
1074 |
|
---|
1075 | /** Opcode 0x66 0x0f 0x38 0x34. */
|
---|
1076 | FNIEMOP_DEF(iemOp_pmovzxwq_Vx_UxMd)
|
---|
1077 | {
|
---|
1078 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
1079 | IEMOP_MNEMONIC2(RM, PMOVZXWQ, pmovzxwq, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1080 | IEMOP_BODY_PMOV_S_Z(pmovzxwq, 32);
|
---|
1081 | }
|
---|
1082 |
|
---|
1083 |
|
---|
1084 | /** Opcode 0x66 0x0f 0x38 0x35. */
|
---|
1085 | FNIEMOP_DEF(iemOp_pmovzxdq_Vx_UxMq)
|
---|
1086 | {
|
---|
1087 | /** @todo r=aeichner Review code, the naming of this function and the parameter type specifiers. */
|
---|
1088 | IEMOP_MNEMONIC2(RM, PMOVZXDQ, pmovzxdq, Vx, Wq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1089 | IEMOP_BODY_PMOV_S_Z(pmovzxdq, 64);
|
---|
1090 | }
|
---|
1091 |
|
---|
1092 |
|
---|
1093 | /* Opcode 0x66 0x0f 0x38 0x36 - invalid (vex only). */
|
---|
1094 |
|
---|
1095 |
|
---|
1096 | /** Opcode 0x66 0x0f 0x38 0x37. */
|
---|
1097 | FNIEMOP_DEF(iemOp_pcmpgtq_Vx_Wx)
|
---|
1098 | {
|
---|
1099 | IEMOP_MNEMONIC2(RM, PCMPGTQ, pcmpgtq, Vx, Wx, DISOPTYPE_HARMLESS, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1100 | return FNIEMOP_CALL_1(iemOpCommonSse42Opt_FullFull_To_Full,
|
---|
1101 | IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_pcmpgtq_u128, iemAImpl_pcmpgtq_u128_fallback));
|
---|
1102 | }
|
---|
1103 |
|
---|
1104 |
|
---|
1105 | /** Opcode 0x66 0x0f 0x38 0x38. */
|
---|
1106 | FNIEMOP_DEF(iemOp_pminsb_Vx_Wx)
|
---|
1107 | {
|
---|
1108 | IEMOP_MNEMONIC2(RM, PMINSB, pminsb, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1109 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1110 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pminsb_u128, iemAImpl_pminsb_u128_fallback));
|
---|
1111 | }
|
---|
1112 |
|
---|
1113 |
|
---|
1114 | /** Opcode 0x66 0x0f 0x38 0x39. */
|
---|
1115 | FNIEMOP_DEF(iemOp_pminsd_Vx_Wx)
|
---|
1116 | {
|
---|
1117 | IEMOP_MNEMONIC2(RM, PMINSD, pminsd, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1118 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1119 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pminsd_u128, iemAImpl_pminsd_u128_fallback));
|
---|
1120 | }
|
---|
1121 |
|
---|
1122 |
|
---|
1123 | /** Opcode 0x66 0x0f 0x38 0x3a. */
|
---|
1124 | FNIEMOP_DEF(iemOp_pminuw_Vx_Wx)
|
---|
1125 | {
|
---|
1126 | IEMOP_MNEMONIC2(RM, PMINUW, pminuw, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1127 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1128 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pminuw_u128, iemAImpl_pminuw_u128_fallback));
|
---|
1129 | }
|
---|
1130 |
|
---|
1131 |
|
---|
1132 | /** Opcode 0x66 0x0f 0x38 0x3b. */
|
---|
1133 | FNIEMOP_DEF(iemOp_pminud_Vx_Wx)
|
---|
1134 | {
|
---|
1135 | IEMOP_MNEMONIC2(RM, PMINUD, pminud, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1136 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1137 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pminud_u128, iemAImpl_pminud_u128_fallback));
|
---|
1138 | }
|
---|
1139 |
|
---|
1140 |
|
---|
1141 | /** Opcode 0x66 0x0f 0x38 0x3c. */
|
---|
1142 | FNIEMOP_DEF(iemOp_pmaxsb_Vx_Wx)
|
---|
1143 | {
|
---|
1144 | IEMOP_MNEMONIC2(RM, PMAXSB, pmaxsb, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1145 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1146 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pmaxsb_u128, iemAImpl_pmaxsb_u128_fallback));
|
---|
1147 | }
|
---|
1148 |
|
---|
1149 |
|
---|
1150 | /** Opcode 0x66 0x0f 0x38 0x3d. */
|
---|
1151 | FNIEMOP_DEF(iemOp_pmaxsd_Vx_Wx)
|
---|
1152 | {
|
---|
1153 | IEMOP_MNEMONIC2(RM, PMAXSD, pmaxsd, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1154 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1155 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pmaxsd_u128, iemAImpl_pmaxsd_u128_fallback));
|
---|
1156 | }
|
---|
1157 |
|
---|
1158 |
|
---|
1159 | /** Opcode 0x66 0x0f 0x38 0x3e. */
|
---|
1160 | FNIEMOP_DEF(iemOp_pmaxuw_Vx_Wx)
|
---|
1161 | {
|
---|
1162 | IEMOP_MNEMONIC2(RM, PMAXUW, pmaxuw, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1163 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1164 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pmaxuw_u128, iemAImpl_pmaxuw_u128_fallback));
|
---|
1165 | }
|
---|
1166 |
|
---|
1167 |
|
---|
1168 | /** Opcode 0x66 0x0f 0x38 0x3f. */
|
---|
1169 | FNIEMOP_DEF(iemOp_pmaxud_Vx_Wx)
|
---|
1170 | {
|
---|
1171 | IEMOP_MNEMONIC2(RM, PMAXUD, pmaxud, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1172 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1173 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pmaxud_u128, iemAImpl_pmaxud_u128_fallback));
|
---|
1174 | }
|
---|
1175 |
|
---|
1176 |
|
---|
1177 | /** Opcode 0x66 0x0f 0x38 0x40. */
|
---|
1178 | FNIEMOP_DEF(iemOp_pmulld_Vx_Wx)
|
---|
1179 | {
|
---|
1180 | IEMOP_MNEMONIC2(RM, PMULLD, pmulld, Vx, Wx, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1181 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1182 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_pmulld_u128, iemAImpl_pmulld_u128_fallback));
|
---|
1183 | }
|
---|
1184 |
|
---|
1185 |
|
---|
1186 | /** Opcode 0x66 0x0f 0x38 0x41. */
|
---|
1187 | FNIEMOP_DEF(iemOp_phminposuw_Vdq_Wdq)
|
---|
1188 | {
|
---|
1189 | IEMOP_MNEMONIC2(RM, PHMINPOSUW, phminposuw, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1190 | return FNIEMOP_CALL_1(iemOpCommonSse41Opt_FullFull_To_Full,
|
---|
1191 | IEM_SELECT_HOST_OR_FALLBACK(fSse41, iemAImpl_phminposuw_u128, iemAImpl_phminposuw_u128_fallback));
|
---|
1192 | }
|
---|
1193 |
|
---|
1194 |
|
---|
1195 | /* Opcode 0x66 0x0f 0x38 0x42 - invalid. */
|
---|
1196 | /* Opcode 0x66 0x0f 0x38 0x43 - invalid. */
|
---|
1197 | /* Opcode 0x66 0x0f 0x38 0x44 - invalid. */
|
---|
1198 | /* Opcode 0x66 0x0f 0x38 0x45 - invalid (vex only). */
|
---|
1199 | /* Opcode 0x66 0x0f 0x38 0x46 - invalid (vex only). */
|
---|
1200 | /* Opcode 0x66 0x0f 0x38 0x47 - invalid (vex only). */
|
---|
1201 | /* Opcode 0x66 0x0f 0x38 0x48 - invalid. */
|
---|
1202 | /* Opcode 0x66 0x0f 0x38 0x49 - invalid. */
|
---|
1203 | /* Opcode 0x66 0x0f 0x38 0x4a - invalid. */
|
---|
1204 | /* Opcode 0x66 0x0f 0x38 0x4b - invalid. */
|
---|
1205 | /* Opcode 0x66 0x0f 0x38 0x4c - invalid. */
|
---|
1206 | /* Opcode 0x66 0x0f 0x38 0x4d - invalid. */
|
---|
1207 | /* Opcode 0x66 0x0f 0x38 0x4e - invalid. */
|
---|
1208 | /* Opcode 0x66 0x0f 0x38 0x4f - invalid. */
|
---|
1209 |
|
---|
1210 | /* Opcode 0x66 0x0f 0x38 0x50 - invalid. */
|
---|
1211 | /* Opcode 0x66 0x0f 0x38 0x51 - invalid. */
|
---|
1212 | /* Opcode 0x66 0x0f 0x38 0x52 - invalid. */
|
---|
1213 | /* Opcode 0x66 0x0f 0x38 0x53 - invalid. */
|
---|
1214 | /* Opcode 0x66 0x0f 0x38 0x54 - invalid. */
|
---|
1215 | /* Opcode 0x66 0x0f 0x38 0x55 - invalid. */
|
---|
1216 | /* Opcode 0x66 0x0f 0x38 0x56 - invalid. */
|
---|
1217 | /* Opcode 0x66 0x0f 0x38 0x57 - invalid. */
|
---|
1218 | /* Opcode 0x66 0x0f 0x38 0x58 - invalid (vex only). */
|
---|
1219 | /* Opcode 0x66 0x0f 0x38 0x59 - invalid (vex only). */
|
---|
1220 | /* Opcode 0x66 0x0f 0x38 0x5a - invalid (vex only). */
|
---|
1221 | /* Opcode 0x66 0x0f 0x38 0x5b - invalid. */
|
---|
1222 | /* Opcode 0x66 0x0f 0x38 0x5c - invalid. */
|
---|
1223 | /* Opcode 0x66 0x0f 0x38 0x5d - invalid. */
|
---|
1224 | /* Opcode 0x66 0x0f 0x38 0x5e - invalid. */
|
---|
1225 | /* Opcode 0x66 0x0f 0x38 0x5f - invalid. */
|
---|
1226 |
|
---|
1227 | /* Opcode 0x66 0x0f 0x38 0x60 - invalid. */
|
---|
1228 | /* Opcode 0x66 0x0f 0x38 0x61 - invalid. */
|
---|
1229 | /* Opcode 0x66 0x0f 0x38 0x62 - invalid. */
|
---|
1230 | /* Opcode 0x66 0x0f 0x38 0x63 - invalid. */
|
---|
1231 | /* Opcode 0x66 0x0f 0x38 0x64 - invalid. */
|
---|
1232 | /* Opcode 0x66 0x0f 0x38 0x65 - invalid. */
|
---|
1233 | /* Opcode 0x66 0x0f 0x38 0x66 - invalid. */
|
---|
1234 | /* Opcode 0x66 0x0f 0x38 0x67 - invalid. */
|
---|
1235 | /* Opcode 0x66 0x0f 0x38 0x68 - invalid. */
|
---|
1236 | /* Opcode 0x66 0x0f 0x38 0x69 - invalid. */
|
---|
1237 | /* Opcode 0x66 0x0f 0x38 0x6a - invalid. */
|
---|
1238 | /* Opcode 0x66 0x0f 0x38 0x6b - invalid. */
|
---|
1239 | /* Opcode 0x66 0x0f 0x38 0x6c - invalid. */
|
---|
1240 | /* Opcode 0x66 0x0f 0x38 0x6d - invalid. */
|
---|
1241 | /* Opcode 0x66 0x0f 0x38 0x6e - invalid. */
|
---|
1242 | /* Opcode 0x66 0x0f 0x38 0x6f - invalid. */
|
---|
1243 |
|
---|
1244 | /* Opcode 0x66 0x0f 0x38 0x70 - invalid. */
|
---|
1245 | /* Opcode 0x66 0x0f 0x38 0x71 - invalid. */
|
---|
1246 | /* Opcode 0x66 0x0f 0x38 0x72 - invalid. */
|
---|
1247 | /* Opcode 0x66 0x0f 0x38 0x73 - invalid. */
|
---|
1248 | /* Opcode 0x66 0x0f 0x38 0x74 - invalid. */
|
---|
1249 | /* Opcode 0x66 0x0f 0x38 0x75 - invalid. */
|
---|
1250 | /* Opcode 0x66 0x0f 0x38 0x76 - invalid. */
|
---|
1251 | /* Opcode 0x66 0x0f 0x38 0x77 - invalid. */
|
---|
1252 | /* Opcode 0x66 0x0f 0x38 0x78 - invalid (vex only). */
|
---|
1253 | /* Opcode 0x66 0x0f 0x38 0x79 - invalid (vex only). */
|
---|
1254 | /* Opcode 0x66 0x0f 0x38 0x7a - invalid. */
|
---|
1255 | /* Opcode 0x66 0x0f 0x38 0x7b - invalid. */
|
---|
1256 | /* Opcode 0x66 0x0f 0x38 0x7c - invalid. */
|
---|
1257 | /* Opcode 0x66 0x0f 0x38 0x7d - invalid. */
|
---|
1258 | /* Opcode 0x66 0x0f 0x38 0x7e - invalid. */
|
---|
1259 | /* Opcode 0x66 0x0f 0x38 0x7f - invalid. */
|
---|
1260 |
|
---|
1261 | /** Opcode 0x66 0x0f 0x38 0x80. */
|
---|
1262 | #ifdef VBOX_WITH_NESTED_HWVIRT_VMX_EPT
|
---|
1263 | FNIEMOP_DEF(iemOp_invept_Gy_Mdq)
|
---|
1264 | {
|
---|
1265 | IEMOP_MNEMONIC(invept, "invept Gy,Mdq");
|
---|
1266 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1267 | if (IEM_IS_MODRM_MEM_MODE(bRm))
|
---|
1268 | {
|
---|
1269 | /* Register, memory. */
|
---|
1270 | IEMOP_HLP_NO_REAL_OR_V86_MODE();
|
---|
1271 | if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
|
---|
1272 | {
|
---|
1273 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1274 | IEM_MC_ARG(RTGCPTR, GCPtrInveptDesc, 1);
|
---|
1275 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrInveptDesc, bRm, 0);
|
---|
1276 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1277 | IEMOP_HLP_IN_VMX_OPERATION("invept", kVmxVDiag_Invept);
|
---|
1278 | IEMOP_HLP_VMX_INSTR( "invept", kVmxVDiag_Invept);
|
---|
1279 | IEM_MC_ARG_CONST(uint8_t, iEffSeg, /*=*/ pVCpu->iem.s.iEffSeg, 0);
|
---|
1280 | IEM_MC_ARG(uint64_t, uInveptType, 2);
|
---|
1281 | IEM_MC_FETCH_GREG_U64(uInveptType, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1282 | IEM_MC_CALL_CIMPL_3(IEM_CIMPL_F_VMEXIT | IEM_CIMPL_F_STATUS_FLAGS, 0,
|
---|
1283 | iemCImpl_invept, iEffSeg, GCPtrInveptDesc, uInveptType);
|
---|
1284 | IEM_MC_END();
|
---|
1285 | }
|
---|
1286 | else
|
---|
1287 | {
|
---|
1288 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1289 | IEM_MC_ARG(RTGCPTR, GCPtrInveptDesc, 1);
|
---|
1290 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrInveptDesc, bRm, 0);
|
---|
1291 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1292 | IEMOP_HLP_IN_VMX_OPERATION("invept", kVmxVDiag_Invept);
|
---|
1293 | IEMOP_HLP_VMX_INSTR( "invept", kVmxVDiag_Invept);
|
---|
1294 | IEM_MC_ARG_CONST(uint8_t, iEffSeg, /*=*/ pVCpu->iem.s.iEffSeg, 0);
|
---|
1295 | IEM_MC_ARG(uint32_t, uInveptType, 2);
|
---|
1296 | IEM_MC_FETCH_GREG_U32(uInveptType, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1297 | IEM_MC_CALL_CIMPL_3(IEM_CIMPL_F_VMEXIT | IEM_CIMPL_F_STATUS_FLAGS, 0,
|
---|
1298 | iemCImpl_invept, iEffSeg, GCPtrInveptDesc, uInveptType);
|
---|
1299 | IEM_MC_END();
|
---|
1300 | }
|
---|
1301 | }
|
---|
1302 | Log(("iemOp_invept_Gy_Mdq: invalid encoding -> #UD\n"));
|
---|
1303 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1304 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
1305 | }
|
---|
1306 | #else
|
---|
1307 | FNIEMOP_UD_STUB(iemOp_invept_Gy_Mdq);
|
---|
1308 | #endif
|
---|
1309 |
|
---|
1310 | /** Opcode 0x66 0x0f 0x38 0x81. */
|
---|
1311 | #ifdef VBOX_WITH_NESTED_HWVIRT_VMX
|
---|
1312 | FNIEMOP_DEF(iemOp_invvpid_Gy_Mdq)
|
---|
1313 | {
|
---|
1314 | IEMOP_MNEMONIC(invvpid, "invvpid Gy,Mdq");
|
---|
1315 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1316 | if (IEM_IS_MODRM_MEM_MODE(bRm))
|
---|
1317 | {
|
---|
1318 | /* Register, memory. */
|
---|
1319 | IEMOP_HLP_NO_REAL_OR_V86_MODE();
|
---|
1320 | if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
|
---|
1321 | {
|
---|
1322 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1323 | IEM_MC_ARG(RTGCPTR, GCPtrInvvpidDesc, 1);
|
---|
1324 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrInvvpidDesc, bRm, 0);
|
---|
1325 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1326 | IEMOP_HLP_IN_VMX_OPERATION("invvpid", kVmxVDiag_Invvpid);
|
---|
1327 | IEMOP_HLP_VMX_INSTR("invvpid", kVmxVDiag_Invvpid);
|
---|
1328 | IEM_MC_ARG_CONST(uint8_t, iEffSeg, /*=*/ pVCpu->iem.s.iEffSeg, 0);
|
---|
1329 | IEM_MC_ARG(uint64_t, uInvvpidType, 2);
|
---|
1330 | IEM_MC_FETCH_GREG_U64(uInvvpidType, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1331 | IEM_MC_CALL_CIMPL_3(IEM_CIMPL_F_VMEXIT | IEM_CIMPL_F_STATUS_FLAGS, 0,
|
---|
1332 | iemCImpl_invvpid, iEffSeg, GCPtrInvvpidDesc, uInvvpidType);
|
---|
1333 | IEM_MC_END();
|
---|
1334 | }
|
---|
1335 | else
|
---|
1336 | {
|
---|
1337 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1338 | IEM_MC_ARG(RTGCPTR, GCPtrInvvpidDesc, 1);
|
---|
1339 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrInvvpidDesc, bRm, 0);
|
---|
1340 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1341 | IEMOP_HLP_IN_VMX_OPERATION("invvpid", kVmxVDiag_Invvpid);
|
---|
1342 | IEMOP_HLP_VMX_INSTR("invvpid", kVmxVDiag_Invvpid);
|
---|
1343 | IEM_MC_ARG_CONST(uint8_t, iEffSeg, /*=*/ pVCpu->iem.s.iEffSeg, 0);
|
---|
1344 | IEM_MC_ARG(uint32_t, uInvvpidType, 2);
|
---|
1345 | IEM_MC_FETCH_GREG_U32(uInvvpidType, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1346 | IEM_MC_CALL_CIMPL_3(IEM_CIMPL_F_VMEXIT | IEM_CIMPL_F_STATUS_FLAGS, 0,
|
---|
1347 | iemCImpl_invvpid, iEffSeg, GCPtrInvvpidDesc, uInvvpidType);
|
---|
1348 | IEM_MC_END();
|
---|
1349 | }
|
---|
1350 | }
|
---|
1351 | Log(("iemOp_invvpid_Gy_Mdq: invalid encoding -> #UD\n"));
|
---|
1352 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1353 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
1354 | }
|
---|
1355 | #else
|
---|
1356 | FNIEMOP_UD_STUB(iemOp_invvpid_Gy_Mdq);
|
---|
1357 | #endif
|
---|
1358 |
|
---|
1359 | /** Opcode 0x66 0x0f 0x38 0x82. */
|
---|
1360 | FNIEMOP_DEF(iemOp_invpcid_Gy_Mdq)
|
---|
1361 | {
|
---|
1362 | IEMOP_MNEMONIC(invpcid, "invpcid Gy,Mdq");
|
---|
1363 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1364 | if (IEM_IS_MODRM_MEM_MODE(bRm))
|
---|
1365 | {
|
---|
1366 | /* Register, memory. */
|
---|
1367 | if (pVCpu->iem.s.enmEffOpSize == IEMMODE_64BIT)
|
---|
1368 | {
|
---|
1369 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1370 | IEM_MC_ARG(RTGCPTR, GCPtrInvpcidDesc, 1);
|
---|
1371 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrInvpcidDesc, bRm, 0);
|
---|
1372 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1373 | IEM_MC_ARG_CONST(uint8_t, iEffSeg, /*=*/ pVCpu->iem.s.iEffSeg, 0);
|
---|
1374 | IEM_MC_ARG(uint64_t, uInvpcidType, 2);
|
---|
1375 | IEM_MC_FETCH_GREG_U64(uInvpcidType, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1376 | IEM_MC_CALL_CIMPL_3(IEM_CIMPL_F_VMEXIT, 0, iemCImpl_invpcid, iEffSeg, GCPtrInvpcidDesc, uInvpcidType);
|
---|
1377 | IEM_MC_END();
|
---|
1378 | }
|
---|
1379 | else
|
---|
1380 | {
|
---|
1381 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1382 | IEM_MC_ARG(RTGCPTR, GCPtrInvpcidDesc, 1);
|
---|
1383 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrInvpcidDesc, bRm, 0);
|
---|
1384 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1385 | IEM_MC_ARG_CONST(uint8_t, iEffSeg, /*=*/ pVCpu->iem.s.iEffSeg, 0);
|
---|
1386 | IEM_MC_ARG(uint32_t, uInvpcidType, 2);
|
---|
1387 | IEM_MC_FETCH_GREG_U32(uInvpcidType, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1388 | IEM_MC_CALL_CIMPL_3(IEM_CIMPL_F_VMEXIT, 0, iemCImpl_invpcid, iEffSeg, GCPtrInvpcidDesc, uInvpcidType);
|
---|
1389 | IEM_MC_END();
|
---|
1390 | }
|
---|
1391 | }
|
---|
1392 | Log(("iemOp_invpcid_Gy_Mdq: invalid encoding -> #UD\n"));
|
---|
1393 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1394 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
1395 | }
|
---|
1396 |
|
---|
1397 |
|
---|
1398 | /* Opcode 0x66 0x0f 0x38 0x83 - invalid. */
|
---|
1399 | /* Opcode 0x66 0x0f 0x38 0x84 - invalid. */
|
---|
1400 | /* Opcode 0x66 0x0f 0x38 0x85 - invalid. */
|
---|
1401 | /* Opcode 0x66 0x0f 0x38 0x86 - invalid. */
|
---|
1402 | /* Opcode 0x66 0x0f 0x38 0x87 - invalid. */
|
---|
1403 | /* Opcode 0x66 0x0f 0x38 0x88 - invalid. */
|
---|
1404 | /* Opcode 0x66 0x0f 0x38 0x89 - invalid. */
|
---|
1405 | /* Opcode 0x66 0x0f 0x38 0x8a - invalid. */
|
---|
1406 | /* Opcode 0x66 0x0f 0x38 0x8b - invalid. */
|
---|
1407 | /* Opcode 0x66 0x0f 0x38 0x8c - invalid (vex only). */
|
---|
1408 | /* Opcode 0x66 0x0f 0x38 0x8d - invalid. */
|
---|
1409 | /* Opcode 0x66 0x0f 0x38 0x8e - invalid (vex only). */
|
---|
1410 | /* Opcode 0x66 0x0f 0x38 0x8f - invalid. */
|
---|
1411 |
|
---|
1412 | /* Opcode 0x66 0x0f 0x38 0x90 - invalid (vex only). */
|
---|
1413 | /* Opcode 0x66 0x0f 0x38 0x91 - invalid (vex only). */
|
---|
1414 | /* Opcode 0x66 0x0f 0x38 0x92 - invalid (vex only). */
|
---|
1415 | /* Opcode 0x66 0x0f 0x38 0x93 - invalid (vex only). */
|
---|
1416 | /* Opcode 0x66 0x0f 0x38 0x94 - invalid. */
|
---|
1417 | /* Opcode 0x66 0x0f 0x38 0x95 - invalid. */
|
---|
1418 | /* Opcode 0x66 0x0f 0x38 0x96 - invalid (vex only). */
|
---|
1419 | /* Opcode 0x66 0x0f 0x38 0x97 - invalid (vex only). */
|
---|
1420 | /* Opcode 0x66 0x0f 0x38 0x98 - invalid (vex only). */
|
---|
1421 | /* Opcode 0x66 0x0f 0x38 0x99 - invalid (vex only). */
|
---|
1422 | /* Opcode 0x66 0x0f 0x38 0x9a - invalid (vex only). */
|
---|
1423 | /* Opcode 0x66 0x0f 0x38 0x9b - invalid (vex only). */
|
---|
1424 | /* Opcode 0x66 0x0f 0x38 0x9c - invalid (vex only). */
|
---|
1425 | /* Opcode 0x66 0x0f 0x38 0x9d - invalid (vex only). */
|
---|
1426 | /* Opcode 0x66 0x0f 0x38 0x9e - invalid (vex only). */
|
---|
1427 | /* Opcode 0x66 0x0f 0x38 0x9f - invalid (vex only). */
|
---|
1428 |
|
---|
1429 | /* Opcode 0x66 0x0f 0x38 0xa0 - invalid. */
|
---|
1430 | /* Opcode 0x66 0x0f 0x38 0xa1 - invalid. */
|
---|
1431 | /* Opcode 0x66 0x0f 0x38 0xa2 - invalid. */
|
---|
1432 | /* Opcode 0x66 0x0f 0x38 0xa3 - invalid. */
|
---|
1433 | /* Opcode 0x66 0x0f 0x38 0xa4 - invalid. */
|
---|
1434 | /* Opcode 0x66 0x0f 0x38 0xa5 - invalid. */
|
---|
1435 | /* Opcode 0x66 0x0f 0x38 0xa6 - invalid (vex only). */
|
---|
1436 | /* Opcode 0x66 0x0f 0x38 0xa7 - invalid (vex only). */
|
---|
1437 | /* Opcode 0x66 0x0f 0x38 0xa8 - invalid (vex only). */
|
---|
1438 | /* Opcode 0x66 0x0f 0x38 0xa9 - invalid (vex only). */
|
---|
1439 | /* Opcode 0x66 0x0f 0x38 0xaa - invalid (vex only). */
|
---|
1440 | /* Opcode 0x66 0x0f 0x38 0xab - invalid (vex only). */
|
---|
1441 | /* Opcode 0x66 0x0f 0x38 0xac - invalid (vex only). */
|
---|
1442 | /* Opcode 0x66 0x0f 0x38 0xad - invalid (vex only). */
|
---|
1443 | /* Opcode 0x66 0x0f 0x38 0xae - invalid (vex only). */
|
---|
1444 | /* Opcode 0x66 0x0f 0x38 0xaf - invalid (vex only). */
|
---|
1445 |
|
---|
1446 | /* Opcode 0x66 0x0f 0x38 0xb0 - invalid. */
|
---|
1447 | /* Opcode 0x66 0x0f 0x38 0xb1 - invalid. */
|
---|
1448 | /* Opcode 0x66 0x0f 0x38 0xb2 - invalid. */
|
---|
1449 | /* Opcode 0x66 0x0f 0x38 0xb3 - invalid. */
|
---|
1450 | /* Opcode 0x66 0x0f 0x38 0xb4 - invalid. */
|
---|
1451 | /* Opcode 0x66 0x0f 0x38 0xb5 - invalid. */
|
---|
1452 | /* Opcode 0x66 0x0f 0x38 0xb6 - invalid (vex only). */
|
---|
1453 | /* Opcode 0x66 0x0f 0x38 0xb7 - invalid (vex only). */
|
---|
1454 | /* Opcode 0x66 0x0f 0x38 0xb8 - invalid (vex only). */
|
---|
1455 | /* Opcode 0x66 0x0f 0x38 0xb9 - invalid (vex only). */
|
---|
1456 | /* Opcode 0x66 0x0f 0x38 0xba - invalid (vex only). */
|
---|
1457 | /* Opcode 0x66 0x0f 0x38 0xbb - invalid (vex only). */
|
---|
1458 | /* Opcode 0x66 0x0f 0x38 0xbc - invalid (vex only). */
|
---|
1459 | /* Opcode 0x66 0x0f 0x38 0xbd - invalid (vex only). */
|
---|
1460 | /* Opcode 0x66 0x0f 0x38 0xbe - invalid (vex only). */
|
---|
1461 | /* Opcode 0x66 0x0f 0x38 0xbf - invalid (vex only). */
|
---|
1462 |
|
---|
1463 | /* Opcode 0x0f 0x38 0xc0 - invalid. */
|
---|
1464 | /* Opcode 0x66 0x0f 0x38 0xc0 - invalid. */
|
---|
1465 | /* Opcode 0x0f 0x38 0xc1 - invalid. */
|
---|
1466 | /* Opcode 0x66 0x0f 0x38 0xc1 - invalid. */
|
---|
1467 | /* Opcode 0x0f 0x38 0xc2 - invalid. */
|
---|
1468 | /* Opcode 0x66 0x0f 0x38 0xc2 - invalid. */
|
---|
1469 | /* Opcode 0x0f 0x38 0xc3 - invalid. */
|
---|
1470 | /* Opcode 0x66 0x0f 0x38 0xc3 - invalid. */
|
---|
1471 | /* Opcode 0x0f 0x38 0xc4 - invalid. */
|
---|
1472 | /* Opcode 0x66 0x0f 0x38 0xc4 - invalid. */
|
---|
1473 | /* Opcode 0x0f 0x38 0xc5 - invalid. */
|
---|
1474 | /* Opcode 0x66 0x0f 0x38 0xc5 - invalid. */
|
---|
1475 | /* Opcode 0x0f 0x38 0xc6 - invalid. */
|
---|
1476 | /* Opcode 0x66 0x0f 0x38 0xc6 - invalid. */
|
---|
1477 | /* Opcode 0x0f 0x38 0xc7 - invalid. */
|
---|
1478 | /* Opcode 0x66 0x0f 0x38 0xc7 - invalid. */
|
---|
1479 |
|
---|
1480 |
|
---|
1481 | /** Opcode 0x0f 0x38 0xc8. */
|
---|
1482 | FNIEMOP_DEF(iemOp_sha1nexte_Vdq_Wdq)
|
---|
1483 | {
|
---|
1484 | IEMOP_MNEMONIC2(RM, SHA1NEXTE, sha1nexte, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1485 | return FNIEMOP_CALL_1(iemOpCommonSha_FullFull_To_Full,
|
---|
1486 | IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha1nexte_u128, iemAImpl_sha1nexte_u128_fallback));
|
---|
1487 | }
|
---|
1488 |
|
---|
1489 |
|
---|
1490 | /* Opcode 0x66 0x0f 0x38 0xc8 - invalid. */
|
---|
1491 |
|
---|
1492 |
|
---|
1493 | /** Opcode 0x0f 0x38 0xc9. */
|
---|
1494 | FNIEMOP_DEF(iemOp_sha1msg1_Vdq_Wdq)
|
---|
1495 | {
|
---|
1496 | IEMOP_MNEMONIC2(RM, SHA1MSG1, sha1msg1, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1497 | return FNIEMOP_CALL_1(iemOpCommonSha_FullFull_To_Full,
|
---|
1498 | IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha1msg1_u128, iemAImpl_sha1msg1_u128_fallback));
|
---|
1499 | }
|
---|
1500 |
|
---|
1501 |
|
---|
1502 | /* Opcode 0x66 0x0f 0x38 0xc9 - invalid. */
|
---|
1503 |
|
---|
1504 |
|
---|
1505 | /** Opcode 0x0f 0x38 0xca. */
|
---|
1506 | FNIEMOP_DEF(iemOp_sha1msg2_Vdq_Wdq)
|
---|
1507 | {
|
---|
1508 | IEMOP_MNEMONIC2(RM, SHA1MSG2, sha1msg2, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1509 | return FNIEMOP_CALL_1(iemOpCommonSha_FullFull_To_Full,
|
---|
1510 | IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha1msg2_u128, iemAImpl_sha1msg2_u128_fallback));
|
---|
1511 | }
|
---|
1512 |
|
---|
1513 |
|
---|
1514 | /* Opcode 0x66 0x0f 0x38 0xca - invalid. */
|
---|
1515 |
|
---|
1516 |
|
---|
1517 | /** Opcode 0x0f 0x38 0xcb. */
|
---|
1518 | FNIEMOP_DEF(iemOp_sha256rnds2_Vdq_Wdq)
|
---|
1519 | {
|
---|
1520 | IEMOP_MNEMONIC2(RM, SHA256RNDS2, sha256rnds2, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES); /** @todo Actually RMI with implicit XMM0 */
|
---|
1521 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1522 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1523 | {
|
---|
1524 | /*
|
---|
1525 | * Register, register.
|
---|
1526 | */
|
---|
1527 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1528 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSha);
|
---|
1529 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
1530 | IEM_MC_ARG(PCRTUINT128U, puSrc, 1);
|
---|
1531 | IEM_MC_ARG(PCRTUINT128U, puXmm0, 2);
|
---|
1532 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
1533 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
1534 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1535 | IEM_MC_REF_XREG_U128_CONST(puSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1536 | IEM_MC_REF_XREG_U128_CONST(puXmm0, 0);
|
---|
1537 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha256rnds2_u128, iemAImpl_sha256rnds2_u128_fallback),
|
---|
1538 | puDst, puSrc, puXmm0);
|
---|
1539 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1540 | IEM_MC_END();
|
---|
1541 | }
|
---|
1542 | else
|
---|
1543 | {
|
---|
1544 | /*
|
---|
1545 | * Register, memory.
|
---|
1546 | */
|
---|
1547 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1548 | IEM_MC_ARG(PRTUINT128U, puDst, 0);
|
---|
1549 | IEM_MC_LOCAL(RTUINT128U, uSrc);
|
---|
1550 | IEM_MC_ARG_LOCAL_REF(PCRTUINT128U, puSrc, uSrc, 1);
|
---|
1551 | IEM_MC_ARG(PCRTUINT128U, puXmm0, 2);
|
---|
1552 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1553 |
|
---|
1554 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1555 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX_EX(fSha);
|
---|
1556 | IEM_MC_MAYBE_RAISE_SSE_RELATED_XCPT();
|
---|
1557 | IEM_MC_FETCH_MEM_U128_ALIGN_SSE(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1558 |
|
---|
1559 | IEM_MC_PREPARE_SSE_USAGE();
|
---|
1560 | IEM_MC_REF_XREG_U128(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1561 | IEM_MC_REF_XREG_U128_CONST(puXmm0, 0);
|
---|
1562 | IEM_MC_CALL_VOID_AIMPL_3(IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha256rnds2_u128, iemAImpl_sha256rnds2_u128_fallback),
|
---|
1563 | puDst, puSrc, puXmm0);
|
---|
1564 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1565 | IEM_MC_END();
|
---|
1566 | }
|
---|
1567 | }
|
---|
1568 |
|
---|
1569 |
|
---|
1570 | /* Opcode 0x66 0x0f 0x38 0xcb - invalid. */
|
---|
1571 |
|
---|
1572 |
|
---|
1573 | /** Opcode 0x0f 0x38 0xcc. */
|
---|
1574 | FNIEMOP_DEF(iemOp_sha256msg1_Vdq_Wdq)
|
---|
1575 | {
|
---|
1576 | IEMOP_MNEMONIC2(RM, SHA256MSG1, sha256msg1, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1577 | return FNIEMOP_CALL_1(iemOpCommonSha_FullFull_To_Full,
|
---|
1578 | IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha256msg1_u128, iemAImpl_sha256msg1_u128_fallback));
|
---|
1579 | }
|
---|
1580 |
|
---|
1581 |
|
---|
1582 | /* Opcode 0x66 0x0f 0x38 0xcc - invalid. */
|
---|
1583 |
|
---|
1584 |
|
---|
1585 | /** Opcode 0x0f 0x38 0xcd. */
|
---|
1586 | FNIEMOP_DEF(iemOp_sha256msg2_Vdq_Wdq)
|
---|
1587 | {
|
---|
1588 | IEMOP_MNEMONIC2(RM, SHA256MSG2, sha256msg2, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1589 | return FNIEMOP_CALL_1(iemOpCommonSha_FullFull_To_Full,
|
---|
1590 | IEM_SELECT_HOST_OR_FALLBACK(fSha, iemAImpl_sha256msg2_u128, iemAImpl_sha256msg2_u128_fallback));
|
---|
1591 | }
|
---|
1592 |
|
---|
1593 |
|
---|
1594 | /* Opcode 0x66 0x0f 0x38 0xcd - invalid. */
|
---|
1595 | /* Opcode 0x0f 0x38 0xce - invalid. */
|
---|
1596 | /* Opcode 0x66 0x0f 0x38 0xce - invalid. */
|
---|
1597 | /* Opcode 0x0f 0x38 0xcf - invalid. */
|
---|
1598 | /* Opcode 0x66 0x0f 0x38 0xcf - invalid. */
|
---|
1599 |
|
---|
1600 | /* Opcode 0x66 0x0f 0x38 0xd0 - invalid. */
|
---|
1601 | /* Opcode 0x66 0x0f 0x38 0xd1 - invalid. */
|
---|
1602 | /* Opcode 0x66 0x0f 0x38 0xd2 - invalid. */
|
---|
1603 | /* Opcode 0x66 0x0f 0x38 0xd3 - invalid. */
|
---|
1604 | /* Opcode 0x66 0x0f 0x38 0xd4 - invalid. */
|
---|
1605 | /* Opcode 0x66 0x0f 0x38 0xd5 - invalid. */
|
---|
1606 | /* Opcode 0x66 0x0f 0x38 0xd6 - invalid. */
|
---|
1607 | /* Opcode 0x66 0x0f 0x38 0xd7 - invalid. */
|
---|
1608 | /* Opcode 0x66 0x0f 0x38 0xd8 - invalid. */
|
---|
1609 | /* Opcode 0x66 0x0f 0x38 0xd9 - invalid. */
|
---|
1610 | /* Opcode 0x66 0x0f 0x38 0xda - invalid. */
|
---|
1611 |
|
---|
1612 |
|
---|
1613 | /** Opcode 0x66 0x0f 0x38 0xdb. */
|
---|
1614 | FNIEMOP_DEF(iemOp_aesimc_Vdq_Wdq)
|
---|
1615 | {
|
---|
1616 | IEMOP_MNEMONIC2(RM, AESIMC, aesimc, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1617 | return FNIEMOP_CALL_1(iemOpCommonAesNi_FullFull_To_Full,
|
---|
1618 | IEM_SELECT_HOST_OR_FALLBACK(fAesNi, iemAImpl_aesimc_u128, iemAImpl_aesimc_u128_fallback));
|
---|
1619 | }
|
---|
1620 |
|
---|
1621 |
|
---|
1622 | /** Opcode 0x66 0x0f 0x38 0xdc. */
|
---|
1623 | FNIEMOP_DEF(iemOp_aesenc_Vdq_Wdq)
|
---|
1624 | {
|
---|
1625 | IEMOP_MNEMONIC2(RM, AESENC, aesenc, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1626 | return FNIEMOP_CALL_1(iemOpCommonAesNi_FullFull_To_Full,
|
---|
1627 | IEM_SELECT_HOST_OR_FALLBACK(fAesNi, iemAImpl_aesenc_u128, iemAImpl_aesenc_u128_fallback));
|
---|
1628 | }
|
---|
1629 |
|
---|
1630 |
|
---|
1631 | /** Opcode 0x66 0x0f 0x38 0xdd. */
|
---|
1632 | FNIEMOP_DEF(iemOp_aesenclast_Vdq_Wdq)
|
---|
1633 | {
|
---|
1634 | IEMOP_MNEMONIC2(RM, AESENCLAST, aesenclast, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1635 | return FNIEMOP_CALL_1(iemOpCommonAesNi_FullFull_To_Full,
|
---|
1636 | IEM_SELECT_HOST_OR_FALLBACK(fAesNi, iemAImpl_aesenclast_u128, iemAImpl_aesenclast_u128_fallback));
|
---|
1637 | }
|
---|
1638 |
|
---|
1639 |
|
---|
1640 | /** Opcode 0x66 0x0f 0x38 0xde. */
|
---|
1641 | FNIEMOP_DEF(iemOp_aesdec_Vdq_Wdq)
|
---|
1642 | {
|
---|
1643 | IEMOP_MNEMONIC2(RM, AESDEC, aesdec, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1644 | return FNIEMOP_CALL_1(iemOpCommonAesNi_FullFull_To_Full,
|
---|
1645 | IEM_SELECT_HOST_OR_FALLBACK(fAesNi, iemAImpl_aesdec_u128, iemAImpl_aesdec_u128_fallback));
|
---|
1646 | }
|
---|
1647 |
|
---|
1648 |
|
---|
1649 | /** Opcode 0x66 0x0f 0x38 0xdf. */
|
---|
1650 | FNIEMOP_DEF(iemOp_aesdeclast_Vdq_Wdq)
|
---|
1651 | {
|
---|
1652 | IEMOP_MNEMONIC2(RM, AESDECLAST, aesdeclast, Vdq, Wdq, DISOPTYPE_HARMLESS | DISOPTYPE_X86_SSE, IEMOPHINT_IGNORES_OP_SIZES);
|
---|
1653 | return FNIEMOP_CALL_1(iemOpCommonAesNi_FullFull_To_Full,
|
---|
1654 | IEM_SELECT_HOST_OR_FALLBACK(fAesNi, iemAImpl_aesdeclast_u128, iemAImpl_aesdeclast_u128_fallback));
|
---|
1655 | }
|
---|
1656 |
|
---|
1657 |
|
---|
1658 | /* Opcode 0x66 0x0f 0x38 0xe0 - invalid. */
|
---|
1659 | /* Opcode 0x66 0x0f 0x38 0xe1 - invalid. */
|
---|
1660 | /* Opcode 0x66 0x0f 0x38 0xe2 - invalid. */
|
---|
1661 | /* Opcode 0x66 0x0f 0x38 0xe3 - invalid. */
|
---|
1662 | /* Opcode 0x66 0x0f 0x38 0xe4 - invalid. */
|
---|
1663 | /* Opcode 0x66 0x0f 0x38 0xe5 - invalid. */
|
---|
1664 | /* Opcode 0x66 0x0f 0x38 0xe6 - invalid. */
|
---|
1665 | /* Opcode 0x66 0x0f 0x38 0xe7 - invalid. */
|
---|
1666 | /* Opcode 0x66 0x0f 0x38 0xe8 - invalid. */
|
---|
1667 | /* Opcode 0x66 0x0f 0x38 0xe9 - invalid. */
|
---|
1668 | /* Opcode 0x66 0x0f 0x38 0xea - invalid. */
|
---|
1669 | /* Opcode 0x66 0x0f 0x38 0xeb - invalid. */
|
---|
1670 | /* Opcode 0x66 0x0f 0x38 0xec - invalid. */
|
---|
1671 | /* Opcode 0x66 0x0f 0x38 0xed - invalid. */
|
---|
1672 | /* Opcode 0x66 0x0f 0x38 0xee - invalid. */
|
---|
1673 | /* Opcode 0x66 0x0f 0x38 0xef - invalid. */
|
---|
1674 |
|
---|
1675 |
|
---|
1676 | /** Opcode [0x66] 0x0f 0x38 0xf0. */
|
---|
1677 | FNIEMOP_DEF(iemOp_movbe_Gv_Mv)
|
---|
1678 | {
|
---|
1679 | IEMOP_MNEMONIC2(RM, MOVBE, movbe, Gv, Ev, DISOPTYPE_HARMLESS, 0);
|
---|
1680 | if (!IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fMovBe)
|
---|
1681 | return iemOp_InvalidNeedRM(pVCpu);
|
---|
1682 |
|
---|
1683 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1684 | if (!IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1685 | {
|
---|
1686 | /*
|
---|
1687 | * Register, memory.
|
---|
1688 | */
|
---|
1689 | switch (pVCpu->iem.s.enmEffOpSize)
|
---|
1690 | {
|
---|
1691 | case IEMMODE_16BIT:
|
---|
1692 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1693 | IEM_MC_LOCAL(uint16_t, uSrc);
|
---|
1694 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1695 |
|
---|
1696 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1697 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1698 | IEM_MC_FETCH_MEM_U16(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1699 |
|
---|
1700 | IEM_MC_BSWAP_LOCAL_U16(uSrc);
|
---|
1701 | IEM_MC_STORE_GREG_U16(IEM_GET_MODRM_REG(pVCpu, bRm), uSrc);
|
---|
1702 |
|
---|
1703 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1704 | IEM_MC_END();
|
---|
1705 | break;
|
---|
1706 |
|
---|
1707 | case IEMMODE_32BIT:
|
---|
1708 | IEM_MC_BEGIN(IEM_MC_F_MIN_386, 0);
|
---|
1709 | IEM_MC_LOCAL(uint32_t, uSrc);
|
---|
1710 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1711 |
|
---|
1712 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1713 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1714 | IEM_MC_FETCH_MEM_U32(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1715 |
|
---|
1716 | IEM_MC_BSWAP_LOCAL_U32(uSrc);
|
---|
1717 | IEM_MC_STORE_GREG_U32(IEM_GET_MODRM_REG(pVCpu, bRm), uSrc);
|
---|
1718 |
|
---|
1719 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1720 | IEM_MC_END();
|
---|
1721 | break;
|
---|
1722 |
|
---|
1723 | case IEMMODE_64BIT:
|
---|
1724 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1725 | IEM_MC_LOCAL(uint64_t, uSrc);
|
---|
1726 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1727 |
|
---|
1728 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1729 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1730 | IEM_MC_FETCH_MEM_U64(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1731 |
|
---|
1732 | IEM_MC_BSWAP_LOCAL_U64(uSrc);
|
---|
1733 | IEM_MC_STORE_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm), uSrc);
|
---|
1734 |
|
---|
1735 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1736 | IEM_MC_END();
|
---|
1737 | break;
|
---|
1738 |
|
---|
1739 | IEM_NOT_REACHED_DEFAULT_CASE_RET();
|
---|
1740 | }
|
---|
1741 | }
|
---|
1742 | else
|
---|
1743 | {
|
---|
1744 | /* Reg/reg not supported. */
|
---|
1745 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
1746 | }
|
---|
1747 | }
|
---|
1748 |
|
---|
1749 |
|
---|
1750 | /* Opcode 0xf3 0x0f 0x38 0xf0 - invalid. */
|
---|
1751 |
|
---|
1752 |
|
---|
1753 | /** Opcode 0xf2 0x0f 0x38 0xf0. */
|
---|
1754 | FNIEMOP_DEF(iemOp_crc32_Gd_Eb)
|
---|
1755 | {
|
---|
1756 | IEMOP_MNEMONIC2(RM, CRC32, crc32, Gd, Eb, DISOPTYPE_HARMLESS, 0);
|
---|
1757 | if (!IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fSse42)
|
---|
1758 | return iemOp_InvalidNeedRM(pVCpu);
|
---|
1759 |
|
---|
1760 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1761 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1762 | {
|
---|
1763 | /*
|
---|
1764 | * Register, register.
|
---|
1765 | */
|
---|
1766 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1767 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1768 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1769 | IEM_MC_ARG(uint8_t, uSrc, 1);
|
---|
1770 | IEM_MC_FETCH_GREG_U8(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1771 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1772 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u8, iemAImpl_crc32_u8_fallback), puDst, uSrc);
|
---|
1773 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1774 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1775 | IEM_MC_END();
|
---|
1776 | }
|
---|
1777 | else
|
---|
1778 | {
|
---|
1779 | /*
|
---|
1780 | * Register, memory.
|
---|
1781 | */
|
---|
1782 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1783 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1784 | IEM_MC_ARG(uint8_t, uSrc, 1);
|
---|
1785 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1786 |
|
---|
1787 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1788 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1789 | IEM_MC_FETCH_MEM_U8(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1790 |
|
---|
1791 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1792 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u8, iemAImpl_crc32_u8_fallback), puDst, uSrc);
|
---|
1793 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1794 |
|
---|
1795 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1796 | IEM_MC_END();
|
---|
1797 | }
|
---|
1798 | }
|
---|
1799 |
|
---|
1800 |
|
---|
1801 | /** Opcode [0x66] 0x0f 0x38 0xf1. */
|
---|
1802 | FNIEMOP_DEF(iemOp_movbe_Mv_Gv)
|
---|
1803 | {
|
---|
1804 | IEMOP_MNEMONIC2(MR, MOVBE, movbe, Ev, Gv, DISOPTYPE_HARMLESS, 0);
|
---|
1805 | if (!IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fMovBe)
|
---|
1806 | return iemOp_InvalidNeedRM(pVCpu);
|
---|
1807 |
|
---|
1808 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1809 | if (!IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1810 | {
|
---|
1811 | /*
|
---|
1812 | * Memory, register.
|
---|
1813 | */
|
---|
1814 | switch (pVCpu->iem.s.enmEffOpSize)
|
---|
1815 | {
|
---|
1816 | case IEMMODE_16BIT:
|
---|
1817 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1818 | IEM_MC_LOCAL(uint16_t, u16Value);
|
---|
1819 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffDst);
|
---|
1820 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffDst, bRm, 0);
|
---|
1821 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1822 | IEM_MC_FETCH_GREG_U16(u16Value, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1823 | IEM_MC_BSWAP_LOCAL_U16(u16Value);
|
---|
1824 | IEM_MC_STORE_MEM_U16(pVCpu->iem.s.iEffSeg, GCPtrEffDst, u16Value);
|
---|
1825 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1826 | IEM_MC_END();
|
---|
1827 | break;
|
---|
1828 |
|
---|
1829 | case IEMMODE_32BIT:
|
---|
1830 | IEM_MC_BEGIN(IEM_MC_F_MIN_386, 0);
|
---|
1831 | IEM_MC_LOCAL(uint32_t, u32Value);
|
---|
1832 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffDst);
|
---|
1833 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffDst, bRm, 0);
|
---|
1834 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1835 | IEM_MC_FETCH_GREG_U32(u32Value, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1836 | IEM_MC_BSWAP_LOCAL_U32(u32Value);
|
---|
1837 | IEM_MC_STORE_MEM_U32(pVCpu->iem.s.iEffSeg, GCPtrEffDst, u32Value);
|
---|
1838 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1839 | IEM_MC_END();
|
---|
1840 | break;
|
---|
1841 |
|
---|
1842 | case IEMMODE_64BIT:
|
---|
1843 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1844 | IEM_MC_LOCAL(uint64_t, u64Value);
|
---|
1845 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffDst);
|
---|
1846 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffDst, bRm, 0);
|
---|
1847 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1848 | IEM_MC_FETCH_GREG_U64(u64Value, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1849 | IEM_MC_BSWAP_LOCAL_U64(u64Value);
|
---|
1850 | IEM_MC_STORE_MEM_U64(pVCpu->iem.s.iEffSeg, GCPtrEffDst, u64Value);
|
---|
1851 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1852 | IEM_MC_END();
|
---|
1853 | break;
|
---|
1854 |
|
---|
1855 | IEM_NOT_REACHED_DEFAULT_CASE_RET();
|
---|
1856 | }
|
---|
1857 | }
|
---|
1858 | else
|
---|
1859 | {
|
---|
1860 | /* Reg/reg not supported. */
|
---|
1861 | IEMOP_RAISE_INVALID_OPCODE_RET();
|
---|
1862 | }
|
---|
1863 | }
|
---|
1864 |
|
---|
1865 |
|
---|
1866 | /* Opcode 0xf3 0x0f 0x38 0xf1 - invalid. */
|
---|
1867 |
|
---|
1868 |
|
---|
1869 | /** Opcode 0xf2 0x0f 0x38 0xf1. */
|
---|
1870 | FNIEMOP_DEF(iemOp_crc32_Gv_Ev)
|
---|
1871 | {
|
---|
1872 | IEMOP_MNEMONIC2(RM, CRC32, crc32, Gd, Ev, DISOPTYPE_HARMLESS, 0);
|
---|
1873 | if (!IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fSse42)
|
---|
1874 | return iemOp_InvalidNeedRM(pVCpu);
|
---|
1875 |
|
---|
1876 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm);
|
---|
1877 | if (IEM_IS_MODRM_REG_MODE(bRm))
|
---|
1878 | {
|
---|
1879 | /*
|
---|
1880 | * Register, register.
|
---|
1881 | */
|
---|
1882 | switch (pVCpu->iem.s.enmEffOpSize)
|
---|
1883 | {
|
---|
1884 | case IEMMODE_16BIT:
|
---|
1885 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1886 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1887 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1888 | IEM_MC_ARG(uint16_t, uSrc, 1);
|
---|
1889 | IEM_MC_FETCH_GREG_U16(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1890 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1891 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u16, iemAImpl_crc32_u16_fallback),
|
---|
1892 | puDst, uSrc);
|
---|
1893 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1894 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1895 | IEM_MC_END();
|
---|
1896 | break;
|
---|
1897 |
|
---|
1898 | case IEMMODE_32BIT:
|
---|
1899 | IEM_MC_BEGIN(IEM_MC_F_MIN_386, 0);
|
---|
1900 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1901 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1902 | IEM_MC_ARG(uint32_t, uSrc, 1);
|
---|
1903 | IEM_MC_FETCH_GREG_U32(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1904 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1905 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u32, iemAImpl_crc32_u32_fallback),
|
---|
1906 | puDst, uSrc);
|
---|
1907 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1908 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1909 | IEM_MC_END();
|
---|
1910 | break;
|
---|
1911 |
|
---|
1912 | case IEMMODE_64BIT:
|
---|
1913 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1914 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1915 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1916 | IEM_MC_ARG(uint64_t, uSrc, 1);
|
---|
1917 | IEM_MC_FETCH_GREG_U64(uSrc, IEM_GET_MODRM_RM(pVCpu, bRm));
|
---|
1918 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1919 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u64, iemAImpl_crc32_u64_fallback),
|
---|
1920 | puDst, uSrc);
|
---|
1921 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1922 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1923 | IEM_MC_END();
|
---|
1924 | break;
|
---|
1925 |
|
---|
1926 | IEM_NOT_REACHED_DEFAULT_CASE_RET();
|
---|
1927 | }
|
---|
1928 | }
|
---|
1929 | else
|
---|
1930 | {
|
---|
1931 | /*
|
---|
1932 | * Register, memory.
|
---|
1933 | */
|
---|
1934 | switch (pVCpu->iem.s.enmEffOpSize)
|
---|
1935 | {
|
---|
1936 | case IEMMODE_16BIT:
|
---|
1937 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0);
|
---|
1938 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1939 | IEM_MC_ARG(uint16_t, uSrc, 1);
|
---|
1940 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1941 |
|
---|
1942 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1943 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1944 | IEM_MC_FETCH_MEM_U16(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1945 |
|
---|
1946 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1947 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u16, iemAImpl_crc32_u16_fallback),
|
---|
1948 | puDst, uSrc);
|
---|
1949 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1950 |
|
---|
1951 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1952 | IEM_MC_END();
|
---|
1953 | break;
|
---|
1954 |
|
---|
1955 | case IEMMODE_32BIT:
|
---|
1956 | IEM_MC_BEGIN(IEM_MC_F_MIN_386, 0);
|
---|
1957 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1958 | IEM_MC_ARG(uint32_t, uSrc, 1);
|
---|
1959 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1960 |
|
---|
1961 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1962 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1963 | IEM_MC_FETCH_MEM_U32(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1964 |
|
---|
1965 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1966 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u32, iemAImpl_crc32_u32_fallback),
|
---|
1967 | puDst, uSrc);
|
---|
1968 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1969 |
|
---|
1970 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1971 | IEM_MC_END();
|
---|
1972 | break;
|
---|
1973 |
|
---|
1974 | case IEMMODE_64BIT:
|
---|
1975 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0);
|
---|
1976 | IEM_MC_ARG(uint32_t *, puDst, 0);
|
---|
1977 | IEM_MC_ARG(uint64_t, uSrc, 1);
|
---|
1978 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc);
|
---|
1979 |
|
---|
1980 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 0);
|
---|
1981 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX();
|
---|
1982 | IEM_MC_FETCH_MEM_U64(uSrc, pVCpu->iem.s.iEffSeg, GCPtrEffSrc);
|
---|
1983 |
|
---|
1984 | IEM_MC_REF_GREG_U32(puDst, IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1985 | IEM_MC_CALL_VOID_AIMPL_2(IEM_SELECT_HOST_OR_FALLBACK(fSse42, iemAImpl_crc32_u64, iemAImpl_crc32_u64_fallback),
|
---|
1986 | puDst, uSrc);
|
---|
1987 | IEM_MC_CLEAR_HIGH_GREG_U64(IEM_GET_MODRM_REG(pVCpu, bRm));
|
---|
1988 |
|
---|
1989 | IEM_MC_ADVANCE_RIP_AND_FINISH();
|
---|
1990 | IEM_MC_END();
|
---|
1991 | break;
|
---|
1992 |
|
---|
1993 | IEM_NOT_REACHED_DEFAULT_CASE_RET();
|
---|
1994 | }
|
---|
1995 | }
|
---|
1996 | }
|
---|
1997 |
|
---|
1998 |
|
---|
1999 | /* Opcode 0x0f 0x38 0xf2 - invalid (vex only). */
|
---|
2000 | /* Opcode 0x66 0x0f 0x38 0xf2 - invalid. */
|
---|
2001 | /* Opcode 0xf3 0x0f 0x38 0xf2 - invalid. */
|
---|
2002 | /* Opcode 0xf2 0x0f 0x38 0xf2 - invalid. */
|
---|
2003 |
|
---|
2004 | /* Opcode 0x0f 0x38 0xf3 - invalid (vex only - group 17). */
|
---|
2005 | /* Opcode 0x66 0x0f 0x38 0xf3 - invalid (vex only - group 17). */
|
---|
2006 | /* Opcode 0xf3 0x0f 0x38 0xf3 - invalid (vex only - group 17). */
|
---|
2007 | /* Opcode 0xf2 0x0f 0x38 0xf3 - invalid (vex only - group 17). */
|
---|
2008 |
|
---|
2009 | /* Opcode 0x0f 0x38 0xf4 - invalid. */
|
---|
2010 | /* Opcode 0x66 0x0f 0x38 0xf4 - invalid. */
|
---|
2011 | /* Opcode 0xf3 0x0f 0x38 0xf4 - invalid. */
|
---|
2012 | /* Opcode 0xf2 0x0f 0x38 0xf4 - invalid. */
|
---|
2013 |
|
---|
2014 | /* Opcode 0x0f 0x38 0xf5 - invalid (vex only). */
|
---|
2015 | /* Opcode 0x66 0x0f 0x38 0xf5 - invalid. */
|
---|
2016 | /* Opcode 0xf3 0x0f 0x38 0xf5 - invalid (vex only). */
|
---|
2017 | /* Opcode 0xf2 0x0f 0x38 0xf5 - invalid (vex only). */
|
---|
2018 |
|
---|
2019 | /* Opcode 0x0f 0x38 0xf6 - invalid. */
|
---|
2020 |
|
---|
2021 | #define ADX_EMIT(a_Variant) \
|
---|
2022 | do \
|
---|
2023 | { \
|
---|
2024 | if (!IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fAdx) \
|
---|
2025 | return iemOp_InvalidNeedRM(pVCpu); \
|
---|
2026 | uint8_t bRm; IEM_OPCODE_GET_NEXT_U8(&bRm); \
|
---|
2027 | if (pVCpu->iem.s.fPrefixes & IEM_OP_PRF_SIZE_REX_W) \
|
---|
2028 | { \
|
---|
2029 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
2030 | { \
|
---|
2031 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0); \
|
---|
2032 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX(); \
|
---|
2033 | IEM_MC_ARG(uint64_t, u64Src, 2); \
|
---|
2034 | IEM_MC_FETCH_GREG_U64(u64Src, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
2035 | IEM_MC_ARG(uint64_t *, pu64Dst, 1); \
|
---|
2036 | IEM_MC_REF_GREG_U64(pu64Dst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
2037 | IEM_MC_ARG_EFLAGS( fEFlagsIn, 0); \
|
---|
2038 | IEM_MC_CALL_AIMPL_3(uint32_t, fEFlagsRet, \
|
---|
2039 | IEM_SELECT_HOST_OR_FALLBACK(fAdx, iemAImpl_## a_Variant ##_u64, iemAImpl_## a_Variant ##_u64_fallback), \
|
---|
2040 | fEFlagsIn, pu64Dst, u64Src); \
|
---|
2041 | IEM_MC_COMMIT_EFLAGS(fEFlagsRet); \
|
---|
2042 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
2043 | IEM_MC_END(); \
|
---|
2044 | } \
|
---|
2045 | else \
|
---|
2046 | { \
|
---|
2047 | IEM_MC_BEGIN(IEM_MC_F_64BIT, 0); \
|
---|
2048 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
2049 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 1); \
|
---|
2050 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX(); \
|
---|
2051 | \
|
---|
2052 | IEM_MC_ARG(uint64_t, u64Src, 2); \
|
---|
2053 | IEM_MC_FETCH_MEM_U64(u64Src, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
2054 | IEM_MC_ARG(uint64_t *, pu64Dst, 1); \
|
---|
2055 | IEM_MC_REF_GREG_U64(pu64Dst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
2056 | IEM_MC_ARG_EFLAGS( fEFlagsIn, 0); \
|
---|
2057 | IEM_MC_CALL_AIMPL_3(uint32_t, fEFlagsRet, \
|
---|
2058 | IEM_SELECT_HOST_OR_FALLBACK(fAdx, iemAImpl_## a_Variant ##_u64, iemAImpl_## a_Variant ##_u64_fallback), \
|
---|
2059 | fEFlagsIn, pu64Dst, u64Src); \
|
---|
2060 | IEM_MC_COMMIT_EFLAGS(fEFlagsRet); \
|
---|
2061 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
2062 | IEM_MC_END(); \
|
---|
2063 | } \
|
---|
2064 | } \
|
---|
2065 | else \
|
---|
2066 | { \
|
---|
2067 | if (IEM_IS_MODRM_REG_MODE(bRm)) \
|
---|
2068 | { \
|
---|
2069 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0); \
|
---|
2070 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX(); \
|
---|
2071 | IEM_MC_ARG(uint32_t, u32Src, 2); \
|
---|
2072 | IEM_MC_FETCH_GREG_U32(u32Src, IEM_GET_MODRM_RM(pVCpu, bRm)); \
|
---|
2073 | IEM_MC_ARG(uint32_t *, pu32Dst, 1); \
|
---|
2074 | IEM_MC_REF_GREG_U32(pu32Dst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
2075 | IEM_MC_ARG_EFLAGS( fEFlagsIn, 0); \
|
---|
2076 | IEM_MC_CALL_AIMPL_3(uint32_t, fEFlagsRet, \
|
---|
2077 | IEM_SELECT_HOST_OR_FALLBACK(fAdx, iemAImpl_## a_Variant ##_u32, iemAImpl_## a_Variant ##_u32_fallback), \
|
---|
2078 | fEFlagsIn, pu32Dst, u32Src); \
|
---|
2079 | IEM_MC_COMMIT_EFLAGS(fEFlagsRet); \
|
---|
2080 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
2081 | IEM_MC_END(); \
|
---|
2082 | } \
|
---|
2083 | else \
|
---|
2084 | { \
|
---|
2085 | IEM_MC_BEGIN(IEM_MC_F_NOT_286_OR_OLDER, 0); \
|
---|
2086 | IEM_MC_LOCAL(RTGCPTR, GCPtrEffSrc); \
|
---|
2087 | IEM_MC_CALC_RM_EFF_ADDR(GCPtrEffSrc, bRm, 1); \
|
---|
2088 | IEMOP_HLP_DONE_DECODING_NO_LOCK_PREFIX(); \
|
---|
2089 | \
|
---|
2090 | IEM_MC_ARG(uint32_t, u32Src, 2); \
|
---|
2091 | IEM_MC_FETCH_MEM_U32(u32Src, pVCpu->iem.s.iEffSeg, GCPtrEffSrc); \
|
---|
2092 | IEM_MC_ARG(uint32_t *, pu32Dst, 1); \
|
---|
2093 | IEM_MC_REF_GREG_U32(pu32Dst, IEM_GET_MODRM_REG(pVCpu, bRm)); \
|
---|
2094 | IEM_MC_ARG_EFLAGS( fEFlagsIn, 0); \
|
---|
2095 | IEM_MC_CALL_AIMPL_3(uint32_t, fEFlagsRet, \
|
---|
2096 | IEM_SELECT_HOST_OR_FALLBACK(fAdx, iemAImpl_## a_Variant ##_u32, iemAImpl_## a_Variant ##_u32_fallback), \
|
---|
2097 | fEFlagsIn, pu32Dst, u32Src); \
|
---|
2098 | IEM_MC_COMMIT_EFLAGS(fEFlagsRet); \
|
---|
2099 | IEM_MC_ADVANCE_RIP_AND_FINISH(); \
|
---|
2100 | IEM_MC_END(); \
|
---|
2101 | } \
|
---|
2102 | } \
|
---|
2103 | } while(0)
|
---|
2104 |
|
---|
2105 |
|
---|
2106 | /**
|
---|
2107 | * @opcode 0xf6
|
---|
2108 | * @oppfx 0x66
|
---|
2109 | * @opfltest cf
|
---|
2110 | * @opflmodify cf
|
---|
2111 | */
|
---|
2112 | FNIEMOP_DEF(iemOp_adcx_Gy_Ey)
|
---|
2113 | {
|
---|
2114 | IEMOP_MNEMONIC2(RM, ADCX, adcx, Gy, Ey, DISOPTYPE_HARMLESS, 0);
|
---|
2115 | ADX_EMIT(adcx);
|
---|
2116 | }
|
---|
2117 |
|
---|
2118 |
|
---|
2119 | /**
|
---|
2120 | * @opcode 0xf6
|
---|
2121 | * @oppfx 0xf3
|
---|
2122 | * @opfltest of
|
---|
2123 | * @opflmodify of
|
---|
2124 | */
|
---|
2125 | FNIEMOP_DEF(iemOp_adox_Gy_Ey)
|
---|
2126 | {
|
---|
2127 | IEMOP_MNEMONIC2(RM, ADOX, adox, Gy, Ey, DISOPTYPE_HARMLESS, 0);
|
---|
2128 | ADX_EMIT(adox);
|
---|
2129 | }
|
---|
2130 |
|
---|
2131 |
|
---|
2132 | /* Opcode 0xf2 0x0f 0x38 0xf6 - invalid (vex only). */
|
---|
2133 |
|
---|
2134 | /* Opcode 0x0f 0x38 0xf7 - invalid (vex only). */
|
---|
2135 | /* Opcode 0x66 0x0f 0x38 0xf7 - invalid (vex only). */
|
---|
2136 | /* Opcode 0xf3 0x0f 0x38 0xf7 - invalid (vex only). */
|
---|
2137 | /* Opcode 0xf2 0x0f 0x38 0xf7 - invalid (vex only). */
|
---|
2138 |
|
---|
2139 | /* Opcode 0x0f 0x38 0xf8 - invalid. */
|
---|
2140 | /* Opcode 0x66 0x0f 0x38 0xf8 - invalid. */
|
---|
2141 | /* Opcode 0xf3 0x0f 0x38 0xf8 - invalid. */
|
---|
2142 | /* Opcode 0xf2 0x0f 0x38 0xf8 - invalid. */
|
---|
2143 |
|
---|
2144 | /* Opcode 0x0f 0x38 0xf9 - invalid. */
|
---|
2145 | /* Opcode 0x66 0x0f 0x38 0xf9 - invalid. */
|
---|
2146 | /* Opcode 0xf3 0x0f 0x38 0xf9 - invalid. */
|
---|
2147 | /* Opcode 0xf2 0x0f 0x38 0xf9 - invalid. */
|
---|
2148 |
|
---|
2149 | /* Opcode 0x0f 0x38 0xfa - invalid. */
|
---|
2150 | /* Opcode 0x66 0x0f 0x38 0xfa - invalid. */
|
---|
2151 | /* Opcode 0xf3 0x0f 0x38 0xfa - invalid. */
|
---|
2152 | /* Opcode 0xf2 0x0f 0x38 0xfa - invalid. */
|
---|
2153 |
|
---|
2154 | /* Opcode 0x0f 0x38 0xfb - invalid. */
|
---|
2155 | /* Opcode 0x66 0x0f 0x38 0xfb - invalid. */
|
---|
2156 | /* Opcode 0xf3 0x0f 0x38 0xfb - invalid. */
|
---|
2157 | /* Opcode 0xf2 0x0f 0x38 0xfb - invalid. */
|
---|
2158 |
|
---|
2159 | /* Opcode 0x0f 0x38 0xfc - invalid. */
|
---|
2160 | /* Opcode 0x66 0x0f 0x38 0xfc - invalid. */
|
---|
2161 | /* Opcode 0xf3 0x0f 0x38 0xfc - invalid. */
|
---|
2162 | /* Opcode 0xf2 0x0f 0x38 0xfc - invalid. */
|
---|
2163 |
|
---|
2164 | /* Opcode 0x0f 0x38 0xfd - invalid. */
|
---|
2165 | /* Opcode 0x66 0x0f 0x38 0xfd - invalid. */
|
---|
2166 | /* Opcode 0xf3 0x0f 0x38 0xfd - invalid. */
|
---|
2167 | /* Opcode 0xf2 0x0f 0x38 0xfd - invalid. */
|
---|
2168 |
|
---|
2169 | /* Opcode 0x0f 0x38 0xfe - invalid. */
|
---|
2170 | /* Opcode 0x66 0x0f 0x38 0xfe - invalid. */
|
---|
2171 | /* Opcode 0xf3 0x0f 0x38 0xfe - invalid. */
|
---|
2172 | /* Opcode 0xf2 0x0f 0x38 0xfe - invalid. */
|
---|
2173 |
|
---|
2174 | /* Opcode 0x0f 0x38 0xff - invalid. */
|
---|
2175 | /* Opcode 0x66 0x0f 0x38 0xff - invalid. */
|
---|
2176 | /* Opcode 0xf3 0x0f 0x38 0xff - invalid. */
|
---|
2177 | /* Opcode 0xf2 0x0f 0x38 0xff - invalid. */
|
---|
2178 |
|
---|
2179 |
|
---|
2180 | /**
|
---|
2181 | * Three byte opcode map, first two bytes are 0x0f 0x38.
|
---|
2182 | * @sa g_apfnVexMap2
|
---|
2183 | */
|
---|
2184 | const PFNIEMOP g_apfnThreeByte0f38[] =
|
---|
2185 | {
|
---|
2186 | /* no prefix, 066h prefix f3h prefix, f2h prefix */
|
---|
2187 | /* 0x00 */ iemOp_pshufb_Pq_Qq, iemOp_pshufb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2188 | /* 0x01 */ iemOp_phaddw_Pq_Qq, iemOp_phaddw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2189 | /* 0x02 */ iemOp_phaddd_Pq_Qq, iemOp_phaddd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2190 | /* 0x03 */ iemOp_phaddsw_Pq_Qq, iemOp_phaddsw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2191 | /* 0x04 */ iemOp_pmaddubsw_Pq_Qq, iemOp_pmaddubsw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2192 | /* 0x05 */ iemOp_phsubw_Pq_Qq, iemOp_phsubw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2193 | /* 0x06 */ iemOp_phsubd_Pq_Qq, iemOp_phsubd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2194 | /* 0x07 */ iemOp_phsubsw_Pq_Qq, iemOp_phsubsw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2195 | /* 0x08 */ iemOp_psignb_Pq_Qq, iemOp_psignb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2196 | /* 0x09 */ iemOp_psignw_Pq_Qq, iemOp_psignw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2197 | /* 0x0a */ iemOp_psignd_Pq_Qq, iemOp_psignd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2198 | /* 0x0b */ iemOp_pmulhrsw_Pq_Qq, iemOp_pmulhrsw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2199 | /* 0x0c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2200 | /* 0x0d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2201 | /* 0x0e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2202 | /* 0x0f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2203 |
|
---|
2204 | /* 0x10 */ iemOp_InvalidNeedRM, iemOp_pblendvb_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2205 | /* 0x11 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2206 | /* 0x12 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2207 | /* 0x13 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2208 | /* 0x14 */ iemOp_InvalidNeedRM, iemOp_blendvps_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2209 | /* 0x15 */ iemOp_InvalidNeedRM, iemOp_blendvpd_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2210 | /* 0x16 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2211 | /* 0x17 */ iemOp_InvalidNeedRM, iemOp_ptest_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2212 | /* 0x18 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2213 | /* 0x19 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2214 | /* 0x1a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2215 | /* 0x1b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2216 | /* 0x1c */ iemOp_pabsb_Pq_Qq, iemOp_pabsb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2217 | /* 0x1d */ iemOp_pabsw_Pq_Qq, iemOp_pabsw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2218 | /* 0x1e */ iemOp_pabsd_Pq_Qq, iemOp_pabsd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2219 | /* 0x1f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2220 |
|
---|
2221 | /* 0x20 */ iemOp_InvalidNeedRM, iemOp_pmovsxbw_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2222 | /* 0x21 */ iemOp_InvalidNeedRM, iemOp_pmovsxbd_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2223 | /* 0x22 */ iemOp_InvalidNeedRM, iemOp_pmovsxbq_Vx_UxMw, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2224 | /* 0x23 */ iemOp_InvalidNeedRM, iemOp_pmovsxwd_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2225 | /* 0x24 */ iemOp_InvalidNeedRM, iemOp_pmovsxwq_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2226 | /* 0x25 */ iemOp_InvalidNeedRM, iemOp_pmovsxdq_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2227 | /* 0x26 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2228 | /* 0x27 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2229 | /* 0x28 */ iemOp_InvalidNeedRM, iemOp_pmuldq_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2230 | /* 0x29 */ iemOp_InvalidNeedRM, iemOp_pcmpeqq_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2231 | /* 0x2a */ iemOp_InvalidNeedRM, iemOp_movntdqa_Vdq_Mdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2232 | /* 0x2b */ iemOp_InvalidNeedRM, iemOp_packusdw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2233 | /* 0x2c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2234 | /* 0x2d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2235 | /* 0x2e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2236 | /* 0x2f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2237 |
|
---|
2238 | /* 0x30 */ iemOp_InvalidNeedRM, iemOp_pmovzxbw_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2239 | /* 0x31 */ iemOp_InvalidNeedRM, iemOp_pmovzxbd_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2240 | /* 0x32 */ iemOp_InvalidNeedRM, iemOp_pmovzxbq_Vx_UxMw, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2241 | /* 0x33 */ iemOp_InvalidNeedRM, iemOp_pmovzxwd_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2242 | /* 0x34 */ iemOp_InvalidNeedRM, iemOp_pmovzxwq_Vx_UxMd, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2243 | /* 0x35 */ iemOp_InvalidNeedRM, iemOp_pmovzxdq_Vx_UxMq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2244 | /* 0x36 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2245 | /* 0x37 */ iemOp_InvalidNeedRM, iemOp_pcmpgtq_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2246 | /* 0x38 */ iemOp_InvalidNeedRM, iemOp_pminsb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2247 | /* 0x39 */ iemOp_InvalidNeedRM, iemOp_pminsd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2248 | /* 0x3a */ iemOp_InvalidNeedRM, iemOp_pminuw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2249 | /* 0x3b */ iemOp_InvalidNeedRM, iemOp_pminud_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2250 | /* 0x3c */ iemOp_InvalidNeedRM, iemOp_pmaxsb_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2251 | /* 0x3d */ iemOp_InvalidNeedRM, iemOp_pmaxsd_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2252 | /* 0x3e */ iemOp_InvalidNeedRM, iemOp_pmaxuw_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2253 | /* 0x3f */ iemOp_InvalidNeedRM, iemOp_pmaxud_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2254 |
|
---|
2255 | /* 0x40 */ iemOp_InvalidNeedRM, iemOp_pmulld_Vx_Wx, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2256 | /* 0x41 */ iemOp_InvalidNeedRM, iemOp_phminposuw_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2257 | /* 0x42 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2258 | /* 0x43 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2259 | /* 0x44 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2260 | /* 0x45 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2261 | /* 0x46 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2262 | /* 0x47 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2263 | /* 0x48 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2264 | /* 0x49 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2265 | /* 0x4a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2266 | /* 0x4b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2267 | /* 0x4c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2268 | /* 0x4d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2269 | /* 0x4e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2270 | /* 0x4f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2271 |
|
---|
2272 | /* 0x50 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2273 | /* 0x51 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2274 | /* 0x52 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2275 | /* 0x53 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2276 | /* 0x54 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2277 | /* 0x55 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2278 | /* 0x56 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2279 | /* 0x57 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2280 | /* 0x58 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2281 | /* 0x59 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2282 | /* 0x5a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2283 | /* 0x5b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2284 | /* 0x5c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2285 | /* 0x5d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2286 | /* 0x5e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2287 | /* 0x5f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2288 |
|
---|
2289 | /* 0x60 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2290 | /* 0x61 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2291 | /* 0x62 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2292 | /* 0x63 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2293 | /* 0x64 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2294 | /* 0x65 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2295 | /* 0x66 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2296 | /* 0x67 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2297 | /* 0x68 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2298 | /* 0x69 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2299 | /* 0x6a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2300 | /* 0x6b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2301 | /* 0x6c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2302 | /* 0x6d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2303 | /* 0x6e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2304 | /* 0x6f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2305 |
|
---|
2306 | /* 0x70 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2307 | /* 0x71 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2308 | /* 0x72 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2309 | /* 0x73 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2310 | /* 0x74 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2311 | /* 0x75 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2312 | /* 0x76 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2313 | /* 0x77 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2314 | /* 0x78 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2315 | /* 0x79 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2316 | /* 0x7a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2317 | /* 0x7b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2318 | /* 0x7c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2319 | /* 0x7d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2320 | /* 0x7e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2321 | /* 0x7f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2322 |
|
---|
2323 | /* 0x80 */ iemOp_InvalidNeedRM, iemOp_invept_Gy_Mdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2324 | /* 0x81 */ iemOp_InvalidNeedRM, iemOp_invvpid_Gy_Mdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2325 | /* 0x82 */ iemOp_InvalidNeedRM, iemOp_invpcid_Gy_Mdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2326 | /* 0x83 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2327 | /* 0x84 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2328 | /* 0x85 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2329 | /* 0x86 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2330 | /* 0x87 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2331 | /* 0x88 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2332 | /* 0x89 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2333 | /* 0x8a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2334 | /* 0x8b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2335 | /* 0x8c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2336 | /* 0x8d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2337 | /* 0x8e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2338 | /* 0x8f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2339 |
|
---|
2340 | /* 0x90 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2341 | /* 0x91 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2342 | /* 0x92 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2343 | /* 0x93 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2344 | /* 0x94 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2345 | /* 0x95 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2346 | /* 0x96 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2347 | /* 0x97 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2348 | /* 0x98 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2349 | /* 0x99 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2350 | /* 0x9a */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2351 | /* 0x9b */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2352 | /* 0x9c */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2353 | /* 0x9d */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2354 | /* 0x9e */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2355 | /* 0x9f */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2356 |
|
---|
2357 | /* 0xa0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2358 | /* 0xa1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2359 | /* 0xa2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2360 | /* 0xa3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2361 | /* 0xa4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2362 | /* 0xa5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2363 | /* 0xa6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2364 | /* 0xa7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2365 | /* 0xa8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2366 | /* 0xa9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2367 | /* 0xaa */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2368 | /* 0xab */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2369 | /* 0xac */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2370 | /* 0xad */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2371 | /* 0xae */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2372 | /* 0xaf */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2373 |
|
---|
2374 | /* 0xb0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2375 | /* 0xb1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2376 | /* 0xb2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2377 | /* 0xb3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2378 | /* 0xb4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2379 | /* 0xb5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2380 | /* 0xb6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2381 | /* 0xb7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2382 | /* 0xb8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2383 | /* 0xb9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2384 | /* 0xba */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2385 | /* 0xbb */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2386 | /* 0xbc */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2387 | /* 0xbd */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2388 | /* 0xbe */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2389 | /* 0xbf */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2390 |
|
---|
2391 | /* 0xc0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2392 | /* 0xc1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2393 | /* 0xc2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2394 | /* 0xc3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2395 | /* 0xc4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2396 | /* 0xc5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2397 | /* 0xc6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2398 | /* 0xc7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2399 | /* 0xc8 */ iemOp_sha1nexte_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2400 | /* 0xc9 */ iemOp_sha1msg1_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2401 | /* 0xca */ iemOp_sha1msg2_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2402 | /* 0xcb */ iemOp_sha256rnds2_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2403 | /* 0xcc */ iemOp_sha256msg1_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2404 | /* 0xcd */ iemOp_sha256msg2_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2405 | /* 0xce */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2406 | /* 0xcf */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2407 |
|
---|
2408 | /* 0xd0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2409 | /* 0xd1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2410 | /* 0xd2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2411 | /* 0xd3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2412 | /* 0xd4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2413 | /* 0xd5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2414 | /* 0xd6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2415 | /* 0xd7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2416 | /* 0xd8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2417 | /* 0xd9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2418 | /* 0xda */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2419 | /* 0xdb */ iemOp_InvalidNeedRM, iemOp_aesimc_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2420 | /* 0xdc */ iemOp_InvalidNeedRM, iemOp_aesenc_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2421 | /* 0xdd */ iemOp_InvalidNeedRM, iemOp_aesenclast_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2422 | /* 0xde */ iemOp_InvalidNeedRM, iemOp_aesdec_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2423 | /* 0xdf */ iemOp_InvalidNeedRM, iemOp_aesdeclast_Vdq_Wdq, iemOp_InvalidNeedRM, iemOp_InvalidNeedRM,
|
---|
2424 |
|
---|
2425 | /* 0xe0 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2426 | /* 0xe1 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2427 | /* 0xe2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2428 | /* 0xe3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2429 | /* 0xe4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2430 | /* 0xe5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2431 | /* 0xe6 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2432 | /* 0xe7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2433 | /* 0xe8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2434 | /* 0xe9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2435 | /* 0xea */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2436 | /* 0xeb */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2437 | /* 0xec */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2438 | /* 0xed */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2439 | /* 0xee */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2440 | /* 0xef */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2441 |
|
---|
2442 | /* 0xf0 */ iemOp_movbe_Gv_Mv, iemOp_movbe_Gv_Mv, iemOp_InvalidNeedRM, iemOp_crc32_Gd_Eb,
|
---|
2443 | /* 0xf1 */ iemOp_movbe_Mv_Gv, iemOp_movbe_Mv_Gv, iemOp_InvalidNeedRM, iemOp_crc32_Gv_Ev,
|
---|
2444 | /* 0xf2 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2445 | /* 0xf3 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2446 | /* 0xf4 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2447 | /* 0xf5 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2448 | /* 0xf6 */ iemOp_InvalidNeedRM, iemOp_adcx_Gy_Ey, iemOp_adox_Gy_Ey, iemOp_InvalidNeedRM,
|
---|
2449 | /* 0xf7 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2450 | /* 0xf8 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2451 | /* 0xf9 */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2452 | /* 0xfa */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2453 | /* 0xfb */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2454 | /* 0xfc */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2455 | /* 0xfd */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2456 | /* 0xfe */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2457 | /* 0xff */ IEMOP_X4(iemOp_InvalidNeedRM),
|
---|
2458 | };
|
---|
2459 | AssertCompile(RT_ELEMENTS(g_apfnThreeByte0f38) == 1024);
|
---|
2460 |
|
---|
2461 | /** @} */
|
---|
2462 |
|
---|