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