Debian Codegraph @

check/public-tests/instructions_f_t.c

raw
1 /*
2 * FCML - Free Code Manipulation Library.
3 * Copyright (C) 2010-2020 Slawomir Wojtasiak
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include <fcml_assembler.h>
21 #include "instructions_e_t.h"
22 #include "instructions_base_t.h"
23
24 fcml_bool fcml_tf_instructions_f_suite_init(void) {
25 return FCML_TRUE;
26 }
27
28 fcml_bool fcml_tf_instructions_f_suite_cleanup(void) {
29 return FCML_TRUE;
30 }
31
32 void fcml_tf_instruction_F2XM1(void) {
33 FCML_I3264( "f2xm1", 0xD9, 0xF0 );
34 FCML_A64( "f2xm1", 0xd9, 0xf0 );
35 }
36
37 void fcml_tf_instruction_FABS(void) {
38 FCML_I3264( "fabs", 0xD9, 0xE1 );
39 FCML_A64( "fabs", 0xd9, 0xe1 );
40 }
41
42 void fcml_tf_instruction_FADD(void) {
43 FCML_I64( "fadd dword ptr [rax+0000000000000020h]", 0xD8, 0x40, 0x20 );
44 FCML_I32( "fadd dword ptr [eax+00000020h]", 0xD8, 0x40, 0x20 );
45 FCML_I64( "fadd qword ptr [rax+0000000000000020h]", 0xDC, 0x40, 0x20 );
46 FCML_I32( "fadd qword ptr [eax+00000020h]", 0xDC, 0x40, 0x20 );
47
48 FCML_I3264_M( "fadd st(0),st(0)", 2, FCML_MI( 0xD8, 0xC0 ), FCML_MI( 0xdc, 0xc0 ) );
49 FCML_I32( "fadd st(0),st(1)", 0xD8, 0xC1 );
50 FCML_I32( "fadd st(0),st(2)", 0xD8, 0xC2 );
51 FCML_I32( "fadd st(0),st(3)", 0xD8, 0xC3 );
52 FCML_I32( "fadd st(0),st(4)", 0xD8, 0xC4 );
53 FCML_I32( "fadd st(0),st(5)", 0xD8, 0xC5 );
54 FCML_I32( "fadd st(0),st(6)", 0xD8, 0xC6 );
55 FCML_I32( "fadd st(0),st(7)", 0xD8, 0xC7 );
56
57 FCML_A64_A( "fadds 0x0000000000000020(%rax)", 0xd8, 0x40, 0x20 );
58 FCML_A64_A( "faddl 0x0000000000000020(%rax)", 0xdc, 0x40, 0x20 );
59 FCML_A64( "fadd %st(1),%st(0)", 0xd8, 0xc1 );
60 FCML_A64( "fadd %st(0),%st(1)", 0xdc, 0xc1 );
61
62 FCML_I64( "fadd st(1),st(0)", 0xDC, 0xC1 );
63 FCML_I32( "fadd st(1),st(0)", 0xDC, 0xC1 );
64
65 FCML_I64( "faddp st(1),st(0)", 0xDE, 0xC1 );
66 FCML_A64( "faddp %st(0),%st(1)", 0xde, 0xc1 );
67 FCML_I32( "faddp st(1),st(0)", 0xDE, 0xC1 );
68
69 FCML_I3264_A( "faddp", 0xDE, 0xC1 );
70 FCML_A3264_A( "faddp", 0xDE, 0xC1 );
71
72 FCML_I64( "fiadd dword ptr [rax+0000000000000020h]", 0xDA, 0x40, 0x20 );
73 FCML_I32( "fiadd dword ptr [eax+00000020h]", 0xDA, 0x40, 0x20 );
74 FCML_I64( "fiadd word ptr [rax+0000000000000020h]", 0xDE, 0x40, 0x20 );
75 FCML_I32( "fiadd word ptr [eax+00000020h]", 0xDE, 0x40, 0x20 );
76 FCML_A64( "fiaddl 0x0000000000000020(%rax)", 0xda, 0x40, 0x20 );
77 FCML_A64( "fiadd 0x0000000000000020(%rax)", 0xde, 0x40, 0x20 );
78 }
79
80 void fcml_tf_instruction_FBLD(void) {
81 FCML_I64( "fbld tbyte ptr [rax+0000000000000020h]", 0xDf, 0x60, 0x20 ) ;
82 FCML_A64( "fbld 0x0000000000000020(%rax)", 0xdf, 0x60, 0x20 );
83 FCML_I32( "fbld tbyte ptr [eax+00000020h]", 0xDf, 0x60, 0x20 );
84 }
85
86 void fcml_tf_instruction_FBSTP(void) {
87 FCML_I64( "fbstp tbyte ptr [rax+0000000000000020h]", 0xDf, 0x70, 0x20 ) ;
88 FCML_A64( "fbstp 0x0000000000000020(%rax)", 0xdf, 0x70, 0x20 );
89 FCML_I32( "fbstp tbyte ptr [eax+00000020h]", 0xDf, 0x70, 0x20 );
90 }
91
92 void fcml_tf_instruction_FCHS(void) {
93 FCML_I3264( "fchs", 0xD9, 0xE0 ) ;
94 FCML_A64( "fchs", 0xd9, 0xe0 );
95 }
96
97 void fcml_tf_instruction_FNCLEX(void) {
98 FCML_I64( "fclex", 0x9B, 0xDB, 0xE2 );
99 FCML_I32( "fclex", 0x9B, 0xDB, 0xE2 );
100 FCML_I64( "fnclex", 0xDB, 0xE2 );
101 FCML_I32( "fnclex", 0xDB, 0xE2 );
102 FCML_A64( "fclex", 0x9b, 0xdb, 0xe2 );
103 FCML_A64( "fnclex", 0xdb, 0xe2 );
104 }
105
106 void fcml_tf_instruction_FCMOV(void) {
107
108 FCML_I64( "fcmovnu st(0),st(1)", 0xDB, 0xD9 );
109 FCML_I32( "fcmovnu st(0),st(1)", 0xDB, 0xD9 );
110
111 FCML_I64( "fcmovnbe st(0),st(1)", 0xDB, 0xD1 );
112 FCML_I32( "fcmovnbe st(0),st(1)", 0xDB, 0xD1 );
113
114 FCML_I64( "fcmovne st(0),st(1)", 0xDB, 0xC9 );
115 FCML_I32( "fcmovne st(0),st(1)", 0xDB, 0xC9 );
116
117 FCML_I64( "fcmovnb st(0),st(1)", 0xDB, 0xC1 );
118 FCML_I32( "fcmovnb st(0),st(1)", 0xDB, 0xC1 );
119
120 FCML_I64( "fcmovu st(0),st(1)", 0xDA, 0xD9 );
121 FCML_I32( "fcmovu st(0),st(1)", 0xDA, 0xD9);
122
123 FCML_I64( "fcmovbe st(0),st(1)", 0xDA, 0xD1 );
124 FCML_I32( "fcmovbe st(0),st(1)", 0xDA, 0xD1 );
125
126 FCML_I64( "fcmovb st(0),st(1)", 0xDA, 0xC1 );
127 FCML_I32( "fcmovb st(0),st(1)", 0xDA, 0xC1 );
128
129 FCML_I64( "fcmove st(0),st(1)", 0xDA, 0xC9 );
130 FCML_I32( "fcmove st(0),st(1)", 0xDA, 0xC9 );
131
132 FCML_A64( "fcmovnu %st(1),%st(0)", 0xdb, 0xd9 );
133 FCML_A64( "fcmovnbe %st(1),%st(0)", 0xdb, 0xd1 );
134 FCML_A64( "fcmovne %st(1),%st(0)", 0xdb, 0xc9 );
135 FCML_A64( "fcmovnb %st(1),%st(0)", 0xdb, 0xc1 );
136 FCML_A64( "fcmovu %st(1),%st(0)", 0xda, 0xd9 );
137 FCML_A64( "fcmovbe %st(1),%st(0)", 0xda, 0xd1 );
138 FCML_A64( "fcmovb %st(1),%st(0)", 0xda, 0xc1 );
139 FCML_A64( "fcmove %st(1),%st(0)", 0xda, 0xc9 );
140
141 }
142
143 void fcml_tf_instruction_FCOM(void) {
144
145 FCML_I64( "fcom dword ptr [rax]", 0xD8, 0x10 );
146 FCML_I32( "fcom dword ptr [eax]", 0xD8, 0x10 );
147
148 FCML_I64( "fcomp dword ptr [rax]", 0xD8, 0x18 );
149 FCML_I32( "fcomp dword ptr [eax]", 0xD8, 0x18 );
150
151 FCML_I64( "fcom qword ptr [rax]", 0xDC, 0x10 );
152 FCML_I32( "fcom qword ptr [eax]", 0xDC, 0x10 );
153
154 FCML_I64( "fcomp qword ptr [rax]", 0xDC, 0x18 );
155 FCML_I32( "fcomp qword ptr [eax]", 0xDC, 0x18 );
156
157 FCML_I64( "fcom st(0)", 0xD8, 0xD0 );
158 FCML_I64( "fcom st(1)", 0xD8, 0xD1 );
159 FCML_I32( "fcom st(0)", 0xD8, 0xD0 );
160 FCML_I32( "fcom st(1)", 0xD8, 0xD1 );
161
162 FCML_I64( "fcomp st(0)", 0xD8, 0xD8 );
163 FCML_I64( "fcomp st(1)", 0xD8, 0xD9 );
164 FCML_I32( "fcomp st(0)", 0xD8, 0xD8 );
165 FCML_I32( "fcomp st(1)", 0xD8, 0xD9 );
166
167 FCML_I32( "fcompp", 0xDE, 0xD9 );
168 FCML_I64( "fcompp", 0xDE, 0xD9 );
169
170 FCML_I32_A( "fcom", 0xD8, 0xD1 );
171 FCML_I32_A( "fcomp", 0xD8, 0xD9 );
172
173 FCML_A64( "fcoms (%rax)", 0xd8, 0x10 );
174 FCML_A64( "fcomps (%rax)", 0xd8, 0x18 );
175 FCML_A64( "fcoml (%rax)", 0xdc, 0x10 );
176 FCML_A64( "fcompl (%rax)", 0xdc, 0x18 );
177 FCML_A64( "fcom %st(1)", 0xd8, 0xd1 );
178 FCML_A64( "fcomp %st(1)", 0xd8, 0xd9 );
179 FCML_A64( "fcompp", 0xde, 0xd9 );
180 FCML_A64( "add %cl,(%rdi)", 0x00, 0x0f );
181 FCML_A32_A( "fcom", 0xD8, 0xD1 );
182 FCML_A32_A( "fcomp", 0xD8, 0xD9 );
183 }
184
185 void fcml_tf_instruction_FCOMI(void) {
186
187 FCML_I64( "fcomi st(0),st(1)", 0xDB, 0xF1 );
188 FCML_I32( "fcomi st(0),st(1)", 0xDB, 0xF1 );
189
190 FCML_I64( "fcomip st(0),st(1)", 0xDF, 0xF1 );
191 FCML_I32( "fcomip st(0),st(1)", 0xDF, 0xF1 );
192
193 FCML_I64( "fucomi st(0),st(1)", 0xDB, 0xE9 );
194 FCML_I32( "fucomi st(0),st(1)", 0xDB, 0xE9 );
195
196 FCML_I64( "fucomip st(0),st(1)", 0xDF, 0xE9 );
197 FCML_I32( "fucomip st(0),st(1)", 0xDF, 0xE9 );
198
199 FCML_A64( "fcomi %st(1),%st(0)", 0xdb, 0xf1 );
200 FCML_A64( "fcomip %st(1),%st(0)", 0xdf, 0xf1 );
201 FCML_A64( "fucomi %st(1),%st(0)", 0xdb, 0xe9 );
202 FCML_A64( "fucomip %st(1),%st(0)", 0xdf, 0xe9 );
203 }
204
205 void fcml_tf_instruction_FCOS(void) {
206 FCML_I3264( "fcos", 0xD9, 0xFF );
207 FCML_A64( "fcos", 0xd9, 0xff );
208 }
209
210 void fcml_tf_instruction_FDECSTP(void) {
211 FCML_I3264( "fdecstp", 0xD9, 0xf6 );
212 FCML_A64( "fdecstp", 0xd9, 0xf6 );
213 }
214
215 void fcml_tf_instruction_FDIV(void) {
216 FCML_I64( "fdiv dword ptr [rax+0000000000000020h]", 0xD8, 0x70, 0x20 );
217 FCML_I32( "fdiv dword ptr [eax+00000020h]", 0xD8, 0x70, 0x20 );
218 FCML_I64( "fdiv qword ptr [rax+0000000000000020h]", 0xDC, 0x70, 0x20 );
219 FCML_I32( "fdiv qword ptr [eax+00000020h]", 0xDC, 0x70, 0x20 );
220 FCML_I3264( "fdiv st(0),st(1)", 0xD8, 0xF1 );
221 FCML_I3264( "fdiv st(1),st(0)", 0xDC, 0xF9 );
222 FCML_I3264( "fdiv st(1),st(0)", 0xDC, 0xF9 );
223 FCML_I32( "fdivp st(1),st(0)", 0xDE, 0xF9 );
224 FCML_I64( "fidiv dword ptr [rax+0000000000000020h]", 0xDA, 0x70, 0x20 );
225 FCML_I32( "fidiv dword ptr [eax+00000020h]", 0xDA, 0x70, 0x20 );
226 FCML_I64( "fidiv word ptr [rax+0000000000000020h]", 0xDE, 0x70, 0x20 );
227 FCML_I32( "fidiv word ptr [eax+00000020h]", 0xDE, 0x70, 0x20 );
228
229 FCML_I3264_A( "fdivp", 0xDE, 0xF9 );
230
231 FCML_A64( "fdivs 0x0000000000000020(%rax)", 0xd8, 0x70, 0x20 );
232 FCML_A64( "fdivl 0x0000000000000020(%rax)", 0xdc, 0x70, 0x20 );
233 FCML_A64( "fdiv %st(1),%st(0)", 0xd8, 0xf1 );
234 FCML_A64( "fdivr %st(0),%st(1)", 0xdc, 0xf9 );
235 FCML_A64( "fidivl 0x0000000000000020(%rax)", 0xda, 0x70, 0x20 );
236 FCML_A64( "fidiv 0x0000000000000020(%rax)", 0xde, 0x70, 0x20 );
237 FCML_A64( "fdivrp %st(0),%st(1)", 0xde, 0xf9 );
238 }
239
240 void fcml_tf_instruction_FDIVR(void) {
241 FCML_I32( "fdivr dword ptr [eax]", 0xD8, 0x38 );
242 FCML_I64( "fdivr dword ptr [rax+0000000000000020h]", 0xD8, 0x78, 0x20 );
243 FCML_I32( "fdivr dword ptr [eax+00000020h]", 0xD8, 0x78, 0x20 );
244 FCML_I64( "fdivr qword ptr [rax+0000000000000020h]", 0xDC, 0x78, 0x20 );
245 FCML_I32( "fdivr qword ptr [eax+00000020h]", 0xDC, 0x78, 0x20 );
246 FCML_I32( "fdivr st(0),st(1)", 0xD8, 0xF9 );
247 FCML_I64( "fdivr st(0),st(1)", 0xD8, 0xF9 );
248 FCML_I64( "fdivr st(1),st(0)", 0xDC, 0xF1 );
249 FCML_I32( "fdivr st(1),st(0)", 0xDC, 0xF1 );
250 FCML_I64( "fdivrp st(1),st(0)", 0xDE, 0xF1 );
251 FCML_I32( "fdivrp st(1),st(0)", 0xDE, 0xF1 );
252 FCML_I64( "fidivr dword ptr [rax+0000000000000020h]", 0xDA, 0x78, 0x20 );
253 FCML_I32( "fidivr dword ptr [eax+00000020h]", 0xDA, 0x78, 0x20 );
254 FCML_I64( "fidivr word ptr [rax+0000000000000020h]", 0xDE, 0x78, 0x20 );
255 FCML_I32( "fidivr word ptr [eax+00000020h]", 0xDE, 0x78, 0x20 );
256
257 FCML_I3264_A( "fdivrp", 0xDE, 0xF1 );
258
259 FCML_A64( "fdivrs 0x0000000000000020(%rax)", 0xd8, 0x78, 0x20 );
260 FCML_A64( "fdivrl 0x0000000000000020(%rax)", 0xdc, 0x78, 0x20 );
261 FCML_A64( "fdivr %st(1),%st(0)", 0xd8, 0xf9 );
262 FCML_A64( "fdiv %st(0),%st(1)", 0xdc, 0xf1 );
263 FCML_A64( "fdivp %st(0),%st(1)", 0xde, 0xf1 );
264 FCML_A64( "fidivrl 0x0000000000000020(%rax)", 0xda, 0x78, 0x20 );
265 FCML_A64( "fidivr 0x0000000000000020(%rax)", 0xde, 0x78, 0x20 );
266 FCML_A64( "fdivp %st(0),%st(1)", 0xde, 0xf1 );
267 }
268
269 void fcml_tf_instruction_FFREE(void) {
270 FCML_I3264( "ffree st(1)", 0xDD, 0xC1 );
271 FCML_A64( "ffree %st(1)", 0xdd, 0xc1 );
272 }
273
274 void fcml_tf_instruction_FICOM(void) {
275 FCML_I32( "ficom word ptr [eax+00000040h]", 0xDE, 0x50, 0x40 );
276 FCML_I64( "ficom word ptr [rax+0000000000000040h]", 0xDE, 0x50, 0x40 );
277 FCML_I32( "ficom dword ptr [eax+00000040h]", 0xDA, 0x50, 0x40 );
278 FCML_I64( "ficom dword ptr [rax+0000000000000040h]", 0xDA, 0x50, 0x40 );
279 FCML_I32( "ficomp word ptr [eax+00000040h]", 0xDE, 0x58, 0x40 );
280 FCML_I64( "ficomp word ptr [rax+0000000000000040h]", 0xDE, 0x58, 0x40 );
281 FCML_I32( "ficomp dword ptr [eax+00000040h]", 0xDA, 0x58, 0x40 );
282 FCML_I64( "ficomp dword ptr [rax+0000000000000040h]", 0xDA, 0x58, 0x40 );
283
284 FCML_A64( "ficom 0x0000000000000040(%rax)", 0xde, 0x50, 0x40 );
285 FCML_A64( "ficoml 0x0000000000000040(%rax)", 0xda, 0x50, 0x40 );
286 FCML_A64( "ficomp 0x0000000000000040(%rax)", 0xde, 0x58, 0x40 );
287 FCML_A64( "ficompl 0x0000000000000040(%rax)", 0xda, 0x58, 0x40 );
288 }
289
290 void fcml_tf_instruction_FILD(void) {
291 FCML_I32( "fild word ptr [eax+00000040h]", 0xDF, 0x40, 0x40 );
292 FCML_I64( "fild word ptr [rax+0000000000000040h]", 0xDF, 0x40, 0x40 );
293 FCML_I32( "fild dword ptr [eax+00000040h]", 0xDB, 0x40, 0x40 );
294 FCML_I64( "fild dword ptr [rax+0000000000000040h]", 0xDB, 0x40, 0x40 );
295 FCML_I32( "fild qword ptr [eax+00000040h]", 0xDF, 0x68, 0x40 );
296 FCML_I64( "fild qword ptr [rax+0000000000000040h]", 0xDF, 0x68, 0x40 );
297
298 FCML_A64( "fild 0x0000000000000040(%rax)", 0xdf, 0x40, 0x40 );
299 FCML_A64( "fildl 0x0000000000000040(%rax)", 0xdb, 0x40, 0x40 );
300 FCML_A64( "fildll 0x0000000000000040(%rax)", 0xdf, 0x68, 0x40 );
301 }
302
303 void fcml_tf_instruction_FINCSTP(void) {
304 FCML_I32( "fincstp", 0xD9, 0xF7 );
305 FCML_I64( "fincstp", 0xD9, 0xF7 );
306 FCML_A64( "fincstp", 0xd9, 0xf7 );
307 }
308
309 void fcml_tf_instruction_FINIT_FNINIT(void) {
310 FCML_I32( "finit", 0x9B, 0xDB, 0xE3 );
311 FCML_I64( "fninit", 0xDB, 0xE3 );
312 FCML_A64( "finit", 0x9b, 0xdb, 0xe3 );
313 FCML_A64( "fninit", 0xdb, 0xe3 );
314 }
315
316 void fcml_tf_instruction_FIST_FISTP(void) {
317 FCML_I32( "fist word ptr [eax+00000020h]", 0xDF, 0x50, 0x20 );
318 FCML_I64( "fist word ptr [rax+0000000000000020h]", 0xDF, 0x50, 0x20 );
319 FCML_I32( "fist dword ptr [eax+00000020h]", 0xDB, 0x50, 0x20 );
320 FCML_I64( "fist dword ptr [rax+0000000000000020h]", 0xDB, 0x50, 0x20 );
321 FCML_I32( "fistp word ptr [eax+00000020h]", 0xDF, 0x58, 0x20 );
322 FCML_I64( "fistp word ptr [rax+0000000000000020h]", 0xDF, 0x58, 0x20 );
323 FCML_I32( "fistp dword ptr [eax+00000020h]", 0xDB, 0x58, 0x20 );
324 FCML_I64( "fistp dword ptr [rax+0000000000000020h]", 0xDB, 0x58, 0x20 );
325 FCML_I32( "fistp qword ptr [eax+00000020h]", 0xDF, 0x78, 0x20 );
326 FCML_I64( "fistp qword ptr [rax+0000000000000020h]", 0xDF, 0x78, 0x20 );
327
328 FCML_A64( "fist 0x0000000000000020(%rax)", 0xdf, 0x50, 0x20 );
329 FCML_A64( "fistl 0x0000000000000020(%rax)", 0xdb, 0x50, 0x20 );
330 FCML_A64( "fistp 0x0000000000000020(%rax)", 0xdf, 0x58, 0x20 );
331 FCML_A64( "fistpll 0x0000000000000020(%rax)", 0xdf, 0x78, 0x20 );
332 }
333
334 void fcml_tf_instruction_FLD(void) {
335 FCML_I32( "fld dword ptr [eax+00000020h]", 0xD9, 0x40, 0x20 );
336 FCML_I64( "fld dword ptr [rax+0000000000000020h]", 0xD9, 0x40, 0x20 );
337 FCML_I32( "fld qword ptr [eax+00000020h]", 0xDD, 0x40, 0x20 );
338 FCML_I64( "fld qword ptr [rax+0000000000000020h]", 0xDD, 0x40, 0x20 );
339 FCML_I32( "fld tbyte ptr [eax+00000020h]", 0xDB, 0x68, 0x20 );
340 FCML_I64( "fld tbyte ptr [rax+0000000000000020h]", 0xDB, 0x68, 0x20 );
341 FCML_I32( "fld st(1)", 0xD9, 0xC1 );
342 FCML_I64( "fld st(1)", 0xD9, 0xC1 );
343
344 FCML_A64( "flds 0x0000000000000020(%rax)", 0xd9, 0x40, 0x20 );
345 FCML_A64( "fldl 0x0000000000000020(%rax)", 0xdd, 0x40, 0x20 );
346 FCML_A64( "fldt 0x0000000000000020(%rax)", 0xdb, 0x68, 0x20 );
347 FCML_A64( "fld %st(1)", 0xd9, 0xc1 );
348 }
349
350 void fcml_tf_instruction_FLDx(void) {
351 FCML_I32( "fld1", 0xD9, 0xE8 );
352 FCML_I64( "fld1", 0xD9, 0xE8 );
353 FCML_I32( "fldl2t", 0xD9, 0xE9 );
354 FCML_I64( "fldl2t", 0xD9, 0xE9 );
355 FCML_I32( "fldl2e", 0xD9, 0xEA );
356 FCML_I64( "fldl2e", 0xD9, 0xEA );
357 FCML_I32( "fldpi", 0xD9, 0xEB );
358 FCML_I64( "fldpi", 0xD9, 0xEB );
359 FCML_I32( "fldlg2", 0xD9, 0xEC );
360 FCML_I64( "fldlg2", 0xD9, 0xEC );
361 FCML_I32( "fldln2", 0xD9, 0xED );
362 FCML_I64( "fldln2", 0xD9, 0xED );
363 FCML_I32( "fldz", 0xD9, 0xEE );
364 FCML_I64( "fldz", 0xD9, 0xEE );
365
366 FCML_A64( "fld1", 0xd9, 0xe8 );
367 FCML_A64( "fldl2t", 0xd9, 0xe9 );
368 FCML_A64( "fldl2e", 0xd9, 0xea );
369 FCML_A64( "fldpi", 0xd9, 0xeb );
370 FCML_A64( "fldlg2", 0xd9, 0xec );
371 FCML_A64( "fldln2", 0xd9, 0xed );
372 FCML_A64( "fldz", 0xd9, 0xee );
373 }
374
375 void fcml_tf_instruction_FLDCW(void) {
376 FCML_I32( "fldcw word ptr [eax+00000040h]", 0xD9, 0x68, 0x40 );
377 FCML_I64( "fldcw word ptr [rax+0000000000000040h]", 0xD9, 0x68, 0x40 );
378 FCML_A64( "fldcw 0x0000000000000040(%rax)", 0xd9, 0x68, 0x40 );
379 }
380
381 void fcml_tf_instruction_FLDENV(void) {
382 FCML_I64( "fldenv 28byte ptr [rax+0000000000000020h]", 0xD9, 0x60, 0x20 );
383 FCML_I32( "fldenv 28byte ptr [eax+00000020h]", 0xD9, 0x60, 0x20 );
384 FCML_I32( "fldenv 14byte ptr [eax+00000020h]", 0x66, 0xD9, 0x60, 0x20 );
385 FCML_A64( "fldenv 0x0000000000000020(%rax)", 0xd9, 0x60, 0x20 );
386 FCML_A64( "fldenvs 0x0000000000000020(%rax)", 0x66, 0xd9, 0x60, 0x20 );
387 }
388
389 void fcml_tf_instruction_FMUL_FMULP_FIMUL(void) {
390 FCML_I64( "fmul dword ptr [rax+0000000000000020h]", 0xD8, 0x48, 0x20 );
391 FCML_I32( "fmul dword ptr [eax+00000020h]", 0xD8, 0x48, 0x20 );
392 FCML_I64( "fmul qword ptr [rax+0000000000000020h]", 0xDC, 0x48, 0x20 );
393 FCML_I32( "fmul qword ptr [eax+00000020h]", 0xDC, 0x48, 0x20 );
394 FCML_I32( "fmul st(0),st(1)", 0xD8, 0xc9 );
395 FCML_I64( "fmul st(0),st(1)", 0xD8, 0xc9 );
396 FCML_I64( "fmul st(1),st(0)", 0xDC, 0xc9 );
397 FCML_I32( "fmul st(1),st(0)", 0xDC, 0xc9 );
398 FCML_I64( "fmulp st(1),st(0)", 0xDE, 0xc9 );
399 FCML_I32( "fmulp st(1),st(0)", 0xDE, 0xc9 );
400 FCML_I64( "fimul dword ptr [rax+0000000000000020h]", 0xDA, 0x48, 0x20 );
401 FCML_I32( "fimul dword ptr [eax+00000020h]", 0xDA, 0x48, 0x20 );
402 FCML_I64( "fimul word ptr [rax+0000000000000020h]", 0xDE, 0x48, 0x20 );
403 FCML_I32( "fimul word ptr [eax+00000020h]", 0xDE, 0x48, 0x20 );
404
405 FCML_I32_A( "fmulp", 0xDE, 0xC9 );
406
407 FCML_A64( "fmuls 0x0000000000000020(%rax)", 0xd8, 0x48, 0x20 );
408 FCML_A64( "fmull 0x0000000000000020(%rax)", 0xdc, 0x48, 0x20 );
409 FCML_A64( "fmul %st(1),%st(0)", 0xd8, 0xc9 );
410 FCML_A64( "fmul %st(0),%st(1)", 0xdc, 0xc9 );
411 FCML_A64( "fmulp %st(0),%st(1)", 0xde, 0xc9 );
412 FCML_A64( "fimull 0x0000000000000020(%rax)", 0xda, 0x48, 0x20 );
413 FCML_A64( "fimul 0x0000000000000020(%rax)", 0xde, 0x48, 0x20 );
414 FCML_A64( "fmulp %st(0),%st(1)", 0xde, 0xc9 );
415 }
416
417 void fcml_tf_instruction_FNOP(void) {
418 FCML_I3264( "fnop", 0xD9, 0xD0 );
419 FCML_A64( "fnop", 0xd9, 0xd0 );
420 }
421
422 void fcml_tf_instruction_FPATAN(void) {
423 FCML_I3264( "fpatan", 0xD9, 0xF3 );
424 FCML_A64( "fpatan", 0xd9, 0xf3 );
425 }
426
427 void fcml_tf_instruction_FPREM(void) {
428 FCML_I3264( "fprem", 0xD9, 0xF8 );
429 FCML_A64( "fprem", 0xd9, 0xf8 );
430 }
431
432 void fcml_tf_instruction_FPREM1(void) {
433 FCML_I3264( "fprem1", 0xD9, 0xF5 );
434 FCML_A64( "fprem1", 0xd9, 0xf5 );
435 }
436
437 void fcml_tf_instruction_FPTAN(void) {
438 FCML_I3264( "fptan", 0xD9, 0xF2 );
439 FCML_A64( "fptan", 0xd9, 0xf2 );
440 }
441
442 void fcml_tf_instruction_FRNDINT(void) {
443 FCML_I3264( "frndint", 0xD9, 0xFc );
444 FCML_A64( "frndint", 0xd9, 0xfc );
445 }
446
447 void fcml_tf_instruction_FRSTOR(void) {
448 FCML_I64( "frstor 108byte ptr [rax+0000000000000020h]", 0xDD, 0x60, 0x20 );
449 FCML_I32( "frstor 108byte ptr [eax+00000020h]", 0xDD, 0x60, 0x20 );
450 FCML_I32( "frstor 94byte ptr [eax+00000020h]", 0x66, 0xDD, 0x60, 0x20 );
451 FCML_A64( "frstor 0x0000000000000020(%rax)", 0xdd, 0x60, 0x20 );
452 FCML_A64( "frstors 0x0000000000000020(%rax)", 0x66, 0xdd, 0x60, 0x20 );
453 }
454
455 void fcml_tf_instruction_FSAVE_FNSAVE(void) {
456 FCML_I64( "fsave 108byte ptr [rax+0000000000000020h]", 0x9B, 0xDD, 0x70, 0x20 );
457 FCML_I32( "fsave 108byte ptr [eax+00000020h]", 0x9B, 0xDD, 0x70, 0x20 );
458 FCML_I32( "fsave 94byte ptr [eax+00000020h]", 0x66, 0x9B, 0xDD, 0x70, 0x20 );
459 FCML_I64( "fnsave 108byte ptr [rax+0000000000000020h]", 0xDD, 0x70, 0x20 );
460 FCML_I64( "fnsave 94byte ptr [rax+0000000000000020h]", 0x66, 0xDD, 0x70, 0x20 );
461 FCML_I32( "fnsave 108byte ptr [eax+00000020h]", 0xDD, 0x70, 0x20 );
462
463 FCML_A64( "fsave 0x0000000000000020(%rax)", 0x9b, 0xdd, 0x70, 0x20 );
464 FCML_A64( "fsaves 0x0000000000000020(%rax)", 0x66, 0x9b, 0xdd, 0x70, 0x20 );
465 FCML_A64( "fnsave 0x0000000000000020(%rax)", 0xdd, 0x70, 0x20 );
466 FCML_A64( "fnsaves 0x0000000000000020(%rax)", 0x66, 0xdd, 0x70, 0x20 );
467 }
468
469 void fcml_tf_instruction_FSCALE(void) {
470 FCML_I3264( "fscale", 0xD9, 0xFD );
471 FCML_A64( "fscale", 0xd9, 0xfd );
472 }
473
474 void fcml_tf_instruction_FSIN(void) {
475 FCML_I3264( "fsin", 0xD9, 0xFE );
476 FCML_A64( "fsin", 0xd9, 0xfe );
477 }
478
479 void fcml_tf_instruction_FSINCOS(void) {
480 FCML_I3264( "fsincos", 0xD9, 0xFB );
481 FCML_A64( "fsincos", 0xd9, 0xfb );
482 }
483
484 void fcml_tf_instruction_FSQRT(void) {
485 FCML_I3264( "fsqrt", 0xD9, 0xFA );
486 FCML_A64( "fsqrt", 0xd9, 0xfa );
487 }
488
489 void fcml_tf_instruction_FST_FSTP(void) {
490 FCML_I64( "fst dword ptr [rax+0000000000000020h]", 0xD9, 0x50, 0x20 );
491 FCML_I32( "fst dword ptr [eax+00000020h]", 0xD9, 0x50, 0x20 );
492 FCML_I64( "fst qword ptr [rax+0000000000000020h]", 0xDD, 0x50, 0x20 );
493 FCML_I32( "fst qword ptr [eax+00000020h]", 0xDD, 0x50, 0x20 );
494 FCML_I64( "fst st(1)", 0xDD, 0xD1 );
495 FCML_I32( "fst st(1)", 0xDD, 0xD1 );
496 FCML_I64( "fstp dword ptr [rax+0000000000000020h]", 0xD9, 0x58, 0x20 );
497 FCML_I32( "fstp dword ptr [eax+00000020h]", 0xD9, 0x58, 0x20 );
498 FCML_I64( "fstp qword ptr [rax+0000000000000020h]", 0xDD, 0x58, 0x20 );
499 FCML_I32( "fstp qword ptr [eax+00000020h]", 0xDD, 0x58, 0x20 );
500 FCML_I64( "fstp tbyte ptr [rax+0000000000000020h]", 0xDB, 0x78, 0x20 );
501 FCML_I32( "fstp tbyte ptr [eax+00000020h]", 0xDB, 0x78, 0x20 );
502 FCML_I64( "fstp st(1)", 0xDD, 0xD9 );
503 FCML_I32( "fstp st(1)", 0xDD, 0xD9 );
504
505 FCML_A64( "fsts 0x0000000000000020(%rax)", 0xd9, 0x50, 0x20 );
506 FCML_A64( "fstl 0x0000000000000020(%rax)", 0xdd, 0x50, 0x20 );
507 FCML_A64( "fst %st(1)", 0xdd, 0xd1 );
508 FCML_A64( "fstps 0x0000000000000020(%rax)", 0xd9, 0x58, 0x20 );
509 FCML_A64( "fstpl 0x0000000000000020(%rax)", 0xdd, 0x58, 0x20 );
510 FCML_A64( "fstpt 0x0000000000000020(%rax)", 0xdb, 0x78, 0x20 );
511 FCML_A64( "fstp %st(1)", 0xdd, 0xd9 );
512 }
513
514 void fcml_tf_instruction_FSTENV_FNSTENV(void) {
515 FCML_I64( "fstenv 28byte ptr [rax+0000000000000020h]", 0x9B, 0xD9, 0x70, 0x20 );
516 FCML_I32( "fstenv 28byte ptr [eax+00000020h]", 0x9B, 0xD9, 0x70, 0x20 );
517 FCML_I32( "fstenv 14byte ptr [eax+00000020h]", 0x66, 0x9B, 0xD9, 0x70, 0x20 );
518 FCML_I64( "fnstenv 28byte ptr [rax+0000000000000020h]", 0xD9, 0x70, 0x20 );
519 FCML_I64( "fnstenv 14byte ptr [rax+0000000000000020h]", 0x66, 0xD9, 0x70, 0x20 );
520 FCML_I32( "fnstenv 28byte ptr [eax+00000020h]", 0xD9, 0x70, 0x20 );
521
522 FCML_A64( "fstenv 0x0000000000000020(%rax)", 0x9b, 0xd9, 0x70, 0x20 );
523 FCML_A64( "fstenvs 0x0000000000000020(%rax)", 0x66, 0x9b, 0xd9, 0x70, 0x20 );
524 FCML_A64( "fnstenv 0x0000000000000020(%rax)", 0xd9, 0x70, 0x20 );
525 FCML_A64( "fnstenvs 0x0000000000000020(%rax)", 0x66, 0xd9, 0x70, 0x20 );
526 }
527
528 void fcml_tf_instruction_FSTCW_FNSTCW(void) {
529 FCML_I64( "fstcw word ptr [rax+0000000000000020h]", 0x9B, 0xD9, 0x78, 0x20 );
530 FCML_I32( "fstcw word ptr [eax+00000020h]",0x9B, 0xD9, 0x78, 0x20 );
531 FCML_I64( "fnstcw word ptr [rax+0000000000000020h]", 0xD9, 0x78, 0x20 );
532 FCML_I32( "fnstcw word ptr [eax+00000020h]", 0xD9, 0x78, 0x20 );
533 FCML_A64( "fstcw 0x0000000000000020(%rax)", 0x9b, 0xd9, 0x78, 0x20 );
534 FCML_A64( "fnstcw 0x0000000000000020(%rax)", 0xd9, 0x78, 0x20 );
535 }
536
537 void fcml_tf_instruction_FSTSW_FNSTSW(void) {
538 FCML_I64( "fstsw word ptr [rax+0000000000000020h]", 0x9B, 0xDD, 0x78, 0x20 );
539 FCML_I32( "fstsw word ptr [eax+00000020h]", 0x9B, 0xDD, 0x78, 0x20 );
540 FCML_I64( "fstsw ax", 0x9B, 0xDF, 0xE0 );
541 FCML_I32( "fstsw ax", 0x9B, 0xDF, 0xE0 );
542 FCML_I64( "fnstsw word ptr [rax+0000000000000020h]", 0xDD, 0x78, 0x20 );
543 FCML_I32( "fnstsw word ptr [eax+00000020h]", 0xDD, 0x78, 0x20 );
544 FCML_I64( "fnstsw ax", 0xDF, 0xE0 );
545 FCML_I32( "fnstsw ax", 0xDF, 0xE0 );
546
547 FCML_A64( "fstsw 0x0000000000000020(%rax)", 0x9b, 0xdd, 0x78, 0x20 );
548 FCML_A64( "fstsw %ax", 0x9b, 0xdf, 0xe0 );
549 FCML_A64( "fnstsw 0x0000000000000020(%rax)", 0xdd, 0x78, 0x20 );
550 FCML_A64( "fnstsw %ax", 0xdf, 0xe0 );
551 }
552
553 void fcml_tf_instruction_FSUB_FSUBP_FISUB(void) {
554 FCML_I64( "fsub dword ptr [rax+0000000000000020h]", 0xD8, 0x60, 0x20 );
555 FCML_I32( "fsub dword ptr [eax+00000020h]", 0xD8, 0x60, 0x20 );
556 FCML_I64( "fsub qword ptr [rax+0000000000000020h]", 0xDC, 0x60, 0x20 );
557 FCML_I32( "fsub qword ptr [eax+00000020h]", 0xDC, 0x60, 0x20 );
558 FCML_I32( "fsub st(0),st(1)", 0xD8, 0xe1 );
559 FCML_I64( "fsub st(0),st(1)", 0xD8, 0xe1 );
560 FCML_I64( "fsub st(1),st(0)", 0xDC, 0xe9 );
561 FCML_I32( "fsub st(1),st(0)", 0xDC, 0xe9 );
562 FCML_I64( "fsubp st(1),st(0)", 0xDE, 0xe9 );
563 FCML_I32( "fsubp st(1),st(0)", 0xDE, 0xe9 );
564 FCML_I64( "fisub dword ptr [rax+0000000000000020h]", 0xDA, 0x60, 0x20 );
565 FCML_I32( "fisub dword ptr [eax+00000020h]", 0xDA, 0x60, 0x20 );
566 FCML_I64( "fisub word ptr [rax+0000000000000020h]", 0xDE, 0x60, 0x20 );
567 FCML_I32( "fisub word ptr [eax+00000020h]", 0xDE, 0x60, 0x20 );
568
569 FCML_I3264_A( "fsubp", 0xDE, 0xE9 );
570
571 FCML_A64( "fsubs 0x0000000000000020(%rax)", 0xd8, 0x60, 0x20 );
572 FCML_A64( "fsubl 0x0000000000000020(%rax)", 0xdc, 0x60, 0x20 );
573 FCML_A64( "fsub %st(1),%st(0)", 0xd8, 0xe1 );
574
575 /* SVR3.2 compatible by default.
576 */
577 FCML_A64( "fsubr %st(0),%st(1)", 0xdc, 0xe9 );
578 FCML_A64( "fsubrp %st(0),%st(1)", 0xde, 0xe9 );
579 FCML_A64( "fisubl 0x0000000000000020(%rax)", 0xda, 0x60, 0x20 );
580 FCML_A64( "fisub 0x0000000000000020(%rax)", 0xde, 0x60, 0x20 );
581 }
582
583 void fcml_tf_instruction_FSUBR_FSUBRP_FISUBR(void) {
584 FCML_I64( "fsubr dword ptr [rax+0000000000000020h]", 0xD8, 0x68, 0x20 );
585 FCML_I32( "fsubr dword ptr [eax+00000020h]", 0xD8, 0x68, 0x20 );
586 FCML_I64( "fsubr qword ptr [rax+0000000000000020h]", 0xDC, 0x68, 0x20 );
587 FCML_I32( "fsubr qword ptr [eax+00000020h]", 0xDC, 0x68, 0x20 );
588 FCML_I32( "fsubr st(0),st(1)", 0xD8, 0xe9 );
589 FCML_I64( "fsubr st(0),st(1)", 0xD8, 0xe9 );
590 FCML_I64( "fsubr st(1),st(0)", 0xDC, 0xe1 );
591 FCML_I32( "fsubr st(1),st(0)", 0xDC, 0xe1 );
592 FCML_I64( "fsubrp st(1),st(0)", 0xDE, 0xe1 );
593 FCML_I32( "fsubrp st(1),st(0)", 0xDE, 0xe1 );
594 FCML_I64( "fisubr dword ptr [rax+0000000000000020h]", 0xDA, 0x68, 0x20 );
595 FCML_I32( "fisubr dword ptr [eax+00000020h]", 0xDA, 0x68, 0x20 );
596 FCML_I64( "fisubr word ptr [rax+0000000000000020h]", 0xDE, 0x68, 0x20 );
597 FCML_I32( "fisubr word ptr [eax+00000020h]", 0xDE, 0x68, 0x20 );
598
599 FCML_I3264_A( "fsubrp", 0xDE, 0xE1 );
600
601 FCML_A64( "fsubrs 0x0000000000000020(%rax)", 0xd8, 0x68, 0x20 );
602 FCML_A64( "fsubrl 0x0000000000000020(%rax)", 0xdc, 0x68, 0x20 );
603 FCML_A64( "fsubr %st(1),%st(0)", 0xd8, 0xe9 );
604
605 /* SVR3.2 compatible by default.
606 */
607 FCML_A64( "fsub %st(0),%st(1)", 0xdc, 0xe1 );
608 FCML_A64( "fsubp %st(0),%st(1)", 0xde, 0xe1 );
609 FCML_A64( "fisubrl 0x0000000000000020(%rax)", 0xda, 0x68, 0x20 );
610 FCML_A64( "fisubr 0x0000000000000020(%rax)", 0xde, 0x68, 0x20 );
611 }
612
613 void fcml_tf_instruction_FTST(void) {
614 FCML_I3264( "ftst", 0xD9, 0xE4 );
615 }
616
617 void fcml_tf_instruction_FUCOM_FUCOMP_FUCOMPP(void) {
618 FCML_I3264( "fucom st(1)", 0xDD, 0xE1 );
619 FCML_I3264( "fucomp st(1)", 0xDD, 0xE9 );
620
621 FCML_I3264_A( "fucom", 0xDD, 0xE1 );
622
623 FCML_I3264_A( "fucomp", 0xDD, 0xE9 );
624
625 FCML_I3264( "fucompp", 0xDA, 0xE9 );
626
627 FCML_A64( "fucom %st(1)", 0xdd, 0xe1 );
628 FCML_A64( "fucomp %st(1)", 0xdd, 0xe9 );
629 FCML_A64( "fucompp", 0xda, 0xe9 );
630
631 }
632
633 void fcml_tf_instruction_FXAM(void) {
634 FCML_I3264( "fxam", 0xD9, 0xE5 );
635 FCML_A64( "fxam", 0xd9, 0xe5 );
636 }
637
638 void fcml_tf_instruction_FXCH(void) {
639 FCML_I3264( "fxch st(1)", 0xD9, 0xC9 );
640 FCML_I3264( "fxch st(2)", 0xD9, 0xCA );
641
642 FCML_I3264_A( "fxch", 0xD9, 0xC9 );
643
644 FCML_A64( "fxch %st(1)", 0xd9, 0xc9 );
645 FCML_A64( "fxch %st(2)", 0xd9, 0xca );
646 FCML_A64_A( "fxch", 0xD9, 0xC9 );
647 }
648
649 void fcml_tf_instruction_FXRSTOR(void) {
650
651 FCML_I64( "xrstor [rax]", 0x0F, 0xAE, 0x28 );
652 FCML_I32( "xrstor [eax]", 0x0F, 0xAE, 0x28 );
653 FCML_I64( "xrstor [rax]", 0x66, 0x0F, 0xAE, 0x28 );
654 FCML_I32( "xrstor [eax]", 0x66, 0x0F, 0xAE, 0x28 );
655 FCML_I64( "xrstor64 [rax]", 0x48, 0x0F, 0xAE, 0x28 );
656
657 FCML_A64( "xrstor (%rax)", 0x0f, 0xae, 0x28 );
658 FCML_A64( "xrstor64 (%rax)", 0x48, 0x0f, 0xae, 0x28 );
659 }
660
661 void fcml_tf_instruction_FXRSAVE(void) {
662 FCML_I64( "fxsave [rax+0000000000000020h]", 0x0F, 0xAE, 0x40, 0x20 );
663 FCML_I32( "fxsave [eax+00000020h]", 0x0F, 0xAE, 0x40, 0x20 );
664 FCML_I64_D( "fxsave [rax+0000000000000020h]", 0x66, 0x0F, 0xAE, 0x40, 0x20 );
665 FCML_I32_D( "fxsave [eax+00000020h]", 0x66, 0x0F, 0xAE, 0x40, 0x20 );
666 FCML_I64( "fxsave64 [rax+0000000000000020h]", 0x48, 0x0F, 0xAE, 0x40, 0x20 );
667
668 FCML_A64( "fxsave 0x0000000000000020(%rax)", 0x0f, 0xae, 0x40, 0x20 );
669 FCML_A64( "fxsave64 0x0000000000000020(%rax)", 0x48, 0x0f, 0xae, 0x40, 0x20 );
670 }
671
672 void fcml_tf_instruction_FXTRACT(void) {
673 FCML_I3264( "fxtract", 0xD9, 0xF4 );
674 FCML_A64( "fxtract", 0xd9, 0xf4 );
675 }
676
677 void fcml_tf_instruction_FYL2X(void) {
678 FCML_I3264( "fyl2x", 0xD9, 0xF1 );
679 FCML_A64( "fyl2x", 0xd9, 0xf1 );
680 }
681
682 void fcml_tf_instruction_FYL2XP1(void) {
683 FCML_I3264( "fyl2xp1", 0xD9, 0xF9 );
684 FCML_A64( "fyl2xp1", 0xd9, 0xf9 );
685 }
686
687 void fcml_tf_instruction_FEMMS(void) {
688 FCML_I3264( "femms", 0x0F, 0x0E );
689 FCML_A64( "femms", 0x0f, 0x0e );
690 }
691
692 void fcml_tf_instruction_FISTTP(void) {
693 FCML_I32( "fisttp word ptr [eax+00000020h]", 0xDF, 0x48, 0x20 );
694 FCML_I64( "fisttp word ptr [rax+0000000000000020h]", 0xDF, 0x48, 0x20 );
695 FCML_I32( "fisttp dword ptr [eax+00000020h]", 0xDB, 0x48, 0x20 );
696 FCML_I64( "fisttp dword ptr [rax+0000000000000020h]", 0xDB, 0x48, 0x20 );
697 FCML_I32( "fisttp qword ptr [eax+00000020h]", 0xDD, 0x48, 0x20 );
698 FCML_I64( "fisttp qword ptr [rax+0000000000000020h]", 0xDD, 0x48, 0x20 );
699
700 FCML_A64( "fisttp 0x0000000000000020(%rax)", 0xdf, 0x48, 0x20 );
701 FCML_A64( "fisttpl 0x0000000000000020(%rax)", 0xdb, 0x48, 0x20 );
702 FCML_A64( "fisttpll 0x0000000000000020(%rax)", 0xdd, 0x48, 0x20 );
703 }
704
705 fcml_stf_test_case fctl_ti_instructions_f[] = {
706 { "fcml_tf_instruction_F2XM1", fcml_tf_instruction_F2XM1 },
707 { "fcml_tf_instruction_FABS", fcml_tf_instruction_FABS },
708 { "fcml_tf_instruction_FADD", fcml_tf_instruction_FADD },
709 { "fcml_tf_instruction_FBLD", fcml_tf_instruction_FBLD },
710 { "fcml_tf_instruction_FBSTP", fcml_tf_instruction_FBSTP },
711 { "fcml_tf_instruction_FCHS", fcml_tf_instruction_FCHS },
712 { "fcml_tf_instruction_FNCLEX", fcml_tf_instruction_FNCLEX },
713 { "fcml_tf_instruction_FCMOV", fcml_tf_instruction_FCMOV },
714 { "fcml_tf_instruction_FCOM", fcml_tf_instruction_FCOM },
715 { "fcml_tf_instruction_FCOMI", fcml_tf_instruction_FCOMI },
716 { "fcml_tf_instruction_FCOS", fcml_tf_instruction_FCOS },
717 { "fcml_tf_instruction_FDECSTP", fcml_tf_instruction_FDECSTP },
718 { "fcml_tf_instruction_FDIV", fcml_tf_instruction_FDIV },
719 { "fcml_tf_instruction_FDIVR", fcml_tf_instruction_FDIVR },
720 { "fcml_tf_instruction_FFREE", fcml_tf_instruction_FFREE },
721 { "fcml_tf_instruction_FICOM", fcml_tf_instruction_FICOM },
722 { "fcml_tf_instruction_FILD", fcml_tf_instruction_FILD },
723 { "fcml_tf_instruction_FINCSTP", fcml_tf_instruction_FINCSTP },
724 { "fcml_tf_instruction_FINIT_FNINIT", fcml_tf_instruction_FINIT_FNINIT },
725 { "fcml_tf_instruction_FIST_FISTP", fcml_tf_instruction_FIST_FISTP },
726 { "fcml_tf_instruction_FLD", fcml_tf_instruction_FLD },
727 { "fcml_tf_instruction_FLDx", fcml_tf_instruction_FLDx },
728 { "fcml_tf_instruction_FLDCW", fcml_tf_instruction_FLDCW },
729 { "fcml_tf_instruction_FLDENV", fcml_tf_instruction_FLDENV },
730 { "fcml_tf_instruction_FMUL_FMULP_FIMUL", fcml_tf_instruction_FMUL_FMULP_FIMUL },
731 { "fcml_tf_instruction_FNOP", fcml_tf_instruction_FNOP },
732 { "fcml_tf_instruction_FPATAN", fcml_tf_instruction_FPATAN },
733 { "fcml_tf_instruction_FPREM", fcml_tf_instruction_FPREM },
734 { "fcml_tf_instruction_FPREM1", fcml_tf_instruction_FPREM1 },
735 { "fcml_tf_instruction_FPTAN", fcml_tf_instruction_FPTAN },
736 { "fcml_tf_instruction_FRNDINT", fcml_tf_instruction_FRNDINT },
737 { "fcml_tf_instruction_FRSTOR", fcml_tf_instruction_FRSTOR },
738 { "fcml_tf_instruction_FSAVE_FNSAVE", fcml_tf_instruction_FSAVE_FNSAVE },
739 { "fcml_tf_instruction_FSCALE", fcml_tf_instruction_FSCALE },
740 { "fcml_tf_instruction_FSIN", fcml_tf_instruction_FSIN },
741 { "fcml_tf_instruction_FSINCOS", fcml_tf_instruction_FSINCOS },
742 { "fcml_tf_instruction_FSQRT", fcml_tf_instruction_FSQRT },
743 { "fcml_tf_instruction_FST_FSTP", fcml_tf_instruction_FST_FSTP },
744 { "fcml_tf_instruction_FSTENV_FNSTENV", fcml_tf_instruction_FSTENV_FNSTENV },
745 { "fcml_tf_instruction_FSTCW_FNSTCW", fcml_tf_instruction_FSTCW_FNSTCW },
746 { "fcml_tf_instruction_FSTSW_FNSTSW", fcml_tf_instruction_FSTSW_FNSTSW },
747 { "fcml_tf_instruction_FSUB_FSUBP_FISUB", fcml_tf_instruction_FSUB_FSUBP_FISUB },
748 { "fcml_tf_instruction_FSUBR_FSUBRP_FISUBR", fcml_tf_instruction_FSUBR_FSUBRP_FISUBR },
749 { "fcml_tf_instruction_FTST", fcml_tf_instruction_FTST },
750 { "fcml_tf_instruction_FUCOM_FUCOMP_FUCOMPP", fcml_tf_instruction_FUCOM_FUCOMP_FUCOMPP },
751 { "fcml_tf_instruction_FXAM", fcml_tf_instruction_FXAM },
752 { "fcml_tf_instruction_FXCH", fcml_tf_instruction_FXCH },
753 { "fcml_tf_instruction_FXRSTOR", fcml_tf_instruction_FXRSTOR },
754 { "fcml_tf_instruction_FXRSAVE", fcml_tf_instruction_FXRSAVE },
755 { "fcml_tf_instruction_FXTRACT", fcml_tf_instruction_FXTRACT },
756 { "fcml_tf_instruction_FYL2X", fcml_tf_instruction_FYL2X },
757 { "fcml_tf_instruction_FYL2XP1", fcml_tf_instruction_FYL2XP1 },
758 { "fcml_tf_instruction_FEMMS", fcml_tf_instruction_FEMMS },
759 { "fcml_tf_instruction_FISTTP", fcml_tf_instruction_FISTTP },
760 FCML_STF_NULL_TEST
761 };
762
763 fcml_stf_test_suite fctl_si_instructions_f = {
764 "suite-fctl_ti_instructions_f", fcml_tf_instructions_f_suite_init, fcml_tf_instructions_f_suite_cleanup, fctl_ti_instructions_f
765 };
766