VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMAll/IEMAllInstructions3DNow.cpp.h@ 90802

Last change on this file since 90802 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 KB
Line 
1/* $Id: IEMAllInstructions3DNow.cpp.h 82968 2020-02-04 10:35:17Z vboxsync $ */
2/** @file
3 * IEM - Instruction Decoding and Emulation, 3DNow!.
4 */
5
6/*
7 * Copyright (C) 2011-2020 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18
19/** @name 3DNow! instructions (0x0f 0x0f)
20 *
21 * @{
22 */
23
24/** Opcode 0x0f 0x0f 0x0c. */
25FNIEMOP_STUB(iemOp_3Dnow_pi2fw_Pq_Qq);
26
27/** Opcode 0x0f 0x0f 0x0d. */
28FNIEMOP_STUB(iemOp_3Dnow_pi2fd_Pq_Qq);
29
30/** Opcode 0x0f 0x0f 0x1c. */
31FNIEMOP_STUB(iemOp_3Dnow_pf2fw_Pq_Qq);
32
33/** Opcode 0x0f 0x0f 0x1d. */
34FNIEMOP_STUB(iemOp_3Dnow_pf2fd_Pq_Qq);
35
36/** Opcode 0x0f 0x0f 0x8a. */
37FNIEMOP_STUB(iemOp_3Dnow_pfnacc_Pq_Qq);
38
39/** Opcode 0x0f 0x0f 0x8e. */
40FNIEMOP_STUB(iemOp_3Dnow_pfpnacc_Pq_Qq);
41
42/** Opcode 0x0f 0x0f 0x90. */
43FNIEMOP_STUB(iemOp_3Dnow_pfcmpge_Pq_Qq);
44
45/** Opcode 0x0f 0x0f 0x94. */
46FNIEMOP_STUB(iemOp_3Dnow_pfmin_Pq_Qq);
47
48/** Opcode 0x0f 0x0f 0x96. */
49FNIEMOP_STUB(iemOp_3Dnow_pfrcp_Pq_Qq);
50
51/** Opcode 0x0f 0x0f 0x97. */
52FNIEMOP_STUB(iemOp_3Dnow_pfrsqrt_Pq_Qq);
53
54/** Opcode 0x0f 0x0f 0x9a. */
55FNIEMOP_STUB(iemOp_3Dnow_pfsub_Pq_Qq);
56
57/** Opcode 0x0f 0x0f 0x9e. */
58FNIEMOP_STUB(iemOp_3Dnow_pfadd_PQ_Qq);
59
60/** Opcode 0x0f 0x0f 0xa0. */
61FNIEMOP_STUB(iemOp_3Dnow_pfcmpgt_Pq_Qq);
62
63/** Opcode 0x0f 0x0f 0xa4. */
64FNIEMOP_STUB(iemOp_3Dnow_pfmax_Pq_Qq);
65
66/** Opcode 0x0f 0x0f 0xa6. */
67FNIEMOP_STUB(iemOp_3Dnow_pfrcpit1_Pq_Qq);
68
69/** Opcode 0x0f 0x0f 0xa7. */
70FNIEMOP_STUB(iemOp_3Dnow_pfrsqit1_Pq_Qq);
71
72/** Opcode 0x0f 0x0f 0xaa. */
73FNIEMOP_STUB(iemOp_3Dnow_pfsubr_Pq_Qq);
74
75/** Opcode 0x0f 0x0f 0xae. */
76FNIEMOP_STUB(iemOp_3Dnow_pfacc_PQ_Qq);
77
78/** Opcode 0x0f 0x0f 0xb0. */
79FNIEMOP_STUB(iemOp_3Dnow_pfcmpeq_Pq_Qq);
80
81/** Opcode 0x0f 0x0f 0xb4. */
82FNIEMOP_STUB(iemOp_3Dnow_pfmul_Pq_Qq);
83
84/** Opcode 0x0f 0x0f 0xb6. */
85FNIEMOP_STUB(iemOp_3Dnow_pfrcpit2_Pq_Qq);
86
87/** Opcode 0x0f 0x0f 0xb7. */
88FNIEMOP_STUB(iemOp_3Dnow_pmulhrw_Pq_Qq);
89
90/** Opcode 0x0f 0x0f 0xbb. */
91FNIEMOP_STUB(iemOp_3Dnow_pswapd_Pq_Qq);
92
93/** Opcode 0x0f 0x0f 0xbf. */
94FNIEMOP_STUB(iemOp_3Dnow_pavgusb_PQ_Qq);
95
96
97/** Opcode 0x0f 0x0f. */
98FNIEMOP_DEF_1(iemOp_3DNowDispatcher, uint8_t, b)
99{
100 /* This is pretty sparse, use switch instead of table. */
101 switch (b)
102 {
103 case 0x0c: return FNIEMOP_CALL(iemOp_3Dnow_pi2fw_Pq_Qq);
104 case 0x0d: return FNIEMOP_CALL(iemOp_3Dnow_pi2fd_Pq_Qq);
105 case 0x1c: return FNIEMOP_CALL(iemOp_3Dnow_pf2fw_Pq_Qq);
106 case 0x1d: return FNIEMOP_CALL(iemOp_3Dnow_pf2fd_Pq_Qq);
107 case 0x8a: return FNIEMOP_CALL(iemOp_3Dnow_pfnacc_Pq_Qq);
108 case 0x8e: return FNIEMOP_CALL(iemOp_3Dnow_pfpnacc_Pq_Qq);
109 case 0x90: return FNIEMOP_CALL(iemOp_3Dnow_pfcmpge_Pq_Qq);
110 case 0x94: return FNIEMOP_CALL(iemOp_3Dnow_pfmin_Pq_Qq);
111 case 0x96: return FNIEMOP_CALL(iemOp_3Dnow_pfrcp_Pq_Qq);
112 case 0x97: return FNIEMOP_CALL(iemOp_3Dnow_pfrsqrt_Pq_Qq);
113 case 0x9a: return FNIEMOP_CALL(iemOp_3Dnow_pfsub_Pq_Qq);
114 case 0x9e: return FNIEMOP_CALL(iemOp_3Dnow_pfadd_PQ_Qq);
115 case 0xa0: return FNIEMOP_CALL(iemOp_3Dnow_pfcmpgt_Pq_Qq);
116 case 0xa4: return FNIEMOP_CALL(iemOp_3Dnow_pfmax_Pq_Qq);
117 case 0xa6: return FNIEMOP_CALL(iemOp_3Dnow_pfrcpit1_Pq_Qq);
118 case 0xa7: return FNIEMOP_CALL(iemOp_3Dnow_pfrsqit1_Pq_Qq);
119 case 0xaa: return FNIEMOP_CALL(iemOp_3Dnow_pfsubr_Pq_Qq);
120 case 0xae: return FNIEMOP_CALL(iemOp_3Dnow_pfacc_PQ_Qq);
121 case 0xb0: return FNIEMOP_CALL(iemOp_3Dnow_pfcmpeq_Pq_Qq);
122 case 0xb4: return FNIEMOP_CALL(iemOp_3Dnow_pfmul_Pq_Qq);
123 case 0xb6: return FNIEMOP_CALL(iemOp_3Dnow_pfrcpit2_Pq_Qq);
124 case 0xb7: return FNIEMOP_CALL(iemOp_3Dnow_pmulhrw_Pq_Qq);
125 case 0xbb: return FNIEMOP_CALL(iemOp_3Dnow_pswapd_Pq_Qq);
126 case 0xbf: return FNIEMOP_CALL(iemOp_3Dnow_pavgusb_PQ_Qq);
127 default:
128 return IEMOP_RAISE_INVALID_OPCODE();
129 }
130}
131
132/** @} */
133
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette