1 | // Generated by opcode_generator.rb from /home/user/data/webkitgtk-2.25.2/Source/JavaScriptCore/b3/air/AirOpcode.opcodes -- do not edit! |
2 | #ifndef AirOpcodeGenerated_h |
3 | #define AirOpcodeGenerated_h |
4 | #include "AirInstInlines.h" |
5 | #include "wtf/PrintStream.h" |
6 | namespace WTF { |
7 | using namespace JSC::B3::Air; |
8 | void printInternal(PrintStream& out, Opcode opcode) |
9 | { |
10 | switch (opcode) { |
11 | case Opcode::Nop: |
12 | out.print("Nop" ); |
13 | return; |
14 | case Opcode::Add32: |
15 | out.print("Add32" ); |
16 | return; |
17 | case Opcode::Add8: |
18 | out.print("Add8" ); |
19 | return; |
20 | case Opcode::Add16: |
21 | out.print("Add16" ); |
22 | return; |
23 | case Opcode::Add64: |
24 | out.print("Add64" ); |
25 | return; |
26 | case Opcode::AddDouble: |
27 | out.print("AddDouble" ); |
28 | return; |
29 | case Opcode::AddFloat: |
30 | out.print("AddFloat" ); |
31 | return; |
32 | case Opcode::Sub32: |
33 | out.print("Sub32" ); |
34 | return; |
35 | case Opcode::Sub64: |
36 | out.print("Sub64" ); |
37 | return; |
38 | case Opcode::SubDouble: |
39 | out.print("SubDouble" ); |
40 | return; |
41 | case Opcode::SubFloat: |
42 | out.print("SubFloat" ); |
43 | return; |
44 | case Opcode::Neg32: |
45 | out.print("Neg32" ); |
46 | return; |
47 | case Opcode::Neg64: |
48 | out.print("Neg64" ); |
49 | return; |
50 | case Opcode::NegateDouble: |
51 | out.print("NegateDouble" ); |
52 | return; |
53 | case Opcode::NegateFloat: |
54 | out.print("NegateFloat" ); |
55 | return; |
56 | case Opcode::Mul32: |
57 | out.print("Mul32" ); |
58 | return; |
59 | case Opcode::Mul64: |
60 | out.print("Mul64" ); |
61 | return; |
62 | case Opcode::MultiplyAdd32: |
63 | out.print("MultiplyAdd32" ); |
64 | return; |
65 | case Opcode::MultiplyAdd64: |
66 | out.print("MultiplyAdd64" ); |
67 | return; |
68 | case Opcode::MultiplySub32: |
69 | out.print("MultiplySub32" ); |
70 | return; |
71 | case Opcode::MultiplySub64: |
72 | out.print("MultiplySub64" ); |
73 | return; |
74 | case Opcode::MultiplyNeg32: |
75 | out.print("MultiplyNeg32" ); |
76 | return; |
77 | case Opcode::MultiplyNeg64: |
78 | out.print("MultiplyNeg64" ); |
79 | return; |
80 | case Opcode::Div32: |
81 | out.print("Div32" ); |
82 | return; |
83 | case Opcode::UDiv32: |
84 | out.print("UDiv32" ); |
85 | return; |
86 | case Opcode::Div64: |
87 | out.print("Div64" ); |
88 | return; |
89 | case Opcode::UDiv64: |
90 | out.print("UDiv64" ); |
91 | return; |
92 | case Opcode::MulDouble: |
93 | out.print("MulDouble" ); |
94 | return; |
95 | case Opcode::MulFloat: |
96 | out.print("MulFloat" ); |
97 | return; |
98 | case Opcode::DivDouble: |
99 | out.print("DivDouble" ); |
100 | return; |
101 | case Opcode::DivFloat: |
102 | out.print("DivFloat" ); |
103 | return; |
104 | case Opcode::X86ConvertToDoubleWord32: |
105 | out.print("X86ConvertToDoubleWord32" ); |
106 | return; |
107 | case Opcode::X86ConvertToQuadWord64: |
108 | out.print("X86ConvertToQuadWord64" ); |
109 | return; |
110 | case Opcode::X86Div32: |
111 | out.print("X86Div32" ); |
112 | return; |
113 | case Opcode::X86UDiv32: |
114 | out.print("X86UDiv32" ); |
115 | return; |
116 | case Opcode::X86Div64: |
117 | out.print("X86Div64" ); |
118 | return; |
119 | case Opcode::X86UDiv64: |
120 | out.print("X86UDiv64" ); |
121 | return; |
122 | case Opcode::Lea32: |
123 | out.print("Lea32" ); |
124 | return; |
125 | case Opcode::Lea64: |
126 | out.print("Lea64" ); |
127 | return; |
128 | case Opcode::And32: |
129 | out.print("And32" ); |
130 | return; |
131 | case Opcode::And64: |
132 | out.print("And64" ); |
133 | return; |
134 | case Opcode::AndDouble: |
135 | out.print("AndDouble" ); |
136 | return; |
137 | case Opcode::AndFloat: |
138 | out.print("AndFloat" ); |
139 | return; |
140 | case Opcode::OrDouble: |
141 | out.print("OrDouble" ); |
142 | return; |
143 | case Opcode::OrFloat: |
144 | out.print("OrFloat" ); |
145 | return; |
146 | case Opcode::XorDouble: |
147 | out.print("XorDouble" ); |
148 | return; |
149 | case Opcode::XorFloat: |
150 | out.print("XorFloat" ); |
151 | return; |
152 | case Opcode::Lshift32: |
153 | out.print("Lshift32" ); |
154 | return; |
155 | case Opcode::Lshift64: |
156 | out.print("Lshift64" ); |
157 | return; |
158 | case Opcode::Rshift32: |
159 | out.print("Rshift32" ); |
160 | return; |
161 | case Opcode::Rshift64: |
162 | out.print("Rshift64" ); |
163 | return; |
164 | case Opcode::Urshift32: |
165 | out.print("Urshift32" ); |
166 | return; |
167 | case Opcode::Urshift64: |
168 | out.print("Urshift64" ); |
169 | return; |
170 | case Opcode::RotateRight32: |
171 | out.print("RotateRight32" ); |
172 | return; |
173 | case Opcode::RotateRight64: |
174 | out.print("RotateRight64" ); |
175 | return; |
176 | case Opcode::RotateLeft32: |
177 | out.print("RotateLeft32" ); |
178 | return; |
179 | case Opcode::RotateLeft64: |
180 | out.print("RotateLeft64" ); |
181 | return; |
182 | case Opcode::Or32: |
183 | out.print("Or32" ); |
184 | return; |
185 | case Opcode::Or64: |
186 | out.print("Or64" ); |
187 | return; |
188 | case Opcode::Xor32: |
189 | out.print("Xor32" ); |
190 | return; |
191 | case Opcode::Xor64: |
192 | out.print("Xor64" ); |
193 | return; |
194 | case Opcode::Not32: |
195 | out.print("Not32" ); |
196 | return; |
197 | case Opcode::Not64: |
198 | out.print("Not64" ); |
199 | return; |
200 | case Opcode::AbsDouble: |
201 | out.print("AbsDouble" ); |
202 | return; |
203 | case Opcode::AbsFloat: |
204 | out.print("AbsFloat" ); |
205 | return; |
206 | case Opcode::CeilDouble: |
207 | out.print("CeilDouble" ); |
208 | return; |
209 | case Opcode::CeilFloat: |
210 | out.print("CeilFloat" ); |
211 | return; |
212 | case Opcode::FloorDouble: |
213 | out.print("FloorDouble" ); |
214 | return; |
215 | case Opcode::FloorFloat: |
216 | out.print("FloorFloat" ); |
217 | return; |
218 | case Opcode::SqrtDouble: |
219 | out.print("SqrtDouble" ); |
220 | return; |
221 | case Opcode::SqrtFloat: |
222 | out.print("SqrtFloat" ); |
223 | return; |
224 | case Opcode::ConvertInt32ToDouble: |
225 | out.print("ConvertInt32ToDouble" ); |
226 | return; |
227 | case Opcode::ConvertInt64ToDouble: |
228 | out.print("ConvertInt64ToDouble" ); |
229 | return; |
230 | case Opcode::ConvertInt32ToFloat: |
231 | out.print("ConvertInt32ToFloat" ); |
232 | return; |
233 | case Opcode::ConvertInt64ToFloat: |
234 | out.print("ConvertInt64ToFloat" ); |
235 | return; |
236 | case Opcode::CountLeadingZeros32: |
237 | out.print("CountLeadingZeros32" ); |
238 | return; |
239 | case Opcode::CountLeadingZeros64: |
240 | out.print("CountLeadingZeros64" ); |
241 | return; |
242 | case Opcode::ConvertDoubleToFloat: |
243 | out.print("ConvertDoubleToFloat" ); |
244 | return; |
245 | case Opcode::ConvertFloatToDouble: |
246 | out.print("ConvertFloatToDouble" ); |
247 | return; |
248 | case Opcode::Move: |
249 | out.print("Move" ); |
250 | return; |
251 | case Opcode::Swap32: |
252 | out.print("Swap32" ); |
253 | return; |
254 | case Opcode::Swap64: |
255 | out.print("Swap64" ); |
256 | return; |
257 | case Opcode::Move32: |
258 | out.print("Move32" ); |
259 | return; |
260 | case Opcode::StoreZero32: |
261 | out.print("StoreZero32" ); |
262 | return; |
263 | case Opcode::StoreZero64: |
264 | out.print("StoreZero64" ); |
265 | return; |
266 | case Opcode::SignExtend32ToPtr: |
267 | out.print("SignExtend32ToPtr" ); |
268 | return; |
269 | case Opcode::ZeroExtend8To32: |
270 | out.print("ZeroExtend8To32" ); |
271 | return; |
272 | case Opcode::SignExtend8To32: |
273 | out.print("SignExtend8To32" ); |
274 | return; |
275 | case Opcode::ZeroExtend16To32: |
276 | out.print("ZeroExtend16To32" ); |
277 | return; |
278 | case Opcode::SignExtend16To32: |
279 | out.print("SignExtend16To32" ); |
280 | return; |
281 | case Opcode::MoveFloat: |
282 | out.print("MoveFloat" ); |
283 | return; |
284 | case Opcode::MoveDouble: |
285 | out.print("MoveDouble" ); |
286 | return; |
287 | case Opcode::MoveZeroToDouble: |
288 | out.print("MoveZeroToDouble" ); |
289 | return; |
290 | case Opcode::Move64ToDouble: |
291 | out.print("Move64ToDouble" ); |
292 | return; |
293 | case Opcode::Move32ToFloat: |
294 | out.print("Move32ToFloat" ); |
295 | return; |
296 | case Opcode::MoveDoubleTo64: |
297 | out.print("MoveDoubleTo64" ); |
298 | return; |
299 | case Opcode::MoveFloatTo32: |
300 | out.print("MoveFloatTo32" ); |
301 | return; |
302 | case Opcode::Load8: |
303 | out.print("Load8" ); |
304 | return; |
305 | case Opcode::LoadAcq8: |
306 | out.print("LoadAcq8" ); |
307 | return; |
308 | case Opcode::Store8: |
309 | out.print("Store8" ); |
310 | return; |
311 | case Opcode::StoreRel8: |
312 | out.print("StoreRel8" ); |
313 | return; |
314 | case Opcode::Load8SignedExtendTo32: |
315 | out.print("Load8SignedExtendTo32" ); |
316 | return; |
317 | case Opcode::LoadAcq8SignedExtendTo32: |
318 | out.print("LoadAcq8SignedExtendTo32" ); |
319 | return; |
320 | case Opcode::Load16: |
321 | out.print("Load16" ); |
322 | return; |
323 | case Opcode::LoadAcq16: |
324 | out.print("LoadAcq16" ); |
325 | return; |
326 | case Opcode::Load16SignedExtendTo32: |
327 | out.print("Load16SignedExtendTo32" ); |
328 | return; |
329 | case Opcode::LoadAcq16SignedExtendTo32: |
330 | out.print("LoadAcq16SignedExtendTo32" ); |
331 | return; |
332 | case Opcode::Store16: |
333 | out.print("Store16" ); |
334 | return; |
335 | case Opcode::StoreRel16: |
336 | out.print("StoreRel16" ); |
337 | return; |
338 | case Opcode::LoadAcq32: |
339 | out.print("LoadAcq32" ); |
340 | return; |
341 | case Opcode::StoreRel32: |
342 | out.print("StoreRel32" ); |
343 | return; |
344 | case Opcode::LoadAcq64: |
345 | out.print("LoadAcq64" ); |
346 | return; |
347 | case Opcode::StoreRel64: |
348 | out.print("StoreRel64" ); |
349 | return; |
350 | case Opcode::Xchg8: |
351 | out.print("Xchg8" ); |
352 | return; |
353 | case Opcode::Xchg16: |
354 | out.print("Xchg16" ); |
355 | return; |
356 | case Opcode::Xchg32: |
357 | out.print("Xchg32" ); |
358 | return; |
359 | case Opcode::Xchg64: |
360 | out.print("Xchg64" ); |
361 | return; |
362 | case Opcode::AtomicStrongCAS8: |
363 | out.print("AtomicStrongCAS8" ); |
364 | return; |
365 | case Opcode::AtomicStrongCAS16: |
366 | out.print("AtomicStrongCAS16" ); |
367 | return; |
368 | case Opcode::AtomicStrongCAS32: |
369 | out.print("AtomicStrongCAS32" ); |
370 | return; |
371 | case Opcode::AtomicStrongCAS64: |
372 | out.print("AtomicStrongCAS64" ); |
373 | return; |
374 | case Opcode::BranchAtomicStrongCAS8: |
375 | out.print("BranchAtomicStrongCAS8" ); |
376 | return; |
377 | case Opcode::BranchAtomicStrongCAS16: |
378 | out.print("BranchAtomicStrongCAS16" ); |
379 | return; |
380 | case Opcode::BranchAtomicStrongCAS32: |
381 | out.print("BranchAtomicStrongCAS32" ); |
382 | return; |
383 | case Opcode::BranchAtomicStrongCAS64: |
384 | out.print("BranchAtomicStrongCAS64" ); |
385 | return; |
386 | case Opcode::AtomicAdd8: |
387 | out.print("AtomicAdd8" ); |
388 | return; |
389 | case Opcode::AtomicAdd16: |
390 | out.print("AtomicAdd16" ); |
391 | return; |
392 | case Opcode::AtomicAdd32: |
393 | out.print("AtomicAdd32" ); |
394 | return; |
395 | case Opcode::AtomicAdd64: |
396 | out.print("AtomicAdd64" ); |
397 | return; |
398 | case Opcode::AtomicSub8: |
399 | out.print("AtomicSub8" ); |
400 | return; |
401 | case Opcode::AtomicSub16: |
402 | out.print("AtomicSub16" ); |
403 | return; |
404 | case Opcode::AtomicSub32: |
405 | out.print("AtomicSub32" ); |
406 | return; |
407 | case Opcode::AtomicSub64: |
408 | out.print("AtomicSub64" ); |
409 | return; |
410 | case Opcode::AtomicAnd8: |
411 | out.print("AtomicAnd8" ); |
412 | return; |
413 | case Opcode::AtomicAnd16: |
414 | out.print("AtomicAnd16" ); |
415 | return; |
416 | case Opcode::AtomicAnd32: |
417 | out.print("AtomicAnd32" ); |
418 | return; |
419 | case Opcode::AtomicAnd64: |
420 | out.print("AtomicAnd64" ); |
421 | return; |
422 | case Opcode::AtomicOr8: |
423 | out.print("AtomicOr8" ); |
424 | return; |
425 | case Opcode::AtomicOr16: |
426 | out.print("AtomicOr16" ); |
427 | return; |
428 | case Opcode::AtomicOr32: |
429 | out.print("AtomicOr32" ); |
430 | return; |
431 | case Opcode::AtomicOr64: |
432 | out.print("AtomicOr64" ); |
433 | return; |
434 | case Opcode::AtomicXor8: |
435 | out.print("AtomicXor8" ); |
436 | return; |
437 | case Opcode::AtomicXor16: |
438 | out.print("AtomicXor16" ); |
439 | return; |
440 | case Opcode::AtomicXor32: |
441 | out.print("AtomicXor32" ); |
442 | return; |
443 | case Opcode::AtomicXor64: |
444 | out.print("AtomicXor64" ); |
445 | return; |
446 | case Opcode::AtomicNeg8: |
447 | out.print("AtomicNeg8" ); |
448 | return; |
449 | case Opcode::AtomicNeg16: |
450 | out.print("AtomicNeg16" ); |
451 | return; |
452 | case Opcode::AtomicNeg32: |
453 | out.print("AtomicNeg32" ); |
454 | return; |
455 | case Opcode::AtomicNeg64: |
456 | out.print("AtomicNeg64" ); |
457 | return; |
458 | case Opcode::AtomicNot8: |
459 | out.print("AtomicNot8" ); |
460 | return; |
461 | case Opcode::AtomicNot16: |
462 | out.print("AtomicNot16" ); |
463 | return; |
464 | case Opcode::AtomicNot32: |
465 | out.print("AtomicNot32" ); |
466 | return; |
467 | case Opcode::AtomicNot64: |
468 | out.print("AtomicNot64" ); |
469 | return; |
470 | case Opcode::AtomicXchgAdd8: |
471 | out.print("AtomicXchgAdd8" ); |
472 | return; |
473 | case Opcode::AtomicXchgAdd16: |
474 | out.print("AtomicXchgAdd16" ); |
475 | return; |
476 | case Opcode::AtomicXchgAdd32: |
477 | out.print("AtomicXchgAdd32" ); |
478 | return; |
479 | case Opcode::AtomicXchgAdd64: |
480 | out.print("AtomicXchgAdd64" ); |
481 | return; |
482 | case Opcode::AtomicXchg8: |
483 | out.print("AtomicXchg8" ); |
484 | return; |
485 | case Opcode::AtomicXchg16: |
486 | out.print("AtomicXchg16" ); |
487 | return; |
488 | case Opcode::AtomicXchg32: |
489 | out.print("AtomicXchg32" ); |
490 | return; |
491 | case Opcode::AtomicXchg64: |
492 | out.print("AtomicXchg64" ); |
493 | return; |
494 | case Opcode::LoadLink8: |
495 | out.print("LoadLink8" ); |
496 | return; |
497 | case Opcode::LoadLinkAcq8: |
498 | out.print("LoadLinkAcq8" ); |
499 | return; |
500 | case Opcode::StoreCond8: |
501 | out.print("StoreCond8" ); |
502 | return; |
503 | case Opcode::StoreCondRel8: |
504 | out.print("StoreCondRel8" ); |
505 | return; |
506 | case Opcode::LoadLink16: |
507 | out.print("LoadLink16" ); |
508 | return; |
509 | case Opcode::LoadLinkAcq16: |
510 | out.print("LoadLinkAcq16" ); |
511 | return; |
512 | case Opcode::StoreCond16: |
513 | out.print("StoreCond16" ); |
514 | return; |
515 | case Opcode::StoreCondRel16: |
516 | out.print("StoreCondRel16" ); |
517 | return; |
518 | case Opcode::LoadLink32: |
519 | out.print("LoadLink32" ); |
520 | return; |
521 | case Opcode::LoadLinkAcq32: |
522 | out.print("LoadLinkAcq32" ); |
523 | return; |
524 | case Opcode::StoreCond32: |
525 | out.print("StoreCond32" ); |
526 | return; |
527 | case Opcode::StoreCondRel32: |
528 | out.print("StoreCondRel32" ); |
529 | return; |
530 | case Opcode::LoadLink64: |
531 | out.print("LoadLink64" ); |
532 | return; |
533 | case Opcode::LoadLinkAcq64: |
534 | out.print("LoadLinkAcq64" ); |
535 | return; |
536 | case Opcode::StoreCond64: |
537 | out.print("StoreCond64" ); |
538 | return; |
539 | case Opcode::StoreCondRel64: |
540 | out.print("StoreCondRel64" ); |
541 | return; |
542 | case Opcode::Depend32: |
543 | out.print("Depend32" ); |
544 | return; |
545 | case Opcode::Depend64: |
546 | out.print("Depend64" ); |
547 | return; |
548 | case Opcode::Compare32: |
549 | out.print("Compare32" ); |
550 | return; |
551 | case Opcode::Compare64: |
552 | out.print("Compare64" ); |
553 | return; |
554 | case Opcode::Test32: |
555 | out.print("Test32" ); |
556 | return; |
557 | case Opcode::Test64: |
558 | out.print("Test64" ); |
559 | return; |
560 | case Opcode::CompareDouble: |
561 | out.print("CompareDouble" ); |
562 | return; |
563 | case Opcode::CompareFloat: |
564 | out.print("CompareFloat" ); |
565 | return; |
566 | case Opcode::Branch8: |
567 | out.print("Branch8" ); |
568 | return; |
569 | case Opcode::Branch32: |
570 | out.print("Branch32" ); |
571 | return; |
572 | case Opcode::Branch64: |
573 | out.print("Branch64" ); |
574 | return; |
575 | case Opcode::BranchTest8: |
576 | out.print("BranchTest8" ); |
577 | return; |
578 | case Opcode::BranchTest32: |
579 | out.print("BranchTest32" ); |
580 | return; |
581 | case Opcode::BranchTest64: |
582 | out.print("BranchTest64" ); |
583 | return; |
584 | case Opcode::BranchDouble: |
585 | out.print("BranchDouble" ); |
586 | return; |
587 | case Opcode::BranchFloat: |
588 | out.print("BranchFloat" ); |
589 | return; |
590 | case Opcode::BranchAdd32: |
591 | out.print("BranchAdd32" ); |
592 | return; |
593 | case Opcode::BranchAdd64: |
594 | out.print("BranchAdd64" ); |
595 | return; |
596 | case Opcode::BranchMul32: |
597 | out.print("BranchMul32" ); |
598 | return; |
599 | case Opcode::BranchMul64: |
600 | out.print("BranchMul64" ); |
601 | return; |
602 | case Opcode::BranchSub32: |
603 | out.print("BranchSub32" ); |
604 | return; |
605 | case Opcode::BranchSub64: |
606 | out.print("BranchSub64" ); |
607 | return; |
608 | case Opcode::BranchNeg32: |
609 | out.print("BranchNeg32" ); |
610 | return; |
611 | case Opcode::BranchNeg64: |
612 | out.print("BranchNeg64" ); |
613 | return; |
614 | case Opcode::MoveConditionally32: |
615 | out.print("MoveConditionally32" ); |
616 | return; |
617 | case Opcode::MoveConditionally64: |
618 | out.print("MoveConditionally64" ); |
619 | return; |
620 | case Opcode::MoveConditionallyTest32: |
621 | out.print("MoveConditionallyTest32" ); |
622 | return; |
623 | case Opcode::MoveConditionallyTest64: |
624 | out.print("MoveConditionallyTest64" ); |
625 | return; |
626 | case Opcode::MoveConditionallyDouble: |
627 | out.print("MoveConditionallyDouble" ); |
628 | return; |
629 | case Opcode::MoveConditionallyFloat: |
630 | out.print("MoveConditionallyFloat" ); |
631 | return; |
632 | case Opcode::MoveDoubleConditionally32: |
633 | out.print("MoveDoubleConditionally32" ); |
634 | return; |
635 | case Opcode::MoveDoubleConditionally64: |
636 | out.print("MoveDoubleConditionally64" ); |
637 | return; |
638 | case Opcode::MoveDoubleConditionallyTest32: |
639 | out.print("MoveDoubleConditionallyTest32" ); |
640 | return; |
641 | case Opcode::MoveDoubleConditionallyTest64: |
642 | out.print("MoveDoubleConditionallyTest64" ); |
643 | return; |
644 | case Opcode::MoveDoubleConditionallyDouble: |
645 | out.print("MoveDoubleConditionallyDouble" ); |
646 | return; |
647 | case Opcode::MoveDoubleConditionallyFloat: |
648 | out.print("MoveDoubleConditionallyFloat" ); |
649 | return; |
650 | case Opcode::MemoryFence: |
651 | out.print("MemoryFence" ); |
652 | return; |
653 | case Opcode::StoreFence: |
654 | out.print("StoreFence" ); |
655 | return; |
656 | case Opcode::LoadFence: |
657 | out.print("LoadFence" ); |
658 | return; |
659 | case Opcode::Jump: |
660 | out.print("Jump" ); |
661 | return; |
662 | case Opcode::RetVoid: |
663 | out.print("RetVoid" ); |
664 | return; |
665 | case Opcode::Ret32: |
666 | out.print("Ret32" ); |
667 | return; |
668 | case Opcode::Ret64: |
669 | out.print("Ret64" ); |
670 | return; |
671 | case Opcode::RetFloat: |
672 | out.print("RetFloat" ); |
673 | return; |
674 | case Opcode::RetDouble: |
675 | out.print("RetDouble" ); |
676 | return; |
677 | case Opcode::Oops: |
678 | out.print("Oops" ); |
679 | return; |
680 | case Opcode::EntrySwitch: |
681 | out.print("EntrySwitch" ); |
682 | return; |
683 | case Opcode::Shuffle: |
684 | out.print("Shuffle" ); |
685 | return; |
686 | case Opcode::Patch: |
687 | out.print("Patch" ); |
688 | return; |
689 | case Opcode::CCall: |
690 | out.print("CCall" ); |
691 | return; |
692 | case Opcode::ColdCCall: |
693 | out.print("ColdCCall" ); |
694 | return; |
695 | case Opcode::WasmBoundsCheck: |
696 | out.print("WasmBoundsCheck" ); |
697 | return; |
698 | } |
699 | RELEASE_ASSERT_NOT_REACHED(); |
700 | } |
701 | } // namespace WTF |
702 | namespace JSC { namespace B3 { namespace Air { |
703 | const uint8_t g_formTable[4809] = { |
704 | // Nop |
705 | |
706 | // Invalid: Nop with numOperands = 1 |
707 | INVALID_INST_FORM, |
708 | // Invalid: Nop with numOperands = 2 |
709 | INVALID_INST_FORM, INVALID_INST_FORM, |
710 | // Invalid: Nop with numOperands = 3 |
711 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
712 | // Invalid: Nop with numOperands = 4 |
713 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
714 | // Invalid: Nop with numOperands = 5 |
715 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
716 | // Invalid: Nop with numOperands = 6 |
717 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
718 | // Invalid: Add32 with numOperands = 0 |
719 | |
720 | // Invalid: Add32 with numOperands = 1 |
721 | INVALID_INST_FORM, |
722 | // Add32 U:G:32, UZD:G:32 |
723 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
724 | // Add32 U:G:32, U:G:32, ZD:G:32 |
725 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
726 | // Invalid: Add32 with numOperands = 4 |
727 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
728 | // Invalid: Add32 with numOperands = 5 |
729 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
730 | // Invalid: Add32 with numOperands = 6 |
731 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
732 | // Invalid: Add8 with numOperands = 0 |
733 | |
734 | // Invalid: Add8 with numOperands = 1 |
735 | INVALID_INST_FORM, |
736 | // Add8 U:G:8, UD:G:8 |
737 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
738 | // Invalid: Add8 with numOperands = 3 |
739 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
740 | // Invalid: Add8 with numOperands = 4 |
741 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
742 | // Invalid: Add8 with numOperands = 5 |
743 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
744 | // Invalid: Add8 with numOperands = 6 |
745 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
746 | // Invalid: Add16 with numOperands = 0 |
747 | |
748 | // Invalid: Add16 with numOperands = 1 |
749 | INVALID_INST_FORM, |
750 | // Add16 U:G:16, UD:G:16 |
751 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
752 | // Invalid: Add16 with numOperands = 3 |
753 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
754 | // Invalid: Add16 with numOperands = 4 |
755 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
756 | // Invalid: Add16 with numOperands = 5 |
757 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
758 | // Invalid: Add16 with numOperands = 6 |
759 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
760 | // Invalid: Add64 with numOperands = 0 |
761 | |
762 | // Invalid: Add64 with numOperands = 1 |
763 | INVALID_INST_FORM, |
764 | // Add64 U:G:64, UD:G:64 |
765 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
766 | // Add64 U:G:64, U:G:64, D:G:64 |
767 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
768 | // Invalid: Add64 with numOperands = 4 |
769 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
770 | // Invalid: Add64 with numOperands = 5 |
771 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
772 | // Invalid: Add64 with numOperands = 6 |
773 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
774 | // Invalid: AddDouble with numOperands = 0 |
775 | |
776 | // Invalid: AddDouble with numOperands = 1 |
777 | INVALID_INST_FORM, |
778 | // AddDouble U:F:64, UD:F:64 |
779 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
780 | // AddDouble U:F:64, U:F:64, D:F:64 |
781 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
782 | // Invalid: AddDouble with numOperands = 4 |
783 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
784 | // Invalid: AddDouble with numOperands = 5 |
785 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
786 | // Invalid: AddDouble with numOperands = 6 |
787 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
788 | // Invalid: AddFloat with numOperands = 0 |
789 | |
790 | // Invalid: AddFloat with numOperands = 1 |
791 | INVALID_INST_FORM, |
792 | // AddFloat U:F:32, UD:F:32 |
793 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
794 | // AddFloat U:F:32, U:F:32, D:F:32 |
795 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
796 | // Invalid: AddFloat with numOperands = 4 |
797 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
798 | // Invalid: AddFloat with numOperands = 5 |
799 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
800 | // Invalid: AddFloat with numOperands = 6 |
801 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
802 | // Invalid: Sub32 with numOperands = 0 |
803 | |
804 | // Invalid: Sub32 with numOperands = 1 |
805 | INVALID_INST_FORM, |
806 | // Sub32 U:G:32, UZD:G:32 |
807 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
808 | // Sub32 U:G:32, U:G:32, D:G:32 |
809 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, GP, Width32), |
810 | // Invalid: Sub32 with numOperands = 4 |
811 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
812 | // Invalid: Sub32 with numOperands = 5 |
813 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
814 | // Invalid: Sub32 with numOperands = 6 |
815 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
816 | // Invalid: Sub64 with numOperands = 0 |
817 | |
818 | // Invalid: Sub64 with numOperands = 1 |
819 | INVALID_INST_FORM, |
820 | // Sub64 U:G:64, UD:G:64 |
821 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
822 | // Sub64 U:G:64, U:G:64, D:G:64 |
823 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
824 | // Invalid: Sub64 with numOperands = 4 |
825 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
826 | // Invalid: Sub64 with numOperands = 5 |
827 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
828 | // Invalid: Sub64 with numOperands = 6 |
829 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
830 | // Invalid: SubDouble with numOperands = 0 |
831 | |
832 | // Invalid: SubDouble with numOperands = 1 |
833 | INVALID_INST_FORM, |
834 | // SubDouble U:F:64, UD:F:64 |
835 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
836 | // SubDouble U:F:64, U:F:64, D:F:64 |
837 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
838 | // Invalid: SubDouble with numOperands = 4 |
839 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
840 | // Invalid: SubDouble with numOperands = 5 |
841 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
842 | // Invalid: SubDouble with numOperands = 6 |
843 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
844 | // Invalid: SubFloat with numOperands = 0 |
845 | |
846 | // Invalid: SubFloat with numOperands = 1 |
847 | INVALID_INST_FORM, |
848 | // SubFloat U:F:32, UD:F:32 |
849 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
850 | // SubFloat U:F:32, U:F:32, D:F:32 |
851 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
852 | // Invalid: SubFloat with numOperands = 4 |
853 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
854 | // Invalid: SubFloat with numOperands = 5 |
855 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
856 | // Invalid: SubFloat with numOperands = 6 |
857 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
858 | // Invalid: Neg32 with numOperands = 0 |
859 | |
860 | // Neg32 UZD:G:32 |
861 | ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
862 | // Invalid: Neg32 with numOperands = 2 |
863 | INVALID_INST_FORM, INVALID_INST_FORM, |
864 | // Invalid: Neg32 with numOperands = 3 |
865 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
866 | // Invalid: Neg32 with numOperands = 4 |
867 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
868 | // Invalid: Neg32 with numOperands = 5 |
869 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
870 | // Invalid: Neg32 with numOperands = 6 |
871 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
872 | // Invalid: Neg64 with numOperands = 0 |
873 | |
874 | // Neg64 UD:G:64 |
875 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
876 | // Invalid: Neg64 with numOperands = 2 |
877 | INVALID_INST_FORM, INVALID_INST_FORM, |
878 | // Invalid: Neg64 with numOperands = 3 |
879 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
880 | // Invalid: Neg64 with numOperands = 4 |
881 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
882 | // Invalid: Neg64 with numOperands = 5 |
883 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
884 | // Invalid: Neg64 with numOperands = 6 |
885 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
886 | // Invalid: NegateDouble with numOperands = 0 |
887 | |
888 | // Invalid: NegateDouble with numOperands = 1 |
889 | INVALID_INST_FORM, |
890 | // NegateDouble U:F:64, D:F:64 |
891 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
892 | // Invalid: NegateDouble with numOperands = 3 |
893 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
894 | // Invalid: NegateDouble with numOperands = 4 |
895 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
896 | // Invalid: NegateDouble with numOperands = 5 |
897 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
898 | // Invalid: NegateDouble with numOperands = 6 |
899 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
900 | // Invalid: NegateFloat with numOperands = 0 |
901 | |
902 | // Invalid: NegateFloat with numOperands = 1 |
903 | INVALID_INST_FORM, |
904 | // NegateFloat U:F:32, D:F:32 |
905 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
906 | // Invalid: NegateFloat with numOperands = 3 |
907 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
908 | // Invalid: NegateFloat with numOperands = 4 |
909 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
910 | // Invalid: NegateFloat with numOperands = 5 |
911 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
912 | // Invalid: NegateFloat with numOperands = 6 |
913 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
914 | // Invalid: Mul32 with numOperands = 0 |
915 | |
916 | // Invalid: Mul32 with numOperands = 1 |
917 | INVALID_INST_FORM, |
918 | // Mul32 U:G:32, UZD:G:32 |
919 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
920 | // Mul32 U:G:32, U:G:32, ZD:G:32 |
921 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
922 | // Invalid: Mul32 with numOperands = 4 |
923 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
924 | // Invalid: Mul32 with numOperands = 5 |
925 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
926 | // Invalid: Mul32 with numOperands = 6 |
927 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
928 | // Invalid: Mul64 with numOperands = 0 |
929 | |
930 | // Invalid: Mul64 with numOperands = 1 |
931 | INVALID_INST_FORM, |
932 | // Mul64 U:G:64, UD:G:64 |
933 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
934 | // Mul64 U:G:64, U:G:64, D:G:64 |
935 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
936 | // Invalid: Mul64 with numOperands = 4 |
937 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
938 | // Invalid: Mul64 with numOperands = 5 |
939 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
940 | // Invalid: Mul64 with numOperands = 6 |
941 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
942 | // Invalid: MultiplyAdd32 with numOperands = 0 |
943 | |
944 | // Invalid: MultiplyAdd32 with numOperands = 1 |
945 | INVALID_INST_FORM, |
946 | // Invalid: MultiplyAdd32 with numOperands = 2 |
947 | INVALID_INST_FORM, INVALID_INST_FORM, |
948 | // Invalid: MultiplyAdd32 with numOperands = 3 |
949 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
950 | // MultiplyAdd32 U:G:32, U:G:32, U:G:32, ZD:G:32 |
951 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
952 | // Invalid: MultiplyAdd32 with numOperands = 5 |
953 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
954 | // Invalid: MultiplyAdd32 with numOperands = 6 |
955 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
956 | // Invalid: MultiplyAdd64 with numOperands = 0 |
957 | |
958 | // Invalid: MultiplyAdd64 with numOperands = 1 |
959 | INVALID_INST_FORM, |
960 | // Invalid: MultiplyAdd64 with numOperands = 2 |
961 | INVALID_INST_FORM, INVALID_INST_FORM, |
962 | // Invalid: MultiplyAdd64 with numOperands = 3 |
963 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
964 | // MultiplyAdd64 U:G:64, U:G:64, U:G:64, D:G:64 |
965 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
966 | // Invalid: MultiplyAdd64 with numOperands = 5 |
967 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
968 | // Invalid: MultiplyAdd64 with numOperands = 6 |
969 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
970 | // Invalid: MultiplySub32 with numOperands = 0 |
971 | |
972 | // Invalid: MultiplySub32 with numOperands = 1 |
973 | INVALID_INST_FORM, |
974 | // Invalid: MultiplySub32 with numOperands = 2 |
975 | INVALID_INST_FORM, INVALID_INST_FORM, |
976 | // Invalid: MultiplySub32 with numOperands = 3 |
977 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
978 | // MultiplySub32 U:G:32, U:G:32, U:G:32, ZD:G:32 |
979 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
980 | // Invalid: MultiplySub32 with numOperands = 5 |
981 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
982 | // Invalid: MultiplySub32 with numOperands = 6 |
983 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
984 | // Invalid: MultiplySub64 with numOperands = 0 |
985 | |
986 | // Invalid: MultiplySub64 with numOperands = 1 |
987 | INVALID_INST_FORM, |
988 | // Invalid: MultiplySub64 with numOperands = 2 |
989 | INVALID_INST_FORM, INVALID_INST_FORM, |
990 | // Invalid: MultiplySub64 with numOperands = 3 |
991 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
992 | // MultiplySub64 U:G:64, U:G:64, U:G:64, D:G:64 |
993 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
994 | // Invalid: MultiplySub64 with numOperands = 5 |
995 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
996 | // Invalid: MultiplySub64 with numOperands = 6 |
997 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
998 | // Invalid: MultiplyNeg32 with numOperands = 0 |
999 | |
1000 | // Invalid: MultiplyNeg32 with numOperands = 1 |
1001 | INVALID_INST_FORM, |
1002 | // Invalid: MultiplyNeg32 with numOperands = 2 |
1003 | INVALID_INST_FORM, INVALID_INST_FORM, |
1004 | // MultiplyNeg32 U:G:32, U:G:32, ZD:G:32 |
1005 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1006 | // Invalid: MultiplyNeg32 with numOperands = 4 |
1007 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1008 | // Invalid: MultiplyNeg32 with numOperands = 5 |
1009 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1010 | // Invalid: MultiplyNeg32 with numOperands = 6 |
1011 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1012 | // Invalid: MultiplyNeg64 with numOperands = 0 |
1013 | |
1014 | // Invalid: MultiplyNeg64 with numOperands = 1 |
1015 | INVALID_INST_FORM, |
1016 | // Invalid: MultiplyNeg64 with numOperands = 2 |
1017 | INVALID_INST_FORM, INVALID_INST_FORM, |
1018 | // MultiplyNeg64 U:G:64, U:G:64, ZD:G:64 |
1019 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
1020 | // Invalid: MultiplyNeg64 with numOperands = 4 |
1021 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1022 | // Invalid: MultiplyNeg64 with numOperands = 5 |
1023 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1024 | // Invalid: MultiplyNeg64 with numOperands = 6 |
1025 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1026 | // Invalid: Div32 with numOperands = 0 |
1027 | |
1028 | // Invalid: Div32 with numOperands = 1 |
1029 | INVALID_INST_FORM, |
1030 | // Invalid: Div32 with numOperands = 2 |
1031 | INVALID_INST_FORM, INVALID_INST_FORM, |
1032 | // Div32 U:G:32, U:G:32, ZD:G:32 |
1033 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1034 | // Invalid: Div32 with numOperands = 4 |
1035 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1036 | // Invalid: Div32 with numOperands = 5 |
1037 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1038 | // Invalid: Div32 with numOperands = 6 |
1039 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1040 | // Invalid: UDiv32 with numOperands = 0 |
1041 | |
1042 | // Invalid: UDiv32 with numOperands = 1 |
1043 | INVALID_INST_FORM, |
1044 | // Invalid: UDiv32 with numOperands = 2 |
1045 | INVALID_INST_FORM, INVALID_INST_FORM, |
1046 | // UDiv32 U:G:32, U:G:32, ZD:G:32 |
1047 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1048 | // Invalid: UDiv32 with numOperands = 4 |
1049 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1050 | // Invalid: UDiv32 with numOperands = 5 |
1051 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1052 | // Invalid: UDiv32 with numOperands = 6 |
1053 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1054 | // Invalid: Div64 with numOperands = 0 |
1055 | |
1056 | // Invalid: Div64 with numOperands = 1 |
1057 | INVALID_INST_FORM, |
1058 | // Invalid: Div64 with numOperands = 2 |
1059 | INVALID_INST_FORM, INVALID_INST_FORM, |
1060 | // Div64 U:G:64, U:G:64, D:G:64 |
1061 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1062 | // Invalid: Div64 with numOperands = 4 |
1063 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1064 | // Invalid: Div64 with numOperands = 5 |
1065 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1066 | // Invalid: Div64 with numOperands = 6 |
1067 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1068 | // Invalid: UDiv64 with numOperands = 0 |
1069 | |
1070 | // Invalid: UDiv64 with numOperands = 1 |
1071 | INVALID_INST_FORM, |
1072 | // Invalid: UDiv64 with numOperands = 2 |
1073 | INVALID_INST_FORM, INVALID_INST_FORM, |
1074 | // UDiv64 U:G:64, U:G:64, D:G:64 |
1075 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1076 | // Invalid: UDiv64 with numOperands = 4 |
1077 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1078 | // Invalid: UDiv64 with numOperands = 5 |
1079 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1080 | // Invalid: UDiv64 with numOperands = 6 |
1081 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1082 | // Invalid: MulDouble with numOperands = 0 |
1083 | |
1084 | // Invalid: MulDouble with numOperands = 1 |
1085 | INVALID_INST_FORM, |
1086 | // MulDouble U:F:64, UD:F:64 |
1087 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
1088 | // MulDouble U:F:64, U:F:64, D:F:64 |
1089 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1090 | // Invalid: MulDouble with numOperands = 4 |
1091 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1092 | // Invalid: MulDouble with numOperands = 5 |
1093 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1094 | // Invalid: MulDouble with numOperands = 6 |
1095 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1096 | // Invalid: MulFloat with numOperands = 0 |
1097 | |
1098 | // Invalid: MulFloat with numOperands = 1 |
1099 | INVALID_INST_FORM, |
1100 | // MulFloat U:F:32, UD:F:32 |
1101 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
1102 | // MulFloat U:F:32, U:F:32, D:F:32 |
1103 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1104 | // Invalid: MulFloat with numOperands = 4 |
1105 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1106 | // Invalid: MulFloat with numOperands = 5 |
1107 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1108 | // Invalid: MulFloat with numOperands = 6 |
1109 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1110 | // Invalid: DivDouble with numOperands = 0 |
1111 | |
1112 | // Invalid: DivDouble with numOperands = 1 |
1113 | INVALID_INST_FORM, |
1114 | // DivDouble U:F:64, UD:F:64 |
1115 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
1116 | // DivDouble U:F:64, U:F:32, D:F:64 |
1117 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1118 | // Invalid: DivDouble with numOperands = 4 |
1119 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1120 | // Invalid: DivDouble with numOperands = 5 |
1121 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1122 | // Invalid: DivDouble with numOperands = 6 |
1123 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1124 | // Invalid: DivFloat with numOperands = 0 |
1125 | |
1126 | // Invalid: DivFloat with numOperands = 1 |
1127 | INVALID_INST_FORM, |
1128 | // DivFloat U:F:32, UD:F:32 |
1129 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
1130 | // DivFloat U:F:32, U:F:32, D:F:32 |
1131 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1132 | // Invalid: DivFloat with numOperands = 4 |
1133 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1134 | // Invalid: DivFloat with numOperands = 5 |
1135 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1136 | // Invalid: DivFloat with numOperands = 6 |
1137 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1138 | // Invalid: X86ConvertToDoubleWord32 with numOperands = 0 |
1139 | |
1140 | // Invalid: X86ConvertToDoubleWord32 with numOperands = 1 |
1141 | INVALID_INST_FORM, |
1142 | // X86ConvertToDoubleWord32 U:G:32, ZD:G:32 |
1143 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1144 | // Invalid: X86ConvertToDoubleWord32 with numOperands = 3 |
1145 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1146 | // Invalid: X86ConvertToDoubleWord32 with numOperands = 4 |
1147 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1148 | // Invalid: X86ConvertToDoubleWord32 with numOperands = 5 |
1149 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1150 | // Invalid: X86ConvertToDoubleWord32 with numOperands = 6 |
1151 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1152 | // Invalid: X86ConvertToQuadWord64 with numOperands = 0 |
1153 | |
1154 | // Invalid: X86ConvertToQuadWord64 with numOperands = 1 |
1155 | INVALID_INST_FORM, |
1156 | // X86ConvertToQuadWord64 U:G:64, D:G:64 |
1157 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1158 | // Invalid: X86ConvertToQuadWord64 with numOperands = 3 |
1159 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1160 | // Invalid: X86ConvertToQuadWord64 with numOperands = 4 |
1161 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1162 | // Invalid: X86ConvertToQuadWord64 with numOperands = 5 |
1163 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1164 | // Invalid: X86ConvertToQuadWord64 with numOperands = 6 |
1165 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1166 | // Invalid: X86Div32 with numOperands = 0 |
1167 | |
1168 | // Invalid: X86Div32 with numOperands = 1 |
1169 | INVALID_INST_FORM, |
1170 | // Invalid: X86Div32 with numOperands = 2 |
1171 | INVALID_INST_FORM, INVALID_INST_FORM, |
1172 | // X86Div32 UZD:G:32, UZD:G:32, U:G:32 |
1173 | ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), |
1174 | // Invalid: X86Div32 with numOperands = 4 |
1175 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1176 | // Invalid: X86Div32 with numOperands = 5 |
1177 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1178 | // Invalid: X86Div32 with numOperands = 6 |
1179 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1180 | // Invalid: X86UDiv32 with numOperands = 0 |
1181 | |
1182 | // Invalid: X86UDiv32 with numOperands = 1 |
1183 | INVALID_INST_FORM, |
1184 | // Invalid: X86UDiv32 with numOperands = 2 |
1185 | INVALID_INST_FORM, INVALID_INST_FORM, |
1186 | // X86UDiv32 UZD:G:32, UZD:G:32, U:G:32 |
1187 | ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), |
1188 | // Invalid: X86UDiv32 with numOperands = 4 |
1189 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1190 | // Invalid: X86UDiv32 with numOperands = 5 |
1191 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1192 | // Invalid: X86UDiv32 with numOperands = 6 |
1193 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1194 | // Invalid: X86Div64 with numOperands = 0 |
1195 | |
1196 | // Invalid: X86Div64 with numOperands = 1 |
1197 | INVALID_INST_FORM, |
1198 | // Invalid: X86Div64 with numOperands = 2 |
1199 | INVALID_INST_FORM, INVALID_INST_FORM, |
1200 | // X86Div64 UZD:G:64, UZD:G:64, U:G:64 |
1201 | ENCODE_INST_FORM(Arg::UseZDef, GP, Width64), ENCODE_INST_FORM(Arg::UseZDef, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), |
1202 | // Invalid: X86Div64 with numOperands = 4 |
1203 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1204 | // Invalid: X86Div64 with numOperands = 5 |
1205 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1206 | // Invalid: X86Div64 with numOperands = 6 |
1207 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1208 | // Invalid: X86UDiv64 with numOperands = 0 |
1209 | |
1210 | // Invalid: X86UDiv64 with numOperands = 1 |
1211 | INVALID_INST_FORM, |
1212 | // Invalid: X86UDiv64 with numOperands = 2 |
1213 | INVALID_INST_FORM, INVALID_INST_FORM, |
1214 | // X86UDiv64 UZD:G:64, UZD:G:64, U:G:64 |
1215 | ENCODE_INST_FORM(Arg::UseZDef, GP, Width64), ENCODE_INST_FORM(Arg::UseZDef, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), |
1216 | // Invalid: X86UDiv64 with numOperands = 4 |
1217 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1218 | // Invalid: X86UDiv64 with numOperands = 5 |
1219 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1220 | // Invalid: X86UDiv64 with numOperands = 6 |
1221 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1222 | // Invalid: Lea32 with numOperands = 0 |
1223 | |
1224 | // Invalid: Lea32 with numOperands = 1 |
1225 | INVALID_INST_FORM, |
1226 | // Lea32 UA:G:32, D:G:32 |
1227 | ENCODE_INST_FORM(Arg::UseAddr, GP, Width32), ENCODE_INST_FORM(Arg::Def, GP, Width32), |
1228 | // Invalid: Lea32 with numOperands = 3 |
1229 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1230 | // Invalid: Lea32 with numOperands = 4 |
1231 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1232 | // Invalid: Lea32 with numOperands = 5 |
1233 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1234 | // Invalid: Lea32 with numOperands = 6 |
1235 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1236 | // Invalid: Lea64 with numOperands = 0 |
1237 | |
1238 | // Invalid: Lea64 with numOperands = 1 |
1239 | INVALID_INST_FORM, |
1240 | // Lea64 UA:G:64, D:G:64 |
1241 | ENCODE_INST_FORM(Arg::UseAddr, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1242 | // Invalid: Lea64 with numOperands = 3 |
1243 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1244 | // Invalid: Lea64 with numOperands = 4 |
1245 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1246 | // Invalid: Lea64 with numOperands = 5 |
1247 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1248 | // Invalid: Lea64 with numOperands = 6 |
1249 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1250 | // Invalid: And32 with numOperands = 0 |
1251 | |
1252 | // Invalid: And32 with numOperands = 1 |
1253 | INVALID_INST_FORM, |
1254 | // And32 U:G:32, UZD:G:32 |
1255 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1256 | // And32 U:G:32, U:G:32, ZD:G:32 |
1257 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1258 | // Invalid: And32 with numOperands = 4 |
1259 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1260 | // Invalid: And32 with numOperands = 5 |
1261 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1262 | // Invalid: And32 with numOperands = 6 |
1263 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1264 | // Invalid: And64 with numOperands = 0 |
1265 | |
1266 | // Invalid: And64 with numOperands = 1 |
1267 | INVALID_INST_FORM, |
1268 | // And64 U:G:64, UD:G:64 |
1269 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1270 | // And64 U:G:64, U:G:64, D:G:64 |
1271 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1272 | // Invalid: And64 with numOperands = 4 |
1273 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1274 | // Invalid: And64 with numOperands = 5 |
1275 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1276 | // Invalid: And64 with numOperands = 6 |
1277 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1278 | // Invalid: AndDouble with numOperands = 0 |
1279 | |
1280 | // Invalid: AndDouble with numOperands = 1 |
1281 | INVALID_INST_FORM, |
1282 | // AndDouble U:F:64, UD:F:64 |
1283 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
1284 | // AndDouble U:F:64, U:F:64, D:F:64 |
1285 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1286 | // Invalid: AndDouble with numOperands = 4 |
1287 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1288 | // Invalid: AndDouble with numOperands = 5 |
1289 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1290 | // Invalid: AndDouble with numOperands = 6 |
1291 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1292 | // Invalid: AndFloat with numOperands = 0 |
1293 | |
1294 | // Invalid: AndFloat with numOperands = 1 |
1295 | INVALID_INST_FORM, |
1296 | // AndFloat U:F:32, UD:F:32 |
1297 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
1298 | // AndFloat U:F:32, U:F:32, D:F:32 |
1299 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1300 | // Invalid: AndFloat with numOperands = 4 |
1301 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1302 | // Invalid: AndFloat with numOperands = 5 |
1303 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1304 | // Invalid: AndFloat with numOperands = 6 |
1305 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1306 | // Invalid: OrDouble with numOperands = 0 |
1307 | |
1308 | // Invalid: OrDouble with numOperands = 1 |
1309 | INVALID_INST_FORM, |
1310 | // OrDouble U:F:64, UD:F:64 |
1311 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
1312 | // OrDouble U:F:64, U:F:64, D:F:64 |
1313 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1314 | // Invalid: OrDouble with numOperands = 4 |
1315 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1316 | // Invalid: OrDouble with numOperands = 5 |
1317 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1318 | // Invalid: OrDouble with numOperands = 6 |
1319 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1320 | // Invalid: OrFloat with numOperands = 0 |
1321 | |
1322 | // Invalid: OrFloat with numOperands = 1 |
1323 | INVALID_INST_FORM, |
1324 | // OrFloat U:F:32, UD:F:32 |
1325 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
1326 | // OrFloat U:F:32, U:F:32, D:F:32 |
1327 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1328 | // Invalid: OrFloat with numOperands = 4 |
1329 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1330 | // Invalid: OrFloat with numOperands = 5 |
1331 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1332 | // Invalid: OrFloat with numOperands = 6 |
1333 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1334 | // Invalid: XorDouble with numOperands = 0 |
1335 | |
1336 | // Invalid: XorDouble with numOperands = 1 |
1337 | INVALID_INST_FORM, |
1338 | // XorDouble U:F:64, UD:F:64 |
1339 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::UseDef, FP, Width64), |
1340 | // XorDouble U:F:64, U:F:64, D:F:64 |
1341 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1342 | // Invalid: XorDouble with numOperands = 4 |
1343 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1344 | // Invalid: XorDouble with numOperands = 5 |
1345 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1346 | // Invalid: XorDouble with numOperands = 6 |
1347 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1348 | // Invalid: XorFloat with numOperands = 0 |
1349 | |
1350 | // Invalid: XorFloat with numOperands = 1 |
1351 | INVALID_INST_FORM, |
1352 | // XorFloat U:F:32, UD:F:32 |
1353 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::UseDef, FP, Width32), |
1354 | // XorFloat U:F:32, U:F:32, D:F:32 |
1355 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1356 | // Invalid: XorFloat with numOperands = 4 |
1357 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1358 | // Invalid: XorFloat with numOperands = 5 |
1359 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1360 | // Invalid: XorFloat with numOperands = 6 |
1361 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1362 | // Invalid: Lshift32 with numOperands = 0 |
1363 | |
1364 | // Invalid: Lshift32 with numOperands = 1 |
1365 | INVALID_INST_FORM, |
1366 | // Lshift32 U:G:32, UZD:G:32 |
1367 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1368 | // Lshift32 U:G:32, U:G:32, ZD:G:32 |
1369 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1370 | // Invalid: Lshift32 with numOperands = 4 |
1371 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1372 | // Invalid: Lshift32 with numOperands = 5 |
1373 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1374 | // Invalid: Lshift32 with numOperands = 6 |
1375 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1376 | // Invalid: Lshift64 with numOperands = 0 |
1377 | |
1378 | // Invalid: Lshift64 with numOperands = 1 |
1379 | INVALID_INST_FORM, |
1380 | // Lshift64 U:G:64, UD:G:64 |
1381 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1382 | // Lshift64 U:G:64, U:G:64, D:G:64 |
1383 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1384 | // Invalid: Lshift64 with numOperands = 4 |
1385 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1386 | // Invalid: Lshift64 with numOperands = 5 |
1387 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1388 | // Invalid: Lshift64 with numOperands = 6 |
1389 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1390 | // Invalid: Rshift32 with numOperands = 0 |
1391 | |
1392 | // Invalid: Rshift32 with numOperands = 1 |
1393 | INVALID_INST_FORM, |
1394 | // Rshift32 U:G:32, UZD:G:32 |
1395 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1396 | // Rshift32 U:G:32, U:G:32, ZD:G:32 |
1397 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1398 | // Invalid: Rshift32 with numOperands = 4 |
1399 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1400 | // Invalid: Rshift32 with numOperands = 5 |
1401 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1402 | // Invalid: Rshift32 with numOperands = 6 |
1403 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1404 | // Invalid: Rshift64 with numOperands = 0 |
1405 | |
1406 | // Invalid: Rshift64 with numOperands = 1 |
1407 | INVALID_INST_FORM, |
1408 | // Rshift64 U:G:64, UD:G:64 |
1409 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1410 | // Rshift64 U:G:64, U:G:64, D:G:64 |
1411 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1412 | // Invalid: Rshift64 with numOperands = 4 |
1413 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1414 | // Invalid: Rshift64 with numOperands = 5 |
1415 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1416 | // Invalid: Rshift64 with numOperands = 6 |
1417 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1418 | // Invalid: Urshift32 with numOperands = 0 |
1419 | |
1420 | // Invalid: Urshift32 with numOperands = 1 |
1421 | INVALID_INST_FORM, |
1422 | // Urshift32 U:G:32, UZD:G:32 |
1423 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1424 | // Urshift32 U:G:32, U:G:32, ZD:G:32 |
1425 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1426 | // Invalid: Urshift32 with numOperands = 4 |
1427 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1428 | // Invalid: Urshift32 with numOperands = 5 |
1429 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1430 | // Invalid: Urshift32 with numOperands = 6 |
1431 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1432 | // Invalid: Urshift64 with numOperands = 0 |
1433 | |
1434 | // Invalid: Urshift64 with numOperands = 1 |
1435 | INVALID_INST_FORM, |
1436 | // Urshift64 U:G:64, UD:G:64 |
1437 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1438 | // Urshift64 U:G:64, U:G:64, D:G:64 |
1439 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1440 | // Invalid: Urshift64 with numOperands = 4 |
1441 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1442 | // Invalid: Urshift64 with numOperands = 5 |
1443 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1444 | // Invalid: Urshift64 with numOperands = 6 |
1445 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1446 | // Invalid: RotateRight32 with numOperands = 0 |
1447 | |
1448 | // Invalid: RotateRight32 with numOperands = 1 |
1449 | INVALID_INST_FORM, |
1450 | // RotateRight32 U:G:32, UZD:G:32 |
1451 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1452 | // RotateRight32 U:G:32, U:G:32, ZD:G:32 |
1453 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1454 | // Invalid: RotateRight32 with numOperands = 4 |
1455 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1456 | // Invalid: RotateRight32 with numOperands = 5 |
1457 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1458 | // Invalid: RotateRight32 with numOperands = 6 |
1459 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1460 | // Invalid: RotateRight64 with numOperands = 0 |
1461 | |
1462 | // Invalid: RotateRight64 with numOperands = 1 |
1463 | INVALID_INST_FORM, |
1464 | // RotateRight64 U:G:64, UD:G:64 |
1465 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1466 | // RotateRight64 U:G:64, U:G:64, D:G:64 |
1467 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1468 | // Invalid: RotateRight64 with numOperands = 4 |
1469 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1470 | // Invalid: RotateRight64 with numOperands = 5 |
1471 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1472 | // Invalid: RotateRight64 with numOperands = 6 |
1473 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1474 | // Invalid: RotateLeft32 with numOperands = 0 |
1475 | |
1476 | // Invalid: RotateLeft32 with numOperands = 1 |
1477 | INVALID_INST_FORM, |
1478 | // RotateLeft32 U:G:32, UZD:G:32 |
1479 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1480 | // Invalid: RotateLeft32 with numOperands = 3 |
1481 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1482 | // Invalid: RotateLeft32 with numOperands = 4 |
1483 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1484 | // Invalid: RotateLeft32 with numOperands = 5 |
1485 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1486 | // Invalid: RotateLeft32 with numOperands = 6 |
1487 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1488 | // Invalid: RotateLeft64 with numOperands = 0 |
1489 | |
1490 | // Invalid: RotateLeft64 with numOperands = 1 |
1491 | INVALID_INST_FORM, |
1492 | // RotateLeft64 U:G:64, UD:G:64 |
1493 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1494 | // Invalid: RotateLeft64 with numOperands = 3 |
1495 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1496 | // Invalid: RotateLeft64 with numOperands = 4 |
1497 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1498 | // Invalid: RotateLeft64 with numOperands = 5 |
1499 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1500 | // Invalid: RotateLeft64 with numOperands = 6 |
1501 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1502 | // Invalid: Or32 with numOperands = 0 |
1503 | |
1504 | // Invalid: Or32 with numOperands = 1 |
1505 | INVALID_INST_FORM, |
1506 | // Or32 U:G:32, UZD:G:32 |
1507 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1508 | // Or32 U:G:32, U:G:32, ZD:G:32 |
1509 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1510 | // Invalid: Or32 with numOperands = 4 |
1511 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1512 | // Invalid: Or32 with numOperands = 5 |
1513 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1514 | // Invalid: Or32 with numOperands = 6 |
1515 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1516 | // Invalid: Or64 with numOperands = 0 |
1517 | |
1518 | // Invalid: Or64 with numOperands = 1 |
1519 | INVALID_INST_FORM, |
1520 | // Or64 U:G:64, UD:G:64 |
1521 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1522 | // Or64 U:G:64, U:G:64, D:G:64 |
1523 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1524 | // Invalid: Or64 with numOperands = 4 |
1525 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1526 | // Invalid: Or64 with numOperands = 5 |
1527 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1528 | // Invalid: Or64 with numOperands = 6 |
1529 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1530 | // Invalid: Xor32 with numOperands = 0 |
1531 | |
1532 | // Invalid: Xor32 with numOperands = 1 |
1533 | INVALID_INST_FORM, |
1534 | // Xor32 U:G:32, UZD:G:32 |
1535 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1536 | // Xor32 U:G:32, U:G:32, ZD:G:32 |
1537 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1538 | // Invalid: Xor32 with numOperands = 4 |
1539 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1540 | // Invalid: Xor32 with numOperands = 5 |
1541 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1542 | // Invalid: Xor32 with numOperands = 6 |
1543 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1544 | // Invalid: Xor64 with numOperands = 0 |
1545 | |
1546 | // Invalid: Xor64 with numOperands = 1 |
1547 | INVALID_INST_FORM, |
1548 | // Xor64 U:G:64, UD:G:64 |
1549 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1550 | // Xor64 U:G:64, U:G:64, D:G:64 |
1551 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1552 | // Invalid: Xor64 with numOperands = 4 |
1553 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1554 | // Invalid: Xor64 with numOperands = 5 |
1555 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1556 | // Invalid: Xor64 with numOperands = 6 |
1557 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1558 | // Invalid: Not32 with numOperands = 0 |
1559 | |
1560 | // Not32 UZD:G:32 |
1561 | ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
1562 | // Not32 U:G:32, ZD:G:32 |
1563 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1564 | // Invalid: Not32 with numOperands = 3 |
1565 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1566 | // Invalid: Not32 with numOperands = 4 |
1567 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1568 | // Invalid: Not32 with numOperands = 5 |
1569 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1570 | // Invalid: Not32 with numOperands = 6 |
1571 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1572 | // Invalid: Not64 with numOperands = 0 |
1573 | |
1574 | // Not64 UD:G:64 |
1575 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1576 | // Not64 U:G:64, D:G:64 |
1577 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1578 | // Invalid: Not64 with numOperands = 3 |
1579 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1580 | // Invalid: Not64 with numOperands = 4 |
1581 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1582 | // Invalid: Not64 with numOperands = 5 |
1583 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1584 | // Invalid: Not64 with numOperands = 6 |
1585 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1586 | // Invalid: AbsDouble with numOperands = 0 |
1587 | |
1588 | // Invalid: AbsDouble with numOperands = 1 |
1589 | INVALID_INST_FORM, |
1590 | // AbsDouble U:F:64, D:F:64 |
1591 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1592 | // Invalid: AbsDouble with numOperands = 3 |
1593 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1594 | // Invalid: AbsDouble with numOperands = 4 |
1595 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1596 | // Invalid: AbsDouble with numOperands = 5 |
1597 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1598 | // Invalid: AbsDouble with numOperands = 6 |
1599 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1600 | // Invalid: AbsFloat with numOperands = 0 |
1601 | |
1602 | // Invalid: AbsFloat with numOperands = 1 |
1603 | INVALID_INST_FORM, |
1604 | // AbsFloat U:F:32, D:F:32 |
1605 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1606 | // Invalid: AbsFloat with numOperands = 3 |
1607 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1608 | // Invalid: AbsFloat with numOperands = 4 |
1609 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1610 | // Invalid: AbsFloat with numOperands = 5 |
1611 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1612 | // Invalid: AbsFloat with numOperands = 6 |
1613 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1614 | // Invalid: CeilDouble with numOperands = 0 |
1615 | |
1616 | // Invalid: CeilDouble with numOperands = 1 |
1617 | INVALID_INST_FORM, |
1618 | // CeilDouble U:F:64, D:F:64 |
1619 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1620 | // Invalid: CeilDouble with numOperands = 3 |
1621 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1622 | // Invalid: CeilDouble with numOperands = 4 |
1623 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1624 | // Invalid: CeilDouble with numOperands = 5 |
1625 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1626 | // Invalid: CeilDouble with numOperands = 6 |
1627 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1628 | // Invalid: CeilFloat with numOperands = 0 |
1629 | |
1630 | // Invalid: CeilFloat with numOperands = 1 |
1631 | INVALID_INST_FORM, |
1632 | // CeilFloat U:F:32, D:F:32 |
1633 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1634 | // Invalid: CeilFloat with numOperands = 3 |
1635 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1636 | // Invalid: CeilFloat with numOperands = 4 |
1637 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1638 | // Invalid: CeilFloat with numOperands = 5 |
1639 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1640 | // Invalid: CeilFloat with numOperands = 6 |
1641 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1642 | // Invalid: FloorDouble with numOperands = 0 |
1643 | |
1644 | // Invalid: FloorDouble with numOperands = 1 |
1645 | INVALID_INST_FORM, |
1646 | // FloorDouble U:F:64, D:F:64 |
1647 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1648 | // Invalid: FloorDouble with numOperands = 3 |
1649 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1650 | // Invalid: FloorDouble with numOperands = 4 |
1651 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1652 | // Invalid: FloorDouble with numOperands = 5 |
1653 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1654 | // Invalid: FloorDouble with numOperands = 6 |
1655 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1656 | // Invalid: FloorFloat with numOperands = 0 |
1657 | |
1658 | // Invalid: FloorFloat with numOperands = 1 |
1659 | INVALID_INST_FORM, |
1660 | // FloorFloat U:F:32, D:F:32 |
1661 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1662 | // Invalid: FloorFloat with numOperands = 3 |
1663 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1664 | // Invalid: FloorFloat with numOperands = 4 |
1665 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1666 | // Invalid: FloorFloat with numOperands = 5 |
1667 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1668 | // Invalid: FloorFloat with numOperands = 6 |
1669 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1670 | // Invalid: SqrtDouble with numOperands = 0 |
1671 | |
1672 | // Invalid: SqrtDouble with numOperands = 1 |
1673 | INVALID_INST_FORM, |
1674 | // SqrtDouble U:F:64, D:F:64 |
1675 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1676 | // Invalid: SqrtDouble with numOperands = 3 |
1677 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1678 | // Invalid: SqrtDouble with numOperands = 4 |
1679 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1680 | // Invalid: SqrtDouble with numOperands = 5 |
1681 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1682 | // Invalid: SqrtDouble with numOperands = 6 |
1683 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1684 | // Invalid: SqrtFloat with numOperands = 0 |
1685 | |
1686 | // Invalid: SqrtFloat with numOperands = 1 |
1687 | INVALID_INST_FORM, |
1688 | // SqrtFloat U:F:32, D:F:32 |
1689 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1690 | // Invalid: SqrtFloat with numOperands = 3 |
1691 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1692 | // Invalid: SqrtFloat with numOperands = 4 |
1693 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1694 | // Invalid: SqrtFloat with numOperands = 5 |
1695 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1696 | // Invalid: SqrtFloat with numOperands = 6 |
1697 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1698 | // Invalid: ConvertInt32ToDouble with numOperands = 0 |
1699 | |
1700 | // Invalid: ConvertInt32ToDouble with numOperands = 1 |
1701 | INVALID_INST_FORM, |
1702 | // ConvertInt32ToDouble U:G:32, D:F:64 |
1703 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1704 | // Invalid: ConvertInt32ToDouble with numOperands = 3 |
1705 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1706 | // Invalid: ConvertInt32ToDouble with numOperands = 4 |
1707 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1708 | // Invalid: ConvertInt32ToDouble with numOperands = 5 |
1709 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1710 | // Invalid: ConvertInt32ToDouble with numOperands = 6 |
1711 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1712 | // Invalid: ConvertInt64ToDouble with numOperands = 0 |
1713 | |
1714 | // Invalid: ConvertInt64ToDouble with numOperands = 1 |
1715 | INVALID_INST_FORM, |
1716 | // ConvertInt64ToDouble U:G:64, D:F:64 |
1717 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1718 | // Invalid: ConvertInt64ToDouble with numOperands = 3 |
1719 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1720 | // Invalid: ConvertInt64ToDouble with numOperands = 4 |
1721 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1722 | // Invalid: ConvertInt64ToDouble with numOperands = 5 |
1723 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1724 | // Invalid: ConvertInt64ToDouble with numOperands = 6 |
1725 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1726 | // Invalid: ConvertInt32ToFloat with numOperands = 0 |
1727 | |
1728 | // Invalid: ConvertInt32ToFloat with numOperands = 1 |
1729 | INVALID_INST_FORM, |
1730 | // ConvertInt32ToFloat U:G:32, D:F:32 |
1731 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1732 | // Invalid: ConvertInt32ToFloat with numOperands = 3 |
1733 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1734 | // Invalid: ConvertInt32ToFloat with numOperands = 4 |
1735 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1736 | // Invalid: ConvertInt32ToFloat with numOperands = 5 |
1737 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1738 | // Invalid: ConvertInt32ToFloat with numOperands = 6 |
1739 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1740 | // Invalid: ConvertInt64ToFloat with numOperands = 0 |
1741 | |
1742 | // Invalid: ConvertInt64ToFloat with numOperands = 1 |
1743 | INVALID_INST_FORM, |
1744 | // ConvertInt64ToFloat U:G:64, D:F:32 |
1745 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1746 | // Invalid: ConvertInt64ToFloat with numOperands = 3 |
1747 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1748 | // Invalid: ConvertInt64ToFloat with numOperands = 4 |
1749 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1750 | // Invalid: ConvertInt64ToFloat with numOperands = 5 |
1751 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1752 | // Invalid: ConvertInt64ToFloat with numOperands = 6 |
1753 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1754 | // Invalid: CountLeadingZeros32 with numOperands = 0 |
1755 | |
1756 | // Invalid: CountLeadingZeros32 with numOperands = 1 |
1757 | INVALID_INST_FORM, |
1758 | // CountLeadingZeros32 U:G:32, ZD:G:32 |
1759 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1760 | // Invalid: CountLeadingZeros32 with numOperands = 3 |
1761 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1762 | // Invalid: CountLeadingZeros32 with numOperands = 4 |
1763 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1764 | // Invalid: CountLeadingZeros32 with numOperands = 5 |
1765 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1766 | // Invalid: CountLeadingZeros32 with numOperands = 6 |
1767 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1768 | // Invalid: CountLeadingZeros64 with numOperands = 0 |
1769 | |
1770 | // Invalid: CountLeadingZeros64 with numOperands = 1 |
1771 | INVALID_INST_FORM, |
1772 | // CountLeadingZeros64 U:G:64, D:G:64 |
1773 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1774 | // Invalid: CountLeadingZeros64 with numOperands = 3 |
1775 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1776 | // Invalid: CountLeadingZeros64 with numOperands = 4 |
1777 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1778 | // Invalid: CountLeadingZeros64 with numOperands = 5 |
1779 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1780 | // Invalid: CountLeadingZeros64 with numOperands = 6 |
1781 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1782 | // Invalid: ConvertDoubleToFloat with numOperands = 0 |
1783 | |
1784 | // Invalid: ConvertDoubleToFloat with numOperands = 1 |
1785 | INVALID_INST_FORM, |
1786 | // ConvertDoubleToFloat U:F:64, D:F:32 |
1787 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1788 | // Invalid: ConvertDoubleToFloat with numOperands = 3 |
1789 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1790 | // Invalid: ConvertDoubleToFloat with numOperands = 4 |
1791 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1792 | // Invalid: ConvertDoubleToFloat with numOperands = 5 |
1793 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1794 | // Invalid: ConvertDoubleToFloat with numOperands = 6 |
1795 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1796 | // Invalid: ConvertFloatToDouble with numOperands = 0 |
1797 | |
1798 | // Invalid: ConvertFloatToDouble with numOperands = 1 |
1799 | INVALID_INST_FORM, |
1800 | // ConvertFloatToDouble U:F:32, D:F:64 |
1801 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1802 | // Invalid: ConvertFloatToDouble with numOperands = 3 |
1803 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1804 | // Invalid: ConvertFloatToDouble with numOperands = 4 |
1805 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1806 | // Invalid: ConvertFloatToDouble with numOperands = 5 |
1807 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1808 | // Invalid: ConvertFloatToDouble with numOperands = 6 |
1809 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1810 | // Invalid: Move with numOperands = 0 |
1811 | |
1812 | // Invalid: Move with numOperands = 1 |
1813 | INVALID_INST_FORM, |
1814 | // Move U:G:Ptr, D:G:Ptr |
1815 | ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
1816 | // Move U:G:Ptr, D:G:Ptr, S:G:Ptr |
1817 | ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Scratch, GP, POINTER_WIDTH), |
1818 | // Invalid: Move with numOperands = 4 |
1819 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1820 | // Invalid: Move with numOperands = 5 |
1821 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1822 | // Invalid: Move with numOperands = 6 |
1823 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1824 | // Invalid: Swap32 with numOperands = 0 |
1825 | |
1826 | // Invalid: Swap32 with numOperands = 1 |
1827 | INVALID_INST_FORM, |
1828 | // Swap32 UD:G:32, UD:G:32 |
1829 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
1830 | // Invalid: Swap32 with numOperands = 3 |
1831 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1832 | // Invalid: Swap32 with numOperands = 4 |
1833 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1834 | // Invalid: Swap32 with numOperands = 5 |
1835 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1836 | // Invalid: Swap32 with numOperands = 6 |
1837 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1838 | // Invalid: Swap64 with numOperands = 0 |
1839 | |
1840 | // Invalid: Swap64 with numOperands = 1 |
1841 | INVALID_INST_FORM, |
1842 | // Swap64 UD:G:64, UD:G:64 |
1843 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
1844 | // Invalid: Swap64 with numOperands = 3 |
1845 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1846 | // Invalid: Swap64 with numOperands = 4 |
1847 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1848 | // Invalid: Swap64 with numOperands = 5 |
1849 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1850 | // Invalid: Swap64 with numOperands = 6 |
1851 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1852 | // Invalid: Move32 with numOperands = 0 |
1853 | |
1854 | // Invalid: Move32 with numOperands = 1 |
1855 | INVALID_INST_FORM, |
1856 | // Move32 U:G:32, ZD:G:32 |
1857 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1858 | // Move32 U:G:32, ZD:G:32, S:G:32 |
1859 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), ENCODE_INST_FORM(Arg::Scratch, GP, Width32), |
1860 | // Invalid: Move32 with numOperands = 4 |
1861 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1862 | // Invalid: Move32 with numOperands = 5 |
1863 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1864 | // Invalid: Move32 with numOperands = 6 |
1865 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1866 | // Invalid: StoreZero32 with numOperands = 0 |
1867 | |
1868 | // StoreZero32 D:G:32 |
1869 | ENCODE_INST_FORM(Arg::Def, GP, Width32), |
1870 | // Invalid: StoreZero32 with numOperands = 2 |
1871 | INVALID_INST_FORM, INVALID_INST_FORM, |
1872 | // Invalid: StoreZero32 with numOperands = 3 |
1873 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1874 | // Invalid: StoreZero32 with numOperands = 4 |
1875 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1876 | // Invalid: StoreZero32 with numOperands = 5 |
1877 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1878 | // Invalid: StoreZero32 with numOperands = 6 |
1879 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1880 | // Invalid: StoreZero64 with numOperands = 0 |
1881 | |
1882 | // StoreZero64 D:G:64 |
1883 | ENCODE_INST_FORM(Arg::Def, GP, Width64), |
1884 | // Invalid: StoreZero64 with numOperands = 2 |
1885 | INVALID_INST_FORM, INVALID_INST_FORM, |
1886 | // Invalid: StoreZero64 with numOperands = 3 |
1887 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1888 | // Invalid: StoreZero64 with numOperands = 4 |
1889 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1890 | // Invalid: StoreZero64 with numOperands = 5 |
1891 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1892 | // Invalid: StoreZero64 with numOperands = 6 |
1893 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1894 | // Invalid: SignExtend32ToPtr with numOperands = 0 |
1895 | |
1896 | // Invalid: SignExtend32ToPtr with numOperands = 1 |
1897 | INVALID_INST_FORM, |
1898 | // SignExtend32ToPtr U:G:32, D:G:Ptr |
1899 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
1900 | // Invalid: SignExtend32ToPtr with numOperands = 3 |
1901 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1902 | // Invalid: SignExtend32ToPtr with numOperands = 4 |
1903 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1904 | // Invalid: SignExtend32ToPtr with numOperands = 5 |
1905 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1906 | // Invalid: SignExtend32ToPtr with numOperands = 6 |
1907 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1908 | // Invalid: ZeroExtend8To32 with numOperands = 0 |
1909 | |
1910 | // Invalid: ZeroExtend8To32 with numOperands = 1 |
1911 | INVALID_INST_FORM, |
1912 | // ZeroExtend8To32 U:G:8, ZD:G:32 |
1913 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1914 | // Invalid: ZeroExtend8To32 with numOperands = 3 |
1915 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1916 | // Invalid: ZeroExtend8To32 with numOperands = 4 |
1917 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1918 | // Invalid: ZeroExtend8To32 with numOperands = 5 |
1919 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1920 | // Invalid: ZeroExtend8To32 with numOperands = 6 |
1921 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1922 | // Invalid: SignExtend8To32 with numOperands = 0 |
1923 | |
1924 | // Invalid: SignExtend8To32 with numOperands = 1 |
1925 | INVALID_INST_FORM, |
1926 | // SignExtend8To32 U:G:8, ZD:G:32 |
1927 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1928 | // Invalid: SignExtend8To32 with numOperands = 3 |
1929 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1930 | // Invalid: SignExtend8To32 with numOperands = 4 |
1931 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1932 | // Invalid: SignExtend8To32 with numOperands = 5 |
1933 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1934 | // Invalid: SignExtend8To32 with numOperands = 6 |
1935 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1936 | // Invalid: ZeroExtend16To32 with numOperands = 0 |
1937 | |
1938 | // Invalid: ZeroExtend16To32 with numOperands = 1 |
1939 | INVALID_INST_FORM, |
1940 | // ZeroExtend16To32 U:G:16, ZD:G:32 |
1941 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1942 | // Invalid: ZeroExtend16To32 with numOperands = 3 |
1943 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1944 | // Invalid: ZeroExtend16To32 with numOperands = 4 |
1945 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1946 | // Invalid: ZeroExtend16To32 with numOperands = 5 |
1947 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1948 | // Invalid: ZeroExtend16To32 with numOperands = 6 |
1949 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1950 | // Invalid: SignExtend16To32 with numOperands = 0 |
1951 | |
1952 | // Invalid: SignExtend16To32 with numOperands = 1 |
1953 | INVALID_INST_FORM, |
1954 | // SignExtend16To32 U:G:16, ZD:G:32 |
1955 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
1956 | // Invalid: SignExtend16To32 with numOperands = 3 |
1957 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1958 | // Invalid: SignExtend16To32 with numOperands = 4 |
1959 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1960 | // Invalid: SignExtend16To32 with numOperands = 5 |
1961 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1962 | // Invalid: SignExtend16To32 with numOperands = 6 |
1963 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1964 | // Invalid: MoveFloat with numOperands = 0 |
1965 | |
1966 | // Invalid: MoveFloat with numOperands = 1 |
1967 | INVALID_INST_FORM, |
1968 | // MoveFloat U:F:32, D:F:32 |
1969 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
1970 | // MoveFloat U:F:32, D:F:32, S:F:32 |
1971 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), ENCODE_INST_FORM(Arg::Scratch, FP, Width32), |
1972 | // Invalid: MoveFloat with numOperands = 4 |
1973 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1974 | // Invalid: MoveFloat with numOperands = 5 |
1975 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1976 | // Invalid: MoveFloat with numOperands = 6 |
1977 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1978 | // Invalid: MoveDouble with numOperands = 0 |
1979 | |
1980 | // Invalid: MoveDouble with numOperands = 1 |
1981 | INVALID_INST_FORM, |
1982 | // MoveDouble U:F:64, D:F:64 |
1983 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1984 | // MoveDouble U:F:64, D:F:64, S:F:64 |
1985 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), ENCODE_INST_FORM(Arg::Scratch, FP, Width64), |
1986 | // Invalid: MoveDouble with numOperands = 4 |
1987 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1988 | // Invalid: MoveDouble with numOperands = 5 |
1989 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1990 | // Invalid: MoveDouble with numOperands = 6 |
1991 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
1992 | // Invalid: MoveZeroToDouble with numOperands = 0 |
1993 | |
1994 | // MoveZeroToDouble D:F:64 |
1995 | ENCODE_INST_FORM(Arg::Def, FP, Width64), |
1996 | // Invalid: MoveZeroToDouble with numOperands = 2 |
1997 | INVALID_INST_FORM, INVALID_INST_FORM, |
1998 | // Invalid: MoveZeroToDouble with numOperands = 3 |
1999 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2000 | // Invalid: MoveZeroToDouble with numOperands = 4 |
2001 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2002 | // Invalid: MoveZeroToDouble with numOperands = 5 |
2003 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2004 | // Invalid: MoveZeroToDouble with numOperands = 6 |
2005 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2006 | // Invalid: Move64ToDouble with numOperands = 0 |
2007 | |
2008 | // Invalid: Move64ToDouble with numOperands = 1 |
2009 | INVALID_INST_FORM, |
2010 | // Move64ToDouble U:G:64, D:F:64 |
2011 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
2012 | // Invalid: Move64ToDouble with numOperands = 3 |
2013 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2014 | // Invalid: Move64ToDouble with numOperands = 4 |
2015 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2016 | // Invalid: Move64ToDouble with numOperands = 5 |
2017 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2018 | // Invalid: Move64ToDouble with numOperands = 6 |
2019 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2020 | // Invalid: Move32ToFloat with numOperands = 0 |
2021 | |
2022 | // Invalid: Move32ToFloat with numOperands = 1 |
2023 | INVALID_INST_FORM, |
2024 | // Move32ToFloat U:G:32, D:F:32 |
2025 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, FP, Width32), |
2026 | // Invalid: Move32ToFloat with numOperands = 3 |
2027 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2028 | // Invalid: Move32ToFloat with numOperands = 4 |
2029 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2030 | // Invalid: Move32ToFloat with numOperands = 5 |
2031 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2032 | // Invalid: Move32ToFloat with numOperands = 6 |
2033 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2034 | // Invalid: MoveDoubleTo64 with numOperands = 0 |
2035 | |
2036 | // Invalid: MoveDoubleTo64 with numOperands = 1 |
2037 | INVALID_INST_FORM, |
2038 | // MoveDoubleTo64 U:F:64, D:G:64 |
2039 | ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), |
2040 | // Invalid: MoveDoubleTo64 with numOperands = 3 |
2041 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2042 | // Invalid: MoveDoubleTo64 with numOperands = 4 |
2043 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2044 | // Invalid: MoveDoubleTo64 with numOperands = 5 |
2045 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2046 | // Invalid: MoveDoubleTo64 with numOperands = 6 |
2047 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2048 | // Invalid: MoveFloatTo32 with numOperands = 0 |
2049 | |
2050 | // Invalid: MoveFloatTo32 with numOperands = 1 |
2051 | INVALID_INST_FORM, |
2052 | // MoveFloatTo32 U:F:32, D:G:32 |
2053 | ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Def, GP, Width32), |
2054 | // Invalid: MoveFloatTo32 with numOperands = 3 |
2055 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2056 | // Invalid: MoveFloatTo32 with numOperands = 4 |
2057 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2058 | // Invalid: MoveFloatTo32 with numOperands = 5 |
2059 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2060 | // Invalid: MoveFloatTo32 with numOperands = 6 |
2061 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2062 | // Invalid: Load8 with numOperands = 0 |
2063 | |
2064 | // Invalid: Load8 with numOperands = 1 |
2065 | INVALID_INST_FORM, |
2066 | // Load8 U:G:8, ZD:G:32 |
2067 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2068 | // Invalid: Load8 with numOperands = 3 |
2069 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2070 | // Invalid: Load8 with numOperands = 4 |
2071 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2072 | // Invalid: Load8 with numOperands = 5 |
2073 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2074 | // Invalid: Load8 with numOperands = 6 |
2075 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2076 | // Invalid: LoadAcq8 with numOperands = 0 |
2077 | |
2078 | // Invalid: LoadAcq8 with numOperands = 1 |
2079 | INVALID_INST_FORM, |
2080 | // LoadAcq8 U:G:8, ZD:G:32 |
2081 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2082 | // Invalid: LoadAcq8 with numOperands = 3 |
2083 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2084 | // Invalid: LoadAcq8 with numOperands = 4 |
2085 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2086 | // Invalid: LoadAcq8 with numOperands = 5 |
2087 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2088 | // Invalid: LoadAcq8 with numOperands = 6 |
2089 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2090 | // Invalid: Store8 with numOperands = 0 |
2091 | |
2092 | // Invalid: Store8 with numOperands = 1 |
2093 | INVALID_INST_FORM, |
2094 | // Store8 U:G:8, D:G:8 |
2095 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::Def, GP, Width8), |
2096 | // Invalid: Store8 with numOperands = 3 |
2097 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2098 | // Invalid: Store8 with numOperands = 4 |
2099 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2100 | // Invalid: Store8 with numOperands = 5 |
2101 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2102 | // Invalid: Store8 with numOperands = 6 |
2103 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2104 | // Invalid: StoreRel8 with numOperands = 0 |
2105 | |
2106 | // Invalid: StoreRel8 with numOperands = 1 |
2107 | INVALID_INST_FORM, |
2108 | // StoreRel8 U:G:8, D:G:8 |
2109 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::Def, GP, Width8), |
2110 | // Invalid: StoreRel8 with numOperands = 3 |
2111 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2112 | // Invalid: StoreRel8 with numOperands = 4 |
2113 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2114 | // Invalid: StoreRel8 with numOperands = 5 |
2115 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2116 | // Invalid: StoreRel8 with numOperands = 6 |
2117 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2118 | // Invalid: Load8SignedExtendTo32 with numOperands = 0 |
2119 | |
2120 | // Invalid: Load8SignedExtendTo32 with numOperands = 1 |
2121 | INVALID_INST_FORM, |
2122 | // Load8SignedExtendTo32 U:G:8, ZD:G:32 |
2123 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2124 | // Invalid: Load8SignedExtendTo32 with numOperands = 3 |
2125 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2126 | // Invalid: Load8SignedExtendTo32 with numOperands = 4 |
2127 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2128 | // Invalid: Load8SignedExtendTo32 with numOperands = 5 |
2129 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2130 | // Invalid: Load8SignedExtendTo32 with numOperands = 6 |
2131 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2132 | // Invalid: LoadAcq8SignedExtendTo32 with numOperands = 0 |
2133 | |
2134 | // Invalid: LoadAcq8SignedExtendTo32 with numOperands = 1 |
2135 | INVALID_INST_FORM, |
2136 | // LoadAcq8SignedExtendTo32 U:G:8, ZD:G:32 |
2137 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2138 | // Invalid: LoadAcq8SignedExtendTo32 with numOperands = 3 |
2139 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2140 | // Invalid: LoadAcq8SignedExtendTo32 with numOperands = 4 |
2141 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2142 | // Invalid: LoadAcq8SignedExtendTo32 with numOperands = 5 |
2143 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2144 | // Invalid: LoadAcq8SignedExtendTo32 with numOperands = 6 |
2145 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2146 | // Invalid: Load16 with numOperands = 0 |
2147 | |
2148 | // Invalid: Load16 with numOperands = 1 |
2149 | INVALID_INST_FORM, |
2150 | // Load16 U:G:16, ZD:G:32 |
2151 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2152 | // Invalid: Load16 with numOperands = 3 |
2153 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2154 | // Invalid: Load16 with numOperands = 4 |
2155 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2156 | // Invalid: Load16 with numOperands = 5 |
2157 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2158 | // Invalid: Load16 with numOperands = 6 |
2159 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2160 | // Invalid: LoadAcq16 with numOperands = 0 |
2161 | |
2162 | // Invalid: LoadAcq16 with numOperands = 1 |
2163 | INVALID_INST_FORM, |
2164 | // LoadAcq16 U:G:16, ZD:G:32 |
2165 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2166 | // Invalid: LoadAcq16 with numOperands = 3 |
2167 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2168 | // Invalid: LoadAcq16 with numOperands = 4 |
2169 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2170 | // Invalid: LoadAcq16 with numOperands = 5 |
2171 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2172 | // Invalid: LoadAcq16 with numOperands = 6 |
2173 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2174 | // Invalid: Load16SignedExtendTo32 with numOperands = 0 |
2175 | |
2176 | // Invalid: Load16SignedExtendTo32 with numOperands = 1 |
2177 | INVALID_INST_FORM, |
2178 | // Load16SignedExtendTo32 U:G:16, ZD:G:32 |
2179 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2180 | // Invalid: Load16SignedExtendTo32 with numOperands = 3 |
2181 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2182 | // Invalid: Load16SignedExtendTo32 with numOperands = 4 |
2183 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2184 | // Invalid: Load16SignedExtendTo32 with numOperands = 5 |
2185 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2186 | // Invalid: Load16SignedExtendTo32 with numOperands = 6 |
2187 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2188 | // Invalid: LoadAcq16SignedExtendTo32 with numOperands = 0 |
2189 | |
2190 | // Invalid: LoadAcq16SignedExtendTo32 with numOperands = 1 |
2191 | INVALID_INST_FORM, |
2192 | // LoadAcq16SignedExtendTo32 U:G:16, ZD:G:32 |
2193 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2194 | // Invalid: LoadAcq16SignedExtendTo32 with numOperands = 3 |
2195 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2196 | // Invalid: LoadAcq16SignedExtendTo32 with numOperands = 4 |
2197 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2198 | // Invalid: LoadAcq16SignedExtendTo32 with numOperands = 5 |
2199 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2200 | // Invalid: LoadAcq16SignedExtendTo32 with numOperands = 6 |
2201 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2202 | // Invalid: Store16 with numOperands = 0 |
2203 | |
2204 | // Invalid: Store16 with numOperands = 1 |
2205 | INVALID_INST_FORM, |
2206 | // Store16 U:G:16, D:G:16 |
2207 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::Def, GP, Width16), |
2208 | // Invalid: Store16 with numOperands = 3 |
2209 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2210 | // Invalid: Store16 with numOperands = 4 |
2211 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2212 | // Invalid: Store16 with numOperands = 5 |
2213 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2214 | // Invalid: Store16 with numOperands = 6 |
2215 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2216 | // Invalid: StoreRel16 with numOperands = 0 |
2217 | |
2218 | // Invalid: StoreRel16 with numOperands = 1 |
2219 | INVALID_INST_FORM, |
2220 | // StoreRel16 U:G:16, D:G:16 |
2221 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::Def, GP, Width16), |
2222 | // Invalid: StoreRel16 with numOperands = 3 |
2223 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2224 | // Invalid: StoreRel16 with numOperands = 4 |
2225 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2226 | // Invalid: StoreRel16 with numOperands = 5 |
2227 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2228 | // Invalid: StoreRel16 with numOperands = 6 |
2229 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2230 | // Invalid: LoadAcq32 with numOperands = 0 |
2231 | |
2232 | // Invalid: LoadAcq32 with numOperands = 1 |
2233 | INVALID_INST_FORM, |
2234 | // LoadAcq32 U:G:32, ZD:G:32 |
2235 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2236 | // Invalid: LoadAcq32 with numOperands = 3 |
2237 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2238 | // Invalid: LoadAcq32 with numOperands = 4 |
2239 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2240 | // Invalid: LoadAcq32 with numOperands = 5 |
2241 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2242 | // Invalid: LoadAcq32 with numOperands = 6 |
2243 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2244 | // Invalid: StoreRel32 with numOperands = 0 |
2245 | |
2246 | // Invalid: StoreRel32 with numOperands = 1 |
2247 | INVALID_INST_FORM, |
2248 | // StoreRel32 U:G:32, ZD:G:32 |
2249 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
2250 | // Invalid: StoreRel32 with numOperands = 3 |
2251 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2252 | // Invalid: StoreRel32 with numOperands = 4 |
2253 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2254 | // Invalid: StoreRel32 with numOperands = 5 |
2255 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2256 | // Invalid: StoreRel32 with numOperands = 6 |
2257 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2258 | // Invalid: LoadAcq64 with numOperands = 0 |
2259 | |
2260 | // Invalid: LoadAcq64 with numOperands = 1 |
2261 | INVALID_INST_FORM, |
2262 | // LoadAcq64 U:G:64, ZD:G:64 |
2263 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
2264 | // Invalid: LoadAcq64 with numOperands = 3 |
2265 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2266 | // Invalid: LoadAcq64 with numOperands = 4 |
2267 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2268 | // Invalid: LoadAcq64 with numOperands = 5 |
2269 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2270 | // Invalid: LoadAcq64 with numOperands = 6 |
2271 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2272 | // Invalid: StoreRel64 with numOperands = 0 |
2273 | |
2274 | // Invalid: StoreRel64 with numOperands = 1 |
2275 | INVALID_INST_FORM, |
2276 | // StoreRel64 U:G:64, ZD:G:64 |
2277 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
2278 | // Invalid: StoreRel64 with numOperands = 3 |
2279 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2280 | // Invalid: StoreRel64 with numOperands = 4 |
2281 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2282 | // Invalid: StoreRel64 with numOperands = 5 |
2283 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2284 | // Invalid: StoreRel64 with numOperands = 6 |
2285 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2286 | // Invalid: Xchg8 with numOperands = 0 |
2287 | |
2288 | // Invalid: Xchg8 with numOperands = 1 |
2289 | INVALID_INST_FORM, |
2290 | // Xchg8 UD:G:8, UD:G:8 |
2291 | ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2292 | // Invalid: Xchg8 with numOperands = 3 |
2293 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2294 | // Invalid: Xchg8 with numOperands = 4 |
2295 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2296 | // Invalid: Xchg8 with numOperands = 5 |
2297 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2298 | // Invalid: Xchg8 with numOperands = 6 |
2299 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2300 | // Invalid: Xchg16 with numOperands = 0 |
2301 | |
2302 | // Invalid: Xchg16 with numOperands = 1 |
2303 | INVALID_INST_FORM, |
2304 | // Xchg16 UD:G:16, UD:G:16 |
2305 | ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2306 | // Invalid: Xchg16 with numOperands = 3 |
2307 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2308 | // Invalid: Xchg16 with numOperands = 4 |
2309 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2310 | // Invalid: Xchg16 with numOperands = 5 |
2311 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2312 | // Invalid: Xchg16 with numOperands = 6 |
2313 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2314 | // Invalid: Xchg32 with numOperands = 0 |
2315 | |
2316 | // Invalid: Xchg32 with numOperands = 1 |
2317 | INVALID_INST_FORM, |
2318 | // Xchg32 UD:G:32, UD:G:32 |
2319 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2320 | // Invalid: Xchg32 with numOperands = 3 |
2321 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2322 | // Invalid: Xchg32 with numOperands = 4 |
2323 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2324 | // Invalid: Xchg32 with numOperands = 5 |
2325 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2326 | // Invalid: Xchg32 with numOperands = 6 |
2327 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2328 | // Invalid: Xchg64 with numOperands = 0 |
2329 | |
2330 | // Invalid: Xchg64 with numOperands = 1 |
2331 | INVALID_INST_FORM, |
2332 | // Xchg64 UD:G:64, UD:G:64 |
2333 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2334 | // Invalid: Xchg64 with numOperands = 3 |
2335 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2336 | // Invalid: Xchg64 with numOperands = 4 |
2337 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2338 | // Invalid: Xchg64 with numOperands = 5 |
2339 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2340 | // Invalid: Xchg64 with numOperands = 6 |
2341 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2342 | // Invalid: AtomicStrongCAS8 with numOperands = 0 |
2343 | |
2344 | // Invalid: AtomicStrongCAS8 with numOperands = 1 |
2345 | INVALID_INST_FORM, |
2346 | // Invalid: AtomicStrongCAS8 with numOperands = 2 |
2347 | INVALID_INST_FORM, INVALID_INST_FORM, |
2348 | // AtomicStrongCAS8 UD:G:8, U:G:8, UD:G:8 |
2349 | ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2350 | // Invalid: AtomicStrongCAS8 with numOperands = 4 |
2351 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2352 | // AtomicStrongCAS8 U:G:32, UD:G:8, U:G:8, UD:G:8, ZD:G:8 |
2353 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width8), |
2354 | // Invalid: AtomicStrongCAS8 with numOperands = 6 |
2355 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2356 | // Invalid: AtomicStrongCAS16 with numOperands = 0 |
2357 | |
2358 | // Invalid: AtomicStrongCAS16 with numOperands = 1 |
2359 | INVALID_INST_FORM, |
2360 | // Invalid: AtomicStrongCAS16 with numOperands = 2 |
2361 | INVALID_INST_FORM, INVALID_INST_FORM, |
2362 | // AtomicStrongCAS16 UD:G:16, U:G:32, UD:G:16 |
2363 | ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2364 | // Invalid: AtomicStrongCAS16 with numOperands = 4 |
2365 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2366 | // AtomicStrongCAS16 U:G:32, UD:G:16, U:G:32, UD:G:16, ZD:G:8 |
2367 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width8), |
2368 | // Invalid: AtomicStrongCAS16 with numOperands = 6 |
2369 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2370 | // Invalid: AtomicStrongCAS32 with numOperands = 0 |
2371 | |
2372 | // Invalid: AtomicStrongCAS32 with numOperands = 1 |
2373 | INVALID_INST_FORM, |
2374 | // Invalid: AtomicStrongCAS32 with numOperands = 2 |
2375 | INVALID_INST_FORM, INVALID_INST_FORM, |
2376 | // AtomicStrongCAS32 UD:G:32, U:G:32, UD:G:32 |
2377 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2378 | // Invalid: AtomicStrongCAS32 with numOperands = 4 |
2379 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2380 | // AtomicStrongCAS32 U:G:32, UD:G:32, U:G:32, UD:G:32, ZD:G:8 |
2381 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width8), |
2382 | // Invalid: AtomicStrongCAS32 with numOperands = 6 |
2383 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2384 | // Invalid: AtomicStrongCAS64 with numOperands = 0 |
2385 | |
2386 | // Invalid: AtomicStrongCAS64 with numOperands = 1 |
2387 | INVALID_INST_FORM, |
2388 | // Invalid: AtomicStrongCAS64 with numOperands = 2 |
2389 | INVALID_INST_FORM, INVALID_INST_FORM, |
2390 | // AtomicStrongCAS64 UD:G:64, U:G:64, UD:G:64 |
2391 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2392 | // Invalid: AtomicStrongCAS64 with numOperands = 4 |
2393 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2394 | // AtomicStrongCAS64 U:G:32, UD:G:64, U:G:64, UD:G:64, ZD:G:8 |
2395 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width8), |
2396 | // Invalid: AtomicStrongCAS64 with numOperands = 6 |
2397 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2398 | // Invalid: BranchAtomicStrongCAS8 with numOperands = 0 |
2399 | |
2400 | // Invalid: BranchAtomicStrongCAS8 with numOperands = 1 |
2401 | INVALID_INST_FORM, |
2402 | // Invalid: BranchAtomicStrongCAS8 with numOperands = 2 |
2403 | INVALID_INST_FORM, INVALID_INST_FORM, |
2404 | // Invalid: BranchAtomicStrongCAS8 with numOperands = 3 |
2405 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2406 | // BranchAtomicStrongCAS8 U:G:32, UD:G:8, U:G:8, UD:G:8 |
2407 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2408 | // Invalid: BranchAtomicStrongCAS8 with numOperands = 5 |
2409 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2410 | // Invalid: BranchAtomicStrongCAS8 with numOperands = 6 |
2411 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2412 | // Invalid: BranchAtomicStrongCAS16 with numOperands = 0 |
2413 | |
2414 | // Invalid: BranchAtomicStrongCAS16 with numOperands = 1 |
2415 | INVALID_INST_FORM, |
2416 | // Invalid: BranchAtomicStrongCAS16 with numOperands = 2 |
2417 | INVALID_INST_FORM, INVALID_INST_FORM, |
2418 | // Invalid: BranchAtomicStrongCAS16 with numOperands = 3 |
2419 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2420 | // BranchAtomicStrongCAS16 U:G:32, UD:G:16, U:G:32, UD:G:16 |
2421 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2422 | // Invalid: BranchAtomicStrongCAS16 with numOperands = 5 |
2423 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2424 | // Invalid: BranchAtomicStrongCAS16 with numOperands = 6 |
2425 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2426 | // Invalid: BranchAtomicStrongCAS32 with numOperands = 0 |
2427 | |
2428 | // Invalid: BranchAtomicStrongCAS32 with numOperands = 1 |
2429 | INVALID_INST_FORM, |
2430 | // Invalid: BranchAtomicStrongCAS32 with numOperands = 2 |
2431 | INVALID_INST_FORM, INVALID_INST_FORM, |
2432 | // Invalid: BranchAtomicStrongCAS32 with numOperands = 3 |
2433 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2434 | // BranchAtomicStrongCAS32 U:G:32, UD:G:32, U:G:32, UD:G:32 |
2435 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2436 | // Invalid: BranchAtomicStrongCAS32 with numOperands = 5 |
2437 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2438 | // Invalid: BranchAtomicStrongCAS32 with numOperands = 6 |
2439 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2440 | // Invalid: BranchAtomicStrongCAS64 with numOperands = 0 |
2441 | |
2442 | // Invalid: BranchAtomicStrongCAS64 with numOperands = 1 |
2443 | INVALID_INST_FORM, |
2444 | // Invalid: BranchAtomicStrongCAS64 with numOperands = 2 |
2445 | INVALID_INST_FORM, INVALID_INST_FORM, |
2446 | // Invalid: BranchAtomicStrongCAS64 with numOperands = 3 |
2447 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2448 | // BranchAtomicStrongCAS64 U:G:32, UD:G:64, U:G:64, UD:G:64 |
2449 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2450 | // Invalid: BranchAtomicStrongCAS64 with numOperands = 5 |
2451 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2452 | // Invalid: BranchAtomicStrongCAS64 with numOperands = 6 |
2453 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2454 | // Invalid: AtomicAdd8 with numOperands = 0 |
2455 | |
2456 | // Invalid: AtomicAdd8 with numOperands = 1 |
2457 | INVALID_INST_FORM, |
2458 | // AtomicAdd8 U:G:8, UD:G:8 |
2459 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2460 | // Invalid: AtomicAdd8 with numOperands = 3 |
2461 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2462 | // Invalid: AtomicAdd8 with numOperands = 4 |
2463 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2464 | // Invalid: AtomicAdd8 with numOperands = 5 |
2465 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2466 | // Invalid: AtomicAdd8 with numOperands = 6 |
2467 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2468 | // Invalid: AtomicAdd16 with numOperands = 0 |
2469 | |
2470 | // Invalid: AtomicAdd16 with numOperands = 1 |
2471 | INVALID_INST_FORM, |
2472 | // AtomicAdd16 U:G:16, UD:G:16 |
2473 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2474 | // Invalid: AtomicAdd16 with numOperands = 3 |
2475 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2476 | // Invalid: AtomicAdd16 with numOperands = 4 |
2477 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2478 | // Invalid: AtomicAdd16 with numOperands = 5 |
2479 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2480 | // Invalid: AtomicAdd16 with numOperands = 6 |
2481 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2482 | // Invalid: AtomicAdd32 with numOperands = 0 |
2483 | |
2484 | // Invalid: AtomicAdd32 with numOperands = 1 |
2485 | INVALID_INST_FORM, |
2486 | // AtomicAdd32 U:G:32, UD:G:32 |
2487 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2488 | // Invalid: AtomicAdd32 with numOperands = 3 |
2489 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2490 | // Invalid: AtomicAdd32 with numOperands = 4 |
2491 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2492 | // Invalid: AtomicAdd32 with numOperands = 5 |
2493 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2494 | // Invalid: AtomicAdd32 with numOperands = 6 |
2495 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2496 | // Invalid: AtomicAdd64 with numOperands = 0 |
2497 | |
2498 | // Invalid: AtomicAdd64 with numOperands = 1 |
2499 | INVALID_INST_FORM, |
2500 | // AtomicAdd64 U:G:64, UD:G:64 |
2501 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2502 | // Invalid: AtomicAdd64 with numOperands = 3 |
2503 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2504 | // Invalid: AtomicAdd64 with numOperands = 4 |
2505 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2506 | // Invalid: AtomicAdd64 with numOperands = 5 |
2507 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2508 | // Invalid: AtomicAdd64 with numOperands = 6 |
2509 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2510 | // Invalid: AtomicSub8 with numOperands = 0 |
2511 | |
2512 | // Invalid: AtomicSub8 with numOperands = 1 |
2513 | INVALID_INST_FORM, |
2514 | // AtomicSub8 U:G:8, UD:G:8 |
2515 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2516 | // Invalid: AtomicSub8 with numOperands = 3 |
2517 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2518 | // Invalid: AtomicSub8 with numOperands = 4 |
2519 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2520 | // Invalid: AtomicSub8 with numOperands = 5 |
2521 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2522 | // Invalid: AtomicSub8 with numOperands = 6 |
2523 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2524 | // Invalid: AtomicSub16 with numOperands = 0 |
2525 | |
2526 | // Invalid: AtomicSub16 with numOperands = 1 |
2527 | INVALID_INST_FORM, |
2528 | // AtomicSub16 U:G:16, UD:G:16 |
2529 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2530 | // Invalid: AtomicSub16 with numOperands = 3 |
2531 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2532 | // Invalid: AtomicSub16 with numOperands = 4 |
2533 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2534 | // Invalid: AtomicSub16 with numOperands = 5 |
2535 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2536 | // Invalid: AtomicSub16 with numOperands = 6 |
2537 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2538 | // Invalid: AtomicSub32 with numOperands = 0 |
2539 | |
2540 | // Invalid: AtomicSub32 with numOperands = 1 |
2541 | INVALID_INST_FORM, |
2542 | // AtomicSub32 U:G:32, UD:G:32 |
2543 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2544 | // Invalid: AtomicSub32 with numOperands = 3 |
2545 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2546 | // Invalid: AtomicSub32 with numOperands = 4 |
2547 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2548 | // Invalid: AtomicSub32 with numOperands = 5 |
2549 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2550 | // Invalid: AtomicSub32 with numOperands = 6 |
2551 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2552 | // Invalid: AtomicSub64 with numOperands = 0 |
2553 | |
2554 | // Invalid: AtomicSub64 with numOperands = 1 |
2555 | INVALID_INST_FORM, |
2556 | // AtomicSub64 U:G:64, UD:G:64 |
2557 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2558 | // Invalid: AtomicSub64 with numOperands = 3 |
2559 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2560 | // Invalid: AtomicSub64 with numOperands = 4 |
2561 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2562 | // Invalid: AtomicSub64 with numOperands = 5 |
2563 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2564 | // Invalid: AtomicSub64 with numOperands = 6 |
2565 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2566 | // Invalid: AtomicAnd8 with numOperands = 0 |
2567 | |
2568 | // Invalid: AtomicAnd8 with numOperands = 1 |
2569 | INVALID_INST_FORM, |
2570 | // AtomicAnd8 U:G:8, UD:G:8 |
2571 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2572 | // Invalid: AtomicAnd8 with numOperands = 3 |
2573 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2574 | // Invalid: AtomicAnd8 with numOperands = 4 |
2575 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2576 | // Invalid: AtomicAnd8 with numOperands = 5 |
2577 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2578 | // Invalid: AtomicAnd8 with numOperands = 6 |
2579 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2580 | // Invalid: AtomicAnd16 with numOperands = 0 |
2581 | |
2582 | // Invalid: AtomicAnd16 with numOperands = 1 |
2583 | INVALID_INST_FORM, |
2584 | // AtomicAnd16 U:G:16, UD:G:16 |
2585 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2586 | // Invalid: AtomicAnd16 with numOperands = 3 |
2587 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2588 | // Invalid: AtomicAnd16 with numOperands = 4 |
2589 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2590 | // Invalid: AtomicAnd16 with numOperands = 5 |
2591 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2592 | // Invalid: AtomicAnd16 with numOperands = 6 |
2593 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2594 | // Invalid: AtomicAnd32 with numOperands = 0 |
2595 | |
2596 | // Invalid: AtomicAnd32 with numOperands = 1 |
2597 | INVALID_INST_FORM, |
2598 | // AtomicAnd32 U:G:32, UD:G:32 |
2599 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2600 | // Invalid: AtomicAnd32 with numOperands = 3 |
2601 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2602 | // Invalid: AtomicAnd32 with numOperands = 4 |
2603 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2604 | // Invalid: AtomicAnd32 with numOperands = 5 |
2605 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2606 | // Invalid: AtomicAnd32 with numOperands = 6 |
2607 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2608 | // Invalid: AtomicAnd64 with numOperands = 0 |
2609 | |
2610 | // Invalid: AtomicAnd64 with numOperands = 1 |
2611 | INVALID_INST_FORM, |
2612 | // AtomicAnd64 U:G:64, UD:G:64 |
2613 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2614 | // Invalid: AtomicAnd64 with numOperands = 3 |
2615 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2616 | // Invalid: AtomicAnd64 with numOperands = 4 |
2617 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2618 | // Invalid: AtomicAnd64 with numOperands = 5 |
2619 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2620 | // Invalid: AtomicAnd64 with numOperands = 6 |
2621 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2622 | // Invalid: AtomicOr8 with numOperands = 0 |
2623 | |
2624 | // Invalid: AtomicOr8 with numOperands = 1 |
2625 | INVALID_INST_FORM, |
2626 | // AtomicOr8 U:G:8, UD:G:8 |
2627 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2628 | // Invalid: AtomicOr8 with numOperands = 3 |
2629 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2630 | // Invalid: AtomicOr8 with numOperands = 4 |
2631 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2632 | // Invalid: AtomicOr8 with numOperands = 5 |
2633 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2634 | // Invalid: AtomicOr8 with numOperands = 6 |
2635 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2636 | // Invalid: AtomicOr16 with numOperands = 0 |
2637 | |
2638 | // Invalid: AtomicOr16 with numOperands = 1 |
2639 | INVALID_INST_FORM, |
2640 | // AtomicOr16 U:G:16, UD:G:16 |
2641 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2642 | // Invalid: AtomicOr16 with numOperands = 3 |
2643 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2644 | // Invalid: AtomicOr16 with numOperands = 4 |
2645 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2646 | // Invalid: AtomicOr16 with numOperands = 5 |
2647 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2648 | // Invalid: AtomicOr16 with numOperands = 6 |
2649 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2650 | // Invalid: AtomicOr32 with numOperands = 0 |
2651 | |
2652 | // Invalid: AtomicOr32 with numOperands = 1 |
2653 | INVALID_INST_FORM, |
2654 | // AtomicOr32 U:G:32, UD:G:32 |
2655 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2656 | // Invalid: AtomicOr32 with numOperands = 3 |
2657 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2658 | // Invalid: AtomicOr32 with numOperands = 4 |
2659 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2660 | // Invalid: AtomicOr32 with numOperands = 5 |
2661 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2662 | // Invalid: AtomicOr32 with numOperands = 6 |
2663 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2664 | // Invalid: AtomicOr64 with numOperands = 0 |
2665 | |
2666 | // Invalid: AtomicOr64 with numOperands = 1 |
2667 | INVALID_INST_FORM, |
2668 | // AtomicOr64 U:G:64, UD:G:64 |
2669 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2670 | // Invalid: AtomicOr64 with numOperands = 3 |
2671 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2672 | // Invalid: AtomicOr64 with numOperands = 4 |
2673 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2674 | // Invalid: AtomicOr64 with numOperands = 5 |
2675 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2676 | // Invalid: AtomicOr64 with numOperands = 6 |
2677 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2678 | // Invalid: AtomicXor8 with numOperands = 0 |
2679 | |
2680 | // Invalid: AtomicXor8 with numOperands = 1 |
2681 | INVALID_INST_FORM, |
2682 | // AtomicXor8 U:G:8, UD:G:8 |
2683 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2684 | // Invalid: AtomicXor8 with numOperands = 3 |
2685 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2686 | // Invalid: AtomicXor8 with numOperands = 4 |
2687 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2688 | // Invalid: AtomicXor8 with numOperands = 5 |
2689 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2690 | // Invalid: AtomicXor8 with numOperands = 6 |
2691 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2692 | // Invalid: AtomicXor16 with numOperands = 0 |
2693 | |
2694 | // Invalid: AtomicXor16 with numOperands = 1 |
2695 | INVALID_INST_FORM, |
2696 | // AtomicXor16 U:G:16, UD:G:16 |
2697 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2698 | // Invalid: AtomicXor16 with numOperands = 3 |
2699 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2700 | // Invalid: AtomicXor16 with numOperands = 4 |
2701 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2702 | // Invalid: AtomicXor16 with numOperands = 5 |
2703 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2704 | // Invalid: AtomicXor16 with numOperands = 6 |
2705 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2706 | // Invalid: AtomicXor32 with numOperands = 0 |
2707 | |
2708 | // Invalid: AtomicXor32 with numOperands = 1 |
2709 | INVALID_INST_FORM, |
2710 | // AtomicXor32 U:G:32, UD:G:32 |
2711 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2712 | // Invalid: AtomicXor32 with numOperands = 3 |
2713 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2714 | // Invalid: AtomicXor32 with numOperands = 4 |
2715 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2716 | // Invalid: AtomicXor32 with numOperands = 5 |
2717 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2718 | // Invalid: AtomicXor32 with numOperands = 6 |
2719 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2720 | // Invalid: AtomicXor64 with numOperands = 0 |
2721 | |
2722 | // Invalid: AtomicXor64 with numOperands = 1 |
2723 | INVALID_INST_FORM, |
2724 | // AtomicXor64 U:G:64, UD:G:64 |
2725 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2726 | // Invalid: AtomicXor64 with numOperands = 3 |
2727 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2728 | // Invalid: AtomicXor64 with numOperands = 4 |
2729 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2730 | // Invalid: AtomicXor64 with numOperands = 5 |
2731 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2732 | // Invalid: AtomicXor64 with numOperands = 6 |
2733 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2734 | // Invalid: AtomicNeg8 with numOperands = 0 |
2735 | |
2736 | // AtomicNeg8 UD:G:8 |
2737 | ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2738 | // Invalid: AtomicNeg8 with numOperands = 2 |
2739 | INVALID_INST_FORM, INVALID_INST_FORM, |
2740 | // Invalid: AtomicNeg8 with numOperands = 3 |
2741 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2742 | // Invalid: AtomicNeg8 with numOperands = 4 |
2743 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2744 | // Invalid: AtomicNeg8 with numOperands = 5 |
2745 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2746 | // Invalid: AtomicNeg8 with numOperands = 6 |
2747 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2748 | // Invalid: AtomicNeg16 with numOperands = 0 |
2749 | |
2750 | // AtomicNeg16 UD:G:16 |
2751 | ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2752 | // Invalid: AtomicNeg16 with numOperands = 2 |
2753 | INVALID_INST_FORM, INVALID_INST_FORM, |
2754 | // Invalid: AtomicNeg16 with numOperands = 3 |
2755 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2756 | // Invalid: AtomicNeg16 with numOperands = 4 |
2757 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2758 | // Invalid: AtomicNeg16 with numOperands = 5 |
2759 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2760 | // Invalid: AtomicNeg16 with numOperands = 6 |
2761 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2762 | // Invalid: AtomicNeg32 with numOperands = 0 |
2763 | |
2764 | // AtomicNeg32 UD:G:32 |
2765 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2766 | // Invalid: AtomicNeg32 with numOperands = 2 |
2767 | INVALID_INST_FORM, INVALID_INST_FORM, |
2768 | // Invalid: AtomicNeg32 with numOperands = 3 |
2769 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2770 | // Invalid: AtomicNeg32 with numOperands = 4 |
2771 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2772 | // Invalid: AtomicNeg32 with numOperands = 5 |
2773 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2774 | // Invalid: AtomicNeg32 with numOperands = 6 |
2775 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2776 | // Invalid: AtomicNeg64 with numOperands = 0 |
2777 | |
2778 | // AtomicNeg64 UD:G:64 |
2779 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2780 | // Invalid: AtomicNeg64 with numOperands = 2 |
2781 | INVALID_INST_FORM, INVALID_INST_FORM, |
2782 | // Invalid: AtomicNeg64 with numOperands = 3 |
2783 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2784 | // Invalid: AtomicNeg64 with numOperands = 4 |
2785 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2786 | // Invalid: AtomicNeg64 with numOperands = 5 |
2787 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2788 | // Invalid: AtomicNeg64 with numOperands = 6 |
2789 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2790 | // Invalid: AtomicNot8 with numOperands = 0 |
2791 | |
2792 | // AtomicNot8 UD:G:8 |
2793 | ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2794 | // Invalid: AtomicNot8 with numOperands = 2 |
2795 | INVALID_INST_FORM, INVALID_INST_FORM, |
2796 | // Invalid: AtomicNot8 with numOperands = 3 |
2797 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2798 | // Invalid: AtomicNot8 with numOperands = 4 |
2799 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2800 | // Invalid: AtomicNot8 with numOperands = 5 |
2801 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2802 | // Invalid: AtomicNot8 with numOperands = 6 |
2803 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2804 | // Invalid: AtomicNot16 with numOperands = 0 |
2805 | |
2806 | // AtomicNot16 UD:G:16 |
2807 | ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2808 | // Invalid: AtomicNot16 with numOperands = 2 |
2809 | INVALID_INST_FORM, INVALID_INST_FORM, |
2810 | // Invalid: AtomicNot16 with numOperands = 3 |
2811 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2812 | // Invalid: AtomicNot16 with numOperands = 4 |
2813 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2814 | // Invalid: AtomicNot16 with numOperands = 5 |
2815 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2816 | // Invalid: AtomicNot16 with numOperands = 6 |
2817 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2818 | // Invalid: AtomicNot32 with numOperands = 0 |
2819 | |
2820 | // AtomicNot32 UD:G:32 |
2821 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2822 | // Invalid: AtomicNot32 with numOperands = 2 |
2823 | INVALID_INST_FORM, INVALID_INST_FORM, |
2824 | // Invalid: AtomicNot32 with numOperands = 3 |
2825 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2826 | // Invalid: AtomicNot32 with numOperands = 4 |
2827 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2828 | // Invalid: AtomicNot32 with numOperands = 5 |
2829 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2830 | // Invalid: AtomicNot32 with numOperands = 6 |
2831 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2832 | // Invalid: AtomicNot64 with numOperands = 0 |
2833 | |
2834 | // AtomicNot64 UD:G:64 |
2835 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2836 | // Invalid: AtomicNot64 with numOperands = 2 |
2837 | INVALID_INST_FORM, INVALID_INST_FORM, |
2838 | // Invalid: AtomicNot64 with numOperands = 3 |
2839 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2840 | // Invalid: AtomicNot64 with numOperands = 4 |
2841 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2842 | // Invalid: AtomicNot64 with numOperands = 5 |
2843 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2844 | // Invalid: AtomicNot64 with numOperands = 6 |
2845 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2846 | // Invalid: AtomicXchgAdd8 with numOperands = 0 |
2847 | |
2848 | // Invalid: AtomicXchgAdd8 with numOperands = 1 |
2849 | INVALID_INST_FORM, |
2850 | // AtomicXchgAdd8 UD:G:8, UD:G:8 |
2851 | ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2852 | // Invalid: AtomicXchgAdd8 with numOperands = 3 |
2853 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2854 | // Invalid: AtomicXchgAdd8 with numOperands = 4 |
2855 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2856 | // Invalid: AtomicXchgAdd8 with numOperands = 5 |
2857 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2858 | // Invalid: AtomicXchgAdd8 with numOperands = 6 |
2859 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2860 | // Invalid: AtomicXchgAdd16 with numOperands = 0 |
2861 | |
2862 | // Invalid: AtomicXchgAdd16 with numOperands = 1 |
2863 | INVALID_INST_FORM, |
2864 | // AtomicXchgAdd16 UD:G:16, UD:G:16 |
2865 | ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2866 | // Invalid: AtomicXchgAdd16 with numOperands = 3 |
2867 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2868 | // Invalid: AtomicXchgAdd16 with numOperands = 4 |
2869 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2870 | // Invalid: AtomicXchgAdd16 with numOperands = 5 |
2871 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2872 | // Invalid: AtomicXchgAdd16 with numOperands = 6 |
2873 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2874 | // Invalid: AtomicXchgAdd32 with numOperands = 0 |
2875 | |
2876 | // Invalid: AtomicXchgAdd32 with numOperands = 1 |
2877 | INVALID_INST_FORM, |
2878 | // AtomicXchgAdd32 UD:G:32, UD:G:32 |
2879 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2880 | // Invalid: AtomicXchgAdd32 with numOperands = 3 |
2881 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2882 | // Invalid: AtomicXchgAdd32 with numOperands = 4 |
2883 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2884 | // Invalid: AtomicXchgAdd32 with numOperands = 5 |
2885 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2886 | // Invalid: AtomicXchgAdd32 with numOperands = 6 |
2887 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2888 | // Invalid: AtomicXchgAdd64 with numOperands = 0 |
2889 | |
2890 | // Invalid: AtomicXchgAdd64 with numOperands = 1 |
2891 | INVALID_INST_FORM, |
2892 | // AtomicXchgAdd64 UD:G:64, UD:G:64 |
2893 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2894 | // Invalid: AtomicXchgAdd64 with numOperands = 3 |
2895 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2896 | // Invalid: AtomicXchgAdd64 with numOperands = 4 |
2897 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2898 | // Invalid: AtomicXchgAdd64 with numOperands = 5 |
2899 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2900 | // Invalid: AtomicXchgAdd64 with numOperands = 6 |
2901 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2902 | // Invalid: AtomicXchg8 with numOperands = 0 |
2903 | |
2904 | // Invalid: AtomicXchg8 with numOperands = 1 |
2905 | INVALID_INST_FORM, |
2906 | // AtomicXchg8 UD:G:8, UD:G:8 |
2907 | ENCODE_INST_FORM(Arg::UseDef, GP, Width8), ENCODE_INST_FORM(Arg::UseDef, GP, Width8), |
2908 | // Invalid: AtomicXchg8 with numOperands = 3 |
2909 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2910 | // Invalid: AtomicXchg8 with numOperands = 4 |
2911 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2912 | // Invalid: AtomicXchg8 with numOperands = 5 |
2913 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2914 | // Invalid: AtomicXchg8 with numOperands = 6 |
2915 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2916 | // Invalid: AtomicXchg16 with numOperands = 0 |
2917 | |
2918 | // Invalid: AtomicXchg16 with numOperands = 1 |
2919 | INVALID_INST_FORM, |
2920 | // AtomicXchg16 UD:G:16, UD:G:16 |
2921 | ENCODE_INST_FORM(Arg::UseDef, GP, Width16), ENCODE_INST_FORM(Arg::UseDef, GP, Width16), |
2922 | // Invalid: AtomicXchg16 with numOperands = 3 |
2923 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2924 | // Invalid: AtomicXchg16 with numOperands = 4 |
2925 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2926 | // Invalid: AtomicXchg16 with numOperands = 5 |
2927 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2928 | // Invalid: AtomicXchg16 with numOperands = 6 |
2929 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2930 | // Invalid: AtomicXchg32 with numOperands = 0 |
2931 | |
2932 | // Invalid: AtomicXchg32 with numOperands = 1 |
2933 | INVALID_INST_FORM, |
2934 | // AtomicXchg32 UD:G:32, UD:G:32 |
2935 | ENCODE_INST_FORM(Arg::UseDef, GP, Width32), ENCODE_INST_FORM(Arg::UseDef, GP, Width32), |
2936 | // Invalid: AtomicXchg32 with numOperands = 3 |
2937 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2938 | // Invalid: AtomicXchg32 with numOperands = 4 |
2939 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2940 | // Invalid: AtomicXchg32 with numOperands = 5 |
2941 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2942 | // Invalid: AtomicXchg32 with numOperands = 6 |
2943 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2944 | // Invalid: AtomicXchg64 with numOperands = 0 |
2945 | |
2946 | // Invalid: AtomicXchg64 with numOperands = 1 |
2947 | INVALID_INST_FORM, |
2948 | // AtomicXchg64 UD:G:64, UD:G:64 |
2949 | ENCODE_INST_FORM(Arg::UseDef, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
2950 | // Invalid: AtomicXchg64 with numOperands = 3 |
2951 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2952 | // Invalid: AtomicXchg64 with numOperands = 4 |
2953 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2954 | // Invalid: AtomicXchg64 with numOperands = 5 |
2955 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2956 | // Invalid: AtomicXchg64 with numOperands = 6 |
2957 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2958 | // Invalid: LoadLink8 with numOperands = 0 |
2959 | |
2960 | // Invalid: LoadLink8 with numOperands = 1 |
2961 | INVALID_INST_FORM, |
2962 | // LoadLink8 U:G:8, ZD:G:8 |
2963 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width8), |
2964 | // Invalid: LoadLink8 with numOperands = 3 |
2965 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2966 | // Invalid: LoadLink8 with numOperands = 4 |
2967 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2968 | // Invalid: LoadLink8 with numOperands = 5 |
2969 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2970 | // Invalid: LoadLink8 with numOperands = 6 |
2971 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2972 | // Invalid: LoadLinkAcq8 with numOperands = 0 |
2973 | |
2974 | // Invalid: LoadLinkAcq8 with numOperands = 1 |
2975 | INVALID_INST_FORM, |
2976 | // LoadLinkAcq8 U:G:8, ZD:G:8 |
2977 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::ZDef, GP, Width8), |
2978 | // Invalid: LoadLinkAcq8 with numOperands = 3 |
2979 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2980 | // Invalid: LoadLinkAcq8 with numOperands = 4 |
2981 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2982 | // Invalid: LoadLinkAcq8 with numOperands = 5 |
2983 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2984 | // Invalid: LoadLinkAcq8 with numOperands = 6 |
2985 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2986 | // Invalid: StoreCond8 with numOperands = 0 |
2987 | |
2988 | // Invalid: StoreCond8 with numOperands = 1 |
2989 | INVALID_INST_FORM, |
2990 | // Invalid: StoreCond8 with numOperands = 2 |
2991 | INVALID_INST_FORM, INVALID_INST_FORM, |
2992 | // StoreCond8 U:G:8, D:G:8, EZD:G:8 |
2993 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::Def, GP, Width8), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
2994 | // Invalid: StoreCond8 with numOperands = 4 |
2995 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2996 | // Invalid: StoreCond8 with numOperands = 5 |
2997 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
2998 | // Invalid: StoreCond8 with numOperands = 6 |
2999 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3000 | // Invalid: StoreCondRel8 with numOperands = 0 |
3001 | |
3002 | // Invalid: StoreCondRel8 with numOperands = 1 |
3003 | INVALID_INST_FORM, |
3004 | // Invalid: StoreCondRel8 with numOperands = 2 |
3005 | INVALID_INST_FORM, INVALID_INST_FORM, |
3006 | // StoreCondRel8 U:G:8, D:G:8, EZD:G:8 |
3007 | ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::Def, GP, Width8), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3008 | // Invalid: StoreCondRel8 with numOperands = 4 |
3009 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3010 | // Invalid: StoreCondRel8 with numOperands = 5 |
3011 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3012 | // Invalid: StoreCondRel8 with numOperands = 6 |
3013 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3014 | // Invalid: LoadLink16 with numOperands = 0 |
3015 | |
3016 | // Invalid: LoadLink16 with numOperands = 1 |
3017 | INVALID_INST_FORM, |
3018 | // LoadLink16 U:G:16, ZD:G:16 |
3019 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width16), |
3020 | // Invalid: LoadLink16 with numOperands = 3 |
3021 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3022 | // Invalid: LoadLink16 with numOperands = 4 |
3023 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3024 | // Invalid: LoadLink16 with numOperands = 5 |
3025 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3026 | // Invalid: LoadLink16 with numOperands = 6 |
3027 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3028 | // Invalid: LoadLinkAcq16 with numOperands = 0 |
3029 | |
3030 | // Invalid: LoadLinkAcq16 with numOperands = 1 |
3031 | INVALID_INST_FORM, |
3032 | // LoadLinkAcq16 U:G:16, ZD:G:16 |
3033 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::ZDef, GP, Width16), |
3034 | // Invalid: LoadLinkAcq16 with numOperands = 3 |
3035 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3036 | // Invalid: LoadLinkAcq16 with numOperands = 4 |
3037 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3038 | // Invalid: LoadLinkAcq16 with numOperands = 5 |
3039 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3040 | // Invalid: LoadLinkAcq16 with numOperands = 6 |
3041 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3042 | // Invalid: StoreCond16 with numOperands = 0 |
3043 | |
3044 | // Invalid: StoreCond16 with numOperands = 1 |
3045 | INVALID_INST_FORM, |
3046 | // Invalid: StoreCond16 with numOperands = 2 |
3047 | INVALID_INST_FORM, INVALID_INST_FORM, |
3048 | // StoreCond16 U:G:16, D:G:16, EZD:G:8 |
3049 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::Def, GP, Width16), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3050 | // Invalid: StoreCond16 with numOperands = 4 |
3051 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3052 | // Invalid: StoreCond16 with numOperands = 5 |
3053 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3054 | // Invalid: StoreCond16 with numOperands = 6 |
3055 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3056 | // Invalid: StoreCondRel16 with numOperands = 0 |
3057 | |
3058 | // Invalid: StoreCondRel16 with numOperands = 1 |
3059 | INVALID_INST_FORM, |
3060 | // Invalid: StoreCondRel16 with numOperands = 2 |
3061 | INVALID_INST_FORM, INVALID_INST_FORM, |
3062 | // StoreCondRel16 U:G:16, D:G:16, EZD:G:8 |
3063 | ENCODE_INST_FORM(Arg::Use, GP, Width16), ENCODE_INST_FORM(Arg::Def, GP, Width16), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3064 | // Invalid: StoreCondRel16 with numOperands = 4 |
3065 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3066 | // Invalid: StoreCondRel16 with numOperands = 5 |
3067 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3068 | // Invalid: StoreCondRel16 with numOperands = 6 |
3069 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3070 | // Invalid: LoadLink32 with numOperands = 0 |
3071 | |
3072 | // Invalid: LoadLink32 with numOperands = 1 |
3073 | INVALID_INST_FORM, |
3074 | // LoadLink32 U:G:32, ZD:G:32 |
3075 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3076 | // Invalid: LoadLink32 with numOperands = 3 |
3077 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3078 | // Invalid: LoadLink32 with numOperands = 4 |
3079 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3080 | // Invalid: LoadLink32 with numOperands = 5 |
3081 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3082 | // Invalid: LoadLink32 with numOperands = 6 |
3083 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3084 | // Invalid: LoadLinkAcq32 with numOperands = 0 |
3085 | |
3086 | // Invalid: LoadLinkAcq32 with numOperands = 1 |
3087 | INVALID_INST_FORM, |
3088 | // LoadLinkAcq32 U:G:32, ZD:G:32 |
3089 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3090 | // Invalid: LoadLinkAcq32 with numOperands = 3 |
3091 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3092 | // Invalid: LoadLinkAcq32 with numOperands = 4 |
3093 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3094 | // Invalid: LoadLinkAcq32 with numOperands = 5 |
3095 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3096 | // Invalid: LoadLinkAcq32 with numOperands = 6 |
3097 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3098 | // Invalid: StoreCond32 with numOperands = 0 |
3099 | |
3100 | // Invalid: StoreCond32 with numOperands = 1 |
3101 | INVALID_INST_FORM, |
3102 | // Invalid: StoreCond32 with numOperands = 2 |
3103 | INVALID_INST_FORM, INVALID_INST_FORM, |
3104 | // StoreCond32 U:G:32, D:G:32, EZD:G:8 |
3105 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, GP, Width32), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3106 | // Invalid: StoreCond32 with numOperands = 4 |
3107 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3108 | // Invalid: StoreCond32 with numOperands = 5 |
3109 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3110 | // Invalid: StoreCond32 with numOperands = 6 |
3111 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3112 | // Invalid: StoreCondRel32 with numOperands = 0 |
3113 | |
3114 | // Invalid: StoreCondRel32 with numOperands = 1 |
3115 | INVALID_INST_FORM, |
3116 | // Invalid: StoreCondRel32 with numOperands = 2 |
3117 | INVALID_INST_FORM, INVALID_INST_FORM, |
3118 | // StoreCondRel32 U:G:32, D:G:32, EZD:G:8 |
3119 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Def, GP, Width32), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3120 | // Invalid: StoreCondRel32 with numOperands = 4 |
3121 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3122 | // Invalid: StoreCondRel32 with numOperands = 5 |
3123 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3124 | // Invalid: StoreCondRel32 with numOperands = 6 |
3125 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3126 | // Invalid: LoadLink64 with numOperands = 0 |
3127 | |
3128 | // Invalid: LoadLink64 with numOperands = 1 |
3129 | INVALID_INST_FORM, |
3130 | // LoadLink64 U:G:64, ZD:G:64 |
3131 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
3132 | // Invalid: LoadLink64 with numOperands = 3 |
3133 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3134 | // Invalid: LoadLink64 with numOperands = 4 |
3135 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3136 | // Invalid: LoadLink64 with numOperands = 5 |
3137 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3138 | // Invalid: LoadLink64 with numOperands = 6 |
3139 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3140 | // Invalid: LoadLinkAcq64 with numOperands = 0 |
3141 | |
3142 | // Invalid: LoadLinkAcq64 with numOperands = 1 |
3143 | INVALID_INST_FORM, |
3144 | // LoadLinkAcq64 U:G:64, ZD:G:64 |
3145 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
3146 | // Invalid: LoadLinkAcq64 with numOperands = 3 |
3147 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3148 | // Invalid: LoadLinkAcq64 with numOperands = 4 |
3149 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3150 | // Invalid: LoadLinkAcq64 with numOperands = 5 |
3151 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3152 | // Invalid: LoadLinkAcq64 with numOperands = 6 |
3153 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3154 | // Invalid: StoreCond64 with numOperands = 0 |
3155 | |
3156 | // Invalid: StoreCond64 with numOperands = 1 |
3157 | INVALID_INST_FORM, |
3158 | // Invalid: StoreCond64 with numOperands = 2 |
3159 | INVALID_INST_FORM, INVALID_INST_FORM, |
3160 | // StoreCond64 U:G:64, D:G:64, EZD:G:8 |
3161 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3162 | // Invalid: StoreCond64 with numOperands = 4 |
3163 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3164 | // Invalid: StoreCond64 with numOperands = 5 |
3165 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3166 | // Invalid: StoreCond64 with numOperands = 6 |
3167 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3168 | // Invalid: StoreCondRel64 with numOperands = 0 |
3169 | |
3170 | // Invalid: StoreCondRel64 with numOperands = 1 |
3171 | INVALID_INST_FORM, |
3172 | // Invalid: StoreCondRel64 with numOperands = 2 |
3173 | INVALID_INST_FORM, INVALID_INST_FORM, |
3174 | // StoreCondRel64 U:G:64, D:G:64, EZD:G:8 |
3175 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Def, GP, Width64), ENCODE_INST_FORM(Arg::EarlyZDef, GP, Width8), |
3176 | // Invalid: StoreCondRel64 with numOperands = 4 |
3177 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3178 | // Invalid: StoreCondRel64 with numOperands = 5 |
3179 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3180 | // Invalid: StoreCondRel64 with numOperands = 6 |
3181 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3182 | // Invalid: Depend32 with numOperands = 0 |
3183 | |
3184 | // Invalid: Depend32 with numOperands = 1 |
3185 | INVALID_INST_FORM, |
3186 | // Depend32 U:G:32, ZD:G:32 |
3187 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3188 | // Invalid: Depend32 with numOperands = 3 |
3189 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3190 | // Invalid: Depend32 with numOperands = 4 |
3191 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3192 | // Invalid: Depend32 with numOperands = 5 |
3193 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3194 | // Invalid: Depend32 with numOperands = 6 |
3195 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3196 | // Invalid: Depend64 with numOperands = 0 |
3197 | |
3198 | // Invalid: Depend64 with numOperands = 1 |
3199 | INVALID_INST_FORM, |
3200 | // Depend64 U:G:64, ZD:G:64 |
3201 | ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
3202 | // Invalid: Depend64 with numOperands = 3 |
3203 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3204 | // Invalid: Depend64 with numOperands = 4 |
3205 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3206 | // Invalid: Depend64 with numOperands = 5 |
3207 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3208 | // Invalid: Depend64 with numOperands = 6 |
3209 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3210 | // Invalid: Compare32 with numOperands = 0 |
3211 | |
3212 | // Invalid: Compare32 with numOperands = 1 |
3213 | INVALID_INST_FORM, |
3214 | // Invalid: Compare32 with numOperands = 2 |
3215 | INVALID_INST_FORM, INVALID_INST_FORM, |
3216 | // Invalid: Compare32 with numOperands = 3 |
3217 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3218 | // Compare32 U:G:32, U:G:32, U:G:32, ZD:G:32 |
3219 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3220 | // Invalid: Compare32 with numOperands = 5 |
3221 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3222 | // Invalid: Compare32 with numOperands = 6 |
3223 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3224 | // Invalid: Compare64 with numOperands = 0 |
3225 | |
3226 | // Invalid: Compare64 with numOperands = 1 |
3227 | INVALID_INST_FORM, |
3228 | // Invalid: Compare64 with numOperands = 2 |
3229 | INVALID_INST_FORM, INVALID_INST_FORM, |
3230 | // Invalid: Compare64 with numOperands = 3 |
3231 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3232 | // Compare64 U:G:32, U:G:64, U:G:64, ZD:G:32 |
3233 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3234 | // Invalid: Compare64 with numOperands = 5 |
3235 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3236 | // Invalid: Compare64 with numOperands = 6 |
3237 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3238 | // Invalid: Test32 with numOperands = 0 |
3239 | |
3240 | // Invalid: Test32 with numOperands = 1 |
3241 | INVALID_INST_FORM, |
3242 | // Invalid: Test32 with numOperands = 2 |
3243 | INVALID_INST_FORM, INVALID_INST_FORM, |
3244 | // Invalid: Test32 with numOperands = 3 |
3245 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3246 | // Test32 U:G:32, U:G:32, U:G:32, ZD:G:32 |
3247 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3248 | // Invalid: Test32 with numOperands = 5 |
3249 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3250 | // Invalid: Test32 with numOperands = 6 |
3251 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3252 | // Invalid: Test64 with numOperands = 0 |
3253 | |
3254 | // Invalid: Test64 with numOperands = 1 |
3255 | INVALID_INST_FORM, |
3256 | // Invalid: Test64 with numOperands = 2 |
3257 | INVALID_INST_FORM, INVALID_INST_FORM, |
3258 | // Invalid: Test64 with numOperands = 3 |
3259 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3260 | // Test64 U:G:32, U:G:64, U:G:64, ZD:G:32 |
3261 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3262 | // Invalid: Test64 with numOperands = 5 |
3263 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3264 | // Invalid: Test64 with numOperands = 6 |
3265 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3266 | // Invalid: CompareDouble with numOperands = 0 |
3267 | |
3268 | // Invalid: CompareDouble with numOperands = 1 |
3269 | INVALID_INST_FORM, |
3270 | // Invalid: CompareDouble with numOperands = 2 |
3271 | INVALID_INST_FORM, INVALID_INST_FORM, |
3272 | // Invalid: CompareDouble with numOperands = 3 |
3273 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3274 | // CompareDouble U:G:32, U:F:64, U:F:64, ZD:G:32 |
3275 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3276 | // Invalid: CompareDouble with numOperands = 5 |
3277 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3278 | // Invalid: CompareDouble with numOperands = 6 |
3279 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3280 | // Invalid: CompareFloat with numOperands = 0 |
3281 | |
3282 | // Invalid: CompareFloat with numOperands = 1 |
3283 | INVALID_INST_FORM, |
3284 | // Invalid: CompareFloat with numOperands = 2 |
3285 | INVALID_INST_FORM, INVALID_INST_FORM, |
3286 | // Invalid: CompareFloat with numOperands = 3 |
3287 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3288 | // CompareFloat U:G:32, U:F:32, U:F:32, ZD:G:32 |
3289 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3290 | // Invalid: CompareFloat with numOperands = 5 |
3291 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3292 | // Invalid: CompareFloat with numOperands = 6 |
3293 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3294 | // Invalid: Branch8 with numOperands = 0 |
3295 | |
3296 | // Invalid: Branch8 with numOperands = 1 |
3297 | INVALID_INST_FORM, |
3298 | // Invalid: Branch8 with numOperands = 2 |
3299 | INVALID_INST_FORM, INVALID_INST_FORM, |
3300 | // Branch8 U:G:32, U:G:8, U:G:8 |
3301 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::Use, GP, Width8), |
3302 | // Invalid: Branch8 with numOperands = 4 |
3303 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3304 | // Invalid: Branch8 with numOperands = 5 |
3305 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3306 | // Invalid: Branch8 with numOperands = 6 |
3307 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3308 | // Invalid: Branch32 with numOperands = 0 |
3309 | |
3310 | // Invalid: Branch32 with numOperands = 1 |
3311 | INVALID_INST_FORM, |
3312 | // Invalid: Branch32 with numOperands = 2 |
3313 | INVALID_INST_FORM, INVALID_INST_FORM, |
3314 | // Branch32 U:G:32, U:G:32, U:G:32 |
3315 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), |
3316 | // Invalid: Branch32 with numOperands = 4 |
3317 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3318 | // Invalid: Branch32 with numOperands = 5 |
3319 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3320 | // Invalid: Branch32 with numOperands = 6 |
3321 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3322 | // Invalid: Branch64 with numOperands = 0 |
3323 | |
3324 | // Invalid: Branch64 with numOperands = 1 |
3325 | INVALID_INST_FORM, |
3326 | // Invalid: Branch64 with numOperands = 2 |
3327 | INVALID_INST_FORM, INVALID_INST_FORM, |
3328 | // Branch64 U:G:32, U:G:64, U:G:64 |
3329 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), |
3330 | // Invalid: Branch64 with numOperands = 4 |
3331 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3332 | // Invalid: Branch64 with numOperands = 5 |
3333 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3334 | // Invalid: Branch64 with numOperands = 6 |
3335 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3336 | // Invalid: BranchTest8 with numOperands = 0 |
3337 | |
3338 | // Invalid: BranchTest8 with numOperands = 1 |
3339 | INVALID_INST_FORM, |
3340 | // Invalid: BranchTest8 with numOperands = 2 |
3341 | INVALID_INST_FORM, INVALID_INST_FORM, |
3342 | // BranchTest8 U:G:32, U:G:8, U:G:8 |
3343 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width8), ENCODE_INST_FORM(Arg::Use, GP, Width8), |
3344 | // Invalid: BranchTest8 with numOperands = 4 |
3345 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3346 | // Invalid: BranchTest8 with numOperands = 5 |
3347 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3348 | // Invalid: BranchTest8 with numOperands = 6 |
3349 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3350 | // Invalid: BranchTest32 with numOperands = 0 |
3351 | |
3352 | // Invalid: BranchTest32 with numOperands = 1 |
3353 | INVALID_INST_FORM, |
3354 | // Invalid: BranchTest32 with numOperands = 2 |
3355 | INVALID_INST_FORM, INVALID_INST_FORM, |
3356 | // BranchTest32 U:G:32, U:G:32, U:G:32 |
3357 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), |
3358 | // Invalid: BranchTest32 with numOperands = 4 |
3359 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3360 | // Invalid: BranchTest32 with numOperands = 5 |
3361 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3362 | // Invalid: BranchTest32 with numOperands = 6 |
3363 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3364 | // Invalid: BranchTest64 with numOperands = 0 |
3365 | |
3366 | // Invalid: BranchTest64 with numOperands = 1 |
3367 | INVALID_INST_FORM, |
3368 | // Invalid: BranchTest64 with numOperands = 2 |
3369 | INVALID_INST_FORM, INVALID_INST_FORM, |
3370 | // BranchTest64 U:G:32, U:G:64, U:G:64 |
3371 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), |
3372 | // Invalid: BranchTest64 with numOperands = 4 |
3373 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3374 | // Invalid: BranchTest64 with numOperands = 5 |
3375 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3376 | // Invalid: BranchTest64 with numOperands = 6 |
3377 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3378 | // Invalid: BranchDouble with numOperands = 0 |
3379 | |
3380 | // Invalid: BranchDouble with numOperands = 1 |
3381 | INVALID_INST_FORM, |
3382 | // Invalid: BranchDouble with numOperands = 2 |
3383 | INVALID_INST_FORM, INVALID_INST_FORM, |
3384 | // BranchDouble U:G:32, U:F:64, U:F:64 |
3385 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), |
3386 | // Invalid: BranchDouble with numOperands = 4 |
3387 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3388 | // Invalid: BranchDouble with numOperands = 5 |
3389 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3390 | // Invalid: BranchDouble with numOperands = 6 |
3391 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3392 | // Invalid: BranchFloat with numOperands = 0 |
3393 | |
3394 | // Invalid: BranchFloat with numOperands = 1 |
3395 | INVALID_INST_FORM, |
3396 | // Invalid: BranchFloat with numOperands = 2 |
3397 | INVALID_INST_FORM, INVALID_INST_FORM, |
3398 | // BranchFloat U:G:32, U:F:32, U:F:32 |
3399 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), |
3400 | // Invalid: BranchFloat with numOperands = 4 |
3401 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3402 | // Invalid: BranchFloat with numOperands = 5 |
3403 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3404 | // Invalid: BranchFloat with numOperands = 6 |
3405 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3406 | // Invalid: BranchAdd32 with numOperands = 0 |
3407 | |
3408 | // Invalid: BranchAdd32 with numOperands = 1 |
3409 | INVALID_INST_FORM, |
3410 | // Invalid: BranchAdd32 with numOperands = 2 |
3411 | INVALID_INST_FORM, INVALID_INST_FORM, |
3412 | // BranchAdd32 U:G:32, U:G:32, UZD:G:32 |
3413 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
3414 | // BranchAdd32 U:G:32, U:G:32, U:G:32, ZD:G:32 |
3415 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3416 | // Invalid: BranchAdd32 with numOperands = 5 |
3417 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3418 | // Invalid: BranchAdd32 with numOperands = 6 |
3419 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3420 | // Invalid: BranchAdd64 with numOperands = 0 |
3421 | |
3422 | // Invalid: BranchAdd64 with numOperands = 1 |
3423 | INVALID_INST_FORM, |
3424 | // Invalid: BranchAdd64 with numOperands = 2 |
3425 | INVALID_INST_FORM, INVALID_INST_FORM, |
3426 | // BranchAdd64 U:G:32, U:G:64, UD:G:64 |
3427 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
3428 | // BranchAdd64 U:G:32, U:G:64, U:G:64, ZD:G:64 |
3429 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
3430 | // Invalid: BranchAdd64 with numOperands = 5 |
3431 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3432 | // Invalid: BranchAdd64 with numOperands = 6 |
3433 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3434 | // Invalid: BranchMul32 with numOperands = 0 |
3435 | |
3436 | // Invalid: BranchMul32 with numOperands = 1 |
3437 | INVALID_INST_FORM, |
3438 | // Invalid: BranchMul32 with numOperands = 2 |
3439 | INVALID_INST_FORM, INVALID_INST_FORM, |
3440 | // BranchMul32 U:G:32, U:G:32, UZD:G:32 |
3441 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
3442 | // BranchMul32 U:G:32, U:G:32, U:G:32, ZD:G:32 |
3443 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3444 | // Invalid: BranchMul32 with numOperands = 5 |
3445 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3446 | // BranchMul32 U:G:32, U:G:32, U:G:32, S:G:32, S:G:32, ZD:G:32 |
3447 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Scratch, GP, Width32), ENCODE_INST_FORM(Arg::Scratch, GP, Width32), ENCODE_INST_FORM(Arg::ZDef, GP, Width32), |
3448 | // Invalid: BranchMul64 with numOperands = 0 |
3449 | |
3450 | // Invalid: BranchMul64 with numOperands = 1 |
3451 | INVALID_INST_FORM, |
3452 | // Invalid: BranchMul64 with numOperands = 2 |
3453 | INVALID_INST_FORM, INVALID_INST_FORM, |
3454 | // BranchMul64 U:G:32, U:G:64, UZD:G:64 |
3455 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseZDef, GP, Width64), |
3456 | // Invalid: BranchMul64 with numOperands = 4 |
3457 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3458 | // Invalid: BranchMul64 with numOperands = 5 |
3459 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3460 | // BranchMul64 U:G:32, U:G:64, U:G:64, S:G:64, S:G:64, ZD:G:64 |
3461 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Scratch, GP, Width64), ENCODE_INST_FORM(Arg::Scratch, GP, Width64), ENCODE_INST_FORM(Arg::ZDef, GP, Width64), |
3462 | // Invalid: BranchSub32 with numOperands = 0 |
3463 | |
3464 | // Invalid: BranchSub32 with numOperands = 1 |
3465 | INVALID_INST_FORM, |
3466 | // Invalid: BranchSub32 with numOperands = 2 |
3467 | INVALID_INST_FORM, INVALID_INST_FORM, |
3468 | // BranchSub32 U:G:32, U:G:32, UZD:G:32 |
3469 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
3470 | // Invalid: BranchSub32 with numOperands = 4 |
3471 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3472 | // Invalid: BranchSub32 with numOperands = 5 |
3473 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3474 | // Invalid: BranchSub32 with numOperands = 6 |
3475 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3476 | // Invalid: BranchSub64 with numOperands = 0 |
3477 | |
3478 | // Invalid: BranchSub64 with numOperands = 1 |
3479 | INVALID_INST_FORM, |
3480 | // Invalid: BranchSub64 with numOperands = 2 |
3481 | INVALID_INST_FORM, INVALID_INST_FORM, |
3482 | // BranchSub64 U:G:32, U:G:64, UD:G:64 |
3483 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::UseDef, GP, Width64), |
3484 | // Invalid: BranchSub64 with numOperands = 4 |
3485 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3486 | // Invalid: BranchSub64 with numOperands = 5 |
3487 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3488 | // Invalid: BranchSub64 with numOperands = 6 |
3489 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3490 | // Invalid: BranchNeg32 with numOperands = 0 |
3491 | |
3492 | // Invalid: BranchNeg32 with numOperands = 1 |
3493 | INVALID_INST_FORM, |
3494 | // BranchNeg32 U:G:32, UZD:G:32 |
3495 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width32), |
3496 | // Invalid: BranchNeg32 with numOperands = 3 |
3497 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3498 | // Invalid: BranchNeg32 with numOperands = 4 |
3499 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3500 | // Invalid: BranchNeg32 with numOperands = 5 |
3501 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3502 | // Invalid: BranchNeg32 with numOperands = 6 |
3503 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3504 | // Invalid: BranchNeg64 with numOperands = 0 |
3505 | |
3506 | // Invalid: BranchNeg64 with numOperands = 1 |
3507 | INVALID_INST_FORM, |
3508 | // BranchNeg64 U:G:32, UZD:G:64 |
3509 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::UseZDef, GP, Width64), |
3510 | // Invalid: BranchNeg64 with numOperands = 3 |
3511 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3512 | // Invalid: BranchNeg64 with numOperands = 4 |
3513 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3514 | // Invalid: BranchNeg64 with numOperands = 5 |
3515 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3516 | // Invalid: BranchNeg64 with numOperands = 6 |
3517 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3518 | // Invalid: MoveConditionally32 with numOperands = 0 |
3519 | |
3520 | // Invalid: MoveConditionally32 with numOperands = 1 |
3521 | INVALID_INST_FORM, |
3522 | // Invalid: MoveConditionally32 with numOperands = 2 |
3523 | INVALID_INST_FORM, INVALID_INST_FORM, |
3524 | // Invalid: MoveConditionally32 with numOperands = 3 |
3525 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3526 | // Invalid: MoveConditionally32 with numOperands = 4 |
3527 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3528 | // MoveConditionally32 U:G:32, U:G:32, U:G:32, U:G:Ptr, UD:G:Ptr |
3529 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::UseDef, GP, POINTER_WIDTH), |
3530 | // MoveConditionally32 U:G:32, U:G:32, U:G:32, U:G:Ptr, U:G:Ptr, D:G:Ptr |
3531 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
3532 | // Invalid: MoveConditionally64 with numOperands = 0 |
3533 | |
3534 | // Invalid: MoveConditionally64 with numOperands = 1 |
3535 | INVALID_INST_FORM, |
3536 | // Invalid: MoveConditionally64 with numOperands = 2 |
3537 | INVALID_INST_FORM, INVALID_INST_FORM, |
3538 | // Invalid: MoveConditionally64 with numOperands = 3 |
3539 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3540 | // Invalid: MoveConditionally64 with numOperands = 4 |
3541 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3542 | // MoveConditionally64 U:G:32, U:G:64, U:G:64, U:G:Ptr, UD:G:Ptr |
3543 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::UseDef, GP, POINTER_WIDTH), |
3544 | // MoveConditionally64 U:G:32, U:G:64, U:G:64, U:G:Ptr, U:G:Ptr, D:G:Ptr |
3545 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
3546 | // Invalid: MoveConditionallyTest32 with numOperands = 0 |
3547 | |
3548 | // Invalid: MoveConditionallyTest32 with numOperands = 1 |
3549 | INVALID_INST_FORM, |
3550 | // Invalid: MoveConditionallyTest32 with numOperands = 2 |
3551 | INVALID_INST_FORM, INVALID_INST_FORM, |
3552 | // Invalid: MoveConditionallyTest32 with numOperands = 3 |
3553 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3554 | // Invalid: MoveConditionallyTest32 with numOperands = 4 |
3555 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3556 | // MoveConditionallyTest32 U:G:32, U:G:32, U:G:32, U:G:Ptr, UD:G:Ptr |
3557 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::UseDef, GP, POINTER_WIDTH), |
3558 | // MoveConditionallyTest32 U:G:32, U:G:32, U:G:32, U:G:Ptr, U:G:Ptr, D:G:Ptr |
3559 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
3560 | // Invalid: MoveConditionallyTest64 with numOperands = 0 |
3561 | |
3562 | // Invalid: MoveConditionallyTest64 with numOperands = 1 |
3563 | INVALID_INST_FORM, |
3564 | // Invalid: MoveConditionallyTest64 with numOperands = 2 |
3565 | INVALID_INST_FORM, INVALID_INST_FORM, |
3566 | // Invalid: MoveConditionallyTest64 with numOperands = 3 |
3567 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3568 | // Invalid: MoveConditionallyTest64 with numOperands = 4 |
3569 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3570 | // MoveConditionallyTest64 U:G:32, U:G:64, U:G:64, U:G:Ptr, UD:G:Ptr |
3571 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::UseDef, GP, POINTER_WIDTH), |
3572 | // MoveConditionallyTest64 U:G:32, U:G:32, U:G:32, U:G:Ptr, U:G:Ptr, D:G:Ptr |
3573 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
3574 | // Invalid: MoveConditionallyDouble with numOperands = 0 |
3575 | |
3576 | // Invalid: MoveConditionallyDouble with numOperands = 1 |
3577 | INVALID_INST_FORM, |
3578 | // Invalid: MoveConditionallyDouble with numOperands = 2 |
3579 | INVALID_INST_FORM, INVALID_INST_FORM, |
3580 | // Invalid: MoveConditionallyDouble with numOperands = 3 |
3581 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3582 | // Invalid: MoveConditionallyDouble with numOperands = 4 |
3583 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3584 | // MoveConditionallyDouble U:G:32, U:F:64, U:F:64, U:G:Ptr, UD:G:Ptr |
3585 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::UseDef, GP, POINTER_WIDTH), |
3586 | // MoveConditionallyDouble U:G:32, U:F:64, U:F:64, U:G:Ptr, U:G:Ptr, D:G:Ptr |
3587 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
3588 | // Invalid: MoveConditionallyFloat with numOperands = 0 |
3589 | |
3590 | // Invalid: MoveConditionallyFloat with numOperands = 1 |
3591 | INVALID_INST_FORM, |
3592 | // Invalid: MoveConditionallyFloat with numOperands = 2 |
3593 | INVALID_INST_FORM, INVALID_INST_FORM, |
3594 | // Invalid: MoveConditionallyFloat with numOperands = 3 |
3595 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3596 | // Invalid: MoveConditionallyFloat with numOperands = 4 |
3597 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3598 | // MoveConditionallyFloat U:G:32, U:F:32, U:F:32, U:G:Ptr, UD:G:Ptr |
3599 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::UseDef, GP, POINTER_WIDTH), |
3600 | // MoveConditionallyFloat U:G:32, U:F:32, U:F:32, U:G:Ptr, U:G:Ptr, D:G:Ptr |
3601 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Use, GP, POINTER_WIDTH), ENCODE_INST_FORM(Arg::Def, GP, POINTER_WIDTH), |
3602 | // Invalid: MoveDoubleConditionally32 with numOperands = 0 |
3603 | |
3604 | // Invalid: MoveDoubleConditionally32 with numOperands = 1 |
3605 | INVALID_INST_FORM, |
3606 | // Invalid: MoveDoubleConditionally32 with numOperands = 2 |
3607 | INVALID_INST_FORM, INVALID_INST_FORM, |
3608 | // Invalid: MoveDoubleConditionally32 with numOperands = 3 |
3609 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3610 | // Invalid: MoveDoubleConditionally32 with numOperands = 4 |
3611 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3612 | // Invalid: MoveDoubleConditionally32 with numOperands = 5 |
3613 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3614 | // MoveDoubleConditionally32 U:G:32, U:G:32, U:G:32, U:F:64, U:F:64, D:F:64 |
3615 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
3616 | // Invalid: MoveDoubleConditionally64 with numOperands = 0 |
3617 | |
3618 | // Invalid: MoveDoubleConditionally64 with numOperands = 1 |
3619 | INVALID_INST_FORM, |
3620 | // Invalid: MoveDoubleConditionally64 with numOperands = 2 |
3621 | INVALID_INST_FORM, INVALID_INST_FORM, |
3622 | // Invalid: MoveDoubleConditionally64 with numOperands = 3 |
3623 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3624 | // Invalid: MoveDoubleConditionally64 with numOperands = 4 |
3625 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3626 | // Invalid: MoveDoubleConditionally64 with numOperands = 5 |
3627 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3628 | // MoveDoubleConditionally64 U:G:32, U:G:64, U:G:64, U:F:64, U:F:64, D:F:64 |
3629 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
3630 | // Invalid: MoveDoubleConditionallyTest32 with numOperands = 0 |
3631 | |
3632 | // Invalid: MoveDoubleConditionallyTest32 with numOperands = 1 |
3633 | INVALID_INST_FORM, |
3634 | // Invalid: MoveDoubleConditionallyTest32 with numOperands = 2 |
3635 | INVALID_INST_FORM, INVALID_INST_FORM, |
3636 | // Invalid: MoveDoubleConditionallyTest32 with numOperands = 3 |
3637 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3638 | // Invalid: MoveDoubleConditionallyTest32 with numOperands = 4 |
3639 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3640 | // Invalid: MoveDoubleConditionallyTest32 with numOperands = 5 |
3641 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3642 | // MoveDoubleConditionallyTest32 U:G:32, U:G:32, U:G:32, U:F:64, U:F:64, D:F:64 |
3643 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
3644 | // Invalid: MoveDoubleConditionallyTest64 with numOperands = 0 |
3645 | |
3646 | // Invalid: MoveDoubleConditionallyTest64 with numOperands = 1 |
3647 | INVALID_INST_FORM, |
3648 | // Invalid: MoveDoubleConditionallyTest64 with numOperands = 2 |
3649 | INVALID_INST_FORM, INVALID_INST_FORM, |
3650 | // Invalid: MoveDoubleConditionallyTest64 with numOperands = 3 |
3651 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3652 | // Invalid: MoveDoubleConditionallyTest64 with numOperands = 4 |
3653 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3654 | // Invalid: MoveDoubleConditionallyTest64 with numOperands = 5 |
3655 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3656 | // MoveDoubleConditionallyTest64 U:G:32, U:G:64, U:G:64, U:F:64, U:F:64, D:F:64 |
3657 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, GP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
3658 | // Invalid: MoveDoubleConditionallyDouble with numOperands = 0 |
3659 | |
3660 | // Invalid: MoveDoubleConditionallyDouble with numOperands = 1 |
3661 | INVALID_INST_FORM, |
3662 | // Invalid: MoveDoubleConditionallyDouble with numOperands = 2 |
3663 | INVALID_INST_FORM, INVALID_INST_FORM, |
3664 | // Invalid: MoveDoubleConditionallyDouble with numOperands = 3 |
3665 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3666 | // Invalid: MoveDoubleConditionallyDouble with numOperands = 4 |
3667 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3668 | // Invalid: MoveDoubleConditionallyDouble with numOperands = 5 |
3669 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3670 | // MoveDoubleConditionallyDouble U:G:32, U:F:64, U:F:64, U:F:64, U:F:64, D:F:64 |
3671 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
3672 | // Invalid: MoveDoubleConditionallyFloat with numOperands = 0 |
3673 | |
3674 | // Invalid: MoveDoubleConditionallyFloat with numOperands = 1 |
3675 | INVALID_INST_FORM, |
3676 | // Invalid: MoveDoubleConditionallyFloat with numOperands = 2 |
3677 | INVALID_INST_FORM, INVALID_INST_FORM, |
3678 | // Invalid: MoveDoubleConditionallyFloat with numOperands = 3 |
3679 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3680 | // Invalid: MoveDoubleConditionallyFloat with numOperands = 4 |
3681 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3682 | // Invalid: MoveDoubleConditionallyFloat with numOperands = 5 |
3683 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3684 | // MoveDoubleConditionallyFloat U:G:32, U:F:32, U:F:32, U:F:64, U:F:64, D:F:64 |
3685 | ENCODE_INST_FORM(Arg::Use, GP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width32), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Use, FP, Width64), ENCODE_INST_FORM(Arg::Def, FP, Width64), |
3686 | // MemoryFence |
3687 | |
3688 | // Invalid: MemoryFence with numOperands = 1 |
3689 | INVALID_INST_FORM, |
3690 | // Invalid: MemoryFence with numOperands = 2 |
3691 | INVALID_INST_FORM, INVALID_INST_FORM, |
3692 | // Invalid: MemoryFence with numOperands = 3 |
3693 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3694 | // Invalid: MemoryFence with numOperands = 4 |
3695 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3696 | // Invalid: MemoryFence with numOperands = 5 |
3697 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3698 | // Invalid: MemoryFence with numOperands = 6 |
3699 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3700 | // StoreFence |
3701 | |
3702 | // Invalid: StoreFence with numOperands = 1 |
3703 | INVALID_INST_FORM, |
3704 | // Invalid: StoreFence with numOperands = 2 |
3705 | INVALID_INST_FORM, INVALID_INST_FORM, |
3706 | // Invalid: StoreFence with numOperands = 3 |
3707 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3708 | // Invalid: StoreFence with numOperands = 4 |
3709 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3710 | // Invalid: StoreFence with numOperands = 5 |
3711 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3712 | // Invalid: StoreFence with numOperands = 6 |
3713 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3714 | // LoadFence |
3715 | |
3716 | // Invalid: LoadFence with numOperands = 1 |
3717 | INVALID_INST_FORM, |
3718 | // Invalid: LoadFence with numOperands = 2 |
3719 | INVALID_INST_FORM, INVALID_INST_FORM, |
3720 | // Invalid: LoadFence with numOperands = 3 |
3721 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3722 | // Invalid: LoadFence with numOperands = 4 |
3723 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3724 | // Invalid: LoadFence with numOperands = 5 |
3725 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3726 | // Invalid: LoadFence with numOperands = 6 |
3727 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3728 | // Jump |
3729 | |
3730 | // Invalid: Jump with numOperands = 1 |
3731 | INVALID_INST_FORM, |
3732 | // Invalid: Jump with numOperands = 2 |
3733 | INVALID_INST_FORM, INVALID_INST_FORM, |
3734 | // Invalid: Jump with numOperands = 3 |
3735 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3736 | // Invalid: Jump with numOperands = 4 |
3737 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3738 | // Invalid: Jump with numOperands = 5 |
3739 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3740 | // Invalid: Jump with numOperands = 6 |
3741 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3742 | // RetVoid |
3743 | |
3744 | // Invalid: RetVoid with numOperands = 1 |
3745 | INVALID_INST_FORM, |
3746 | // Invalid: RetVoid with numOperands = 2 |
3747 | INVALID_INST_FORM, INVALID_INST_FORM, |
3748 | // Invalid: RetVoid with numOperands = 3 |
3749 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3750 | // Invalid: RetVoid with numOperands = 4 |
3751 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3752 | // Invalid: RetVoid with numOperands = 5 |
3753 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3754 | // Invalid: RetVoid with numOperands = 6 |
3755 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3756 | // Invalid: Ret32 with numOperands = 0 |
3757 | |
3758 | // Ret32 U:G:32 |
3759 | ENCODE_INST_FORM(Arg::Use, GP, Width32), |
3760 | // Invalid: Ret32 with numOperands = 2 |
3761 | INVALID_INST_FORM, INVALID_INST_FORM, |
3762 | // Invalid: Ret32 with numOperands = 3 |
3763 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3764 | // Invalid: Ret32 with numOperands = 4 |
3765 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3766 | // Invalid: Ret32 with numOperands = 5 |
3767 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3768 | // Invalid: Ret32 with numOperands = 6 |
3769 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3770 | // Invalid: Ret64 with numOperands = 0 |
3771 | |
3772 | // Ret64 U:G:64 |
3773 | ENCODE_INST_FORM(Arg::Use, GP, Width64), |
3774 | // Invalid: Ret64 with numOperands = 2 |
3775 | INVALID_INST_FORM, INVALID_INST_FORM, |
3776 | // Invalid: Ret64 with numOperands = 3 |
3777 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3778 | // Invalid: Ret64 with numOperands = 4 |
3779 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3780 | // Invalid: Ret64 with numOperands = 5 |
3781 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3782 | // Invalid: Ret64 with numOperands = 6 |
3783 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3784 | // Invalid: RetFloat with numOperands = 0 |
3785 | |
3786 | // RetFloat U:F:32 |
3787 | ENCODE_INST_FORM(Arg::Use, FP, Width32), |
3788 | // Invalid: RetFloat with numOperands = 2 |
3789 | INVALID_INST_FORM, INVALID_INST_FORM, |
3790 | // Invalid: RetFloat with numOperands = 3 |
3791 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3792 | // Invalid: RetFloat with numOperands = 4 |
3793 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3794 | // Invalid: RetFloat with numOperands = 5 |
3795 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3796 | // Invalid: RetFloat with numOperands = 6 |
3797 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3798 | // Invalid: RetDouble with numOperands = 0 |
3799 | |
3800 | // RetDouble U:F:64 |
3801 | ENCODE_INST_FORM(Arg::Use, FP, Width64), |
3802 | // Invalid: RetDouble with numOperands = 2 |
3803 | INVALID_INST_FORM, INVALID_INST_FORM, |
3804 | // Invalid: RetDouble with numOperands = 3 |
3805 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3806 | // Invalid: RetDouble with numOperands = 4 |
3807 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3808 | // Invalid: RetDouble with numOperands = 5 |
3809 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3810 | // Invalid: RetDouble with numOperands = 6 |
3811 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3812 | // Oops |
3813 | |
3814 | // Invalid: Oops with numOperands = 1 |
3815 | INVALID_INST_FORM, |
3816 | // Invalid: Oops with numOperands = 2 |
3817 | INVALID_INST_FORM, INVALID_INST_FORM, |
3818 | // Invalid: Oops with numOperands = 3 |
3819 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3820 | // Invalid: Oops with numOperands = 4 |
3821 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3822 | // Invalid: Oops with numOperands = 5 |
3823 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3824 | // Invalid: Oops with numOperands = 6 |
3825 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3826 | // Invalid: EntrySwitch with numOperands = 0 |
3827 | |
3828 | // Invalid: EntrySwitch with numOperands = 1 |
3829 | INVALID_INST_FORM, |
3830 | // Invalid: EntrySwitch with numOperands = 2 |
3831 | INVALID_INST_FORM, INVALID_INST_FORM, |
3832 | // Invalid: EntrySwitch with numOperands = 3 |
3833 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3834 | // Invalid: EntrySwitch with numOperands = 4 |
3835 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3836 | // Invalid: EntrySwitch with numOperands = 5 |
3837 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3838 | // Invalid: EntrySwitch with numOperands = 6 |
3839 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3840 | // Invalid: Shuffle with numOperands = 0 |
3841 | |
3842 | // Invalid: Shuffle with numOperands = 1 |
3843 | INVALID_INST_FORM, |
3844 | // Invalid: Shuffle with numOperands = 2 |
3845 | INVALID_INST_FORM, INVALID_INST_FORM, |
3846 | // Invalid: Shuffle with numOperands = 3 |
3847 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3848 | // Invalid: Shuffle with numOperands = 4 |
3849 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3850 | // Invalid: Shuffle with numOperands = 5 |
3851 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3852 | // Invalid: Shuffle with numOperands = 6 |
3853 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3854 | // Invalid: Patch with numOperands = 0 |
3855 | |
3856 | // Invalid: Patch with numOperands = 1 |
3857 | INVALID_INST_FORM, |
3858 | // Invalid: Patch with numOperands = 2 |
3859 | INVALID_INST_FORM, INVALID_INST_FORM, |
3860 | // Invalid: Patch with numOperands = 3 |
3861 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3862 | // Invalid: Patch with numOperands = 4 |
3863 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3864 | // Invalid: Patch with numOperands = 5 |
3865 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3866 | // Invalid: Patch with numOperands = 6 |
3867 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3868 | // Invalid: CCall with numOperands = 0 |
3869 | |
3870 | // Invalid: CCall with numOperands = 1 |
3871 | INVALID_INST_FORM, |
3872 | // Invalid: CCall with numOperands = 2 |
3873 | INVALID_INST_FORM, INVALID_INST_FORM, |
3874 | // Invalid: CCall with numOperands = 3 |
3875 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3876 | // Invalid: CCall with numOperands = 4 |
3877 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3878 | // Invalid: CCall with numOperands = 5 |
3879 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3880 | // Invalid: CCall with numOperands = 6 |
3881 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3882 | // Invalid: ColdCCall with numOperands = 0 |
3883 | |
3884 | // Invalid: ColdCCall with numOperands = 1 |
3885 | INVALID_INST_FORM, |
3886 | // Invalid: ColdCCall with numOperands = 2 |
3887 | INVALID_INST_FORM, INVALID_INST_FORM, |
3888 | // Invalid: ColdCCall with numOperands = 3 |
3889 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3890 | // Invalid: ColdCCall with numOperands = 4 |
3891 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3892 | // Invalid: ColdCCall with numOperands = 5 |
3893 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3894 | // Invalid: ColdCCall with numOperands = 6 |
3895 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3896 | // Invalid: WasmBoundsCheck with numOperands = 0 |
3897 | |
3898 | // Invalid: WasmBoundsCheck with numOperands = 1 |
3899 | INVALID_INST_FORM, |
3900 | // Invalid: WasmBoundsCheck with numOperands = 2 |
3901 | INVALID_INST_FORM, INVALID_INST_FORM, |
3902 | // Invalid: WasmBoundsCheck with numOperands = 3 |
3903 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3904 | // Invalid: WasmBoundsCheck with numOperands = 4 |
3905 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3906 | // Invalid: WasmBoundsCheck with numOperands = 5 |
3907 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3908 | // Invalid: WasmBoundsCheck with numOperands = 6 |
3909 | INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, INVALID_INST_FORM, |
3910 | }; |
3911 | void Inst::forEachArgCustom(ScopedLambda<EachArgCallback> lambda) |
3912 | { |
3913 | switch (kind.opcode) { |
3914 | case Opcode::EntrySwitch: |
3915 | EntrySwitchCustom::forEachArg(*this, lambda); |
3916 | break; |
3917 | case Opcode::Shuffle: |
3918 | ShuffleCustom::forEachArg(*this, lambda); |
3919 | break; |
3920 | case Opcode::Patch: |
3921 | PatchCustom::forEachArg(*this, lambda); |
3922 | break; |
3923 | case Opcode::CCall: |
3924 | CCallCustom::forEachArg(*this, lambda); |
3925 | break; |
3926 | case Opcode::ColdCCall: |
3927 | ColdCCallCustom::forEachArg(*this, lambda); |
3928 | break; |
3929 | case Opcode::WasmBoundsCheck: |
3930 | WasmBoundsCheckCustom::forEachArg(*this, lambda); |
3931 | break; |
3932 | default: |
3933 | dataLog("Bad call to forEachArgCustom, not custom opcode: " , kind, "\n" ); |
3934 | RELEASE_ASSERT_NOT_REACHED(); |
3935 | } |
3936 | } |
3937 | bool Inst::isValidForm() |
3938 | { |
3939 | switch (this->kind.opcode) { |
3940 | case Opcode::Nop: |
3941 | switch (this->args.size()) { |
3942 | case 0: |
3943 | OPGEN_RETURN(true); |
3944 | break; |
3945 | break; |
3946 | default: |
3947 | break; |
3948 | } |
3949 | break; |
3950 | case Opcode::Add32: |
3951 | switch (this->args.size()) { |
3952 | case 3: |
3953 | switch (this->args[0].kind()) { |
3954 | case Arg::Imm: |
3955 | switch (this->args[1].kind()) { |
3956 | case Arg::Tmp: |
3957 | switch (this->args[2].kind()) { |
3958 | case Arg::Tmp: |
3959 | if (!Arg::isValidImmForm(args[0].value())) |
3960 | OPGEN_RETURN(false); |
3961 | if (!args[1].tmp().isGP()) |
3962 | OPGEN_RETURN(false); |
3963 | if (!args[2].tmp().isGP()) |
3964 | OPGEN_RETURN(false); |
3965 | OPGEN_RETURN(true); |
3966 | break; |
3967 | break; |
3968 | default: |
3969 | break; |
3970 | } |
3971 | break; |
3972 | default: |
3973 | break; |
3974 | } |
3975 | break; |
3976 | case Arg::Tmp: |
3977 | switch (this->args[1].kind()) { |
3978 | case Arg::Tmp: |
3979 | switch (this->args[2].kind()) { |
3980 | case Arg::Tmp: |
3981 | if (!args[0].tmp().isGP()) |
3982 | OPGEN_RETURN(false); |
3983 | if (!args[1].tmp().isGP()) |
3984 | OPGEN_RETURN(false); |
3985 | if (!args[2].tmp().isGP()) |
3986 | OPGEN_RETURN(false); |
3987 | OPGEN_RETURN(true); |
3988 | break; |
3989 | break; |
3990 | default: |
3991 | break; |
3992 | } |
3993 | break; |
3994 | default: |
3995 | break; |
3996 | } |
3997 | break; |
3998 | default: |
3999 | break; |
4000 | } |
4001 | break; |
4002 | case 2: |
4003 | switch (this->args[0].kind()) { |
4004 | case Arg::Tmp: |
4005 | switch (this->args[1].kind()) { |
4006 | case Arg::Tmp: |
4007 | if (!args[0].tmp().isGP()) |
4008 | OPGEN_RETURN(false); |
4009 | if (!args[1].tmp().isGP()) |
4010 | OPGEN_RETURN(false); |
4011 | OPGEN_RETURN(true); |
4012 | break; |
4013 | break; |
4014 | case Arg::Addr: |
4015 | case Arg::Stack: |
4016 | case Arg::CallArg: |
4017 | #if CPU(X86) || CPU(X86_64) |
4018 | if (!args[0].tmp().isGP()) |
4019 | OPGEN_RETURN(false); |
4020 | if (!Arg::isValidAddrForm(args[1].offset())) |
4021 | OPGEN_RETURN(false); |
4022 | OPGEN_RETURN(true); |
4023 | #endif |
4024 | break; |
4025 | break; |
4026 | case Arg::Index: |
4027 | #if CPU(X86) || CPU(X86_64) |
4028 | if (!args[0].tmp().isGP()) |
4029 | OPGEN_RETURN(false); |
4030 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
4031 | OPGEN_RETURN(false); |
4032 | OPGEN_RETURN(true); |
4033 | #endif |
4034 | break; |
4035 | break; |
4036 | default: |
4037 | break; |
4038 | } |
4039 | break; |
4040 | case Arg::Imm: |
4041 | switch (this->args[1].kind()) { |
4042 | case Arg::Addr: |
4043 | case Arg::Stack: |
4044 | case Arg::CallArg: |
4045 | #if CPU(X86) || CPU(X86_64) |
4046 | if (!Arg::isValidImmForm(args[0].value())) |
4047 | OPGEN_RETURN(false); |
4048 | if (!Arg::isValidAddrForm(args[1].offset())) |
4049 | OPGEN_RETURN(false); |
4050 | OPGEN_RETURN(true); |
4051 | #endif |
4052 | break; |
4053 | break; |
4054 | case Arg::Index: |
4055 | #if CPU(X86) || CPU(X86_64) |
4056 | if (!Arg::isValidImmForm(args[0].value())) |
4057 | OPGEN_RETURN(false); |
4058 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
4059 | OPGEN_RETURN(false); |
4060 | OPGEN_RETURN(true); |
4061 | #endif |
4062 | break; |
4063 | break; |
4064 | case Arg::Tmp: |
4065 | if (!Arg::isValidImmForm(args[0].value())) |
4066 | OPGEN_RETURN(false); |
4067 | if (!args[1].tmp().isGP()) |
4068 | OPGEN_RETURN(false); |
4069 | OPGEN_RETURN(true); |
4070 | break; |
4071 | break; |
4072 | default: |
4073 | break; |
4074 | } |
4075 | break; |
4076 | case Arg::Addr: |
4077 | case Arg::Stack: |
4078 | case Arg::CallArg: |
4079 | switch (this->args[1].kind()) { |
4080 | case Arg::Tmp: |
4081 | #if CPU(X86) || CPU(X86_64) |
4082 | if (!Arg::isValidAddrForm(args[0].offset())) |
4083 | OPGEN_RETURN(false); |
4084 | if (!args[1].tmp().isGP()) |
4085 | OPGEN_RETURN(false); |
4086 | OPGEN_RETURN(true); |
4087 | #endif |
4088 | break; |
4089 | break; |
4090 | default: |
4091 | break; |
4092 | } |
4093 | break; |
4094 | case Arg::Index: |
4095 | switch (this->args[1].kind()) { |
4096 | case Arg::Tmp: |
4097 | #if CPU(X86) || CPU(X86_64) |
4098 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
4099 | OPGEN_RETURN(false); |
4100 | if (!args[1].tmp().isGP()) |
4101 | OPGEN_RETURN(false); |
4102 | OPGEN_RETURN(true); |
4103 | #endif |
4104 | break; |
4105 | break; |
4106 | default: |
4107 | break; |
4108 | } |
4109 | break; |
4110 | default: |
4111 | break; |
4112 | } |
4113 | break; |
4114 | default: |
4115 | break; |
4116 | } |
4117 | break; |
4118 | case Opcode::Add8: |
4119 | switch (this->args.size()) { |
4120 | case 2: |
4121 | switch (this->args[0].kind()) { |
4122 | case Arg::Imm: |
4123 | switch (this->args[1].kind()) { |
4124 | case Arg::Addr: |
4125 | case Arg::Stack: |
4126 | case Arg::CallArg: |
4127 | #if CPU(X86) || CPU(X86_64) |
4128 | if (!Arg::isValidImmForm(args[0].value())) |
4129 | OPGEN_RETURN(false); |
4130 | if (!Arg::isValidAddrForm(args[1].offset())) |
4131 | OPGEN_RETURN(false); |
4132 | OPGEN_RETURN(true); |
4133 | #endif |
4134 | break; |
4135 | break; |
4136 | case Arg::Index: |
4137 | #if CPU(X86) || CPU(X86_64) |
4138 | if (!Arg::isValidImmForm(args[0].value())) |
4139 | OPGEN_RETURN(false); |
4140 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
4141 | OPGEN_RETURN(false); |
4142 | OPGEN_RETURN(true); |
4143 | #endif |
4144 | break; |
4145 | break; |
4146 | default: |
4147 | break; |
4148 | } |
4149 | break; |
4150 | case Arg::Tmp: |
4151 | switch (this->args[1].kind()) { |
4152 | case Arg::Addr: |
4153 | case Arg::Stack: |
4154 | case Arg::CallArg: |
4155 | #if CPU(X86) || CPU(X86_64) |
4156 | if (!args[0].tmp().isGP()) |
4157 | OPGEN_RETURN(false); |
4158 | if (!Arg::isValidAddrForm(args[1].offset())) |
4159 | OPGEN_RETURN(false); |
4160 | OPGEN_RETURN(true); |
4161 | #endif |
4162 | break; |
4163 | break; |
4164 | case Arg::Index: |
4165 | #if CPU(X86) || CPU(X86_64) |
4166 | if (!args[0].tmp().isGP()) |
4167 | OPGEN_RETURN(false); |
4168 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
4169 | OPGEN_RETURN(false); |
4170 | OPGEN_RETURN(true); |
4171 | #endif |
4172 | break; |
4173 | break; |
4174 | default: |
4175 | break; |
4176 | } |
4177 | break; |
4178 | default: |
4179 | break; |
4180 | } |
4181 | break; |
4182 | default: |
4183 | break; |
4184 | } |
4185 | break; |
4186 | case Opcode::Add16: |
4187 | switch (this->args.size()) { |
4188 | case 2: |
4189 | switch (this->args[0].kind()) { |
4190 | case Arg::Imm: |
4191 | switch (this->args[1].kind()) { |
4192 | case Arg::Addr: |
4193 | case Arg::Stack: |
4194 | case Arg::CallArg: |
4195 | #if CPU(X86) || CPU(X86_64) |
4196 | if (!Arg::isValidImmForm(args[0].value())) |
4197 | OPGEN_RETURN(false); |
4198 | if (!Arg::isValidAddrForm(args[1].offset())) |
4199 | OPGEN_RETURN(false); |
4200 | OPGEN_RETURN(true); |
4201 | #endif |
4202 | break; |
4203 | break; |
4204 | case Arg::Index: |
4205 | #if CPU(X86) || CPU(X86_64) |
4206 | if (!Arg::isValidImmForm(args[0].value())) |
4207 | OPGEN_RETURN(false); |
4208 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
4209 | OPGEN_RETURN(false); |
4210 | OPGEN_RETURN(true); |
4211 | #endif |
4212 | break; |
4213 | break; |
4214 | default: |
4215 | break; |
4216 | } |
4217 | break; |
4218 | case Arg::Tmp: |
4219 | switch (this->args[1].kind()) { |
4220 | case Arg::Addr: |
4221 | case Arg::Stack: |
4222 | case Arg::CallArg: |
4223 | #if CPU(X86) || CPU(X86_64) |
4224 | if (!args[0].tmp().isGP()) |
4225 | OPGEN_RETURN(false); |
4226 | if (!Arg::isValidAddrForm(args[1].offset())) |
4227 | OPGEN_RETURN(false); |
4228 | OPGEN_RETURN(true); |
4229 | #endif |
4230 | break; |
4231 | break; |
4232 | case Arg::Index: |
4233 | #if CPU(X86) || CPU(X86_64) |
4234 | if (!args[0].tmp().isGP()) |
4235 | OPGEN_RETURN(false); |
4236 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
4237 | OPGEN_RETURN(false); |
4238 | OPGEN_RETURN(true); |
4239 | #endif |
4240 | break; |
4241 | break; |
4242 | default: |
4243 | break; |
4244 | } |
4245 | break; |
4246 | default: |
4247 | break; |
4248 | } |
4249 | break; |
4250 | default: |
4251 | break; |
4252 | } |
4253 | break; |
4254 | case Opcode::Add64: |
4255 | switch (this->args.size()) { |
4256 | case 2: |
4257 | switch (this->args[0].kind()) { |
4258 | case Arg::Tmp: |
4259 | switch (this->args[1].kind()) { |
4260 | case Arg::Tmp: |
4261 | #if CPU(X86_64) || CPU(ARM64) |
4262 | if (!args[0].tmp().isGP()) |
4263 | OPGEN_RETURN(false); |
4264 | if (!args[1].tmp().isGP()) |
4265 | OPGEN_RETURN(false); |
4266 | OPGEN_RETURN(true); |
4267 | #endif |
4268 | break; |
4269 | break; |
4270 | case Arg::Addr: |
4271 | case Arg::Stack: |
4272 | case Arg::CallArg: |
4273 | #if CPU(X86_64) |
4274 | if (!args[0].tmp().isGP()) |
4275 | OPGEN_RETURN(false); |
4276 | if (!Arg::isValidAddrForm(args[1].offset())) |
4277 | OPGEN_RETURN(false); |
4278 | OPGEN_RETURN(true); |
4279 | #endif |
4280 | break; |
4281 | break; |
4282 | case Arg::Index: |
4283 | #if CPU(X86_64) |
4284 | if (!args[0].tmp().isGP()) |
4285 | OPGEN_RETURN(false); |
4286 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
4287 | OPGEN_RETURN(false); |
4288 | OPGEN_RETURN(true); |
4289 | #endif |
4290 | break; |
4291 | break; |
4292 | default: |
4293 | break; |
4294 | } |
4295 | break; |
4296 | case Arg::Imm: |
4297 | switch (this->args[1].kind()) { |
4298 | case Arg::Addr: |
4299 | case Arg::Stack: |
4300 | case Arg::CallArg: |
4301 | #if CPU(X86_64) |
4302 | if (!Arg::isValidImmForm(args[0].value())) |
4303 | OPGEN_RETURN(false); |
4304 | if (!Arg::isValidAddrForm(args[1].offset())) |
4305 | OPGEN_RETURN(false); |
4306 | OPGEN_RETURN(true); |
4307 | #endif |
4308 | break; |
4309 | break; |
4310 | case Arg::Index: |
4311 | #if CPU(X86_64) |
4312 | if (!Arg::isValidImmForm(args[0].value())) |
4313 | OPGEN_RETURN(false); |
4314 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
4315 | OPGEN_RETURN(false); |
4316 | OPGEN_RETURN(true); |
4317 | #endif |
4318 | break; |
4319 | break; |
4320 | case Arg::Tmp: |
4321 | #if CPU(X86_64) || CPU(ARM64) |
4322 | if (!Arg::isValidImmForm(args[0].value())) |
4323 | OPGEN_RETURN(false); |
4324 | if (!args[1].tmp().isGP()) |
4325 | OPGEN_RETURN(false); |
4326 | OPGEN_RETURN(true); |
4327 | #endif |
4328 | break; |
4329 | break; |
4330 | default: |
4331 | break; |
4332 | } |
4333 | break; |
4334 | case Arg::Addr: |
4335 | case Arg::Stack: |
4336 | case Arg::CallArg: |
4337 | switch (this->args[1].kind()) { |
4338 | case Arg::Tmp: |
4339 | #if CPU(X86_64) |
4340 | if (!Arg::isValidAddrForm(args[0].offset())) |
4341 | OPGEN_RETURN(false); |
4342 | if (!args[1].tmp().isGP()) |
4343 | OPGEN_RETURN(false); |
4344 | OPGEN_RETURN(true); |
4345 | #endif |
4346 | break; |
4347 | break; |
4348 | default: |
4349 | break; |
4350 | } |
4351 | break; |
4352 | case Arg::Index: |
4353 | switch (this->args[1].kind()) { |
4354 | case Arg::Tmp: |
4355 | #if CPU(X86_64) |
4356 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
4357 | OPGEN_RETURN(false); |
4358 | if (!args[1].tmp().isGP()) |
4359 | OPGEN_RETURN(false); |
4360 | OPGEN_RETURN(true); |
4361 | #endif |
4362 | break; |
4363 | break; |
4364 | default: |
4365 | break; |
4366 | } |
4367 | break; |
4368 | default: |
4369 | break; |
4370 | } |
4371 | break; |
4372 | case 3: |
4373 | switch (this->args[0].kind()) { |
4374 | case Arg::Imm: |
4375 | switch (this->args[1].kind()) { |
4376 | case Arg::Tmp: |
4377 | switch (this->args[2].kind()) { |
4378 | case Arg::Tmp: |
4379 | #if CPU(X86_64) || CPU(ARM64) |
4380 | if (!Arg::isValidImmForm(args[0].value())) |
4381 | OPGEN_RETURN(false); |
4382 | if (!args[1].tmp().isGP()) |
4383 | OPGEN_RETURN(false); |
4384 | if (!args[2].tmp().isGP()) |
4385 | OPGEN_RETURN(false); |
4386 | OPGEN_RETURN(true); |
4387 | #endif |
4388 | break; |
4389 | break; |
4390 | default: |
4391 | break; |
4392 | } |
4393 | break; |
4394 | default: |
4395 | break; |
4396 | } |
4397 | break; |
4398 | case Arg::Tmp: |
4399 | switch (this->args[1].kind()) { |
4400 | case Arg::Tmp: |
4401 | switch (this->args[2].kind()) { |
4402 | case Arg::Tmp: |
4403 | #if CPU(X86_64) || CPU(ARM64) |
4404 | if (!args[0].tmp().isGP()) |
4405 | OPGEN_RETURN(false); |
4406 | if (!args[1].tmp().isGP()) |
4407 | OPGEN_RETURN(false); |
4408 | if (!args[2].tmp().isGP()) |
4409 | OPGEN_RETURN(false); |
4410 | OPGEN_RETURN(true); |
4411 | #endif |
4412 | break; |
4413 | break; |
4414 | default: |
4415 | break; |
4416 | } |
4417 | break; |
4418 | default: |
4419 | break; |
4420 | } |
4421 | break; |
4422 | default: |
4423 | break; |
4424 | } |
4425 | break; |
4426 | default: |
4427 | break; |
4428 | } |
4429 | break; |
4430 | case Opcode::AddDouble: |
4431 | switch (this->args.size()) { |
4432 | case 3: |
4433 | switch (this->args[0].kind()) { |
4434 | case Arg::Tmp: |
4435 | switch (this->args[1].kind()) { |
4436 | case Arg::Tmp: |
4437 | switch (this->args[2].kind()) { |
4438 | case Arg::Tmp: |
4439 | if (!args[0].tmp().isFP()) |
4440 | OPGEN_RETURN(false); |
4441 | if (!args[1].tmp().isFP()) |
4442 | OPGEN_RETURN(false); |
4443 | if (!args[2].tmp().isFP()) |
4444 | OPGEN_RETURN(false); |
4445 | OPGEN_RETURN(true); |
4446 | break; |
4447 | break; |
4448 | default: |
4449 | break; |
4450 | } |
4451 | break; |
4452 | case Arg::Addr: |
4453 | case Arg::Stack: |
4454 | case Arg::CallArg: |
4455 | switch (this->args[2].kind()) { |
4456 | case Arg::Tmp: |
4457 | #if CPU(X86) || CPU(X86_64) |
4458 | if (!args[0].tmp().isFP()) |
4459 | OPGEN_RETURN(false); |
4460 | if (!Arg::isValidAddrForm(args[1].offset())) |
4461 | OPGEN_RETURN(false); |
4462 | if (!args[2].tmp().isFP()) |
4463 | OPGEN_RETURN(false); |
4464 | OPGEN_RETURN(true); |
4465 | #endif |
4466 | break; |
4467 | break; |
4468 | default: |
4469 | break; |
4470 | } |
4471 | break; |
4472 | default: |
4473 | break; |
4474 | } |
4475 | break; |
4476 | case Arg::Addr: |
4477 | case Arg::Stack: |
4478 | case Arg::CallArg: |
4479 | switch (this->args[1].kind()) { |
4480 | case Arg::Tmp: |
4481 | switch (this->args[2].kind()) { |
4482 | case Arg::Tmp: |
4483 | #if CPU(X86) || CPU(X86_64) |
4484 | if (!Arg::isValidAddrForm(args[0].offset())) |
4485 | OPGEN_RETURN(false); |
4486 | if (!args[1].tmp().isFP()) |
4487 | OPGEN_RETURN(false); |
4488 | if (!args[2].tmp().isFP()) |
4489 | OPGEN_RETURN(false); |
4490 | OPGEN_RETURN(true); |
4491 | #endif |
4492 | break; |
4493 | break; |
4494 | default: |
4495 | break; |
4496 | } |
4497 | break; |
4498 | default: |
4499 | break; |
4500 | } |
4501 | break; |
4502 | case Arg::Index: |
4503 | switch (this->args[1].kind()) { |
4504 | case Arg::Tmp: |
4505 | switch (this->args[2].kind()) { |
4506 | case Arg::Tmp: |
4507 | #if CPU(X86) || CPU(X86_64) |
4508 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
4509 | OPGEN_RETURN(false); |
4510 | if (!args[1].tmp().isFP()) |
4511 | OPGEN_RETURN(false); |
4512 | if (!args[2].tmp().isFP()) |
4513 | OPGEN_RETURN(false); |
4514 | OPGEN_RETURN(true); |
4515 | #endif |
4516 | break; |
4517 | break; |
4518 | default: |
4519 | break; |
4520 | } |
4521 | break; |
4522 | default: |
4523 | break; |
4524 | } |
4525 | break; |
4526 | default: |
4527 | break; |
4528 | } |
4529 | break; |
4530 | case 2: |
4531 | switch (this->args[0].kind()) { |
4532 | case Arg::Tmp: |
4533 | switch (this->args[1].kind()) { |
4534 | case Arg::Tmp: |
4535 | #if CPU(X86) || CPU(X86_64) |
4536 | if (!args[0].tmp().isFP()) |
4537 | OPGEN_RETURN(false); |
4538 | if (!args[1].tmp().isFP()) |
4539 | OPGEN_RETURN(false); |
4540 | OPGEN_RETURN(true); |
4541 | #endif |
4542 | break; |
4543 | break; |
4544 | default: |
4545 | break; |
4546 | } |
4547 | break; |
4548 | case Arg::Addr: |
4549 | case Arg::Stack: |
4550 | case Arg::CallArg: |
4551 | switch (this->args[1].kind()) { |
4552 | case Arg::Tmp: |
4553 | #if CPU(X86) || CPU(X86_64) |
4554 | if (!Arg::isValidAddrForm(args[0].offset())) |
4555 | OPGEN_RETURN(false); |
4556 | if (!args[1].tmp().isFP()) |
4557 | OPGEN_RETURN(false); |
4558 | OPGEN_RETURN(true); |
4559 | #endif |
4560 | break; |
4561 | break; |
4562 | default: |
4563 | break; |
4564 | } |
4565 | break; |
4566 | default: |
4567 | break; |
4568 | } |
4569 | break; |
4570 | default: |
4571 | break; |
4572 | } |
4573 | break; |
4574 | case Opcode::AddFloat: |
4575 | switch (this->args.size()) { |
4576 | case 3: |
4577 | switch (this->args[0].kind()) { |
4578 | case Arg::Tmp: |
4579 | switch (this->args[1].kind()) { |
4580 | case Arg::Tmp: |
4581 | switch (this->args[2].kind()) { |
4582 | case Arg::Tmp: |
4583 | if (!args[0].tmp().isFP()) |
4584 | OPGEN_RETURN(false); |
4585 | if (!args[1].tmp().isFP()) |
4586 | OPGEN_RETURN(false); |
4587 | if (!args[2].tmp().isFP()) |
4588 | OPGEN_RETURN(false); |
4589 | OPGEN_RETURN(true); |
4590 | break; |
4591 | break; |
4592 | default: |
4593 | break; |
4594 | } |
4595 | break; |
4596 | case Arg::Addr: |
4597 | case Arg::Stack: |
4598 | case Arg::CallArg: |
4599 | switch (this->args[2].kind()) { |
4600 | case Arg::Tmp: |
4601 | #if CPU(X86) || CPU(X86_64) |
4602 | if (!args[0].tmp().isFP()) |
4603 | OPGEN_RETURN(false); |
4604 | if (!Arg::isValidAddrForm(args[1].offset())) |
4605 | OPGEN_RETURN(false); |
4606 | if (!args[2].tmp().isFP()) |
4607 | OPGEN_RETURN(false); |
4608 | OPGEN_RETURN(true); |
4609 | #endif |
4610 | break; |
4611 | break; |
4612 | default: |
4613 | break; |
4614 | } |
4615 | break; |
4616 | default: |
4617 | break; |
4618 | } |
4619 | break; |
4620 | case Arg::Addr: |
4621 | case Arg::Stack: |
4622 | case Arg::CallArg: |
4623 | switch (this->args[1].kind()) { |
4624 | case Arg::Tmp: |
4625 | switch (this->args[2].kind()) { |
4626 | case Arg::Tmp: |
4627 | #if CPU(X86) || CPU(X86_64) |
4628 | if (!Arg::isValidAddrForm(args[0].offset())) |
4629 | OPGEN_RETURN(false); |
4630 | if (!args[1].tmp().isFP()) |
4631 | OPGEN_RETURN(false); |
4632 | if (!args[2].tmp().isFP()) |
4633 | OPGEN_RETURN(false); |
4634 | OPGEN_RETURN(true); |
4635 | #endif |
4636 | break; |
4637 | break; |
4638 | default: |
4639 | break; |
4640 | } |
4641 | break; |
4642 | default: |
4643 | break; |
4644 | } |
4645 | break; |
4646 | case Arg::Index: |
4647 | switch (this->args[1].kind()) { |
4648 | case Arg::Tmp: |
4649 | switch (this->args[2].kind()) { |
4650 | case Arg::Tmp: |
4651 | #if CPU(X86) || CPU(X86_64) |
4652 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
4653 | OPGEN_RETURN(false); |
4654 | if (!args[1].tmp().isFP()) |
4655 | OPGEN_RETURN(false); |
4656 | if (!args[2].tmp().isFP()) |
4657 | OPGEN_RETURN(false); |
4658 | OPGEN_RETURN(true); |
4659 | #endif |
4660 | break; |
4661 | break; |
4662 | default: |
4663 | break; |
4664 | } |
4665 | break; |
4666 | default: |
4667 | break; |
4668 | } |
4669 | break; |
4670 | default: |
4671 | break; |
4672 | } |
4673 | break; |
4674 | case 2: |
4675 | switch (this->args[0].kind()) { |
4676 | case Arg::Tmp: |
4677 | switch (this->args[1].kind()) { |
4678 | case Arg::Tmp: |
4679 | #if CPU(X86) || CPU(X86_64) |
4680 | if (!args[0].tmp().isFP()) |
4681 | OPGEN_RETURN(false); |
4682 | if (!args[1].tmp().isFP()) |
4683 | OPGEN_RETURN(false); |
4684 | OPGEN_RETURN(true); |
4685 | #endif |
4686 | break; |
4687 | break; |
4688 | default: |
4689 | break; |
4690 | } |
4691 | break; |
4692 | case Arg::Addr: |
4693 | case Arg::Stack: |
4694 | case Arg::CallArg: |
4695 | switch (this->args[1].kind()) { |
4696 | case Arg::Tmp: |
4697 | #if CPU(X86) || CPU(X86_64) |
4698 | if (!Arg::isValidAddrForm(args[0].offset())) |
4699 | OPGEN_RETURN(false); |
4700 | if (!args[1].tmp().isFP()) |
4701 | OPGEN_RETURN(false); |
4702 | OPGEN_RETURN(true); |
4703 | #endif |
4704 | break; |
4705 | break; |
4706 | default: |
4707 | break; |
4708 | } |
4709 | break; |
4710 | default: |
4711 | break; |
4712 | } |
4713 | break; |
4714 | default: |
4715 | break; |
4716 | } |
4717 | break; |
4718 | case Opcode::Sub32: |
4719 | switch (this->args.size()) { |
4720 | case 2: |
4721 | switch (this->args[0].kind()) { |
4722 | case Arg::Tmp: |
4723 | switch (this->args[1].kind()) { |
4724 | case Arg::Tmp: |
4725 | if (!args[0].tmp().isGP()) |
4726 | OPGEN_RETURN(false); |
4727 | if (!args[1].tmp().isGP()) |
4728 | OPGEN_RETURN(false); |
4729 | OPGEN_RETURN(true); |
4730 | break; |
4731 | break; |
4732 | case Arg::Addr: |
4733 | case Arg::Stack: |
4734 | case Arg::CallArg: |
4735 | #if CPU(X86) || CPU(X86_64) |
4736 | if (!args[0].tmp().isGP()) |
4737 | OPGEN_RETURN(false); |
4738 | if (!Arg::isValidAddrForm(args[1].offset())) |
4739 | OPGEN_RETURN(false); |
4740 | OPGEN_RETURN(true); |
4741 | #endif |
4742 | break; |
4743 | break; |
4744 | case Arg::Index: |
4745 | #if CPU(X86) || CPU(X86_64) |
4746 | if (!args[0].tmp().isGP()) |
4747 | OPGEN_RETURN(false); |
4748 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
4749 | OPGEN_RETURN(false); |
4750 | OPGEN_RETURN(true); |
4751 | #endif |
4752 | break; |
4753 | break; |
4754 | default: |
4755 | break; |
4756 | } |
4757 | break; |
4758 | case Arg::Imm: |
4759 | switch (this->args[1].kind()) { |
4760 | case Arg::Addr: |
4761 | case Arg::Stack: |
4762 | case Arg::CallArg: |
4763 | #if CPU(X86) || CPU(X86_64) |
4764 | if (!Arg::isValidImmForm(args[0].value())) |
4765 | OPGEN_RETURN(false); |
4766 | if (!Arg::isValidAddrForm(args[1].offset())) |
4767 | OPGEN_RETURN(false); |
4768 | OPGEN_RETURN(true); |
4769 | #endif |
4770 | break; |
4771 | break; |
4772 | case Arg::Index: |
4773 | #if CPU(X86) || CPU(X86_64) |
4774 | if (!Arg::isValidImmForm(args[0].value())) |
4775 | OPGEN_RETURN(false); |
4776 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
4777 | OPGEN_RETURN(false); |
4778 | OPGEN_RETURN(true); |
4779 | #endif |
4780 | break; |
4781 | break; |
4782 | case Arg::Tmp: |
4783 | if (!Arg::isValidImmForm(args[0].value())) |
4784 | OPGEN_RETURN(false); |
4785 | if (!args[1].tmp().isGP()) |
4786 | OPGEN_RETURN(false); |
4787 | OPGEN_RETURN(true); |
4788 | break; |
4789 | break; |
4790 | default: |
4791 | break; |
4792 | } |
4793 | break; |
4794 | case Arg::Addr: |
4795 | case Arg::Stack: |
4796 | case Arg::CallArg: |
4797 | switch (this->args[1].kind()) { |
4798 | case Arg::Tmp: |
4799 | #if CPU(X86) || CPU(X86_64) |
4800 | if (!Arg::isValidAddrForm(args[0].offset())) |
4801 | OPGEN_RETURN(false); |
4802 | if (!args[1].tmp().isGP()) |
4803 | OPGEN_RETURN(false); |
4804 | OPGEN_RETURN(true); |
4805 | #endif |
4806 | break; |
4807 | break; |
4808 | default: |
4809 | break; |
4810 | } |
4811 | break; |
4812 | case Arg::Index: |
4813 | switch (this->args[1].kind()) { |
4814 | case Arg::Tmp: |
4815 | #if CPU(X86) || CPU(X86_64) |
4816 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
4817 | OPGEN_RETURN(false); |
4818 | if (!args[1].tmp().isGP()) |
4819 | OPGEN_RETURN(false); |
4820 | OPGEN_RETURN(true); |
4821 | #endif |
4822 | break; |
4823 | break; |
4824 | default: |
4825 | break; |
4826 | } |
4827 | break; |
4828 | default: |
4829 | break; |
4830 | } |
4831 | break; |
4832 | case 3: |
4833 | switch (this->args[0].kind()) { |
4834 | case Arg::Tmp: |
4835 | switch (this->args[1].kind()) { |
4836 | case Arg::Tmp: |
4837 | switch (this->args[2].kind()) { |
4838 | case Arg::Tmp: |
4839 | #if CPU(ARM64) |
4840 | if (!args[0].tmp().isGP()) |
4841 | OPGEN_RETURN(false); |
4842 | if (!args[1].tmp().isGP()) |
4843 | OPGEN_RETURN(false); |
4844 | if (!args[2].tmp().isGP()) |
4845 | OPGEN_RETURN(false); |
4846 | OPGEN_RETURN(true); |
4847 | #endif |
4848 | break; |
4849 | break; |
4850 | default: |
4851 | break; |
4852 | } |
4853 | break; |
4854 | default: |
4855 | break; |
4856 | } |
4857 | break; |
4858 | default: |
4859 | break; |
4860 | } |
4861 | break; |
4862 | default: |
4863 | break; |
4864 | } |
4865 | break; |
4866 | case Opcode::Sub64: |
4867 | switch (this->args.size()) { |
4868 | case 2: |
4869 | switch (this->args[0].kind()) { |
4870 | case Arg::Tmp: |
4871 | switch (this->args[1].kind()) { |
4872 | case Arg::Tmp: |
4873 | #if CPU(X86_64) || CPU(ARM64) |
4874 | if (!args[0].tmp().isGP()) |
4875 | OPGEN_RETURN(false); |
4876 | if (!args[1].tmp().isGP()) |
4877 | OPGEN_RETURN(false); |
4878 | OPGEN_RETURN(true); |
4879 | #endif |
4880 | break; |
4881 | break; |
4882 | case Arg::Addr: |
4883 | case Arg::Stack: |
4884 | case Arg::CallArg: |
4885 | #if CPU(X86_64) |
4886 | if (!args[0].tmp().isGP()) |
4887 | OPGEN_RETURN(false); |
4888 | if (!Arg::isValidAddrForm(args[1].offset())) |
4889 | OPGEN_RETURN(false); |
4890 | OPGEN_RETURN(true); |
4891 | #endif |
4892 | break; |
4893 | break; |
4894 | case Arg::Index: |
4895 | #if CPU(X86_64) |
4896 | if (!args[0].tmp().isGP()) |
4897 | OPGEN_RETURN(false); |
4898 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
4899 | OPGEN_RETURN(false); |
4900 | OPGEN_RETURN(true); |
4901 | #endif |
4902 | break; |
4903 | break; |
4904 | default: |
4905 | break; |
4906 | } |
4907 | break; |
4908 | case Arg::Imm: |
4909 | switch (this->args[1].kind()) { |
4910 | case Arg::Addr: |
4911 | case Arg::Stack: |
4912 | case Arg::CallArg: |
4913 | #if CPU(X86_64) |
4914 | if (!Arg::isValidImmForm(args[0].value())) |
4915 | OPGEN_RETURN(false); |
4916 | if (!Arg::isValidAddrForm(args[1].offset())) |
4917 | OPGEN_RETURN(false); |
4918 | OPGEN_RETURN(true); |
4919 | #endif |
4920 | break; |
4921 | break; |
4922 | case Arg::Index: |
4923 | #if CPU(X86_64) |
4924 | if (!Arg::isValidImmForm(args[0].value())) |
4925 | OPGEN_RETURN(false); |
4926 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
4927 | OPGEN_RETURN(false); |
4928 | OPGEN_RETURN(true); |
4929 | #endif |
4930 | break; |
4931 | break; |
4932 | case Arg::Tmp: |
4933 | #if CPU(X86_64) || CPU(ARM64) |
4934 | if (!Arg::isValidImmForm(args[0].value())) |
4935 | OPGEN_RETURN(false); |
4936 | if (!args[1].tmp().isGP()) |
4937 | OPGEN_RETURN(false); |
4938 | OPGEN_RETURN(true); |
4939 | #endif |
4940 | break; |
4941 | break; |
4942 | default: |
4943 | break; |
4944 | } |
4945 | break; |
4946 | case Arg::Addr: |
4947 | case Arg::Stack: |
4948 | case Arg::CallArg: |
4949 | switch (this->args[1].kind()) { |
4950 | case Arg::Tmp: |
4951 | #if CPU(X86_64) |
4952 | if (!Arg::isValidAddrForm(args[0].offset())) |
4953 | OPGEN_RETURN(false); |
4954 | if (!args[1].tmp().isGP()) |
4955 | OPGEN_RETURN(false); |
4956 | OPGEN_RETURN(true); |
4957 | #endif |
4958 | break; |
4959 | break; |
4960 | default: |
4961 | break; |
4962 | } |
4963 | break; |
4964 | case Arg::Index: |
4965 | switch (this->args[1].kind()) { |
4966 | case Arg::Tmp: |
4967 | #if CPU(X86_64) |
4968 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
4969 | OPGEN_RETURN(false); |
4970 | if (!args[1].tmp().isGP()) |
4971 | OPGEN_RETURN(false); |
4972 | OPGEN_RETURN(true); |
4973 | #endif |
4974 | break; |
4975 | break; |
4976 | default: |
4977 | break; |
4978 | } |
4979 | break; |
4980 | default: |
4981 | break; |
4982 | } |
4983 | break; |
4984 | case 3: |
4985 | switch (this->args[0].kind()) { |
4986 | case Arg::Tmp: |
4987 | switch (this->args[1].kind()) { |
4988 | case Arg::Tmp: |
4989 | switch (this->args[2].kind()) { |
4990 | case Arg::Tmp: |
4991 | #if CPU(ARM64) |
4992 | if (!args[0].tmp().isGP()) |
4993 | OPGEN_RETURN(false); |
4994 | if (!args[1].tmp().isGP()) |
4995 | OPGEN_RETURN(false); |
4996 | if (!args[2].tmp().isGP()) |
4997 | OPGEN_RETURN(false); |
4998 | OPGEN_RETURN(true); |
4999 | #endif |
5000 | break; |
5001 | break; |
5002 | default: |
5003 | break; |
5004 | } |
5005 | break; |
5006 | default: |
5007 | break; |
5008 | } |
5009 | break; |
5010 | default: |
5011 | break; |
5012 | } |
5013 | break; |
5014 | default: |
5015 | break; |
5016 | } |
5017 | break; |
5018 | case Opcode::SubDouble: |
5019 | switch (this->args.size()) { |
5020 | case 3: |
5021 | switch (this->args[0].kind()) { |
5022 | case Arg::Tmp: |
5023 | switch (this->args[1].kind()) { |
5024 | case Arg::Tmp: |
5025 | switch (this->args[2].kind()) { |
5026 | case Arg::Tmp: |
5027 | #if CPU(ARM64) |
5028 | if (!args[0].tmp().isFP()) |
5029 | OPGEN_RETURN(false); |
5030 | if (!args[1].tmp().isFP()) |
5031 | OPGEN_RETURN(false); |
5032 | if (!args[2].tmp().isFP()) |
5033 | OPGEN_RETURN(false); |
5034 | OPGEN_RETURN(true); |
5035 | #endif |
5036 | break; |
5037 | break; |
5038 | default: |
5039 | break; |
5040 | } |
5041 | break; |
5042 | case Arg::Addr: |
5043 | case Arg::Stack: |
5044 | case Arg::CallArg: |
5045 | switch (this->args[2].kind()) { |
5046 | case Arg::Tmp: |
5047 | #if CPU(X86) || CPU(X86_64) |
5048 | if (!args[0].tmp().isFP()) |
5049 | OPGEN_RETURN(false); |
5050 | if (!Arg::isValidAddrForm(args[1].offset())) |
5051 | OPGEN_RETURN(false); |
5052 | if (!args[2].tmp().isFP()) |
5053 | OPGEN_RETURN(false); |
5054 | OPGEN_RETURN(true); |
5055 | #endif |
5056 | break; |
5057 | break; |
5058 | default: |
5059 | break; |
5060 | } |
5061 | break; |
5062 | case Arg::Index: |
5063 | switch (this->args[2].kind()) { |
5064 | case Arg::Tmp: |
5065 | #if CPU(X86) || CPU(X86_64) |
5066 | if (!args[0].tmp().isFP()) |
5067 | OPGEN_RETURN(false); |
5068 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
5069 | OPGEN_RETURN(false); |
5070 | if (!args[2].tmp().isFP()) |
5071 | OPGEN_RETURN(false); |
5072 | OPGEN_RETURN(true); |
5073 | #endif |
5074 | break; |
5075 | break; |
5076 | default: |
5077 | break; |
5078 | } |
5079 | break; |
5080 | default: |
5081 | break; |
5082 | } |
5083 | break; |
5084 | default: |
5085 | break; |
5086 | } |
5087 | break; |
5088 | case 2: |
5089 | switch (this->args[0].kind()) { |
5090 | case Arg::Tmp: |
5091 | switch (this->args[1].kind()) { |
5092 | case Arg::Tmp: |
5093 | #if CPU(X86) || CPU(X86_64) |
5094 | if (!args[0].tmp().isFP()) |
5095 | OPGEN_RETURN(false); |
5096 | if (!args[1].tmp().isFP()) |
5097 | OPGEN_RETURN(false); |
5098 | OPGEN_RETURN(true); |
5099 | #endif |
5100 | break; |
5101 | break; |
5102 | default: |
5103 | break; |
5104 | } |
5105 | break; |
5106 | case Arg::Addr: |
5107 | case Arg::Stack: |
5108 | case Arg::CallArg: |
5109 | switch (this->args[1].kind()) { |
5110 | case Arg::Tmp: |
5111 | #if CPU(X86) || CPU(X86_64) |
5112 | if (!Arg::isValidAddrForm(args[0].offset())) |
5113 | OPGEN_RETURN(false); |
5114 | if (!args[1].tmp().isFP()) |
5115 | OPGEN_RETURN(false); |
5116 | OPGEN_RETURN(true); |
5117 | #endif |
5118 | break; |
5119 | break; |
5120 | default: |
5121 | break; |
5122 | } |
5123 | break; |
5124 | default: |
5125 | break; |
5126 | } |
5127 | break; |
5128 | default: |
5129 | break; |
5130 | } |
5131 | break; |
5132 | case Opcode::SubFloat: |
5133 | switch (this->args.size()) { |
5134 | case 3: |
5135 | switch (this->args[0].kind()) { |
5136 | case Arg::Tmp: |
5137 | switch (this->args[1].kind()) { |
5138 | case Arg::Tmp: |
5139 | switch (this->args[2].kind()) { |
5140 | case Arg::Tmp: |
5141 | #if CPU(ARM64) |
5142 | if (!args[0].tmp().isFP()) |
5143 | OPGEN_RETURN(false); |
5144 | if (!args[1].tmp().isFP()) |
5145 | OPGEN_RETURN(false); |
5146 | if (!args[2].tmp().isFP()) |
5147 | OPGEN_RETURN(false); |
5148 | OPGEN_RETURN(true); |
5149 | #endif |
5150 | break; |
5151 | break; |
5152 | default: |
5153 | break; |
5154 | } |
5155 | break; |
5156 | case Arg::Addr: |
5157 | case Arg::Stack: |
5158 | case Arg::CallArg: |
5159 | switch (this->args[2].kind()) { |
5160 | case Arg::Tmp: |
5161 | #if CPU(X86) || CPU(X86_64) |
5162 | if (!args[0].tmp().isFP()) |
5163 | OPGEN_RETURN(false); |
5164 | if (!Arg::isValidAddrForm(args[1].offset())) |
5165 | OPGEN_RETURN(false); |
5166 | if (!args[2].tmp().isFP()) |
5167 | OPGEN_RETURN(false); |
5168 | OPGEN_RETURN(true); |
5169 | #endif |
5170 | break; |
5171 | break; |
5172 | default: |
5173 | break; |
5174 | } |
5175 | break; |
5176 | case Arg::Index: |
5177 | switch (this->args[2].kind()) { |
5178 | case Arg::Tmp: |
5179 | #if CPU(X86) || CPU(X86_64) |
5180 | if (!args[0].tmp().isFP()) |
5181 | OPGEN_RETURN(false); |
5182 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
5183 | OPGEN_RETURN(false); |
5184 | if (!args[2].tmp().isFP()) |
5185 | OPGEN_RETURN(false); |
5186 | OPGEN_RETURN(true); |
5187 | #endif |
5188 | break; |
5189 | break; |
5190 | default: |
5191 | break; |
5192 | } |
5193 | break; |
5194 | default: |
5195 | break; |
5196 | } |
5197 | break; |
5198 | default: |
5199 | break; |
5200 | } |
5201 | break; |
5202 | case 2: |
5203 | switch (this->args[0].kind()) { |
5204 | case Arg::Tmp: |
5205 | switch (this->args[1].kind()) { |
5206 | case Arg::Tmp: |
5207 | #if CPU(X86) || CPU(X86_64) |
5208 | if (!args[0].tmp().isFP()) |
5209 | OPGEN_RETURN(false); |
5210 | if (!args[1].tmp().isFP()) |
5211 | OPGEN_RETURN(false); |
5212 | OPGEN_RETURN(true); |
5213 | #endif |
5214 | break; |
5215 | break; |
5216 | default: |
5217 | break; |
5218 | } |
5219 | break; |
5220 | case Arg::Addr: |
5221 | case Arg::Stack: |
5222 | case Arg::CallArg: |
5223 | switch (this->args[1].kind()) { |
5224 | case Arg::Tmp: |
5225 | #if CPU(X86) || CPU(X86_64) |
5226 | if (!Arg::isValidAddrForm(args[0].offset())) |
5227 | OPGEN_RETURN(false); |
5228 | if (!args[1].tmp().isFP()) |
5229 | OPGEN_RETURN(false); |
5230 | OPGEN_RETURN(true); |
5231 | #endif |
5232 | break; |
5233 | break; |
5234 | default: |
5235 | break; |
5236 | } |
5237 | break; |
5238 | default: |
5239 | break; |
5240 | } |
5241 | break; |
5242 | default: |
5243 | break; |
5244 | } |
5245 | break; |
5246 | case Opcode::Neg32: |
5247 | switch (this->args.size()) { |
5248 | case 1: |
5249 | switch (this->args[0].kind()) { |
5250 | case Arg::Tmp: |
5251 | if (!args[0].tmp().isGP()) |
5252 | OPGEN_RETURN(false); |
5253 | OPGEN_RETURN(true); |
5254 | break; |
5255 | break; |
5256 | case Arg::Addr: |
5257 | case Arg::Stack: |
5258 | case Arg::CallArg: |
5259 | #if CPU(X86) || CPU(X86_64) |
5260 | if (!Arg::isValidAddrForm(args[0].offset())) |
5261 | OPGEN_RETURN(false); |
5262 | OPGEN_RETURN(true); |
5263 | #endif |
5264 | break; |
5265 | break; |
5266 | case Arg::Index: |
5267 | #if CPU(X86) || CPU(X86_64) |
5268 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
5269 | OPGEN_RETURN(false); |
5270 | OPGEN_RETURN(true); |
5271 | #endif |
5272 | break; |
5273 | break; |
5274 | default: |
5275 | break; |
5276 | } |
5277 | break; |
5278 | default: |
5279 | break; |
5280 | } |
5281 | break; |
5282 | case Opcode::Neg64: |
5283 | switch (this->args.size()) { |
5284 | case 1: |
5285 | switch (this->args[0].kind()) { |
5286 | case Arg::Tmp: |
5287 | #if CPU(X86_64) || CPU(ARM64) |
5288 | if (!args[0].tmp().isGP()) |
5289 | OPGEN_RETURN(false); |
5290 | OPGEN_RETURN(true); |
5291 | #endif |
5292 | break; |
5293 | break; |
5294 | case Arg::Addr: |
5295 | case Arg::Stack: |
5296 | case Arg::CallArg: |
5297 | #if CPU(X86_64) |
5298 | if (!Arg::isValidAddrForm(args[0].offset())) |
5299 | OPGEN_RETURN(false); |
5300 | OPGEN_RETURN(true); |
5301 | #endif |
5302 | break; |
5303 | break; |
5304 | case Arg::Index: |
5305 | #if CPU(X86_64) |
5306 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
5307 | OPGEN_RETURN(false); |
5308 | OPGEN_RETURN(true); |
5309 | #endif |
5310 | break; |
5311 | break; |
5312 | default: |
5313 | break; |
5314 | } |
5315 | break; |
5316 | default: |
5317 | break; |
5318 | } |
5319 | break; |
5320 | case Opcode::NegateDouble: |
5321 | switch (this->args.size()) { |
5322 | case 2: |
5323 | switch (this->args[0].kind()) { |
5324 | case Arg::Tmp: |
5325 | switch (this->args[1].kind()) { |
5326 | case Arg::Tmp: |
5327 | #if CPU(ARM64) |
5328 | if (!args[0].tmp().isFP()) |
5329 | OPGEN_RETURN(false); |
5330 | if (!args[1].tmp().isFP()) |
5331 | OPGEN_RETURN(false); |
5332 | OPGEN_RETURN(true); |
5333 | #endif |
5334 | break; |
5335 | break; |
5336 | default: |
5337 | break; |
5338 | } |
5339 | break; |
5340 | default: |
5341 | break; |
5342 | } |
5343 | break; |
5344 | default: |
5345 | break; |
5346 | } |
5347 | break; |
5348 | case Opcode::NegateFloat: |
5349 | switch (this->args.size()) { |
5350 | case 2: |
5351 | switch (this->args[0].kind()) { |
5352 | case Arg::Tmp: |
5353 | switch (this->args[1].kind()) { |
5354 | case Arg::Tmp: |
5355 | #if CPU(ARM64) |
5356 | if (!args[0].tmp().isFP()) |
5357 | OPGEN_RETURN(false); |
5358 | if (!args[1].tmp().isFP()) |
5359 | OPGEN_RETURN(false); |
5360 | OPGEN_RETURN(true); |
5361 | #endif |
5362 | break; |
5363 | break; |
5364 | default: |
5365 | break; |
5366 | } |
5367 | break; |
5368 | default: |
5369 | break; |
5370 | } |
5371 | break; |
5372 | default: |
5373 | break; |
5374 | } |
5375 | break; |
5376 | case Opcode::Mul32: |
5377 | switch (this->args.size()) { |
5378 | case 2: |
5379 | switch (this->args[0].kind()) { |
5380 | case Arg::Tmp: |
5381 | switch (this->args[1].kind()) { |
5382 | case Arg::Tmp: |
5383 | if (!args[0].tmp().isGP()) |
5384 | OPGEN_RETURN(false); |
5385 | if (!args[1].tmp().isGP()) |
5386 | OPGEN_RETURN(false); |
5387 | OPGEN_RETURN(true); |
5388 | break; |
5389 | break; |
5390 | default: |
5391 | break; |
5392 | } |
5393 | break; |
5394 | case Arg::Addr: |
5395 | case Arg::Stack: |
5396 | case Arg::CallArg: |
5397 | switch (this->args[1].kind()) { |
5398 | case Arg::Tmp: |
5399 | #if CPU(X86) || CPU(X86_64) |
5400 | if (!Arg::isValidAddrForm(args[0].offset())) |
5401 | OPGEN_RETURN(false); |
5402 | if (!args[1].tmp().isGP()) |
5403 | OPGEN_RETURN(false); |
5404 | OPGEN_RETURN(true); |
5405 | #endif |
5406 | break; |
5407 | break; |
5408 | default: |
5409 | break; |
5410 | } |
5411 | break; |
5412 | default: |
5413 | break; |
5414 | } |
5415 | break; |
5416 | case 3: |
5417 | switch (this->args[0].kind()) { |
5418 | case Arg::Tmp: |
5419 | switch (this->args[1].kind()) { |
5420 | case Arg::Tmp: |
5421 | switch (this->args[2].kind()) { |
5422 | case Arg::Tmp: |
5423 | if (!args[0].tmp().isGP()) |
5424 | OPGEN_RETURN(false); |
5425 | if (!args[1].tmp().isGP()) |
5426 | OPGEN_RETURN(false); |
5427 | if (!args[2].tmp().isGP()) |
5428 | OPGEN_RETURN(false); |
5429 | OPGEN_RETURN(true); |
5430 | break; |
5431 | break; |
5432 | default: |
5433 | break; |
5434 | } |
5435 | break; |
5436 | case Arg::Addr: |
5437 | case Arg::Stack: |
5438 | case Arg::CallArg: |
5439 | switch (this->args[2].kind()) { |
5440 | case Arg::Tmp: |
5441 | #if CPU(X86) || CPU(X86_64) |
5442 | if (!args[0].tmp().isGP()) |
5443 | OPGEN_RETURN(false); |
5444 | if (!Arg::isValidAddrForm(args[1].offset())) |
5445 | OPGEN_RETURN(false); |
5446 | if (!args[2].tmp().isGP()) |
5447 | OPGEN_RETURN(false); |
5448 | OPGEN_RETURN(true); |
5449 | #endif |
5450 | break; |
5451 | break; |
5452 | default: |
5453 | break; |
5454 | } |
5455 | break; |
5456 | default: |
5457 | break; |
5458 | } |
5459 | break; |
5460 | case Arg::Addr: |
5461 | case Arg::Stack: |
5462 | case Arg::CallArg: |
5463 | switch (this->args[1].kind()) { |
5464 | case Arg::Tmp: |
5465 | switch (this->args[2].kind()) { |
5466 | case Arg::Tmp: |
5467 | #if CPU(X86) || CPU(X86_64) |
5468 | if (!Arg::isValidAddrForm(args[0].offset())) |
5469 | OPGEN_RETURN(false); |
5470 | if (!args[1].tmp().isGP()) |
5471 | OPGEN_RETURN(false); |
5472 | if (!args[2].tmp().isGP()) |
5473 | OPGEN_RETURN(false); |
5474 | OPGEN_RETURN(true); |
5475 | #endif |
5476 | break; |
5477 | break; |
5478 | default: |
5479 | break; |
5480 | } |
5481 | break; |
5482 | default: |
5483 | break; |
5484 | } |
5485 | break; |
5486 | case Arg::Imm: |
5487 | switch (this->args[1].kind()) { |
5488 | case Arg::Tmp: |
5489 | switch (this->args[2].kind()) { |
5490 | case Arg::Tmp: |
5491 | #if CPU(X86) || CPU(X86_64) |
5492 | if (!Arg::isValidImmForm(args[0].value())) |
5493 | OPGEN_RETURN(false); |
5494 | if (!args[1].tmp().isGP()) |
5495 | OPGEN_RETURN(false); |
5496 | if (!args[2].tmp().isGP()) |
5497 | OPGEN_RETURN(false); |
5498 | OPGEN_RETURN(true); |
5499 | #endif |
5500 | break; |
5501 | break; |
5502 | default: |
5503 | break; |
5504 | } |
5505 | break; |
5506 | default: |
5507 | break; |
5508 | } |
5509 | break; |
5510 | default: |
5511 | break; |
5512 | } |
5513 | break; |
5514 | default: |
5515 | break; |
5516 | } |
5517 | break; |
5518 | case Opcode::Mul64: |
5519 | switch (this->args.size()) { |
5520 | case 2: |
5521 | switch (this->args[0].kind()) { |
5522 | case Arg::Tmp: |
5523 | switch (this->args[1].kind()) { |
5524 | case Arg::Tmp: |
5525 | #if CPU(X86_64) || CPU(ARM64) |
5526 | if (!args[0].tmp().isGP()) |
5527 | OPGEN_RETURN(false); |
5528 | if (!args[1].tmp().isGP()) |
5529 | OPGEN_RETURN(false); |
5530 | OPGEN_RETURN(true); |
5531 | #endif |
5532 | break; |
5533 | break; |
5534 | default: |
5535 | break; |
5536 | } |
5537 | break; |
5538 | default: |
5539 | break; |
5540 | } |
5541 | break; |
5542 | case 3: |
5543 | switch (this->args[0].kind()) { |
5544 | case Arg::Tmp: |
5545 | switch (this->args[1].kind()) { |
5546 | case Arg::Tmp: |
5547 | switch (this->args[2].kind()) { |
5548 | case Arg::Tmp: |
5549 | if (!args[0].tmp().isGP()) |
5550 | OPGEN_RETURN(false); |
5551 | if (!args[1].tmp().isGP()) |
5552 | OPGEN_RETURN(false); |
5553 | if (!args[2].tmp().isGP()) |
5554 | OPGEN_RETURN(false); |
5555 | OPGEN_RETURN(true); |
5556 | break; |
5557 | break; |
5558 | default: |
5559 | break; |
5560 | } |
5561 | break; |
5562 | default: |
5563 | break; |
5564 | } |
5565 | break; |
5566 | default: |
5567 | break; |
5568 | } |
5569 | break; |
5570 | default: |
5571 | break; |
5572 | } |
5573 | break; |
5574 | case Opcode::MultiplyAdd32: |
5575 | switch (this->args.size()) { |
5576 | case 4: |
5577 | switch (this->args[0].kind()) { |
5578 | case Arg::Tmp: |
5579 | switch (this->args[1].kind()) { |
5580 | case Arg::Tmp: |
5581 | switch (this->args[2].kind()) { |
5582 | case Arg::Tmp: |
5583 | switch (this->args[3].kind()) { |
5584 | case Arg::Tmp: |
5585 | #if CPU(ARM64) |
5586 | if (!args[0].tmp().isGP()) |
5587 | OPGEN_RETURN(false); |
5588 | if (!args[1].tmp().isGP()) |
5589 | OPGEN_RETURN(false); |
5590 | if (!args[2].tmp().isGP()) |
5591 | OPGEN_RETURN(false); |
5592 | if (!args[3].tmp().isGP()) |
5593 | OPGEN_RETURN(false); |
5594 | OPGEN_RETURN(true); |
5595 | #endif |
5596 | break; |
5597 | break; |
5598 | default: |
5599 | break; |
5600 | } |
5601 | break; |
5602 | default: |
5603 | break; |
5604 | } |
5605 | break; |
5606 | default: |
5607 | break; |
5608 | } |
5609 | break; |
5610 | default: |
5611 | break; |
5612 | } |
5613 | break; |
5614 | default: |
5615 | break; |
5616 | } |
5617 | break; |
5618 | case Opcode::MultiplyAdd64: |
5619 | switch (this->args.size()) { |
5620 | case 4: |
5621 | switch (this->args[0].kind()) { |
5622 | case Arg::Tmp: |
5623 | switch (this->args[1].kind()) { |
5624 | case Arg::Tmp: |
5625 | switch (this->args[2].kind()) { |
5626 | case Arg::Tmp: |
5627 | switch (this->args[3].kind()) { |
5628 | case Arg::Tmp: |
5629 | #if CPU(ARM64) |
5630 | if (!args[0].tmp().isGP()) |
5631 | OPGEN_RETURN(false); |
5632 | if (!args[1].tmp().isGP()) |
5633 | OPGEN_RETURN(false); |
5634 | if (!args[2].tmp().isGP()) |
5635 | OPGEN_RETURN(false); |
5636 | if (!args[3].tmp().isGP()) |
5637 | OPGEN_RETURN(false); |
5638 | OPGEN_RETURN(true); |
5639 | #endif |
5640 | break; |
5641 | break; |
5642 | default: |
5643 | break; |
5644 | } |
5645 | break; |
5646 | default: |
5647 | break; |
5648 | } |
5649 | break; |
5650 | default: |
5651 | break; |
5652 | } |
5653 | break; |
5654 | default: |
5655 | break; |
5656 | } |
5657 | break; |
5658 | default: |
5659 | break; |
5660 | } |
5661 | break; |
5662 | case Opcode::MultiplySub32: |
5663 | switch (this->args.size()) { |
5664 | case 4: |
5665 | switch (this->args[0].kind()) { |
5666 | case Arg::Tmp: |
5667 | switch (this->args[1].kind()) { |
5668 | case Arg::Tmp: |
5669 | switch (this->args[2].kind()) { |
5670 | case Arg::Tmp: |
5671 | switch (this->args[3].kind()) { |
5672 | case Arg::Tmp: |
5673 | #if CPU(ARM64) |
5674 | if (!args[0].tmp().isGP()) |
5675 | OPGEN_RETURN(false); |
5676 | if (!args[1].tmp().isGP()) |
5677 | OPGEN_RETURN(false); |
5678 | if (!args[2].tmp().isGP()) |
5679 | OPGEN_RETURN(false); |
5680 | if (!args[3].tmp().isGP()) |
5681 | OPGEN_RETURN(false); |
5682 | OPGEN_RETURN(true); |
5683 | #endif |
5684 | break; |
5685 | break; |
5686 | default: |
5687 | break; |
5688 | } |
5689 | break; |
5690 | default: |
5691 | break; |
5692 | } |
5693 | break; |
5694 | default: |
5695 | break; |
5696 | } |
5697 | break; |
5698 | default: |
5699 | break; |
5700 | } |
5701 | break; |
5702 | default: |
5703 | break; |
5704 | } |
5705 | break; |
5706 | case Opcode::MultiplySub64: |
5707 | switch (this->args.size()) { |
5708 | case 4: |
5709 | switch (this->args[0].kind()) { |
5710 | case Arg::Tmp: |
5711 | switch (this->args[1].kind()) { |
5712 | case Arg::Tmp: |
5713 | switch (this->args[2].kind()) { |
5714 | case Arg::Tmp: |
5715 | switch (this->args[3].kind()) { |
5716 | case Arg::Tmp: |
5717 | #if CPU(ARM64) |
5718 | if (!args[0].tmp().isGP()) |
5719 | OPGEN_RETURN(false); |
5720 | if (!args[1].tmp().isGP()) |
5721 | OPGEN_RETURN(false); |
5722 | if (!args[2].tmp().isGP()) |
5723 | OPGEN_RETURN(false); |
5724 | if (!args[3].tmp().isGP()) |
5725 | OPGEN_RETURN(false); |
5726 | OPGEN_RETURN(true); |
5727 | #endif |
5728 | break; |
5729 | break; |
5730 | default: |
5731 | break; |
5732 | } |
5733 | break; |
5734 | default: |
5735 | break; |
5736 | } |
5737 | break; |
5738 | default: |
5739 | break; |
5740 | } |
5741 | break; |
5742 | default: |
5743 | break; |
5744 | } |
5745 | break; |
5746 | default: |
5747 | break; |
5748 | } |
5749 | break; |
5750 | case Opcode::MultiplyNeg32: |
5751 | switch (this->args.size()) { |
5752 | case 3: |
5753 | switch (this->args[0].kind()) { |
5754 | case Arg::Tmp: |
5755 | switch (this->args[1].kind()) { |
5756 | case Arg::Tmp: |
5757 | switch (this->args[2].kind()) { |
5758 | case Arg::Tmp: |
5759 | #if CPU(ARM64) |
5760 | if (!args[0].tmp().isGP()) |
5761 | OPGEN_RETURN(false); |
5762 | if (!args[1].tmp().isGP()) |
5763 | OPGEN_RETURN(false); |
5764 | if (!args[2].tmp().isGP()) |
5765 | OPGEN_RETURN(false); |
5766 | OPGEN_RETURN(true); |
5767 | #endif |
5768 | break; |
5769 | break; |
5770 | default: |
5771 | break; |
5772 | } |
5773 | break; |
5774 | default: |
5775 | break; |
5776 | } |
5777 | break; |
5778 | default: |
5779 | break; |
5780 | } |
5781 | break; |
5782 | default: |
5783 | break; |
5784 | } |
5785 | break; |
5786 | case Opcode::MultiplyNeg64: |
5787 | switch (this->args.size()) { |
5788 | case 3: |
5789 | switch (this->args[0].kind()) { |
5790 | case Arg::Tmp: |
5791 | switch (this->args[1].kind()) { |
5792 | case Arg::Tmp: |
5793 | switch (this->args[2].kind()) { |
5794 | case Arg::Tmp: |
5795 | #if CPU(ARM64) |
5796 | if (!args[0].tmp().isGP()) |
5797 | OPGEN_RETURN(false); |
5798 | if (!args[1].tmp().isGP()) |
5799 | OPGEN_RETURN(false); |
5800 | if (!args[2].tmp().isGP()) |
5801 | OPGEN_RETURN(false); |
5802 | OPGEN_RETURN(true); |
5803 | #endif |
5804 | break; |
5805 | break; |
5806 | default: |
5807 | break; |
5808 | } |
5809 | break; |
5810 | default: |
5811 | break; |
5812 | } |
5813 | break; |
5814 | default: |
5815 | break; |
5816 | } |
5817 | break; |
5818 | default: |
5819 | break; |
5820 | } |
5821 | break; |
5822 | case Opcode::Div32: |
5823 | switch (this->args.size()) { |
5824 | case 3: |
5825 | switch (this->args[0].kind()) { |
5826 | case Arg::Tmp: |
5827 | switch (this->args[1].kind()) { |
5828 | case Arg::Tmp: |
5829 | switch (this->args[2].kind()) { |
5830 | case Arg::Tmp: |
5831 | #if CPU(ARM64) |
5832 | if (!args[0].tmp().isGP()) |
5833 | OPGEN_RETURN(false); |
5834 | if (!args[1].tmp().isGP()) |
5835 | OPGEN_RETURN(false); |
5836 | if (!args[2].tmp().isGP()) |
5837 | OPGEN_RETURN(false); |
5838 | OPGEN_RETURN(true); |
5839 | #endif |
5840 | break; |
5841 | break; |
5842 | default: |
5843 | break; |
5844 | } |
5845 | break; |
5846 | default: |
5847 | break; |
5848 | } |
5849 | break; |
5850 | default: |
5851 | break; |
5852 | } |
5853 | break; |
5854 | default: |
5855 | break; |
5856 | } |
5857 | break; |
5858 | case Opcode::UDiv32: |
5859 | switch (this->args.size()) { |
5860 | case 3: |
5861 | switch (this->args[0].kind()) { |
5862 | case Arg::Tmp: |
5863 | switch (this->args[1].kind()) { |
5864 | case Arg::Tmp: |
5865 | switch (this->args[2].kind()) { |
5866 | case Arg::Tmp: |
5867 | #if CPU(ARM64) |
5868 | if (!args[0].tmp().isGP()) |
5869 | OPGEN_RETURN(false); |
5870 | if (!args[1].tmp().isGP()) |
5871 | OPGEN_RETURN(false); |
5872 | if (!args[2].tmp().isGP()) |
5873 | OPGEN_RETURN(false); |
5874 | OPGEN_RETURN(true); |
5875 | #endif |
5876 | break; |
5877 | break; |
5878 | default: |
5879 | break; |
5880 | } |
5881 | break; |
5882 | default: |
5883 | break; |
5884 | } |
5885 | break; |
5886 | default: |
5887 | break; |
5888 | } |
5889 | break; |
5890 | default: |
5891 | break; |
5892 | } |
5893 | break; |
5894 | case Opcode::Div64: |
5895 | switch (this->args.size()) { |
5896 | case 3: |
5897 | switch (this->args[0].kind()) { |
5898 | case Arg::Tmp: |
5899 | switch (this->args[1].kind()) { |
5900 | case Arg::Tmp: |
5901 | switch (this->args[2].kind()) { |
5902 | case Arg::Tmp: |
5903 | #if CPU(ARM64) |
5904 | if (!args[0].tmp().isGP()) |
5905 | OPGEN_RETURN(false); |
5906 | if (!args[1].tmp().isGP()) |
5907 | OPGEN_RETURN(false); |
5908 | if (!args[2].tmp().isGP()) |
5909 | OPGEN_RETURN(false); |
5910 | OPGEN_RETURN(true); |
5911 | #endif |
5912 | break; |
5913 | break; |
5914 | default: |
5915 | break; |
5916 | } |
5917 | break; |
5918 | default: |
5919 | break; |
5920 | } |
5921 | break; |
5922 | default: |
5923 | break; |
5924 | } |
5925 | break; |
5926 | default: |
5927 | break; |
5928 | } |
5929 | break; |
5930 | case Opcode::UDiv64: |
5931 | switch (this->args.size()) { |
5932 | case 3: |
5933 | switch (this->args[0].kind()) { |
5934 | case Arg::Tmp: |
5935 | switch (this->args[1].kind()) { |
5936 | case Arg::Tmp: |
5937 | switch (this->args[2].kind()) { |
5938 | case Arg::Tmp: |
5939 | #if CPU(ARM64) |
5940 | if (!args[0].tmp().isGP()) |
5941 | OPGEN_RETURN(false); |
5942 | if (!args[1].tmp().isGP()) |
5943 | OPGEN_RETURN(false); |
5944 | if (!args[2].tmp().isGP()) |
5945 | OPGEN_RETURN(false); |
5946 | OPGEN_RETURN(true); |
5947 | #endif |
5948 | break; |
5949 | break; |
5950 | default: |
5951 | break; |
5952 | } |
5953 | break; |
5954 | default: |
5955 | break; |
5956 | } |
5957 | break; |
5958 | default: |
5959 | break; |
5960 | } |
5961 | break; |
5962 | default: |
5963 | break; |
5964 | } |
5965 | break; |
5966 | case Opcode::MulDouble: |
5967 | switch (this->args.size()) { |
5968 | case 3: |
5969 | switch (this->args[0].kind()) { |
5970 | case Arg::Tmp: |
5971 | switch (this->args[1].kind()) { |
5972 | case Arg::Tmp: |
5973 | switch (this->args[2].kind()) { |
5974 | case Arg::Tmp: |
5975 | if (!args[0].tmp().isFP()) |
5976 | OPGEN_RETURN(false); |
5977 | if (!args[1].tmp().isFP()) |
5978 | OPGEN_RETURN(false); |
5979 | if (!args[2].tmp().isFP()) |
5980 | OPGEN_RETURN(false); |
5981 | OPGEN_RETURN(true); |
5982 | break; |
5983 | break; |
5984 | default: |
5985 | break; |
5986 | } |
5987 | break; |
5988 | case Arg::Addr: |
5989 | case Arg::Stack: |
5990 | case Arg::CallArg: |
5991 | switch (this->args[2].kind()) { |
5992 | case Arg::Tmp: |
5993 | #if CPU(X86) || CPU(X86_64) |
5994 | if (!args[0].tmp().isFP()) |
5995 | OPGEN_RETURN(false); |
5996 | if (!Arg::isValidAddrForm(args[1].offset())) |
5997 | OPGEN_RETURN(false); |
5998 | if (!args[2].tmp().isFP()) |
5999 | OPGEN_RETURN(false); |
6000 | OPGEN_RETURN(true); |
6001 | #endif |
6002 | break; |
6003 | break; |
6004 | default: |
6005 | break; |
6006 | } |
6007 | break; |
6008 | default: |
6009 | break; |
6010 | } |
6011 | break; |
6012 | case Arg::Addr: |
6013 | case Arg::Stack: |
6014 | case Arg::CallArg: |
6015 | switch (this->args[1].kind()) { |
6016 | case Arg::Tmp: |
6017 | switch (this->args[2].kind()) { |
6018 | case Arg::Tmp: |
6019 | #if CPU(X86) || CPU(X86_64) |
6020 | if (!Arg::isValidAddrForm(args[0].offset())) |
6021 | OPGEN_RETURN(false); |
6022 | if (!args[1].tmp().isFP()) |
6023 | OPGEN_RETURN(false); |
6024 | if (!args[2].tmp().isFP()) |
6025 | OPGEN_RETURN(false); |
6026 | OPGEN_RETURN(true); |
6027 | #endif |
6028 | break; |
6029 | break; |
6030 | default: |
6031 | break; |
6032 | } |
6033 | break; |
6034 | default: |
6035 | break; |
6036 | } |
6037 | break; |
6038 | case Arg::Index: |
6039 | switch (this->args[1].kind()) { |
6040 | case Arg::Tmp: |
6041 | switch (this->args[2].kind()) { |
6042 | case Arg::Tmp: |
6043 | #if CPU(X86) || CPU(X86_64) |
6044 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
6045 | OPGEN_RETURN(false); |
6046 | if (!args[1].tmp().isFP()) |
6047 | OPGEN_RETURN(false); |
6048 | if (!args[2].tmp().isFP()) |
6049 | OPGEN_RETURN(false); |
6050 | OPGEN_RETURN(true); |
6051 | #endif |
6052 | break; |
6053 | break; |
6054 | default: |
6055 | break; |
6056 | } |
6057 | break; |
6058 | default: |
6059 | break; |
6060 | } |
6061 | break; |
6062 | default: |
6063 | break; |
6064 | } |
6065 | break; |
6066 | case 2: |
6067 | switch (this->args[0].kind()) { |
6068 | case Arg::Tmp: |
6069 | switch (this->args[1].kind()) { |
6070 | case Arg::Tmp: |
6071 | #if CPU(X86) || CPU(X86_64) |
6072 | if (!args[0].tmp().isFP()) |
6073 | OPGEN_RETURN(false); |
6074 | if (!args[1].tmp().isFP()) |
6075 | OPGEN_RETURN(false); |
6076 | OPGEN_RETURN(true); |
6077 | #endif |
6078 | break; |
6079 | break; |
6080 | default: |
6081 | break; |
6082 | } |
6083 | break; |
6084 | case Arg::Addr: |
6085 | case Arg::Stack: |
6086 | case Arg::CallArg: |
6087 | switch (this->args[1].kind()) { |
6088 | case Arg::Tmp: |
6089 | #if CPU(X86) || CPU(X86_64) |
6090 | if (!Arg::isValidAddrForm(args[0].offset())) |
6091 | OPGEN_RETURN(false); |
6092 | if (!args[1].tmp().isFP()) |
6093 | OPGEN_RETURN(false); |
6094 | OPGEN_RETURN(true); |
6095 | #endif |
6096 | break; |
6097 | break; |
6098 | default: |
6099 | break; |
6100 | } |
6101 | break; |
6102 | default: |
6103 | break; |
6104 | } |
6105 | break; |
6106 | default: |
6107 | break; |
6108 | } |
6109 | break; |
6110 | case Opcode::MulFloat: |
6111 | switch (this->args.size()) { |
6112 | case 3: |
6113 | switch (this->args[0].kind()) { |
6114 | case Arg::Tmp: |
6115 | switch (this->args[1].kind()) { |
6116 | case Arg::Tmp: |
6117 | switch (this->args[2].kind()) { |
6118 | case Arg::Tmp: |
6119 | if (!args[0].tmp().isFP()) |
6120 | OPGEN_RETURN(false); |
6121 | if (!args[1].tmp().isFP()) |
6122 | OPGEN_RETURN(false); |
6123 | if (!args[2].tmp().isFP()) |
6124 | OPGEN_RETURN(false); |
6125 | OPGEN_RETURN(true); |
6126 | break; |
6127 | break; |
6128 | default: |
6129 | break; |
6130 | } |
6131 | break; |
6132 | case Arg::Addr: |
6133 | case Arg::Stack: |
6134 | case Arg::CallArg: |
6135 | switch (this->args[2].kind()) { |
6136 | case Arg::Tmp: |
6137 | #if CPU(X86) || CPU(X86_64) |
6138 | if (!args[0].tmp().isFP()) |
6139 | OPGEN_RETURN(false); |
6140 | if (!Arg::isValidAddrForm(args[1].offset())) |
6141 | OPGEN_RETURN(false); |
6142 | if (!args[2].tmp().isFP()) |
6143 | OPGEN_RETURN(false); |
6144 | OPGEN_RETURN(true); |
6145 | #endif |
6146 | break; |
6147 | break; |
6148 | default: |
6149 | break; |
6150 | } |
6151 | break; |
6152 | default: |
6153 | break; |
6154 | } |
6155 | break; |
6156 | case Arg::Addr: |
6157 | case Arg::Stack: |
6158 | case Arg::CallArg: |
6159 | switch (this->args[1].kind()) { |
6160 | case Arg::Tmp: |
6161 | switch (this->args[2].kind()) { |
6162 | case Arg::Tmp: |
6163 | #if CPU(X86) || CPU(X86_64) |
6164 | if (!Arg::isValidAddrForm(args[0].offset())) |
6165 | OPGEN_RETURN(false); |
6166 | if (!args[1].tmp().isFP()) |
6167 | OPGEN_RETURN(false); |
6168 | if (!args[2].tmp().isFP()) |
6169 | OPGEN_RETURN(false); |
6170 | OPGEN_RETURN(true); |
6171 | #endif |
6172 | break; |
6173 | break; |
6174 | default: |
6175 | break; |
6176 | } |
6177 | break; |
6178 | default: |
6179 | break; |
6180 | } |
6181 | break; |
6182 | case Arg::Index: |
6183 | switch (this->args[1].kind()) { |
6184 | case Arg::Tmp: |
6185 | switch (this->args[2].kind()) { |
6186 | case Arg::Tmp: |
6187 | #if CPU(X86) || CPU(X86_64) |
6188 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
6189 | OPGEN_RETURN(false); |
6190 | if (!args[1].tmp().isFP()) |
6191 | OPGEN_RETURN(false); |
6192 | if (!args[2].tmp().isFP()) |
6193 | OPGEN_RETURN(false); |
6194 | OPGEN_RETURN(true); |
6195 | #endif |
6196 | break; |
6197 | break; |
6198 | default: |
6199 | break; |
6200 | } |
6201 | break; |
6202 | default: |
6203 | break; |
6204 | } |
6205 | break; |
6206 | default: |
6207 | break; |
6208 | } |
6209 | break; |
6210 | case 2: |
6211 | switch (this->args[0].kind()) { |
6212 | case Arg::Tmp: |
6213 | switch (this->args[1].kind()) { |
6214 | case Arg::Tmp: |
6215 | #if CPU(X86) || CPU(X86_64) |
6216 | if (!args[0].tmp().isFP()) |
6217 | OPGEN_RETURN(false); |
6218 | if (!args[1].tmp().isFP()) |
6219 | OPGEN_RETURN(false); |
6220 | OPGEN_RETURN(true); |
6221 | #endif |
6222 | break; |
6223 | break; |
6224 | default: |
6225 | break; |
6226 | } |
6227 | break; |
6228 | case Arg::Addr: |
6229 | case Arg::Stack: |
6230 | case Arg::CallArg: |
6231 | switch (this->args[1].kind()) { |
6232 | case Arg::Tmp: |
6233 | #if CPU(X86) || CPU(X86_64) |
6234 | if (!Arg::isValidAddrForm(args[0].offset())) |
6235 | OPGEN_RETURN(false); |
6236 | if (!args[1].tmp().isFP()) |
6237 | OPGEN_RETURN(false); |
6238 | OPGEN_RETURN(true); |
6239 | #endif |
6240 | break; |
6241 | break; |
6242 | default: |
6243 | break; |
6244 | } |
6245 | break; |
6246 | default: |
6247 | break; |
6248 | } |
6249 | break; |
6250 | default: |
6251 | break; |
6252 | } |
6253 | break; |
6254 | case Opcode::DivDouble: |
6255 | switch (this->args.size()) { |
6256 | case 3: |
6257 | switch (this->args[0].kind()) { |
6258 | case Arg::Tmp: |
6259 | switch (this->args[1].kind()) { |
6260 | case Arg::Tmp: |
6261 | switch (this->args[2].kind()) { |
6262 | case Arg::Tmp: |
6263 | #if CPU(ARM64) |
6264 | if (!args[0].tmp().isFP()) |
6265 | OPGEN_RETURN(false); |
6266 | if (!args[1].tmp().isFP()) |
6267 | OPGEN_RETURN(false); |
6268 | if (!args[2].tmp().isFP()) |
6269 | OPGEN_RETURN(false); |
6270 | OPGEN_RETURN(true); |
6271 | #endif |
6272 | break; |
6273 | break; |
6274 | default: |
6275 | break; |
6276 | } |
6277 | break; |
6278 | default: |
6279 | break; |
6280 | } |
6281 | break; |
6282 | default: |
6283 | break; |
6284 | } |
6285 | break; |
6286 | case 2: |
6287 | switch (this->args[0].kind()) { |
6288 | case Arg::Tmp: |
6289 | switch (this->args[1].kind()) { |
6290 | case Arg::Tmp: |
6291 | #if CPU(X86) || CPU(X86_64) |
6292 | if (!args[0].tmp().isFP()) |
6293 | OPGEN_RETURN(false); |
6294 | if (!args[1].tmp().isFP()) |
6295 | OPGEN_RETURN(false); |
6296 | OPGEN_RETURN(true); |
6297 | #endif |
6298 | break; |
6299 | break; |
6300 | default: |
6301 | break; |
6302 | } |
6303 | break; |
6304 | case Arg::Addr: |
6305 | case Arg::Stack: |
6306 | case Arg::CallArg: |
6307 | switch (this->args[1].kind()) { |
6308 | case Arg::Tmp: |
6309 | #if CPU(X86) || CPU(X86_64) |
6310 | if (!Arg::isValidAddrForm(args[0].offset())) |
6311 | OPGEN_RETURN(false); |
6312 | if (!args[1].tmp().isFP()) |
6313 | OPGEN_RETURN(false); |
6314 | OPGEN_RETURN(true); |
6315 | #endif |
6316 | break; |
6317 | break; |
6318 | default: |
6319 | break; |
6320 | } |
6321 | break; |
6322 | default: |
6323 | break; |
6324 | } |
6325 | break; |
6326 | default: |
6327 | break; |
6328 | } |
6329 | break; |
6330 | case Opcode::DivFloat: |
6331 | switch (this->args.size()) { |
6332 | case 3: |
6333 | switch (this->args[0].kind()) { |
6334 | case Arg::Tmp: |
6335 | switch (this->args[1].kind()) { |
6336 | case Arg::Tmp: |
6337 | switch (this->args[2].kind()) { |
6338 | case Arg::Tmp: |
6339 | #if CPU(ARM64) |
6340 | if (!args[0].tmp().isFP()) |
6341 | OPGEN_RETURN(false); |
6342 | if (!args[1].tmp().isFP()) |
6343 | OPGEN_RETURN(false); |
6344 | if (!args[2].tmp().isFP()) |
6345 | OPGEN_RETURN(false); |
6346 | OPGEN_RETURN(true); |
6347 | #endif |
6348 | break; |
6349 | break; |
6350 | default: |
6351 | break; |
6352 | } |
6353 | break; |
6354 | default: |
6355 | break; |
6356 | } |
6357 | break; |
6358 | default: |
6359 | break; |
6360 | } |
6361 | break; |
6362 | case 2: |
6363 | switch (this->args[0].kind()) { |
6364 | case Arg::Tmp: |
6365 | switch (this->args[1].kind()) { |
6366 | case Arg::Tmp: |
6367 | #if CPU(X86) || CPU(X86_64) |
6368 | if (!args[0].tmp().isFP()) |
6369 | OPGEN_RETURN(false); |
6370 | if (!args[1].tmp().isFP()) |
6371 | OPGEN_RETURN(false); |
6372 | OPGEN_RETURN(true); |
6373 | #endif |
6374 | break; |
6375 | break; |
6376 | default: |
6377 | break; |
6378 | } |
6379 | break; |
6380 | case Arg::Addr: |
6381 | case Arg::Stack: |
6382 | case Arg::CallArg: |
6383 | switch (this->args[1].kind()) { |
6384 | case Arg::Tmp: |
6385 | #if CPU(X86) || CPU(X86_64) |
6386 | if (!Arg::isValidAddrForm(args[0].offset())) |
6387 | OPGEN_RETURN(false); |
6388 | if (!args[1].tmp().isFP()) |
6389 | OPGEN_RETURN(false); |
6390 | OPGEN_RETURN(true); |
6391 | #endif |
6392 | break; |
6393 | break; |
6394 | default: |
6395 | break; |
6396 | } |
6397 | break; |
6398 | default: |
6399 | break; |
6400 | } |
6401 | break; |
6402 | default: |
6403 | break; |
6404 | } |
6405 | break; |
6406 | case Opcode::X86ConvertToDoubleWord32: |
6407 | switch (this->args.size()) { |
6408 | case 2: |
6409 | switch (this->args[0].kind()) { |
6410 | case Arg::Tmp: |
6411 | switch (this->args[1].kind()) { |
6412 | case Arg::Tmp: |
6413 | #if CPU(X86) || CPU(X86_64) |
6414 | if (!args[0].tmp().isGP()) |
6415 | OPGEN_RETURN(false); |
6416 | if (!args[1].tmp().isGP()) |
6417 | OPGEN_RETURN(false); |
6418 | if (!isX86ConvertToDoubleWord32Valid(*this)) |
6419 | OPGEN_RETURN(false); |
6420 | OPGEN_RETURN(true); |
6421 | #endif |
6422 | break; |
6423 | break; |
6424 | default: |
6425 | break; |
6426 | } |
6427 | break; |
6428 | default: |
6429 | break; |
6430 | } |
6431 | break; |
6432 | default: |
6433 | break; |
6434 | } |
6435 | break; |
6436 | case Opcode::X86ConvertToQuadWord64: |
6437 | switch (this->args.size()) { |
6438 | case 2: |
6439 | switch (this->args[0].kind()) { |
6440 | case Arg::Tmp: |
6441 | switch (this->args[1].kind()) { |
6442 | case Arg::Tmp: |
6443 | #if CPU(X86_64) |
6444 | if (!args[0].tmp().isGP()) |
6445 | OPGEN_RETURN(false); |
6446 | if (!args[1].tmp().isGP()) |
6447 | OPGEN_RETURN(false); |
6448 | if (!isX86ConvertToQuadWord64Valid(*this)) |
6449 | OPGEN_RETURN(false); |
6450 | OPGEN_RETURN(true); |
6451 | #endif |
6452 | break; |
6453 | break; |
6454 | default: |
6455 | break; |
6456 | } |
6457 | break; |
6458 | default: |
6459 | break; |
6460 | } |
6461 | break; |
6462 | default: |
6463 | break; |
6464 | } |
6465 | break; |
6466 | case Opcode::X86Div32: |
6467 | switch (this->args.size()) { |
6468 | case 3: |
6469 | switch (this->args[0].kind()) { |
6470 | case Arg::Tmp: |
6471 | switch (this->args[1].kind()) { |
6472 | case Arg::Tmp: |
6473 | switch (this->args[2].kind()) { |
6474 | case Arg::Tmp: |
6475 | #if CPU(X86) || CPU(X86_64) |
6476 | if (!args[0].tmp().isGP()) |
6477 | OPGEN_RETURN(false); |
6478 | if (!args[1].tmp().isGP()) |
6479 | OPGEN_RETURN(false); |
6480 | if (!args[2].tmp().isGP()) |
6481 | OPGEN_RETURN(false); |
6482 | if (!isX86Div32Valid(*this)) |
6483 | OPGEN_RETURN(false); |
6484 | OPGEN_RETURN(true); |
6485 | #endif |
6486 | break; |
6487 | break; |
6488 | default: |
6489 | break; |
6490 | } |
6491 | break; |
6492 | default: |
6493 | break; |
6494 | } |
6495 | break; |
6496 | default: |
6497 | break; |
6498 | } |
6499 | break; |
6500 | default: |
6501 | break; |
6502 | } |
6503 | break; |
6504 | case Opcode::X86UDiv32: |
6505 | switch (this->args.size()) { |
6506 | case 3: |
6507 | switch (this->args[0].kind()) { |
6508 | case Arg::Tmp: |
6509 | switch (this->args[1].kind()) { |
6510 | case Arg::Tmp: |
6511 | switch (this->args[2].kind()) { |
6512 | case Arg::Tmp: |
6513 | #if CPU(X86) || CPU(X86_64) |
6514 | if (!args[0].tmp().isGP()) |
6515 | OPGEN_RETURN(false); |
6516 | if (!args[1].tmp().isGP()) |
6517 | OPGEN_RETURN(false); |
6518 | if (!args[2].tmp().isGP()) |
6519 | OPGEN_RETURN(false); |
6520 | if (!isX86UDiv32Valid(*this)) |
6521 | OPGEN_RETURN(false); |
6522 | OPGEN_RETURN(true); |
6523 | #endif |
6524 | break; |
6525 | break; |
6526 | default: |
6527 | break; |
6528 | } |
6529 | break; |
6530 | default: |
6531 | break; |
6532 | } |
6533 | break; |
6534 | default: |
6535 | break; |
6536 | } |
6537 | break; |
6538 | default: |
6539 | break; |
6540 | } |
6541 | break; |
6542 | case Opcode::X86Div64: |
6543 | switch (this->args.size()) { |
6544 | case 3: |
6545 | switch (this->args[0].kind()) { |
6546 | case Arg::Tmp: |
6547 | switch (this->args[1].kind()) { |
6548 | case Arg::Tmp: |
6549 | switch (this->args[2].kind()) { |
6550 | case Arg::Tmp: |
6551 | #if CPU(X86_64) |
6552 | if (!args[0].tmp().isGP()) |
6553 | OPGEN_RETURN(false); |
6554 | if (!args[1].tmp().isGP()) |
6555 | OPGEN_RETURN(false); |
6556 | if (!args[2].tmp().isGP()) |
6557 | OPGEN_RETURN(false); |
6558 | if (!isX86Div64Valid(*this)) |
6559 | OPGEN_RETURN(false); |
6560 | OPGEN_RETURN(true); |
6561 | #endif |
6562 | break; |
6563 | break; |
6564 | default: |
6565 | break; |
6566 | } |
6567 | break; |
6568 | default: |
6569 | break; |
6570 | } |
6571 | break; |
6572 | default: |
6573 | break; |
6574 | } |
6575 | break; |
6576 | default: |
6577 | break; |
6578 | } |
6579 | break; |
6580 | case Opcode::X86UDiv64: |
6581 | switch (this->args.size()) { |
6582 | case 3: |
6583 | switch (this->args[0].kind()) { |
6584 | case Arg::Tmp: |
6585 | switch (this->args[1].kind()) { |
6586 | case Arg::Tmp: |
6587 | switch (this->args[2].kind()) { |
6588 | case Arg::Tmp: |
6589 | #if CPU(X86_64) |
6590 | if (!args[0].tmp().isGP()) |
6591 | OPGEN_RETURN(false); |
6592 | if (!args[1].tmp().isGP()) |
6593 | OPGEN_RETURN(false); |
6594 | if (!args[2].tmp().isGP()) |
6595 | OPGEN_RETURN(false); |
6596 | if (!isX86UDiv64Valid(*this)) |
6597 | OPGEN_RETURN(false); |
6598 | OPGEN_RETURN(true); |
6599 | #endif |
6600 | break; |
6601 | break; |
6602 | default: |
6603 | break; |
6604 | } |
6605 | break; |
6606 | default: |
6607 | break; |
6608 | } |
6609 | break; |
6610 | default: |
6611 | break; |
6612 | } |
6613 | break; |
6614 | default: |
6615 | break; |
6616 | } |
6617 | break; |
6618 | case Opcode::Lea32: |
6619 | switch (this->args.size()) { |
6620 | case 2: |
6621 | switch (this->args[0].kind()) { |
6622 | case Arg::Addr: |
6623 | case Arg::Stack: |
6624 | case Arg::CallArg: |
6625 | switch (this->args[1].kind()) { |
6626 | case Arg::Tmp: |
6627 | if (args[0].isStack() && args[0].stackSlot()->isSpill()) |
6628 | OPGEN_RETURN(false); |
6629 | if (!Arg::isValidAddrForm(args[0].offset())) |
6630 | OPGEN_RETURN(false); |
6631 | if (!args[1].tmp().isGP()) |
6632 | OPGEN_RETURN(false); |
6633 | OPGEN_RETURN(true); |
6634 | break; |
6635 | break; |
6636 | default: |
6637 | break; |
6638 | } |
6639 | break; |
6640 | case Arg::Index: |
6641 | switch (this->args[1].kind()) { |
6642 | case Arg::Tmp: |
6643 | #if CPU(X86) || CPU(X86_64) |
6644 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
6645 | OPGEN_RETURN(false); |
6646 | if (!args[1].tmp().isGP()) |
6647 | OPGEN_RETURN(false); |
6648 | OPGEN_RETURN(true); |
6649 | #endif |
6650 | break; |
6651 | break; |
6652 | default: |
6653 | break; |
6654 | } |
6655 | break; |
6656 | default: |
6657 | break; |
6658 | } |
6659 | break; |
6660 | default: |
6661 | break; |
6662 | } |
6663 | break; |
6664 | case Opcode::Lea64: |
6665 | switch (this->args.size()) { |
6666 | case 2: |
6667 | switch (this->args[0].kind()) { |
6668 | case Arg::Addr: |
6669 | case Arg::Stack: |
6670 | case Arg::CallArg: |
6671 | switch (this->args[1].kind()) { |
6672 | case Arg::Tmp: |
6673 | if (args[0].isStack() && args[0].stackSlot()->isSpill()) |
6674 | OPGEN_RETURN(false); |
6675 | if (!Arg::isValidAddrForm(args[0].offset())) |
6676 | OPGEN_RETURN(false); |
6677 | if (!args[1].tmp().isGP()) |
6678 | OPGEN_RETURN(false); |
6679 | OPGEN_RETURN(true); |
6680 | break; |
6681 | break; |
6682 | default: |
6683 | break; |
6684 | } |
6685 | break; |
6686 | case Arg::Index: |
6687 | switch (this->args[1].kind()) { |
6688 | case Arg::Tmp: |
6689 | #if CPU(X86) || CPU(X86_64) |
6690 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
6691 | OPGEN_RETURN(false); |
6692 | if (!args[1].tmp().isGP()) |
6693 | OPGEN_RETURN(false); |
6694 | OPGEN_RETURN(true); |
6695 | #endif |
6696 | break; |
6697 | break; |
6698 | default: |
6699 | break; |
6700 | } |
6701 | break; |
6702 | default: |
6703 | break; |
6704 | } |
6705 | break; |
6706 | default: |
6707 | break; |
6708 | } |
6709 | break; |
6710 | case Opcode::And32: |
6711 | switch (this->args.size()) { |
6712 | case 3: |
6713 | switch (this->args[0].kind()) { |
6714 | case Arg::Tmp: |
6715 | switch (this->args[1].kind()) { |
6716 | case Arg::Tmp: |
6717 | switch (this->args[2].kind()) { |
6718 | case Arg::Tmp: |
6719 | if (!args[0].tmp().isGP()) |
6720 | OPGEN_RETURN(false); |
6721 | if (!args[1].tmp().isGP()) |
6722 | OPGEN_RETURN(false); |
6723 | if (!args[2].tmp().isGP()) |
6724 | OPGEN_RETURN(false); |
6725 | OPGEN_RETURN(true); |
6726 | break; |
6727 | break; |
6728 | default: |
6729 | break; |
6730 | } |
6731 | break; |
6732 | case Arg::Addr: |
6733 | case Arg::Stack: |
6734 | case Arg::CallArg: |
6735 | switch (this->args[2].kind()) { |
6736 | case Arg::Tmp: |
6737 | #if CPU(X86) || CPU(X86_64) |
6738 | if (!args[0].tmp().isGP()) |
6739 | OPGEN_RETURN(false); |
6740 | if (!Arg::isValidAddrForm(args[1].offset())) |
6741 | OPGEN_RETURN(false); |
6742 | if (!args[2].tmp().isGP()) |
6743 | OPGEN_RETURN(false); |
6744 | OPGEN_RETURN(true); |
6745 | #endif |
6746 | break; |
6747 | break; |
6748 | default: |
6749 | break; |
6750 | } |
6751 | break; |
6752 | default: |
6753 | break; |
6754 | } |
6755 | break; |
6756 | case Arg::BitImm: |
6757 | switch (this->args[1].kind()) { |
6758 | case Arg::Tmp: |
6759 | switch (this->args[2].kind()) { |
6760 | case Arg::Tmp: |
6761 | #if CPU(ARM64) |
6762 | if (!Arg::isValidBitImmForm(args[0].value())) |
6763 | OPGEN_RETURN(false); |
6764 | if (!args[1].tmp().isGP()) |
6765 | OPGEN_RETURN(false); |
6766 | if (!args[2].tmp().isGP()) |
6767 | OPGEN_RETURN(false); |
6768 | OPGEN_RETURN(true); |
6769 | #endif |
6770 | break; |
6771 | break; |
6772 | default: |
6773 | break; |
6774 | } |
6775 | break; |
6776 | default: |
6777 | break; |
6778 | } |
6779 | break; |
6780 | case Arg::Addr: |
6781 | case Arg::Stack: |
6782 | case Arg::CallArg: |
6783 | switch (this->args[1].kind()) { |
6784 | case Arg::Tmp: |
6785 | switch (this->args[2].kind()) { |
6786 | case Arg::Tmp: |
6787 | #if CPU(X86) || CPU(X86_64) |
6788 | if (!Arg::isValidAddrForm(args[0].offset())) |
6789 | OPGEN_RETURN(false); |
6790 | if (!args[1].tmp().isGP()) |
6791 | OPGEN_RETURN(false); |
6792 | if (!args[2].tmp().isGP()) |
6793 | OPGEN_RETURN(false); |
6794 | OPGEN_RETURN(true); |
6795 | #endif |
6796 | break; |
6797 | break; |
6798 | default: |
6799 | break; |
6800 | } |
6801 | break; |
6802 | default: |
6803 | break; |
6804 | } |
6805 | break; |
6806 | default: |
6807 | break; |
6808 | } |
6809 | break; |
6810 | case 2: |
6811 | switch (this->args[0].kind()) { |
6812 | case Arg::Tmp: |
6813 | switch (this->args[1].kind()) { |
6814 | case Arg::Tmp: |
6815 | if (!args[0].tmp().isGP()) |
6816 | OPGEN_RETURN(false); |
6817 | if (!args[1].tmp().isGP()) |
6818 | OPGEN_RETURN(false); |
6819 | OPGEN_RETURN(true); |
6820 | break; |
6821 | break; |
6822 | case Arg::Addr: |
6823 | case Arg::Stack: |
6824 | case Arg::CallArg: |
6825 | #if CPU(X86) || CPU(X86_64) |
6826 | if (!args[0].tmp().isGP()) |
6827 | OPGEN_RETURN(false); |
6828 | if (!Arg::isValidAddrForm(args[1].offset())) |
6829 | OPGEN_RETURN(false); |
6830 | OPGEN_RETURN(true); |
6831 | #endif |
6832 | break; |
6833 | break; |
6834 | case Arg::Index: |
6835 | #if CPU(X86) || CPU(X86_64) |
6836 | if (!args[0].tmp().isGP()) |
6837 | OPGEN_RETURN(false); |
6838 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
6839 | OPGEN_RETURN(false); |
6840 | OPGEN_RETURN(true); |
6841 | #endif |
6842 | break; |
6843 | break; |
6844 | default: |
6845 | break; |
6846 | } |
6847 | break; |
6848 | case Arg::Imm: |
6849 | switch (this->args[1].kind()) { |
6850 | case Arg::Tmp: |
6851 | #if CPU(X86) || CPU(X86_64) |
6852 | if (!Arg::isValidImmForm(args[0].value())) |
6853 | OPGEN_RETURN(false); |
6854 | if (!args[1].tmp().isGP()) |
6855 | OPGEN_RETURN(false); |
6856 | OPGEN_RETURN(true); |
6857 | #endif |
6858 | break; |
6859 | break; |
6860 | case Arg::Addr: |
6861 | case Arg::Stack: |
6862 | case Arg::CallArg: |
6863 | #if CPU(X86) || CPU(X86_64) |
6864 | if (!Arg::isValidImmForm(args[0].value())) |
6865 | OPGEN_RETURN(false); |
6866 | if (!Arg::isValidAddrForm(args[1].offset())) |
6867 | OPGEN_RETURN(false); |
6868 | OPGEN_RETURN(true); |
6869 | #endif |
6870 | break; |
6871 | break; |
6872 | case Arg::Index: |
6873 | #if CPU(X86) || CPU(X86_64) |
6874 | if (!Arg::isValidImmForm(args[0].value())) |
6875 | OPGEN_RETURN(false); |
6876 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
6877 | OPGEN_RETURN(false); |
6878 | OPGEN_RETURN(true); |
6879 | #endif |
6880 | break; |
6881 | break; |
6882 | default: |
6883 | break; |
6884 | } |
6885 | break; |
6886 | case Arg::Addr: |
6887 | case Arg::Stack: |
6888 | case Arg::CallArg: |
6889 | switch (this->args[1].kind()) { |
6890 | case Arg::Tmp: |
6891 | #if CPU(X86) || CPU(X86_64) |
6892 | if (!Arg::isValidAddrForm(args[0].offset())) |
6893 | OPGEN_RETURN(false); |
6894 | if (!args[1].tmp().isGP()) |
6895 | OPGEN_RETURN(false); |
6896 | OPGEN_RETURN(true); |
6897 | #endif |
6898 | break; |
6899 | break; |
6900 | default: |
6901 | break; |
6902 | } |
6903 | break; |
6904 | case Arg::Index: |
6905 | switch (this->args[1].kind()) { |
6906 | case Arg::Tmp: |
6907 | #if CPU(X86) || CPU(X86_64) |
6908 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
6909 | OPGEN_RETURN(false); |
6910 | if (!args[1].tmp().isGP()) |
6911 | OPGEN_RETURN(false); |
6912 | OPGEN_RETURN(true); |
6913 | #endif |
6914 | break; |
6915 | break; |
6916 | default: |
6917 | break; |
6918 | } |
6919 | break; |
6920 | default: |
6921 | break; |
6922 | } |
6923 | break; |
6924 | default: |
6925 | break; |
6926 | } |
6927 | break; |
6928 | case Opcode::And64: |
6929 | switch (this->args.size()) { |
6930 | case 3: |
6931 | switch (this->args[0].kind()) { |
6932 | case Arg::Tmp: |
6933 | switch (this->args[1].kind()) { |
6934 | case Arg::Tmp: |
6935 | switch (this->args[2].kind()) { |
6936 | case Arg::Tmp: |
6937 | #if CPU(X86_64) || CPU(ARM64) |
6938 | if (!args[0].tmp().isGP()) |
6939 | OPGEN_RETURN(false); |
6940 | if (!args[1].tmp().isGP()) |
6941 | OPGEN_RETURN(false); |
6942 | if (!args[2].tmp().isGP()) |
6943 | OPGEN_RETURN(false); |
6944 | OPGEN_RETURN(true); |
6945 | #endif |
6946 | break; |
6947 | break; |
6948 | default: |
6949 | break; |
6950 | } |
6951 | break; |
6952 | default: |
6953 | break; |
6954 | } |
6955 | break; |
6956 | #if USE(JSVALUE64) |
6957 | case Arg::BitImm64: |
6958 | switch (this->args[1].kind()) { |
6959 | case Arg::Tmp: |
6960 | switch (this->args[2].kind()) { |
6961 | case Arg::Tmp: |
6962 | #if CPU(ARM64) |
6963 | if (!Arg::isValidBitImm64Form(args[0].value())) |
6964 | OPGEN_RETURN(false); |
6965 | if (!args[1].tmp().isGP()) |
6966 | OPGEN_RETURN(false); |
6967 | if (!args[2].tmp().isGP()) |
6968 | OPGEN_RETURN(false); |
6969 | OPGEN_RETURN(true); |
6970 | #endif |
6971 | break; |
6972 | break; |
6973 | default: |
6974 | break; |
6975 | } |
6976 | break; |
6977 | default: |
6978 | break; |
6979 | } |
6980 | break; |
6981 | #endif // USE(JSVALUE64) |
6982 | default: |
6983 | break; |
6984 | } |
6985 | break; |
6986 | case 2: |
6987 | switch (this->args[0].kind()) { |
6988 | case Arg::Tmp: |
6989 | switch (this->args[1].kind()) { |
6990 | case Arg::Tmp: |
6991 | #if CPU(X86_64) |
6992 | if (!args[0].tmp().isGP()) |
6993 | OPGEN_RETURN(false); |
6994 | if (!args[1].tmp().isGP()) |
6995 | OPGEN_RETURN(false); |
6996 | OPGEN_RETURN(true); |
6997 | #endif |
6998 | break; |
6999 | break; |
7000 | case Arg::Addr: |
7001 | case Arg::Stack: |
7002 | case Arg::CallArg: |
7003 | #if CPU(X86_64) |
7004 | if (!args[0].tmp().isGP()) |
7005 | OPGEN_RETURN(false); |
7006 | if (!Arg::isValidAddrForm(args[1].offset())) |
7007 | OPGEN_RETURN(false); |
7008 | OPGEN_RETURN(true); |
7009 | #endif |
7010 | break; |
7011 | break; |
7012 | case Arg::Index: |
7013 | #if CPU(X86_64) |
7014 | if (!args[0].tmp().isGP()) |
7015 | OPGEN_RETURN(false); |
7016 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
7017 | OPGEN_RETURN(false); |
7018 | OPGEN_RETURN(true); |
7019 | #endif |
7020 | break; |
7021 | break; |
7022 | default: |
7023 | break; |
7024 | } |
7025 | break; |
7026 | case Arg::Imm: |
7027 | switch (this->args[1].kind()) { |
7028 | case Arg::Tmp: |
7029 | #if CPU(X86_64) |
7030 | if (!Arg::isValidImmForm(args[0].value())) |
7031 | OPGEN_RETURN(false); |
7032 | if (!args[1].tmp().isGP()) |
7033 | OPGEN_RETURN(false); |
7034 | OPGEN_RETURN(true); |
7035 | #endif |
7036 | break; |
7037 | break; |
7038 | case Arg::Addr: |
7039 | case Arg::Stack: |
7040 | case Arg::CallArg: |
7041 | #if CPU(X86_64) |
7042 | if (!Arg::isValidImmForm(args[0].value())) |
7043 | OPGEN_RETURN(false); |
7044 | if (!Arg::isValidAddrForm(args[1].offset())) |
7045 | OPGEN_RETURN(false); |
7046 | OPGEN_RETURN(true); |
7047 | #endif |
7048 | break; |
7049 | break; |
7050 | case Arg::Index: |
7051 | #if CPU(X86_64) |
7052 | if (!Arg::isValidImmForm(args[0].value())) |
7053 | OPGEN_RETURN(false); |
7054 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
7055 | OPGEN_RETURN(false); |
7056 | OPGEN_RETURN(true); |
7057 | #endif |
7058 | break; |
7059 | break; |
7060 | default: |
7061 | break; |
7062 | } |
7063 | break; |
7064 | case Arg::Addr: |
7065 | case Arg::Stack: |
7066 | case Arg::CallArg: |
7067 | switch (this->args[1].kind()) { |
7068 | case Arg::Tmp: |
7069 | #if CPU(X86_64) |
7070 | if (!Arg::isValidAddrForm(args[0].offset())) |
7071 | OPGEN_RETURN(false); |
7072 | if (!args[1].tmp().isGP()) |
7073 | OPGEN_RETURN(false); |
7074 | OPGEN_RETURN(true); |
7075 | #endif |
7076 | break; |
7077 | break; |
7078 | default: |
7079 | break; |
7080 | } |
7081 | break; |
7082 | case Arg::Index: |
7083 | switch (this->args[1].kind()) { |
7084 | case Arg::Tmp: |
7085 | #if CPU(X86_64) |
7086 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
7087 | OPGEN_RETURN(false); |
7088 | if (!args[1].tmp().isGP()) |
7089 | OPGEN_RETURN(false); |
7090 | OPGEN_RETURN(true); |
7091 | #endif |
7092 | break; |
7093 | break; |
7094 | default: |
7095 | break; |
7096 | } |
7097 | break; |
7098 | default: |
7099 | break; |
7100 | } |
7101 | break; |
7102 | default: |
7103 | break; |
7104 | } |
7105 | break; |
7106 | case Opcode::AndDouble: |
7107 | switch (this->args.size()) { |
7108 | case 3: |
7109 | switch (this->args[0].kind()) { |
7110 | case Arg::Tmp: |
7111 | switch (this->args[1].kind()) { |
7112 | case Arg::Tmp: |
7113 | switch (this->args[2].kind()) { |
7114 | case Arg::Tmp: |
7115 | if (!args[0].tmp().isFP()) |
7116 | OPGEN_RETURN(false); |
7117 | if (!args[1].tmp().isFP()) |
7118 | OPGEN_RETURN(false); |
7119 | if (!args[2].tmp().isFP()) |
7120 | OPGEN_RETURN(false); |
7121 | OPGEN_RETURN(true); |
7122 | break; |
7123 | break; |
7124 | default: |
7125 | break; |
7126 | } |
7127 | break; |
7128 | default: |
7129 | break; |
7130 | } |
7131 | break; |
7132 | default: |
7133 | break; |
7134 | } |
7135 | break; |
7136 | case 2: |
7137 | switch (this->args[0].kind()) { |
7138 | case Arg::Tmp: |
7139 | switch (this->args[1].kind()) { |
7140 | case Arg::Tmp: |
7141 | #if CPU(X86) || CPU(X86_64) |
7142 | if (!args[0].tmp().isFP()) |
7143 | OPGEN_RETURN(false); |
7144 | if (!args[1].tmp().isFP()) |
7145 | OPGEN_RETURN(false); |
7146 | OPGEN_RETURN(true); |
7147 | #endif |
7148 | break; |
7149 | break; |
7150 | default: |
7151 | break; |
7152 | } |
7153 | break; |
7154 | default: |
7155 | break; |
7156 | } |
7157 | break; |
7158 | default: |
7159 | break; |
7160 | } |
7161 | break; |
7162 | case Opcode::AndFloat: |
7163 | switch (this->args.size()) { |
7164 | case 3: |
7165 | switch (this->args[0].kind()) { |
7166 | case Arg::Tmp: |
7167 | switch (this->args[1].kind()) { |
7168 | case Arg::Tmp: |
7169 | switch (this->args[2].kind()) { |
7170 | case Arg::Tmp: |
7171 | if (!args[0].tmp().isFP()) |
7172 | OPGEN_RETURN(false); |
7173 | if (!args[1].tmp().isFP()) |
7174 | OPGEN_RETURN(false); |
7175 | if (!args[2].tmp().isFP()) |
7176 | OPGEN_RETURN(false); |
7177 | OPGEN_RETURN(true); |
7178 | break; |
7179 | break; |
7180 | default: |
7181 | break; |
7182 | } |
7183 | break; |
7184 | default: |
7185 | break; |
7186 | } |
7187 | break; |
7188 | default: |
7189 | break; |
7190 | } |
7191 | break; |
7192 | case 2: |
7193 | switch (this->args[0].kind()) { |
7194 | case Arg::Tmp: |
7195 | switch (this->args[1].kind()) { |
7196 | case Arg::Tmp: |
7197 | #if CPU(X86) || CPU(X86_64) |
7198 | if (!args[0].tmp().isFP()) |
7199 | OPGEN_RETURN(false); |
7200 | if (!args[1].tmp().isFP()) |
7201 | OPGEN_RETURN(false); |
7202 | OPGEN_RETURN(true); |
7203 | #endif |
7204 | break; |
7205 | break; |
7206 | default: |
7207 | break; |
7208 | } |
7209 | break; |
7210 | default: |
7211 | break; |
7212 | } |
7213 | break; |
7214 | default: |
7215 | break; |
7216 | } |
7217 | break; |
7218 | case Opcode::OrDouble: |
7219 | switch (this->args.size()) { |
7220 | case 3: |
7221 | switch (this->args[0].kind()) { |
7222 | case Arg::Tmp: |
7223 | switch (this->args[1].kind()) { |
7224 | case Arg::Tmp: |
7225 | switch (this->args[2].kind()) { |
7226 | case Arg::Tmp: |
7227 | if (!args[0].tmp().isFP()) |
7228 | OPGEN_RETURN(false); |
7229 | if (!args[1].tmp().isFP()) |
7230 | OPGEN_RETURN(false); |
7231 | if (!args[2].tmp().isFP()) |
7232 | OPGEN_RETURN(false); |
7233 | OPGEN_RETURN(true); |
7234 | break; |
7235 | break; |
7236 | default: |
7237 | break; |
7238 | } |
7239 | break; |
7240 | default: |
7241 | break; |
7242 | } |
7243 | break; |
7244 | default: |
7245 | break; |
7246 | } |
7247 | break; |
7248 | case 2: |
7249 | switch (this->args[0].kind()) { |
7250 | case Arg::Tmp: |
7251 | switch (this->args[1].kind()) { |
7252 | case Arg::Tmp: |
7253 | #if CPU(X86) || CPU(X86_64) |
7254 | if (!args[0].tmp().isFP()) |
7255 | OPGEN_RETURN(false); |
7256 | if (!args[1].tmp().isFP()) |
7257 | OPGEN_RETURN(false); |
7258 | OPGEN_RETURN(true); |
7259 | #endif |
7260 | break; |
7261 | break; |
7262 | default: |
7263 | break; |
7264 | } |
7265 | break; |
7266 | default: |
7267 | break; |
7268 | } |
7269 | break; |
7270 | default: |
7271 | break; |
7272 | } |
7273 | break; |
7274 | case Opcode::OrFloat: |
7275 | switch (this->args.size()) { |
7276 | case 3: |
7277 | switch (this->args[0].kind()) { |
7278 | case Arg::Tmp: |
7279 | switch (this->args[1].kind()) { |
7280 | case Arg::Tmp: |
7281 | switch (this->args[2].kind()) { |
7282 | case Arg::Tmp: |
7283 | if (!args[0].tmp().isFP()) |
7284 | OPGEN_RETURN(false); |
7285 | if (!args[1].tmp().isFP()) |
7286 | OPGEN_RETURN(false); |
7287 | if (!args[2].tmp().isFP()) |
7288 | OPGEN_RETURN(false); |
7289 | OPGEN_RETURN(true); |
7290 | break; |
7291 | break; |
7292 | default: |
7293 | break; |
7294 | } |
7295 | break; |
7296 | default: |
7297 | break; |
7298 | } |
7299 | break; |
7300 | default: |
7301 | break; |
7302 | } |
7303 | break; |
7304 | case 2: |
7305 | switch (this->args[0].kind()) { |
7306 | case Arg::Tmp: |
7307 | switch (this->args[1].kind()) { |
7308 | case Arg::Tmp: |
7309 | #if CPU(X86) || CPU(X86_64) |
7310 | if (!args[0].tmp().isFP()) |
7311 | OPGEN_RETURN(false); |
7312 | if (!args[1].tmp().isFP()) |
7313 | OPGEN_RETURN(false); |
7314 | OPGEN_RETURN(true); |
7315 | #endif |
7316 | break; |
7317 | break; |
7318 | default: |
7319 | break; |
7320 | } |
7321 | break; |
7322 | default: |
7323 | break; |
7324 | } |
7325 | break; |
7326 | default: |
7327 | break; |
7328 | } |
7329 | break; |
7330 | case Opcode::XorDouble: |
7331 | switch (this->args.size()) { |
7332 | case 3: |
7333 | switch (this->args[0].kind()) { |
7334 | case Arg::Tmp: |
7335 | switch (this->args[1].kind()) { |
7336 | case Arg::Tmp: |
7337 | switch (this->args[2].kind()) { |
7338 | case Arg::Tmp: |
7339 | #if CPU(X86) || CPU(X86_64) |
7340 | if (!args[0].tmp().isFP()) |
7341 | OPGEN_RETURN(false); |
7342 | if (!args[1].tmp().isFP()) |
7343 | OPGEN_RETURN(false); |
7344 | if (!args[2].tmp().isFP()) |
7345 | OPGEN_RETURN(false); |
7346 | OPGEN_RETURN(true); |
7347 | #endif |
7348 | break; |
7349 | break; |
7350 | default: |
7351 | break; |
7352 | } |
7353 | break; |
7354 | default: |
7355 | break; |
7356 | } |
7357 | break; |
7358 | default: |
7359 | break; |
7360 | } |
7361 | break; |
7362 | case 2: |
7363 | switch (this->args[0].kind()) { |
7364 | case Arg::Tmp: |
7365 | switch (this->args[1].kind()) { |
7366 | case Arg::Tmp: |
7367 | #if CPU(X86) || CPU(X86_64) |
7368 | if (!args[0].tmp().isFP()) |
7369 | OPGEN_RETURN(false); |
7370 | if (!args[1].tmp().isFP()) |
7371 | OPGEN_RETURN(false); |
7372 | OPGEN_RETURN(true); |
7373 | #endif |
7374 | break; |
7375 | break; |
7376 | default: |
7377 | break; |
7378 | } |
7379 | break; |
7380 | default: |
7381 | break; |
7382 | } |
7383 | break; |
7384 | default: |
7385 | break; |
7386 | } |
7387 | break; |
7388 | case Opcode::XorFloat: |
7389 | switch (this->args.size()) { |
7390 | case 3: |
7391 | switch (this->args[0].kind()) { |
7392 | case Arg::Tmp: |
7393 | switch (this->args[1].kind()) { |
7394 | case Arg::Tmp: |
7395 | switch (this->args[2].kind()) { |
7396 | case Arg::Tmp: |
7397 | #if CPU(X86) || CPU(X86_64) |
7398 | if (!args[0].tmp().isFP()) |
7399 | OPGEN_RETURN(false); |
7400 | if (!args[1].tmp().isFP()) |
7401 | OPGEN_RETURN(false); |
7402 | if (!args[2].tmp().isFP()) |
7403 | OPGEN_RETURN(false); |
7404 | OPGEN_RETURN(true); |
7405 | #endif |
7406 | break; |
7407 | break; |
7408 | default: |
7409 | break; |
7410 | } |
7411 | break; |
7412 | default: |
7413 | break; |
7414 | } |
7415 | break; |
7416 | default: |
7417 | break; |
7418 | } |
7419 | break; |
7420 | case 2: |
7421 | switch (this->args[0].kind()) { |
7422 | case Arg::Tmp: |
7423 | switch (this->args[1].kind()) { |
7424 | case Arg::Tmp: |
7425 | #if CPU(X86) || CPU(X86_64) |
7426 | if (!args[0].tmp().isFP()) |
7427 | OPGEN_RETURN(false); |
7428 | if (!args[1].tmp().isFP()) |
7429 | OPGEN_RETURN(false); |
7430 | OPGEN_RETURN(true); |
7431 | #endif |
7432 | break; |
7433 | break; |
7434 | default: |
7435 | break; |
7436 | } |
7437 | break; |
7438 | default: |
7439 | break; |
7440 | } |
7441 | break; |
7442 | default: |
7443 | break; |
7444 | } |
7445 | break; |
7446 | case Opcode::Lshift32: |
7447 | switch (this->args.size()) { |
7448 | case 3: |
7449 | switch (this->args[0].kind()) { |
7450 | case Arg::Tmp: |
7451 | switch (this->args[1].kind()) { |
7452 | case Arg::Tmp: |
7453 | switch (this->args[2].kind()) { |
7454 | case Arg::Tmp: |
7455 | #if CPU(ARM64) |
7456 | if (!args[0].tmp().isGP()) |
7457 | OPGEN_RETURN(false); |
7458 | if (!args[1].tmp().isGP()) |
7459 | OPGEN_RETURN(false); |
7460 | if (!args[2].tmp().isGP()) |
7461 | OPGEN_RETURN(false); |
7462 | OPGEN_RETURN(true); |
7463 | #endif |
7464 | break; |
7465 | break; |
7466 | default: |
7467 | break; |
7468 | } |
7469 | break; |
7470 | case Arg::Imm: |
7471 | switch (this->args[2].kind()) { |
7472 | case Arg::Tmp: |
7473 | #if CPU(ARM64) |
7474 | if (!args[0].tmp().isGP()) |
7475 | OPGEN_RETURN(false); |
7476 | if (!Arg::isValidImmForm(args[1].value())) |
7477 | OPGEN_RETURN(false); |
7478 | if (!args[2].tmp().isGP()) |
7479 | OPGEN_RETURN(false); |
7480 | OPGEN_RETURN(true); |
7481 | #endif |
7482 | break; |
7483 | break; |
7484 | default: |
7485 | break; |
7486 | } |
7487 | break; |
7488 | default: |
7489 | break; |
7490 | } |
7491 | break; |
7492 | default: |
7493 | break; |
7494 | } |
7495 | break; |
7496 | case 2: |
7497 | switch (this->args[0].kind()) { |
7498 | case Arg::Tmp: |
7499 | switch (this->args[1].kind()) { |
7500 | case Arg::Tmp: |
7501 | #if CPU(X86) || CPU(X86_64) |
7502 | if (!args[0].tmp().isGP()) |
7503 | OPGEN_RETURN(false); |
7504 | if (!args[1].tmp().isGP()) |
7505 | OPGEN_RETURN(false); |
7506 | if (!isLshift32Valid(*this)) |
7507 | OPGEN_RETURN(false); |
7508 | OPGEN_RETURN(true); |
7509 | #endif |
7510 | break; |
7511 | break; |
7512 | default: |
7513 | break; |
7514 | } |
7515 | break; |
7516 | case Arg::Imm: |
7517 | switch (this->args[1].kind()) { |
7518 | case Arg::Tmp: |
7519 | #if CPU(X86) || CPU(X86_64) |
7520 | if (!Arg::isValidImmForm(args[0].value())) |
7521 | OPGEN_RETURN(false); |
7522 | if (!args[1].tmp().isGP()) |
7523 | OPGEN_RETURN(false); |
7524 | OPGEN_RETURN(true); |
7525 | #endif |
7526 | break; |
7527 | break; |
7528 | default: |
7529 | break; |
7530 | } |
7531 | break; |
7532 | default: |
7533 | break; |
7534 | } |
7535 | break; |
7536 | default: |
7537 | break; |
7538 | } |
7539 | break; |
7540 | case Opcode::Lshift64: |
7541 | switch (this->args.size()) { |
7542 | case 3: |
7543 | switch (this->args[0].kind()) { |
7544 | case Arg::Tmp: |
7545 | switch (this->args[1].kind()) { |
7546 | case Arg::Tmp: |
7547 | switch (this->args[2].kind()) { |
7548 | case Arg::Tmp: |
7549 | #if CPU(ARM64) |
7550 | if (!args[0].tmp().isGP()) |
7551 | OPGEN_RETURN(false); |
7552 | if (!args[1].tmp().isGP()) |
7553 | OPGEN_RETURN(false); |
7554 | if (!args[2].tmp().isGP()) |
7555 | OPGEN_RETURN(false); |
7556 | OPGEN_RETURN(true); |
7557 | #endif |
7558 | break; |
7559 | break; |
7560 | default: |
7561 | break; |
7562 | } |
7563 | break; |
7564 | case Arg::Imm: |
7565 | switch (this->args[2].kind()) { |
7566 | case Arg::Tmp: |
7567 | #if CPU(ARM64) |
7568 | if (!args[0].tmp().isGP()) |
7569 | OPGEN_RETURN(false); |
7570 | if (!Arg::isValidImmForm(args[1].value())) |
7571 | OPGEN_RETURN(false); |
7572 | if (!args[2].tmp().isGP()) |
7573 | OPGEN_RETURN(false); |
7574 | OPGEN_RETURN(true); |
7575 | #endif |
7576 | break; |
7577 | break; |
7578 | default: |
7579 | break; |
7580 | } |
7581 | break; |
7582 | default: |
7583 | break; |
7584 | } |
7585 | break; |
7586 | default: |
7587 | break; |
7588 | } |
7589 | break; |
7590 | case 2: |
7591 | switch (this->args[0].kind()) { |
7592 | case Arg::Tmp: |
7593 | switch (this->args[1].kind()) { |
7594 | case Arg::Tmp: |
7595 | #if CPU(X86_64) |
7596 | if (!args[0].tmp().isGP()) |
7597 | OPGEN_RETURN(false); |
7598 | if (!args[1].tmp().isGP()) |
7599 | OPGEN_RETURN(false); |
7600 | if (!isLshift64Valid(*this)) |
7601 | OPGEN_RETURN(false); |
7602 | OPGEN_RETURN(true); |
7603 | #endif |
7604 | break; |
7605 | break; |
7606 | default: |
7607 | break; |
7608 | } |
7609 | break; |
7610 | case Arg::Imm: |
7611 | switch (this->args[1].kind()) { |
7612 | case Arg::Tmp: |
7613 | #if CPU(X86_64) |
7614 | if (!Arg::isValidImmForm(args[0].value())) |
7615 | OPGEN_RETURN(false); |
7616 | if (!args[1].tmp().isGP()) |
7617 | OPGEN_RETURN(false); |
7618 | OPGEN_RETURN(true); |
7619 | #endif |
7620 | break; |
7621 | break; |
7622 | default: |
7623 | break; |
7624 | } |
7625 | break; |
7626 | default: |
7627 | break; |
7628 | } |
7629 | break; |
7630 | default: |
7631 | break; |
7632 | } |
7633 | break; |
7634 | case Opcode::Rshift32: |
7635 | switch (this->args.size()) { |
7636 | case 3: |
7637 | switch (this->args[0].kind()) { |
7638 | case Arg::Tmp: |
7639 | switch (this->args[1].kind()) { |
7640 | case Arg::Tmp: |
7641 | switch (this->args[2].kind()) { |
7642 | case Arg::Tmp: |
7643 | #if CPU(ARM64) |
7644 | if (!args[0].tmp().isGP()) |
7645 | OPGEN_RETURN(false); |
7646 | if (!args[1].tmp().isGP()) |
7647 | OPGEN_RETURN(false); |
7648 | if (!args[2].tmp().isGP()) |
7649 | OPGEN_RETURN(false); |
7650 | OPGEN_RETURN(true); |
7651 | #endif |
7652 | break; |
7653 | break; |
7654 | default: |
7655 | break; |
7656 | } |
7657 | break; |
7658 | case Arg::Imm: |
7659 | switch (this->args[2].kind()) { |
7660 | case Arg::Tmp: |
7661 | #if CPU(ARM64) |
7662 | if (!args[0].tmp().isGP()) |
7663 | OPGEN_RETURN(false); |
7664 | if (!Arg::isValidImmForm(args[1].value())) |
7665 | OPGEN_RETURN(false); |
7666 | if (!args[2].tmp().isGP()) |
7667 | OPGEN_RETURN(false); |
7668 | OPGEN_RETURN(true); |
7669 | #endif |
7670 | break; |
7671 | break; |
7672 | default: |
7673 | break; |
7674 | } |
7675 | break; |
7676 | default: |
7677 | break; |
7678 | } |
7679 | break; |
7680 | default: |
7681 | break; |
7682 | } |
7683 | break; |
7684 | case 2: |
7685 | switch (this->args[0].kind()) { |
7686 | case Arg::Tmp: |
7687 | switch (this->args[1].kind()) { |
7688 | case Arg::Tmp: |
7689 | #if CPU(X86) || CPU(X86_64) |
7690 | if (!args[0].tmp().isGP()) |
7691 | OPGEN_RETURN(false); |
7692 | if (!args[1].tmp().isGP()) |
7693 | OPGEN_RETURN(false); |
7694 | if (!isRshift32Valid(*this)) |
7695 | OPGEN_RETURN(false); |
7696 | OPGEN_RETURN(true); |
7697 | #endif |
7698 | break; |
7699 | break; |
7700 | default: |
7701 | break; |
7702 | } |
7703 | break; |
7704 | case Arg::Imm: |
7705 | switch (this->args[1].kind()) { |
7706 | case Arg::Tmp: |
7707 | #if CPU(X86) || CPU(X86_64) |
7708 | if (!Arg::isValidImmForm(args[0].value())) |
7709 | OPGEN_RETURN(false); |
7710 | if (!args[1].tmp().isGP()) |
7711 | OPGEN_RETURN(false); |
7712 | OPGEN_RETURN(true); |
7713 | #endif |
7714 | break; |
7715 | break; |
7716 | default: |
7717 | break; |
7718 | } |
7719 | break; |
7720 | default: |
7721 | break; |
7722 | } |
7723 | break; |
7724 | default: |
7725 | break; |
7726 | } |
7727 | break; |
7728 | case Opcode::Rshift64: |
7729 | switch (this->args.size()) { |
7730 | case 3: |
7731 | switch (this->args[0].kind()) { |
7732 | case Arg::Tmp: |
7733 | switch (this->args[1].kind()) { |
7734 | case Arg::Tmp: |
7735 | switch (this->args[2].kind()) { |
7736 | case Arg::Tmp: |
7737 | #if CPU(ARM64) |
7738 | if (!args[0].tmp().isGP()) |
7739 | OPGEN_RETURN(false); |
7740 | if (!args[1].tmp().isGP()) |
7741 | OPGEN_RETURN(false); |
7742 | if (!args[2].tmp().isGP()) |
7743 | OPGEN_RETURN(false); |
7744 | OPGEN_RETURN(true); |
7745 | #endif |
7746 | break; |
7747 | break; |
7748 | default: |
7749 | break; |
7750 | } |
7751 | break; |
7752 | case Arg::Imm: |
7753 | switch (this->args[2].kind()) { |
7754 | case Arg::Tmp: |
7755 | #if CPU(ARM64) |
7756 | if (!args[0].tmp().isGP()) |
7757 | OPGEN_RETURN(false); |
7758 | if (!Arg::isValidImmForm(args[1].value())) |
7759 | OPGEN_RETURN(false); |
7760 | if (!args[2].tmp().isGP()) |
7761 | OPGEN_RETURN(false); |
7762 | OPGEN_RETURN(true); |
7763 | #endif |
7764 | break; |
7765 | break; |
7766 | default: |
7767 | break; |
7768 | } |
7769 | break; |
7770 | default: |
7771 | break; |
7772 | } |
7773 | break; |
7774 | default: |
7775 | break; |
7776 | } |
7777 | break; |
7778 | case 2: |
7779 | switch (this->args[0].kind()) { |
7780 | case Arg::Tmp: |
7781 | switch (this->args[1].kind()) { |
7782 | case Arg::Tmp: |
7783 | #if CPU(X86_64) |
7784 | if (!args[0].tmp().isGP()) |
7785 | OPGEN_RETURN(false); |
7786 | if (!args[1].tmp().isGP()) |
7787 | OPGEN_RETURN(false); |
7788 | if (!isRshift64Valid(*this)) |
7789 | OPGEN_RETURN(false); |
7790 | OPGEN_RETURN(true); |
7791 | #endif |
7792 | break; |
7793 | break; |
7794 | default: |
7795 | break; |
7796 | } |
7797 | break; |
7798 | case Arg::Imm: |
7799 | switch (this->args[1].kind()) { |
7800 | case Arg::Tmp: |
7801 | #if CPU(X86_64) |
7802 | if (!Arg::isValidImmForm(args[0].value())) |
7803 | OPGEN_RETURN(false); |
7804 | if (!args[1].tmp().isGP()) |
7805 | OPGEN_RETURN(false); |
7806 | OPGEN_RETURN(true); |
7807 | #endif |
7808 | break; |
7809 | break; |
7810 | default: |
7811 | break; |
7812 | } |
7813 | break; |
7814 | default: |
7815 | break; |
7816 | } |
7817 | break; |
7818 | default: |
7819 | break; |
7820 | } |
7821 | break; |
7822 | case Opcode::Urshift32: |
7823 | switch (this->args.size()) { |
7824 | case 3: |
7825 | switch (this->args[0].kind()) { |
7826 | case Arg::Tmp: |
7827 | switch (this->args[1].kind()) { |
7828 | case Arg::Tmp: |
7829 | switch (this->args[2].kind()) { |
7830 | case Arg::Tmp: |
7831 | #if CPU(ARM64) |
7832 | if (!args[0].tmp().isGP()) |
7833 | OPGEN_RETURN(false); |
7834 | if (!args[1].tmp().isGP()) |
7835 | OPGEN_RETURN(false); |
7836 | if (!args[2].tmp().isGP()) |
7837 | OPGEN_RETURN(false); |
7838 | OPGEN_RETURN(true); |
7839 | #endif |
7840 | break; |
7841 | break; |
7842 | default: |
7843 | break; |
7844 | } |
7845 | break; |
7846 | case Arg::Imm: |
7847 | switch (this->args[2].kind()) { |
7848 | case Arg::Tmp: |
7849 | #if CPU(ARM64) |
7850 | if (!args[0].tmp().isGP()) |
7851 | OPGEN_RETURN(false); |
7852 | if (!Arg::isValidImmForm(args[1].value())) |
7853 | OPGEN_RETURN(false); |
7854 | if (!args[2].tmp().isGP()) |
7855 | OPGEN_RETURN(false); |
7856 | OPGEN_RETURN(true); |
7857 | #endif |
7858 | break; |
7859 | break; |
7860 | default: |
7861 | break; |
7862 | } |
7863 | break; |
7864 | default: |
7865 | break; |
7866 | } |
7867 | break; |
7868 | default: |
7869 | break; |
7870 | } |
7871 | break; |
7872 | case 2: |
7873 | switch (this->args[0].kind()) { |
7874 | case Arg::Tmp: |
7875 | switch (this->args[1].kind()) { |
7876 | case Arg::Tmp: |
7877 | #if CPU(X86) || CPU(X86_64) |
7878 | if (!args[0].tmp().isGP()) |
7879 | OPGEN_RETURN(false); |
7880 | if (!args[1].tmp().isGP()) |
7881 | OPGEN_RETURN(false); |
7882 | if (!isUrshift32Valid(*this)) |
7883 | OPGEN_RETURN(false); |
7884 | OPGEN_RETURN(true); |
7885 | #endif |
7886 | break; |
7887 | break; |
7888 | default: |
7889 | break; |
7890 | } |
7891 | break; |
7892 | case Arg::Imm: |
7893 | switch (this->args[1].kind()) { |
7894 | case Arg::Tmp: |
7895 | #if CPU(X86) || CPU(X86_64) |
7896 | if (!Arg::isValidImmForm(args[0].value())) |
7897 | OPGEN_RETURN(false); |
7898 | if (!args[1].tmp().isGP()) |
7899 | OPGEN_RETURN(false); |
7900 | OPGEN_RETURN(true); |
7901 | #endif |
7902 | break; |
7903 | break; |
7904 | default: |
7905 | break; |
7906 | } |
7907 | break; |
7908 | default: |
7909 | break; |
7910 | } |
7911 | break; |
7912 | default: |
7913 | break; |
7914 | } |
7915 | break; |
7916 | case Opcode::Urshift64: |
7917 | switch (this->args.size()) { |
7918 | case 3: |
7919 | switch (this->args[0].kind()) { |
7920 | case Arg::Tmp: |
7921 | switch (this->args[1].kind()) { |
7922 | case Arg::Tmp: |
7923 | switch (this->args[2].kind()) { |
7924 | case Arg::Tmp: |
7925 | #if CPU(ARM64) |
7926 | if (!args[0].tmp().isGP()) |
7927 | OPGEN_RETURN(false); |
7928 | if (!args[1].tmp().isGP()) |
7929 | OPGEN_RETURN(false); |
7930 | if (!args[2].tmp().isGP()) |
7931 | OPGEN_RETURN(false); |
7932 | OPGEN_RETURN(true); |
7933 | #endif |
7934 | break; |
7935 | break; |
7936 | default: |
7937 | break; |
7938 | } |
7939 | break; |
7940 | case Arg::Imm: |
7941 | switch (this->args[2].kind()) { |
7942 | case Arg::Tmp: |
7943 | #if CPU(ARM64) |
7944 | if (!args[0].tmp().isGP()) |
7945 | OPGEN_RETURN(false); |
7946 | if (!Arg::isValidImmForm(args[1].value())) |
7947 | OPGEN_RETURN(false); |
7948 | if (!args[2].tmp().isGP()) |
7949 | OPGEN_RETURN(false); |
7950 | OPGEN_RETURN(true); |
7951 | #endif |
7952 | break; |
7953 | break; |
7954 | default: |
7955 | break; |
7956 | } |
7957 | break; |
7958 | default: |
7959 | break; |
7960 | } |
7961 | break; |
7962 | default: |
7963 | break; |
7964 | } |
7965 | break; |
7966 | case 2: |
7967 | switch (this->args[0].kind()) { |
7968 | case Arg::Tmp: |
7969 | switch (this->args[1].kind()) { |
7970 | case Arg::Tmp: |
7971 | #if CPU(X86_64) |
7972 | if (!args[0].tmp().isGP()) |
7973 | OPGEN_RETURN(false); |
7974 | if (!args[1].tmp().isGP()) |
7975 | OPGEN_RETURN(false); |
7976 | if (!isUrshift64Valid(*this)) |
7977 | OPGEN_RETURN(false); |
7978 | OPGEN_RETURN(true); |
7979 | #endif |
7980 | break; |
7981 | break; |
7982 | default: |
7983 | break; |
7984 | } |
7985 | break; |
7986 | case Arg::Imm: |
7987 | switch (this->args[1].kind()) { |
7988 | case Arg::Tmp: |
7989 | #if CPU(X86_64) |
7990 | if (!Arg::isValidImmForm(args[0].value())) |
7991 | OPGEN_RETURN(false); |
7992 | if (!args[1].tmp().isGP()) |
7993 | OPGEN_RETURN(false); |
7994 | OPGEN_RETURN(true); |
7995 | #endif |
7996 | break; |
7997 | break; |
7998 | default: |
7999 | break; |
8000 | } |
8001 | break; |
8002 | default: |
8003 | break; |
8004 | } |
8005 | break; |
8006 | default: |
8007 | break; |
8008 | } |
8009 | break; |
8010 | case Opcode::RotateRight32: |
8011 | switch (this->args.size()) { |
8012 | case 2: |
8013 | switch (this->args[0].kind()) { |
8014 | case Arg::Tmp: |
8015 | switch (this->args[1].kind()) { |
8016 | case Arg::Tmp: |
8017 | #if CPU(X86_64) |
8018 | if (!args[0].tmp().isGP()) |
8019 | OPGEN_RETURN(false); |
8020 | if (!args[1].tmp().isGP()) |
8021 | OPGEN_RETURN(false); |
8022 | if (!isRotateRight32Valid(*this)) |
8023 | OPGEN_RETURN(false); |
8024 | OPGEN_RETURN(true); |
8025 | #endif |
8026 | break; |
8027 | break; |
8028 | default: |
8029 | break; |
8030 | } |
8031 | break; |
8032 | case Arg::Imm: |
8033 | switch (this->args[1].kind()) { |
8034 | case Arg::Tmp: |
8035 | #if CPU(X86_64) |
8036 | if (!Arg::isValidImmForm(args[0].value())) |
8037 | OPGEN_RETURN(false); |
8038 | if (!args[1].tmp().isGP()) |
8039 | OPGEN_RETURN(false); |
8040 | OPGEN_RETURN(true); |
8041 | #endif |
8042 | break; |
8043 | break; |
8044 | default: |
8045 | break; |
8046 | } |
8047 | break; |
8048 | default: |
8049 | break; |
8050 | } |
8051 | break; |
8052 | case 3: |
8053 | switch (this->args[0].kind()) { |
8054 | case Arg::Tmp: |
8055 | switch (this->args[1].kind()) { |
8056 | case Arg::Tmp: |
8057 | switch (this->args[2].kind()) { |
8058 | case Arg::Tmp: |
8059 | #if CPU(ARM64) |
8060 | if (!args[0].tmp().isGP()) |
8061 | OPGEN_RETURN(false); |
8062 | if (!args[1].tmp().isGP()) |
8063 | OPGEN_RETURN(false); |
8064 | if (!args[2].tmp().isGP()) |
8065 | OPGEN_RETURN(false); |
8066 | OPGEN_RETURN(true); |
8067 | #endif |
8068 | break; |
8069 | break; |
8070 | default: |
8071 | break; |
8072 | } |
8073 | break; |
8074 | case Arg::Imm: |
8075 | switch (this->args[2].kind()) { |
8076 | case Arg::Tmp: |
8077 | #if CPU(ARM64) |
8078 | if (!args[0].tmp().isGP()) |
8079 | OPGEN_RETURN(false); |
8080 | if (!Arg::isValidImmForm(args[1].value())) |
8081 | OPGEN_RETURN(false); |
8082 | if (!args[2].tmp().isGP()) |
8083 | OPGEN_RETURN(false); |
8084 | OPGEN_RETURN(true); |
8085 | #endif |
8086 | break; |
8087 | break; |
8088 | default: |
8089 | break; |
8090 | } |
8091 | break; |
8092 | default: |
8093 | break; |
8094 | } |
8095 | break; |
8096 | default: |
8097 | break; |
8098 | } |
8099 | break; |
8100 | default: |
8101 | break; |
8102 | } |
8103 | break; |
8104 | case Opcode::RotateRight64: |
8105 | switch (this->args.size()) { |
8106 | case 2: |
8107 | switch (this->args[0].kind()) { |
8108 | case Arg::Tmp: |
8109 | switch (this->args[1].kind()) { |
8110 | case Arg::Tmp: |
8111 | #if CPU(X86_64) |
8112 | if (!args[0].tmp().isGP()) |
8113 | OPGEN_RETURN(false); |
8114 | if (!args[1].tmp().isGP()) |
8115 | OPGEN_RETURN(false); |
8116 | if (!isRotateRight64Valid(*this)) |
8117 | OPGEN_RETURN(false); |
8118 | OPGEN_RETURN(true); |
8119 | #endif |
8120 | break; |
8121 | break; |
8122 | default: |
8123 | break; |
8124 | } |
8125 | break; |
8126 | case Arg::Imm: |
8127 | switch (this->args[1].kind()) { |
8128 | case Arg::Tmp: |
8129 | #if CPU(X86_64) |
8130 | if (!Arg::isValidImmForm(args[0].value())) |
8131 | OPGEN_RETURN(false); |
8132 | if (!args[1].tmp().isGP()) |
8133 | OPGEN_RETURN(false); |
8134 | OPGEN_RETURN(true); |
8135 | #endif |
8136 | break; |
8137 | break; |
8138 | default: |
8139 | break; |
8140 | } |
8141 | break; |
8142 | default: |
8143 | break; |
8144 | } |
8145 | break; |
8146 | case 3: |
8147 | switch (this->args[0].kind()) { |
8148 | case Arg::Tmp: |
8149 | switch (this->args[1].kind()) { |
8150 | case Arg::Tmp: |
8151 | switch (this->args[2].kind()) { |
8152 | case Arg::Tmp: |
8153 | #if CPU(ARM64) |
8154 | if (!args[0].tmp().isGP()) |
8155 | OPGEN_RETURN(false); |
8156 | if (!args[1].tmp().isGP()) |
8157 | OPGEN_RETURN(false); |
8158 | if (!args[2].tmp().isGP()) |
8159 | OPGEN_RETURN(false); |
8160 | OPGEN_RETURN(true); |
8161 | #endif |
8162 | break; |
8163 | break; |
8164 | default: |
8165 | break; |
8166 | } |
8167 | break; |
8168 | case Arg::Imm: |
8169 | switch (this->args[2].kind()) { |
8170 | case Arg::Tmp: |
8171 | #if CPU(ARM64) |
8172 | if (!args[0].tmp().isGP()) |
8173 | OPGEN_RETURN(false); |
8174 | if (!Arg::isValidImmForm(args[1].value())) |
8175 | OPGEN_RETURN(false); |
8176 | if (!args[2].tmp().isGP()) |
8177 | OPGEN_RETURN(false); |
8178 | OPGEN_RETURN(true); |
8179 | #endif |
8180 | break; |
8181 | break; |
8182 | default: |
8183 | break; |
8184 | } |
8185 | break; |
8186 | default: |
8187 | break; |
8188 | } |
8189 | break; |
8190 | default: |
8191 | break; |
8192 | } |
8193 | break; |
8194 | default: |
8195 | break; |
8196 | } |
8197 | break; |
8198 | case Opcode::RotateLeft32: |
8199 | switch (this->args.size()) { |
8200 | case 2: |
8201 | switch (this->args[0].kind()) { |
8202 | case Arg::Tmp: |
8203 | switch (this->args[1].kind()) { |
8204 | case Arg::Tmp: |
8205 | #if CPU(X86_64) |
8206 | if (!args[0].tmp().isGP()) |
8207 | OPGEN_RETURN(false); |
8208 | if (!args[1].tmp().isGP()) |
8209 | OPGEN_RETURN(false); |
8210 | if (!isRotateLeft32Valid(*this)) |
8211 | OPGEN_RETURN(false); |
8212 | OPGEN_RETURN(true); |
8213 | #endif |
8214 | break; |
8215 | break; |
8216 | default: |
8217 | break; |
8218 | } |
8219 | break; |
8220 | case Arg::Imm: |
8221 | switch (this->args[1].kind()) { |
8222 | case Arg::Tmp: |
8223 | #if CPU(X86_64) |
8224 | if (!Arg::isValidImmForm(args[0].value())) |
8225 | OPGEN_RETURN(false); |
8226 | if (!args[1].tmp().isGP()) |
8227 | OPGEN_RETURN(false); |
8228 | OPGEN_RETURN(true); |
8229 | #endif |
8230 | break; |
8231 | break; |
8232 | default: |
8233 | break; |
8234 | } |
8235 | break; |
8236 | default: |
8237 | break; |
8238 | } |
8239 | break; |
8240 | default: |
8241 | break; |
8242 | } |
8243 | break; |
8244 | case Opcode::RotateLeft64: |
8245 | switch (this->args.size()) { |
8246 | case 2: |
8247 | switch (this->args[0].kind()) { |
8248 | case Arg::Tmp: |
8249 | switch (this->args[1].kind()) { |
8250 | case Arg::Tmp: |
8251 | #if CPU(X86_64) |
8252 | if (!args[0].tmp().isGP()) |
8253 | OPGEN_RETURN(false); |
8254 | if (!args[1].tmp().isGP()) |
8255 | OPGEN_RETURN(false); |
8256 | if (!isRotateLeft64Valid(*this)) |
8257 | OPGEN_RETURN(false); |
8258 | OPGEN_RETURN(true); |
8259 | #endif |
8260 | break; |
8261 | break; |
8262 | default: |
8263 | break; |
8264 | } |
8265 | break; |
8266 | case Arg::Imm: |
8267 | switch (this->args[1].kind()) { |
8268 | case Arg::Tmp: |
8269 | #if CPU(X86_64) |
8270 | if (!Arg::isValidImmForm(args[0].value())) |
8271 | OPGEN_RETURN(false); |
8272 | if (!args[1].tmp().isGP()) |
8273 | OPGEN_RETURN(false); |
8274 | OPGEN_RETURN(true); |
8275 | #endif |
8276 | break; |
8277 | break; |
8278 | default: |
8279 | break; |
8280 | } |
8281 | break; |
8282 | default: |
8283 | break; |
8284 | } |
8285 | break; |
8286 | default: |
8287 | break; |
8288 | } |
8289 | break; |
8290 | case Opcode::Or32: |
8291 | switch (this->args.size()) { |
8292 | case 3: |
8293 | switch (this->args[0].kind()) { |
8294 | case Arg::Tmp: |
8295 | switch (this->args[1].kind()) { |
8296 | case Arg::Tmp: |
8297 | switch (this->args[2].kind()) { |
8298 | case Arg::Tmp: |
8299 | if (!args[0].tmp().isGP()) |
8300 | OPGEN_RETURN(false); |
8301 | if (!args[1].tmp().isGP()) |
8302 | OPGEN_RETURN(false); |
8303 | if (!args[2].tmp().isGP()) |
8304 | OPGEN_RETURN(false); |
8305 | OPGEN_RETURN(true); |
8306 | break; |
8307 | break; |
8308 | default: |
8309 | break; |
8310 | } |
8311 | break; |
8312 | case Arg::Addr: |
8313 | case Arg::Stack: |
8314 | case Arg::CallArg: |
8315 | switch (this->args[2].kind()) { |
8316 | case Arg::Tmp: |
8317 | #if CPU(X86) || CPU(X86_64) |
8318 | if (!args[0].tmp().isGP()) |
8319 | OPGEN_RETURN(false); |
8320 | if (!Arg::isValidAddrForm(args[1].offset())) |
8321 | OPGEN_RETURN(false); |
8322 | if (!args[2].tmp().isGP()) |
8323 | OPGEN_RETURN(false); |
8324 | OPGEN_RETURN(true); |
8325 | #endif |
8326 | break; |
8327 | break; |
8328 | default: |
8329 | break; |
8330 | } |
8331 | break; |
8332 | default: |
8333 | break; |
8334 | } |
8335 | break; |
8336 | case Arg::BitImm: |
8337 | switch (this->args[1].kind()) { |
8338 | case Arg::Tmp: |
8339 | switch (this->args[2].kind()) { |
8340 | case Arg::Tmp: |
8341 | #if CPU(ARM64) |
8342 | if (!Arg::isValidBitImmForm(args[0].value())) |
8343 | OPGEN_RETURN(false); |
8344 | if (!args[1].tmp().isGP()) |
8345 | OPGEN_RETURN(false); |
8346 | if (!args[2].tmp().isGP()) |
8347 | OPGEN_RETURN(false); |
8348 | OPGEN_RETURN(true); |
8349 | #endif |
8350 | break; |
8351 | break; |
8352 | default: |
8353 | break; |
8354 | } |
8355 | break; |
8356 | default: |
8357 | break; |
8358 | } |
8359 | break; |
8360 | case Arg::Addr: |
8361 | case Arg::Stack: |
8362 | case Arg::CallArg: |
8363 | switch (this->args[1].kind()) { |
8364 | case Arg::Tmp: |
8365 | switch (this->args[2].kind()) { |
8366 | case Arg::Tmp: |
8367 | #if CPU(X86) || CPU(X86_64) |
8368 | if (!Arg::isValidAddrForm(args[0].offset())) |
8369 | OPGEN_RETURN(false); |
8370 | if (!args[1].tmp().isGP()) |
8371 | OPGEN_RETURN(false); |
8372 | if (!args[2].tmp().isGP()) |
8373 | OPGEN_RETURN(false); |
8374 | OPGEN_RETURN(true); |
8375 | #endif |
8376 | break; |
8377 | break; |
8378 | default: |
8379 | break; |
8380 | } |
8381 | break; |
8382 | default: |
8383 | break; |
8384 | } |
8385 | break; |
8386 | default: |
8387 | break; |
8388 | } |
8389 | break; |
8390 | case 2: |
8391 | switch (this->args[0].kind()) { |
8392 | case Arg::Tmp: |
8393 | switch (this->args[1].kind()) { |
8394 | case Arg::Tmp: |
8395 | if (!args[0].tmp().isGP()) |
8396 | OPGEN_RETURN(false); |
8397 | if (!args[1].tmp().isGP()) |
8398 | OPGEN_RETURN(false); |
8399 | OPGEN_RETURN(true); |
8400 | break; |
8401 | break; |
8402 | case Arg::Addr: |
8403 | case Arg::Stack: |
8404 | case Arg::CallArg: |
8405 | #if CPU(X86) || CPU(X86_64) |
8406 | if (!args[0].tmp().isGP()) |
8407 | OPGEN_RETURN(false); |
8408 | if (!Arg::isValidAddrForm(args[1].offset())) |
8409 | OPGEN_RETURN(false); |
8410 | OPGEN_RETURN(true); |
8411 | #endif |
8412 | break; |
8413 | break; |
8414 | case Arg::Index: |
8415 | #if CPU(X86) || CPU(X86_64) |
8416 | if (!args[0].tmp().isGP()) |
8417 | OPGEN_RETURN(false); |
8418 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
8419 | OPGEN_RETURN(false); |
8420 | OPGEN_RETURN(true); |
8421 | #endif |
8422 | break; |
8423 | break; |
8424 | default: |
8425 | break; |
8426 | } |
8427 | break; |
8428 | case Arg::Imm: |
8429 | switch (this->args[1].kind()) { |
8430 | case Arg::Tmp: |
8431 | #if CPU(X86) || CPU(X86_64) |
8432 | if (!Arg::isValidImmForm(args[0].value())) |
8433 | OPGEN_RETURN(false); |
8434 | if (!args[1].tmp().isGP()) |
8435 | OPGEN_RETURN(false); |
8436 | OPGEN_RETURN(true); |
8437 | #endif |
8438 | break; |
8439 | break; |
8440 | case Arg::Addr: |
8441 | case Arg::Stack: |
8442 | case Arg::CallArg: |
8443 | #if CPU(X86) || CPU(X86_64) |
8444 | if (!Arg::isValidImmForm(args[0].value())) |
8445 | OPGEN_RETURN(false); |
8446 | if (!Arg::isValidAddrForm(args[1].offset())) |
8447 | OPGEN_RETURN(false); |
8448 | OPGEN_RETURN(true); |
8449 | #endif |
8450 | break; |
8451 | break; |
8452 | case Arg::Index: |
8453 | #if CPU(X86) || CPU(X86_64) |
8454 | if (!Arg::isValidImmForm(args[0].value())) |
8455 | OPGEN_RETURN(false); |
8456 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
8457 | OPGEN_RETURN(false); |
8458 | OPGEN_RETURN(true); |
8459 | #endif |
8460 | break; |
8461 | break; |
8462 | default: |
8463 | break; |
8464 | } |
8465 | break; |
8466 | case Arg::Addr: |
8467 | case Arg::Stack: |
8468 | case Arg::CallArg: |
8469 | switch (this->args[1].kind()) { |
8470 | case Arg::Tmp: |
8471 | #if CPU(X86) || CPU(X86_64) |
8472 | if (!Arg::isValidAddrForm(args[0].offset())) |
8473 | OPGEN_RETURN(false); |
8474 | if (!args[1].tmp().isGP()) |
8475 | OPGEN_RETURN(false); |
8476 | OPGEN_RETURN(true); |
8477 | #endif |
8478 | break; |
8479 | break; |
8480 | default: |
8481 | break; |
8482 | } |
8483 | break; |
8484 | case Arg::Index: |
8485 | switch (this->args[1].kind()) { |
8486 | case Arg::Tmp: |
8487 | #if CPU(X86) || CPU(X86_64) |
8488 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
8489 | OPGEN_RETURN(false); |
8490 | if (!args[1].tmp().isGP()) |
8491 | OPGEN_RETURN(false); |
8492 | OPGEN_RETURN(true); |
8493 | #endif |
8494 | break; |
8495 | break; |
8496 | default: |
8497 | break; |
8498 | } |
8499 | break; |
8500 | default: |
8501 | break; |
8502 | } |
8503 | break; |
8504 | default: |
8505 | break; |
8506 | } |
8507 | break; |
8508 | case Opcode::Or64: |
8509 | switch (this->args.size()) { |
8510 | case 3: |
8511 | switch (this->args[0].kind()) { |
8512 | case Arg::Tmp: |
8513 | switch (this->args[1].kind()) { |
8514 | case Arg::Tmp: |
8515 | switch (this->args[2].kind()) { |
8516 | case Arg::Tmp: |
8517 | #if CPU(X86_64) || CPU(ARM64) |
8518 | if (!args[0].tmp().isGP()) |
8519 | OPGEN_RETURN(false); |
8520 | if (!args[1].tmp().isGP()) |
8521 | OPGEN_RETURN(false); |
8522 | if (!args[2].tmp().isGP()) |
8523 | OPGEN_RETURN(false); |
8524 | OPGEN_RETURN(true); |
8525 | #endif |
8526 | break; |
8527 | break; |
8528 | default: |
8529 | break; |
8530 | } |
8531 | break; |
8532 | default: |
8533 | break; |
8534 | } |
8535 | break; |
8536 | #if USE(JSVALUE64) |
8537 | case Arg::BitImm64: |
8538 | switch (this->args[1].kind()) { |
8539 | case Arg::Tmp: |
8540 | switch (this->args[2].kind()) { |
8541 | case Arg::Tmp: |
8542 | #if CPU(ARM64) |
8543 | if (!Arg::isValidBitImm64Form(args[0].value())) |
8544 | OPGEN_RETURN(false); |
8545 | if (!args[1].tmp().isGP()) |
8546 | OPGEN_RETURN(false); |
8547 | if (!args[2].tmp().isGP()) |
8548 | OPGEN_RETURN(false); |
8549 | OPGEN_RETURN(true); |
8550 | #endif |
8551 | break; |
8552 | break; |
8553 | default: |
8554 | break; |
8555 | } |
8556 | break; |
8557 | default: |
8558 | break; |
8559 | } |
8560 | break; |
8561 | #endif // USE(JSVALUE64) |
8562 | default: |
8563 | break; |
8564 | } |
8565 | break; |
8566 | case 2: |
8567 | switch (this->args[0].kind()) { |
8568 | case Arg::Tmp: |
8569 | switch (this->args[1].kind()) { |
8570 | case Arg::Tmp: |
8571 | #if CPU(X86_64) || CPU(ARM64) |
8572 | if (!args[0].tmp().isGP()) |
8573 | OPGEN_RETURN(false); |
8574 | if (!args[1].tmp().isGP()) |
8575 | OPGEN_RETURN(false); |
8576 | OPGEN_RETURN(true); |
8577 | #endif |
8578 | break; |
8579 | break; |
8580 | case Arg::Addr: |
8581 | case Arg::Stack: |
8582 | case Arg::CallArg: |
8583 | #if CPU(X86_64) |
8584 | if (!args[0].tmp().isGP()) |
8585 | OPGEN_RETURN(false); |
8586 | if (!Arg::isValidAddrForm(args[1].offset())) |
8587 | OPGEN_RETURN(false); |
8588 | OPGEN_RETURN(true); |
8589 | #endif |
8590 | break; |
8591 | break; |
8592 | case Arg::Index: |
8593 | #if CPU(X86_64) |
8594 | if (!args[0].tmp().isGP()) |
8595 | OPGEN_RETURN(false); |
8596 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
8597 | OPGEN_RETURN(false); |
8598 | OPGEN_RETURN(true); |
8599 | #endif |
8600 | break; |
8601 | break; |
8602 | default: |
8603 | break; |
8604 | } |
8605 | break; |
8606 | case Arg::Imm: |
8607 | switch (this->args[1].kind()) { |
8608 | case Arg::Tmp: |
8609 | #if CPU(X86_64) |
8610 | if (!Arg::isValidImmForm(args[0].value())) |
8611 | OPGEN_RETURN(false); |
8612 | if (!args[1].tmp().isGP()) |
8613 | OPGEN_RETURN(false); |
8614 | OPGEN_RETURN(true); |
8615 | #endif |
8616 | break; |
8617 | break; |
8618 | case Arg::Addr: |
8619 | case Arg::Stack: |
8620 | case Arg::CallArg: |
8621 | #if CPU(X86_64) |
8622 | if (!Arg::isValidImmForm(args[0].value())) |
8623 | OPGEN_RETURN(false); |
8624 | if (!Arg::isValidAddrForm(args[1].offset())) |
8625 | OPGEN_RETURN(false); |
8626 | OPGEN_RETURN(true); |
8627 | #endif |
8628 | break; |
8629 | break; |
8630 | case Arg::Index: |
8631 | #if CPU(X86_64) |
8632 | if (!Arg::isValidImmForm(args[0].value())) |
8633 | OPGEN_RETURN(false); |
8634 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
8635 | OPGEN_RETURN(false); |
8636 | OPGEN_RETURN(true); |
8637 | #endif |
8638 | break; |
8639 | break; |
8640 | default: |
8641 | break; |
8642 | } |
8643 | break; |
8644 | case Arg::Addr: |
8645 | case Arg::Stack: |
8646 | case Arg::CallArg: |
8647 | switch (this->args[1].kind()) { |
8648 | case Arg::Tmp: |
8649 | #if CPU(X86_64) |
8650 | if (!Arg::isValidAddrForm(args[0].offset())) |
8651 | OPGEN_RETURN(false); |
8652 | if (!args[1].tmp().isGP()) |
8653 | OPGEN_RETURN(false); |
8654 | OPGEN_RETURN(true); |
8655 | #endif |
8656 | break; |
8657 | break; |
8658 | default: |
8659 | break; |
8660 | } |
8661 | break; |
8662 | case Arg::Index: |
8663 | switch (this->args[1].kind()) { |
8664 | case Arg::Tmp: |
8665 | #if CPU(X86_64) |
8666 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
8667 | OPGEN_RETURN(false); |
8668 | if (!args[1].tmp().isGP()) |
8669 | OPGEN_RETURN(false); |
8670 | OPGEN_RETURN(true); |
8671 | #endif |
8672 | break; |
8673 | break; |
8674 | default: |
8675 | break; |
8676 | } |
8677 | break; |
8678 | default: |
8679 | break; |
8680 | } |
8681 | break; |
8682 | default: |
8683 | break; |
8684 | } |
8685 | break; |
8686 | case Opcode::Xor32: |
8687 | switch (this->args.size()) { |
8688 | case 3: |
8689 | switch (this->args[0].kind()) { |
8690 | case Arg::Tmp: |
8691 | switch (this->args[1].kind()) { |
8692 | case Arg::Tmp: |
8693 | switch (this->args[2].kind()) { |
8694 | case Arg::Tmp: |
8695 | if (!args[0].tmp().isGP()) |
8696 | OPGEN_RETURN(false); |
8697 | if (!args[1].tmp().isGP()) |
8698 | OPGEN_RETURN(false); |
8699 | if (!args[2].tmp().isGP()) |
8700 | OPGEN_RETURN(false); |
8701 | OPGEN_RETURN(true); |
8702 | break; |
8703 | break; |
8704 | default: |
8705 | break; |
8706 | } |
8707 | break; |
8708 | case Arg::Addr: |
8709 | case Arg::Stack: |
8710 | case Arg::CallArg: |
8711 | switch (this->args[2].kind()) { |
8712 | case Arg::Tmp: |
8713 | #if CPU(X86) || CPU(X86_64) |
8714 | if (!args[0].tmp().isGP()) |
8715 | OPGEN_RETURN(false); |
8716 | if (!Arg::isValidAddrForm(args[1].offset())) |
8717 | OPGEN_RETURN(false); |
8718 | if (!args[2].tmp().isGP()) |
8719 | OPGEN_RETURN(false); |
8720 | OPGEN_RETURN(true); |
8721 | #endif |
8722 | break; |
8723 | break; |
8724 | default: |
8725 | break; |
8726 | } |
8727 | break; |
8728 | default: |
8729 | break; |
8730 | } |
8731 | break; |
8732 | case Arg::BitImm: |
8733 | switch (this->args[1].kind()) { |
8734 | case Arg::Tmp: |
8735 | switch (this->args[2].kind()) { |
8736 | case Arg::Tmp: |
8737 | #if CPU(ARM64) |
8738 | if (!Arg::isValidBitImmForm(args[0].value())) |
8739 | OPGEN_RETURN(false); |
8740 | if (!args[1].tmp().isGP()) |
8741 | OPGEN_RETURN(false); |
8742 | if (!args[2].tmp().isGP()) |
8743 | OPGEN_RETURN(false); |
8744 | OPGEN_RETURN(true); |
8745 | #endif |
8746 | break; |
8747 | break; |
8748 | default: |
8749 | break; |
8750 | } |
8751 | break; |
8752 | default: |
8753 | break; |
8754 | } |
8755 | break; |
8756 | case Arg::Addr: |
8757 | case Arg::Stack: |
8758 | case Arg::CallArg: |
8759 | switch (this->args[1].kind()) { |
8760 | case Arg::Tmp: |
8761 | switch (this->args[2].kind()) { |
8762 | case Arg::Tmp: |
8763 | #if CPU(X86) || CPU(X86_64) |
8764 | if (!Arg::isValidAddrForm(args[0].offset())) |
8765 | OPGEN_RETURN(false); |
8766 | if (!args[1].tmp().isGP()) |
8767 | OPGEN_RETURN(false); |
8768 | if (!args[2].tmp().isGP()) |
8769 | OPGEN_RETURN(false); |
8770 | OPGEN_RETURN(true); |
8771 | #endif |
8772 | break; |
8773 | break; |
8774 | default: |
8775 | break; |
8776 | } |
8777 | break; |
8778 | default: |
8779 | break; |
8780 | } |
8781 | break; |
8782 | default: |
8783 | break; |
8784 | } |
8785 | break; |
8786 | case 2: |
8787 | switch (this->args[0].kind()) { |
8788 | case Arg::Tmp: |
8789 | switch (this->args[1].kind()) { |
8790 | case Arg::Tmp: |
8791 | if (!args[0].tmp().isGP()) |
8792 | OPGEN_RETURN(false); |
8793 | if (!args[1].tmp().isGP()) |
8794 | OPGEN_RETURN(false); |
8795 | OPGEN_RETURN(true); |
8796 | break; |
8797 | break; |
8798 | case Arg::Addr: |
8799 | case Arg::Stack: |
8800 | case Arg::CallArg: |
8801 | #if CPU(X86) || CPU(X86_64) |
8802 | if (!args[0].tmp().isGP()) |
8803 | OPGEN_RETURN(false); |
8804 | if (!Arg::isValidAddrForm(args[1].offset())) |
8805 | OPGEN_RETURN(false); |
8806 | OPGEN_RETURN(true); |
8807 | #endif |
8808 | break; |
8809 | break; |
8810 | case Arg::Index: |
8811 | #if CPU(X86) || CPU(X86_64) |
8812 | if (!args[0].tmp().isGP()) |
8813 | OPGEN_RETURN(false); |
8814 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
8815 | OPGEN_RETURN(false); |
8816 | OPGEN_RETURN(true); |
8817 | #endif |
8818 | break; |
8819 | break; |
8820 | default: |
8821 | break; |
8822 | } |
8823 | break; |
8824 | case Arg::Imm: |
8825 | switch (this->args[1].kind()) { |
8826 | case Arg::Tmp: |
8827 | #if CPU(X86) || CPU(X86_64) |
8828 | if (!Arg::isValidImmForm(args[0].value())) |
8829 | OPGEN_RETURN(false); |
8830 | if (!args[1].tmp().isGP()) |
8831 | OPGEN_RETURN(false); |
8832 | OPGEN_RETURN(true); |
8833 | #endif |
8834 | break; |
8835 | break; |
8836 | case Arg::Addr: |
8837 | case Arg::Stack: |
8838 | case Arg::CallArg: |
8839 | #if CPU(X86) || CPU(X86_64) |
8840 | if (!Arg::isValidImmForm(args[0].value())) |
8841 | OPGEN_RETURN(false); |
8842 | if (!Arg::isValidAddrForm(args[1].offset())) |
8843 | OPGEN_RETURN(false); |
8844 | OPGEN_RETURN(true); |
8845 | #endif |
8846 | break; |
8847 | break; |
8848 | case Arg::Index: |
8849 | #if CPU(X86) || CPU(X86_64) |
8850 | if (!Arg::isValidImmForm(args[0].value())) |
8851 | OPGEN_RETURN(false); |
8852 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
8853 | OPGEN_RETURN(false); |
8854 | OPGEN_RETURN(true); |
8855 | #endif |
8856 | break; |
8857 | break; |
8858 | default: |
8859 | break; |
8860 | } |
8861 | break; |
8862 | case Arg::Addr: |
8863 | case Arg::Stack: |
8864 | case Arg::CallArg: |
8865 | switch (this->args[1].kind()) { |
8866 | case Arg::Tmp: |
8867 | #if CPU(X86) || CPU(X86_64) |
8868 | if (!Arg::isValidAddrForm(args[0].offset())) |
8869 | OPGEN_RETURN(false); |
8870 | if (!args[1].tmp().isGP()) |
8871 | OPGEN_RETURN(false); |
8872 | OPGEN_RETURN(true); |
8873 | #endif |
8874 | break; |
8875 | break; |
8876 | default: |
8877 | break; |
8878 | } |
8879 | break; |
8880 | case Arg::Index: |
8881 | switch (this->args[1].kind()) { |
8882 | case Arg::Tmp: |
8883 | #if CPU(X86) || CPU(X86_64) |
8884 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
8885 | OPGEN_RETURN(false); |
8886 | if (!args[1].tmp().isGP()) |
8887 | OPGEN_RETURN(false); |
8888 | OPGEN_RETURN(true); |
8889 | #endif |
8890 | break; |
8891 | break; |
8892 | default: |
8893 | break; |
8894 | } |
8895 | break; |
8896 | default: |
8897 | break; |
8898 | } |
8899 | break; |
8900 | default: |
8901 | break; |
8902 | } |
8903 | break; |
8904 | case Opcode::Xor64: |
8905 | switch (this->args.size()) { |
8906 | case 3: |
8907 | switch (this->args[0].kind()) { |
8908 | case Arg::Tmp: |
8909 | switch (this->args[1].kind()) { |
8910 | case Arg::Tmp: |
8911 | switch (this->args[2].kind()) { |
8912 | case Arg::Tmp: |
8913 | #if CPU(X86_64) || CPU(ARM64) |
8914 | if (!args[0].tmp().isGP()) |
8915 | OPGEN_RETURN(false); |
8916 | if (!args[1].tmp().isGP()) |
8917 | OPGEN_RETURN(false); |
8918 | if (!args[2].tmp().isGP()) |
8919 | OPGEN_RETURN(false); |
8920 | OPGEN_RETURN(true); |
8921 | #endif |
8922 | break; |
8923 | break; |
8924 | default: |
8925 | break; |
8926 | } |
8927 | break; |
8928 | default: |
8929 | break; |
8930 | } |
8931 | break; |
8932 | #if USE(JSVALUE64) |
8933 | case Arg::BitImm64: |
8934 | switch (this->args[1].kind()) { |
8935 | case Arg::Tmp: |
8936 | switch (this->args[2].kind()) { |
8937 | case Arg::Tmp: |
8938 | #if CPU(ARM64) |
8939 | if (!Arg::isValidBitImm64Form(args[0].value())) |
8940 | OPGEN_RETURN(false); |
8941 | if (!args[1].tmp().isGP()) |
8942 | OPGEN_RETURN(false); |
8943 | if (!args[2].tmp().isGP()) |
8944 | OPGEN_RETURN(false); |
8945 | OPGEN_RETURN(true); |
8946 | #endif |
8947 | break; |
8948 | break; |
8949 | default: |
8950 | break; |
8951 | } |
8952 | break; |
8953 | default: |
8954 | break; |
8955 | } |
8956 | break; |
8957 | #endif // USE(JSVALUE64) |
8958 | default: |
8959 | break; |
8960 | } |
8961 | break; |
8962 | case 2: |
8963 | switch (this->args[0].kind()) { |
8964 | case Arg::Tmp: |
8965 | switch (this->args[1].kind()) { |
8966 | case Arg::Tmp: |
8967 | #if CPU(X86_64) || CPU(ARM64) |
8968 | if (!args[0].tmp().isGP()) |
8969 | OPGEN_RETURN(false); |
8970 | if (!args[1].tmp().isGP()) |
8971 | OPGEN_RETURN(false); |
8972 | OPGEN_RETURN(true); |
8973 | #endif |
8974 | break; |
8975 | break; |
8976 | case Arg::Addr: |
8977 | case Arg::Stack: |
8978 | case Arg::CallArg: |
8979 | #if CPU(X86_64) |
8980 | if (!args[0].tmp().isGP()) |
8981 | OPGEN_RETURN(false); |
8982 | if (!Arg::isValidAddrForm(args[1].offset())) |
8983 | OPGEN_RETURN(false); |
8984 | OPGEN_RETURN(true); |
8985 | #endif |
8986 | break; |
8987 | break; |
8988 | case Arg::Index: |
8989 | #if CPU(X86_64) |
8990 | if (!args[0].tmp().isGP()) |
8991 | OPGEN_RETURN(false); |
8992 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
8993 | OPGEN_RETURN(false); |
8994 | OPGEN_RETURN(true); |
8995 | #endif |
8996 | break; |
8997 | break; |
8998 | default: |
8999 | break; |
9000 | } |
9001 | break; |
9002 | case Arg::Addr: |
9003 | case Arg::Stack: |
9004 | case Arg::CallArg: |
9005 | switch (this->args[1].kind()) { |
9006 | case Arg::Tmp: |
9007 | #if CPU(X86_64) |
9008 | if (!Arg::isValidAddrForm(args[0].offset())) |
9009 | OPGEN_RETURN(false); |
9010 | if (!args[1].tmp().isGP()) |
9011 | OPGEN_RETURN(false); |
9012 | OPGEN_RETURN(true); |
9013 | #endif |
9014 | break; |
9015 | break; |
9016 | default: |
9017 | break; |
9018 | } |
9019 | break; |
9020 | case Arg::Index: |
9021 | switch (this->args[1].kind()) { |
9022 | case Arg::Tmp: |
9023 | #if CPU(X86_64) |
9024 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
9025 | OPGEN_RETURN(false); |
9026 | if (!args[1].tmp().isGP()) |
9027 | OPGEN_RETURN(false); |
9028 | OPGEN_RETURN(true); |
9029 | #endif |
9030 | break; |
9031 | break; |
9032 | default: |
9033 | break; |
9034 | } |
9035 | break; |
9036 | case Arg::Imm: |
9037 | switch (this->args[1].kind()) { |
9038 | case Arg::Addr: |
9039 | case Arg::Stack: |
9040 | case Arg::CallArg: |
9041 | #if CPU(X86_64) |
9042 | if (!Arg::isValidImmForm(args[0].value())) |
9043 | OPGEN_RETURN(false); |
9044 | if (!Arg::isValidAddrForm(args[1].offset())) |
9045 | OPGEN_RETURN(false); |
9046 | OPGEN_RETURN(true); |
9047 | #endif |
9048 | break; |
9049 | break; |
9050 | case Arg::Index: |
9051 | #if CPU(X86_64) |
9052 | if (!Arg::isValidImmForm(args[0].value())) |
9053 | OPGEN_RETURN(false); |
9054 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
9055 | OPGEN_RETURN(false); |
9056 | OPGEN_RETURN(true); |
9057 | #endif |
9058 | break; |
9059 | break; |
9060 | case Arg::Tmp: |
9061 | #if CPU(X86_64) |
9062 | if (!Arg::isValidImmForm(args[0].value())) |
9063 | OPGEN_RETURN(false); |
9064 | if (!args[1].tmp().isGP()) |
9065 | OPGEN_RETURN(false); |
9066 | OPGEN_RETURN(true); |
9067 | #endif |
9068 | break; |
9069 | break; |
9070 | default: |
9071 | break; |
9072 | } |
9073 | break; |
9074 | default: |
9075 | break; |
9076 | } |
9077 | break; |
9078 | default: |
9079 | break; |
9080 | } |
9081 | break; |
9082 | case Opcode::Not32: |
9083 | switch (this->args.size()) { |
9084 | case 2: |
9085 | switch (this->args[0].kind()) { |
9086 | case Arg::Tmp: |
9087 | switch (this->args[1].kind()) { |
9088 | case Arg::Tmp: |
9089 | #if CPU(ARM64) |
9090 | if (!args[0].tmp().isGP()) |
9091 | OPGEN_RETURN(false); |
9092 | if (!args[1].tmp().isGP()) |
9093 | OPGEN_RETURN(false); |
9094 | OPGEN_RETURN(true); |
9095 | #endif |
9096 | break; |
9097 | break; |
9098 | default: |
9099 | break; |
9100 | } |
9101 | break; |
9102 | default: |
9103 | break; |
9104 | } |
9105 | break; |
9106 | case 1: |
9107 | switch (this->args[0].kind()) { |
9108 | case Arg::Tmp: |
9109 | #if CPU(X86) || CPU(X86_64) |
9110 | if (!args[0].tmp().isGP()) |
9111 | OPGEN_RETURN(false); |
9112 | OPGEN_RETURN(true); |
9113 | #endif |
9114 | break; |
9115 | break; |
9116 | case Arg::Addr: |
9117 | case Arg::Stack: |
9118 | case Arg::CallArg: |
9119 | #if CPU(X86) || CPU(X86_64) |
9120 | if (!Arg::isValidAddrForm(args[0].offset())) |
9121 | OPGEN_RETURN(false); |
9122 | OPGEN_RETURN(true); |
9123 | #endif |
9124 | break; |
9125 | break; |
9126 | case Arg::Index: |
9127 | #if CPU(X86) || CPU(X86_64) |
9128 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
9129 | OPGEN_RETURN(false); |
9130 | OPGEN_RETURN(true); |
9131 | #endif |
9132 | break; |
9133 | break; |
9134 | default: |
9135 | break; |
9136 | } |
9137 | break; |
9138 | default: |
9139 | break; |
9140 | } |
9141 | break; |
9142 | case Opcode::Not64: |
9143 | switch (this->args.size()) { |
9144 | case 2: |
9145 | switch (this->args[0].kind()) { |
9146 | case Arg::Tmp: |
9147 | switch (this->args[1].kind()) { |
9148 | case Arg::Tmp: |
9149 | #if CPU(ARM64) |
9150 | if (!args[0].tmp().isGP()) |
9151 | OPGEN_RETURN(false); |
9152 | if (!args[1].tmp().isGP()) |
9153 | OPGEN_RETURN(false); |
9154 | OPGEN_RETURN(true); |
9155 | #endif |
9156 | break; |
9157 | break; |
9158 | default: |
9159 | break; |
9160 | } |
9161 | break; |
9162 | default: |
9163 | break; |
9164 | } |
9165 | break; |
9166 | case 1: |
9167 | switch (this->args[0].kind()) { |
9168 | case Arg::Tmp: |
9169 | #if CPU(X86_64) |
9170 | if (!args[0].tmp().isGP()) |
9171 | OPGEN_RETURN(false); |
9172 | OPGEN_RETURN(true); |
9173 | #endif |
9174 | break; |
9175 | break; |
9176 | case Arg::Addr: |
9177 | case Arg::Stack: |
9178 | case Arg::CallArg: |
9179 | #if CPU(X86_64) |
9180 | if (!Arg::isValidAddrForm(args[0].offset())) |
9181 | OPGEN_RETURN(false); |
9182 | OPGEN_RETURN(true); |
9183 | #endif |
9184 | break; |
9185 | break; |
9186 | case Arg::Index: |
9187 | #if CPU(X86_64) |
9188 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
9189 | OPGEN_RETURN(false); |
9190 | OPGEN_RETURN(true); |
9191 | #endif |
9192 | break; |
9193 | break; |
9194 | default: |
9195 | break; |
9196 | } |
9197 | break; |
9198 | default: |
9199 | break; |
9200 | } |
9201 | break; |
9202 | case Opcode::AbsDouble: |
9203 | switch (this->args.size()) { |
9204 | case 2: |
9205 | switch (this->args[0].kind()) { |
9206 | case Arg::Tmp: |
9207 | switch (this->args[1].kind()) { |
9208 | case Arg::Tmp: |
9209 | #if CPU(ARM64) |
9210 | if (!args[0].tmp().isFP()) |
9211 | OPGEN_RETURN(false); |
9212 | if (!args[1].tmp().isFP()) |
9213 | OPGEN_RETURN(false); |
9214 | OPGEN_RETURN(true); |
9215 | #endif |
9216 | break; |
9217 | break; |
9218 | default: |
9219 | break; |
9220 | } |
9221 | break; |
9222 | default: |
9223 | break; |
9224 | } |
9225 | break; |
9226 | default: |
9227 | break; |
9228 | } |
9229 | break; |
9230 | case Opcode::AbsFloat: |
9231 | switch (this->args.size()) { |
9232 | case 2: |
9233 | switch (this->args[0].kind()) { |
9234 | case Arg::Tmp: |
9235 | switch (this->args[1].kind()) { |
9236 | case Arg::Tmp: |
9237 | #if CPU(ARM64) |
9238 | if (!args[0].tmp().isFP()) |
9239 | OPGEN_RETURN(false); |
9240 | if (!args[1].tmp().isFP()) |
9241 | OPGEN_RETURN(false); |
9242 | OPGEN_RETURN(true); |
9243 | #endif |
9244 | break; |
9245 | break; |
9246 | default: |
9247 | break; |
9248 | } |
9249 | break; |
9250 | default: |
9251 | break; |
9252 | } |
9253 | break; |
9254 | default: |
9255 | break; |
9256 | } |
9257 | break; |
9258 | case Opcode::CeilDouble: |
9259 | switch (this->args.size()) { |
9260 | case 2: |
9261 | switch (this->args[0].kind()) { |
9262 | case Arg::Tmp: |
9263 | switch (this->args[1].kind()) { |
9264 | case Arg::Tmp: |
9265 | if (!args[0].tmp().isFP()) |
9266 | OPGEN_RETURN(false); |
9267 | if (!args[1].tmp().isFP()) |
9268 | OPGEN_RETURN(false); |
9269 | OPGEN_RETURN(true); |
9270 | break; |
9271 | break; |
9272 | default: |
9273 | break; |
9274 | } |
9275 | break; |
9276 | case Arg::Addr: |
9277 | case Arg::Stack: |
9278 | case Arg::CallArg: |
9279 | switch (this->args[1].kind()) { |
9280 | case Arg::Tmp: |
9281 | #if CPU(X86) || CPU(X86_64) |
9282 | if (!Arg::isValidAddrForm(args[0].offset())) |
9283 | OPGEN_RETURN(false); |
9284 | if (!args[1].tmp().isFP()) |
9285 | OPGEN_RETURN(false); |
9286 | OPGEN_RETURN(true); |
9287 | #endif |
9288 | break; |
9289 | break; |
9290 | default: |
9291 | break; |
9292 | } |
9293 | break; |
9294 | default: |
9295 | break; |
9296 | } |
9297 | break; |
9298 | default: |
9299 | break; |
9300 | } |
9301 | break; |
9302 | case Opcode::CeilFloat: |
9303 | switch (this->args.size()) { |
9304 | case 2: |
9305 | switch (this->args[0].kind()) { |
9306 | case Arg::Tmp: |
9307 | switch (this->args[1].kind()) { |
9308 | case Arg::Tmp: |
9309 | if (!args[0].tmp().isFP()) |
9310 | OPGEN_RETURN(false); |
9311 | if (!args[1].tmp().isFP()) |
9312 | OPGEN_RETURN(false); |
9313 | OPGEN_RETURN(true); |
9314 | break; |
9315 | break; |
9316 | default: |
9317 | break; |
9318 | } |
9319 | break; |
9320 | case Arg::Addr: |
9321 | case Arg::Stack: |
9322 | case Arg::CallArg: |
9323 | switch (this->args[1].kind()) { |
9324 | case Arg::Tmp: |
9325 | #if CPU(X86) || CPU(X86_64) |
9326 | if (!Arg::isValidAddrForm(args[0].offset())) |
9327 | OPGEN_RETURN(false); |
9328 | if (!args[1].tmp().isFP()) |
9329 | OPGEN_RETURN(false); |
9330 | OPGEN_RETURN(true); |
9331 | #endif |
9332 | break; |
9333 | break; |
9334 | default: |
9335 | break; |
9336 | } |
9337 | break; |
9338 | default: |
9339 | break; |
9340 | } |
9341 | break; |
9342 | default: |
9343 | break; |
9344 | } |
9345 | break; |
9346 | case Opcode::FloorDouble: |
9347 | switch (this->args.size()) { |
9348 | case 2: |
9349 | switch (this->args[0].kind()) { |
9350 | case Arg::Tmp: |
9351 | switch (this->args[1].kind()) { |
9352 | case Arg::Tmp: |
9353 | if (!args[0].tmp().isFP()) |
9354 | OPGEN_RETURN(false); |
9355 | if (!args[1].tmp().isFP()) |
9356 | OPGEN_RETURN(false); |
9357 | OPGEN_RETURN(true); |
9358 | break; |
9359 | break; |
9360 | default: |
9361 | break; |
9362 | } |
9363 | break; |
9364 | case Arg::Addr: |
9365 | case Arg::Stack: |
9366 | case Arg::CallArg: |
9367 | switch (this->args[1].kind()) { |
9368 | case Arg::Tmp: |
9369 | #if CPU(X86) || CPU(X86_64) |
9370 | if (!Arg::isValidAddrForm(args[0].offset())) |
9371 | OPGEN_RETURN(false); |
9372 | if (!args[1].tmp().isFP()) |
9373 | OPGEN_RETURN(false); |
9374 | OPGEN_RETURN(true); |
9375 | #endif |
9376 | break; |
9377 | break; |
9378 | default: |
9379 | break; |
9380 | } |
9381 | break; |
9382 | default: |
9383 | break; |
9384 | } |
9385 | break; |
9386 | default: |
9387 | break; |
9388 | } |
9389 | break; |
9390 | case Opcode::FloorFloat: |
9391 | switch (this->args.size()) { |
9392 | case 2: |
9393 | switch (this->args[0].kind()) { |
9394 | case Arg::Tmp: |
9395 | switch (this->args[1].kind()) { |
9396 | case Arg::Tmp: |
9397 | if (!args[0].tmp().isFP()) |
9398 | OPGEN_RETURN(false); |
9399 | if (!args[1].tmp().isFP()) |
9400 | OPGEN_RETURN(false); |
9401 | OPGEN_RETURN(true); |
9402 | break; |
9403 | break; |
9404 | default: |
9405 | break; |
9406 | } |
9407 | break; |
9408 | case Arg::Addr: |
9409 | case Arg::Stack: |
9410 | case Arg::CallArg: |
9411 | switch (this->args[1].kind()) { |
9412 | case Arg::Tmp: |
9413 | #if CPU(X86) || CPU(X86_64) |
9414 | if (!Arg::isValidAddrForm(args[0].offset())) |
9415 | OPGEN_RETURN(false); |
9416 | if (!args[1].tmp().isFP()) |
9417 | OPGEN_RETURN(false); |
9418 | OPGEN_RETURN(true); |
9419 | #endif |
9420 | break; |
9421 | break; |
9422 | default: |
9423 | break; |
9424 | } |
9425 | break; |
9426 | default: |
9427 | break; |
9428 | } |
9429 | break; |
9430 | default: |
9431 | break; |
9432 | } |
9433 | break; |
9434 | case Opcode::SqrtDouble: |
9435 | switch (this->args.size()) { |
9436 | case 2: |
9437 | switch (this->args[0].kind()) { |
9438 | case Arg::Tmp: |
9439 | switch (this->args[1].kind()) { |
9440 | case Arg::Tmp: |
9441 | if (!args[0].tmp().isFP()) |
9442 | OPGEN_RETURN(false); |
9443 | if (!args[1].tmp().isFP()) |
9444 | OPGEN_RETURN(false); |
9445 | OPGEN_RETURN(true); |
9446 | break; |
9447 | break; |
9448 | default: |
9449 | break; |
9450 | } |
9451 | break; |
9452 | case Arg::Addr: |
9453 | case Arg::Stack: |
9454 | case Arg::CallArg: |
9455 | switch (this->args[1].kind()) { |
9456 | case Arg::Tmp: |
9457 | #if CPU(X86) || CPU(X86_64) |
9458 | if (!Arg::isValidAddrForm(args[0].offset())) |
9459 | OPGEN_RETURN(false); |
9460 | if (!args[1].tmp().isFP()) |
9461 | OPGEN_RETURN(false); |
9462 | OPGEN_RETURN(true); |
9463 | #endif |
9464 | break; |
9465 | break; |
9466 | default: |
9467 | break; |
9468 | } |
9469 | break; |
9470 | default: |
9471 | break; |
9472 | } |
9473 | break; |
9474 | default: |
9475 | break; |
9476 | } |
9477 | break; |
9478 | case Opcode::SqrtFloat: |
9479 | switch (this->args.size()) { |
9480 | case 2: |
9481 | switch (this->args[0].kind()) { |
9482 | case Arg::Tmp: |
9483 | switch (this->args[1].kind()) { |
9484 | case Arg::Tmp: |
9485 | if (!args[0].tmp().isFP()) |
9486 | OPGEN_RETURN(false); |
9487 | if (!args[1].tmp().isFP()) |
9488 | OPGEN_RETURN(false); |
9489 | OPGEN_RETURN(true); |
9490 | break; |
9491 | break; |
9492 | default: |
9493 | break; |
9494 | } |
9495 | break; |
9496 | case Arg::Addr: |
9497 | case Arg::Stack: |
9498 | case Arg::CallArg: |
9499 | switch (this->args[1].kind()) { |
9500 | case Arg::Tmp: |
9501 | #if CPU(X86) || CPU(X86_64) |
9502 | if (!Arg::isValidAddrForm(args[0].offset())) |
9503 | OPGEN_RETURN(false); |
9504 | if (!args[1].tmp().isFP()) |
9505 | OPGEN_RETURN(false); |
9506 | OPGEN_RETURN(true); |
9507 | #endif |
9508 | break; |
9509 | break; |
9510 | default: |
9511 | break; |
9512 | } |
9513 | break; |
9514 | default: |
9515 | break; |
9516 | } |
9517 | break; |
9518 | default: |
9519 | break; |
9520 | } |
9521 | break; |
9522 | case Opcode::ConvertInt32ToDouble: |
9523 | switch (this->args.size()) { |
9524 | case 2: |
9525 | switch (this->args[0].kind()) { |
9526 | case Arg::Tmp: |
9527 | switch (this->args[1].kind()) { |
9528 | case Arg::Tmp: |
9529 | if (!args[0].tmp().isGP()) |
9530 | OPGEN_RETURN(false); |
9531 | if (!args[1].tmp().isFP()) |
9532 | OPGEN_RETURN(false); |
9533 | OPGEN_RETURN(true); |
9534 | break; |
9535 | break; |
9536 | default: |
9537 | break; |
9538 | } |
9539 | break; |
9540 | case Arg::Addr: |
9541 | case Arg::Stack: |
9542 | case Arg::CallArg: |
9543 | switch (this->args[1].kind()) { |
9544 | case Arg::Tmp: |
9545 | #if CPU(X86) || CPU(X86_64) |
9546 | if (!Arg::isValidAddrForm(args[0].offset())) |
9547 | OPGEN_RETURN(false); |
9548 | if (!args[1].tmp().isFP()) |
9549 | OPGEN_RETURN(false); |
9550 | OPGEN_RETURN(true); |
9551 | #endif |
9552 | break; |
9553 | break; |
9554 | default: |
9555 | break; |
9556 | } |
9557 | break; |
9558 | default: |
9559 | break; |
9560 | } |
9561 | break; |
9562 | default: |
9563 | break; |
9564 | } |
9565 | break; |
9566 | case Opcode::ConvertInt64ToDouble: |
9567 | switch (this->args.size()) { |
9568 | case 2: |
9569 | switch (this->args[0].kind()) { |
9570 | case Arg::Tmp: |
9571 | switch (this->args[1].kind()) { |
9572 | case Arg::Tmp: |
9573 | #if CPU(X86_64) || CPU(ARM64) |
9574 | if (!args[0].tmp().isGP()) |
9575 | OPGEN_RETURN(false); |
9576 | if (!args[1].tmp().isFP()) |
9577 | OPGEN_RETURN(false); |
9578 | OPGEN_RETURN(true); |
9579 | #endif |
9580 | break; |
9581 | break; |
9582 | default: |
9583 | break; |
9584 | } |
9585 | break; |
9586 | case Arg::Addr: |
9587 | case Arg::Stack: |
9588 | case Arg::CallArg: |
9589 | switch (this->args[1].kind()) { |
9590 | case Arg::Tmp: |
9591 | #if CPU(X86_64) |
9592 | if (!Arg::isValidAddrForm(args[0].offset())) |
9593 | OPGEN_RETURN(false); |
9594 | if (!args[1].tmp().isFP()) |
9595 | OPGEN_RETURN(false); |
9596 | OPGEN_RETURN(true); |
9597 | #endif |
9598 | break; |
9599 | break; |
9600 | default: |
9601 | break; |
9602 | } |
9603 | break; |
9604 | default: |
9605 | break; |
9606 | } |
9607 | break; |
9608 | default: |
9609 | break; |
9610 | } |
9611 | break; |
9612 | case Opcode::ConvertInt32ToFloat: |
9613 | switch (this->args.size()) { |
9614 | case 2: |
9615 | switch (this->args[0].kind()) { |
9616 | case Arg::Tmp: |
9617 | switch (this->args[1].kind()) { |
9618 | case Arg::Tmp: |
9619 | if (!args[0].tmp().isGP()) |
9620 | OPGEN_RETURN(false); |
9621 | if (!args[1].tmp().isFP()) |
9622 | OPGEN_RETURN(false); |
9623 | OPGEN_RETURN(true); |
9624 | break; |
9625 | break; |
9626 | default: |
9627 | break; |
9628 | } |
9629 | break; |
9630 | case Arg::Addr: |
9631 | case Arg::Stack: |
9632 | case Arg::CallArg: |
9633 | switch (this->args[1].kind()) { |
9634 | case Arg::Tmp: |
9635 | #if CPU(X86) || CPU(X86_64) |
9636 | if (!Arg::isValidAddrForm(args[0].offset())) |
9637 | OPGEN_RETURN(false); |
9638 | if (!args[1].tmp().isFP()) |
9639 | OPGEN_RETURN(false); |
9640 | OPGEN_RETURN(true); |
9641 | #endif |
9642 | break; |
9643 | break; |
9644 | default: |
9645 | break; |
9646 | } |
9647 | break; |
9648 | default: |
9649 | break; |
9650 | } |
9651 | break; |
9652 | default: |
9653 | break; |
9654 | } |
9655 | break; |
9656 | case Opcode::ConvertInt64ToFloat: |
9657 | switch (this->args.size()) { |
9658 | case 2: |
9659 | switch (this->args[0].kind()) { |
9660 | case Arg::Tmp: |
9661 | switch (this->args[1].kind()) { |
9662 | case Arg::Tmp: |
9663 | #if CPU(X86_64) || CPU(ARM64) |
9664 | if (!args[0].tmp().isGP()) |
9665 | OPGEN_RETURN(false); |
9666 | if (!args[1].tmp().isFP()) |
9667 | OPGEN_RETURN(false); |
9668 | OPGEN_RETURN(true); |
9669 | #endif |
9670 | break; |
9671 | break; |
9672 | default: |
9673 | break; |
9674 | } |
9675 | break; |
9676 | case Arg::Addr: |
9677 | case Arg::Stack: |
9678 | case Arg::CallArg: |
9679 | switch (this->args[1].kind()) { |
9680 | case Arg::Tmp: |
9681 | #if CPU(X86_64) |
9682 | if (!Arg::isValidAddrForm(args[0].offset())) |
9683 | OPGEN_RETURN(false); |
9684 | if (!args[1].tmp().isFP()) |
9685 | OPGEN_RETURN(false); |
9686 | OPGEN_RETURN(true); |
9687 | #endif |
9688 | break; |
9689 | break; |
9690 | default: |
9691 | break; |
9692 | } |
9693 | break; |
9694 | default: |
9695 | break; |
9696 | } |
9697 | break; |
9698 | default: |
9699 | break; |
9700 | } |
9701 | break; |
9702 | case Opcode::CountLeadingZeros32: |
9703 | switch (this->args.size()) { |
9704 | case 2: |
9705 | switch (this->args[0].kind()) { |
9706 | case Arg::Tmp: |
9707 | switch (this->args[1].kind()) { |
9708 | case Arg::Tmp: |
9709 | if (!args[0].tmp().isGP()) |
9710 | OPGEN_RETURN(false); |
9711 | if (!args[1].tmp().isGP()) |
9712 | OPGEN_RETURN(false); |
9713 | OPGEN_RETURN(true); |
9714 | break; |
9715 | break; |
9716 | default: |
9717 | break; |
9718 | } |
9719 | break; |
9720 | case Arg::Addr: |
9721 | case Arg::Stack: |
9722 | case Arg::CallArg: |
9723 | switch (this->args[1].kind()) { |
9724 | case Arg::Tmp: |
9725 | #if CPU(X86) || CPU(X86_64) |
9726 | if (!Arg::isValidAddrForm(args[0].offset())) |
9727 | OPGEN_RETURN(false); |
9728 | if (!args[1].tmp().isGP()) |
9729 | OPGEN_RETURN(false); |
9730 | OPGEN_RETURN(true); |
9731 | #endif |
9732 | break; |
9733 | break; |
9734 | default: |
9735 | break; |
9736 | } |
9737 | break; |
9738 | default: |
9739 | break; |
9740 | } |
9741 | break; |
9742 | default: |
9743 | break; |
9744 | } |
9745 | break; |
9746 | case Opcode::CountLeadingZeros64: |
9747 | switch (this->args.size()) { |
9748 | case 2: |
9749 | switch (this->args[0].kind()) { |
9750 | case Arg::Tmp: |
9751 | switch (this->args[1].kind()) { |
9752 | case Arg::Tmp: |
9753 | #if CPU(X86_64) || CPU(ARM64) |
9754 | if (!args[0].tmp().isGP()) |
9755 | OPGEN_RETURN(false); |
9756 | if (!args[1].tmp().isGP()) |
9757 | OPGEN_RETURN(false); |
9758 | OPGEN_RETURN(true); |
9759 | #endif |
9760 | break; |
9761 | break; |
9762 | default: |
9763 | break; |
9764 | } |
9765 | break; |
9766 | case Arg::Addr: |
9767 | case Arg::Stack: |
9768 | case Arg::CallArg: |
9769 | switch (this->args[1].kind()) { |
9770 | case Arg::Tmp: |
9771 | #if CPU(X86_64) |
9772 | if (!Arg::isValidAddrForm(args[0].offset())) |
9773 | OPGEN_RETURN(false); |
9774 | if (!args[1].tmp().isGP()) |
9775 | OPGEN_RETURN(false); |
9776 | OPGEN_RETURN(true); |
9777 | #endif |
9778 | break; |
9779 | break; |
9780 | default: |
9781 | break; |
9782 | } |
9783 | break; |
9784 | default: |
9785 | break; |
9786 | } |
9787 | break; |
9788 | default: |
9789 | break; |
9790 | } |
9791 | break; |
9792 | case Opcode::ConvertDoubleToFloat: |
9793 | switch (this->args.size()) { |
9794 | case 2: |
9795 | switch (this->args[0].kind()) { |
9796 | case Arg::Tmp: |
9797 | switch (this->args[1].kind()) { |
9798 | case Arg::Tmp: |
9799 | if (!args[0].tmp().isFP()) |
9800 | OPGEN_RETURN(false); |
9801 | if (!args[1].tmp().isFP()) |
9802 | OPGEN_RETURN(false); |
9803 | OPGEN_RETURN(true); |
9804 | break; |
9805 | break; |
9806 | default: |
9807 | break; |
9808 | } |
9809 | break; |
9810 | case Arg::Addr: |
9811 | case Arg::Stack: |
9812 | case Arg::CallArg: |
9813 | switch (this->args[1].kind()) { |
9814 | case Arg::Tmp: |
9815 | #if CPU(X86) || CPU(X86_64) |
9816 | if (!Arg::isValidAddrForm(args[0].offset())) |
9817 | OPGEN_RETURN(false); |
9818 | if (!args[1].tmp().isFP()) |
9819 | OPGEN_RETURN(false); |
9820 | OPGEN_RETURN(true); |
9821 | #endif |
9822 | break; |
9823 | break; |
9824 | default: |
9825 | break; |
9826 | } |
9827 | break; |
9828 | default: |
9829 | break; |
9830 | } |
9831 | break; |
9832 | default: |
9833 | break; |
9834 | } |
9835 | break; |
9836 | case Opcode::ConvertFloatToDouble: |
9837 | switch (this->args.size()) { |
9838 | case 2: |
9839 | switch (this->args[0].kind()) { |
9840 | case Arg::Tmp: |
9841 | switch (this->args[1].kind()) { |
9842 | case Arg::Tmp: |
9843 | if (!args[0].tmp().isFP()) |
9844 | OPGEN_RETURN(false); |
9845 | if (!args[1].tmp().isFP()) |
9846 | OPGEN_RETURN(false); |
9847 | OPGEN_RETURN(true); |
9848 | break; |
9849 | break; |
9850 | default: |
9851 | break; |
9852 | } |
9853 | break; |
9854 | case Arg::Addr: |
9855 | case Arg::Stack: |
9856 | case Arg::CallArg: |
9857 | switch (this->args[1].kind()) { |
9858 | case Arg::Tmp: |
9859 | #if CPU(X86) || CPU(X86_64) |
9860 | if (!Arg::isValidAddrForm(args[0].offset())) |
9861 | OPGEN_RETURN(false); |
9862 | if (!args[1].tmp().isFP()) |
9863 | OPGEN_RETURN(false); |
9864 | OPGEN_RETURN(true); |
9865 | #endif |
9866 | break; |
9867 | break; |
9868 | default: |
9869 | break; |
9870 | } |
9871 | break; |
9872 | default: |
9873 | break; |
9874 | } |
9875 | break; |
9876 | default: |
9877 | break; |
9878 | } |
9879 | break; |
9880 | case Opcode::Move: |
9881 | switch (this->args.size()) { |
9882 | case 2: |
9883 | switch (this->args[0].kind()) { |
9884 | case Arg::Tmp: |
9885 | switch (this->args[1].kind()) { |
9886 | case Arg::Tmp: |
9887 | if (!args[0].tmp().isGP()) |
9888 | OPGEN_RETURN(false); |
9889 | if (!args[1].tmp().isGP()) |
9890 | OPGEN_RETURN(false); |
9891 | OPGEN_RETURN(true); |
9892 | break; |
9893 | break; |
9894 | case Arg::Addr: |
9895 | case Arg::Stack: |
9896 | case Arg::CallArg: |
9897 | if (!args[0].tmp().isGP()) |
9898 | OPGEN_RETURN(false); |
9899 | if (!Arg::isValidAddrForm(args[1].offset())) |
9900 | OPGEN_RETURN(false); |
9901 | OPGEN_RETURN(true); |
9902 | break; |
9903 | break; |
9904 | case Arg::Index: |
9905 | if (!args[0].tmp().isGP()) |
9906 | OPGEN_RETURN(false); |
9907 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), POINTER_WIDTH)) |
9908 | OPGEN_RETURN(false); |
9909 | OPGEN_RETURN(true); |
9910 | break; |
9911 | break; |
9912 | default: |
9913 | break; |
9914 | } |
9915 | break; |
9916 | case Arg::Imm: |
9917 | switch (this->args[1].kind()) { |
9918 | case Arg::Tmp: |
9919 | if (!Arg::isValidImmForm(args[0].value())) |
9920 | OPGEN_RETURN(false); |
9921 | if (!args[1].tmp().isGP()) |
9922 | OPGEN_RETURN(false); |
9923 | OPGEN_RETURN(true); |
9924 | break; |
9925 | break; |
9926 | case Arg::Addr: |
9927 | case Arg::Stack: |
9928 | case Arg::CallArg: |
9929 | #if CPU(X86) || CPU(X86_64) |
9930 | if (!Arg::isValidImmForm(args[0].value())) |
9931 | OPGEN_RETURN(false); |
9932 | if (!Arg::isValidAddrForm(args[1].offset())) |
9933 | OPGEN_RETURN(false); |
9934 | OPGEN_RETURN(true); |
9935 | #endif |
9936 | break; |
9937 | break; |
9938 | default: |
9939 | break; |
9940 | } |
9941 | break; |
9942 | #if USE(JSVALUE64) |
9943 | case Arg::BigImm: |
9944 | switch (this->args[1].kind()) { |
9945 | case Arg::Tmp: |
9946 | if (!args[1].tmp().isGP()) |
9947 | OPGEN_RETURN(false); |
9948 | OPGEN_RETURN(true); |
9949 | break; |
9950 | break; |
9951 | default: |
9952 | break; |
9953 | } |
9954 | break; |
9955 | #endif // USE(JSVALUE64) |
9956 | case Arg::Addr: |
9957 | case Arg::Stack: |
9958 | case Arg::CallArg: |
9959 | switch (this->args[1].kind()) { |
9960 | case Arg::Tmp: |
9961 | if (!Arg::isValidAddrForm(args[0].offset())) |
9962 | OPGEN_RETURN(false); |
9963 | if (!args[1].tmp().isGP()) |
9964 | OPGEN_RETURN(false); |
9965 | OPGEN_RETURN(true); |
9966 | break; |
9967 | break; |
9968 | default: |
9969 | break; |
9970 | } |
9971 | break; |
9972 | case Arg::Index: |
9973 | switch (this->args[1].kind()) { |
9974 | case Arg::Tmp: |
9975 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), POINTER_WIDTH)) |
9976 | OPGEN_RETURN(false); |
9977 | if (!args[1].tmp().isGP()) |
9978 | OPGEN_RETURN(false); |
9979 | OPGEN_RETURN(true); |
9980 | break; |
9981 | break; |
9982 | default: |
9983 | break; |
9984 | } |
9985 | break; |
9986 | default: |
9987 | break; |
9988 | } |
9989 | break; |
9990 | case 3: |
9991 | switch (this->args[0].kind()) { |
9992 | case Arg::Addr: |
9993 | case Arg::Stack: |
9994 | case Arg::CallArg: |
9995 | switch (this->args[1].kind()) { |
9996 | case Arg::Addr: |
9997 | case Arg::Stack: |
9998 | case Arg::CallArg: |
9999 | switch (this->args[2].kind()) { |
10000 | case Arg::Tmp: |
10001 | if (!Arg::isValidAddrForm(args[0].offset())) |
10002 | OPGEN_RETURN(false); |
10003 | if (!Arg::isValidAddrForm(args[1].offset())) |
10004 | OPGEN_RETURN(false); |
10005 | if (!args[2].tmp().isGP()) |
10006 | OPGEN_RETURN(false); |
10007 | OPGEN_RETURN(true); |
10008 | break; |
10009 | break; |
10010 | default: |
10011 | break; |
10012 | } |
10013 | break; |
10014 | default: |
10015 | break; |
10016 | } |
10017 | break; |
10018 | default: |
10019 | break; |
10020 | } |
10021 | break; |
10022 | default: |
10023 | break; |
10024 | } |
10025 | break; |
10026 | case Opcode::Swap32: |
10027 | switch (this->args.size()) { |
10028 | case 2: |
10029 | switch (this->args[0].kind()) { |
10030 | case Arg::Tmp: |
10031 | switch (this->args[1].kind()) { |
10032 | case Arg::Tmp: |
10033 | #if CPU(X86) || CPU(X86_64) |
10034 | if (!args[0].tmp().isGP()) |
10035 | OPGEN_RETURN(false); |
10036 | if (!args[1].tmp().isGP()) |
10037 | OPGEN_RETURN(false); |
10038 | OPGEN_RETURN(true); |
10039 | #endif |
10040 | break; |
10041 | break; |
10042 | case Arg::Addr: |
10043 | case Arg::Stack: |
10044 | case Arg::CallArg: |
10045 | #if CPU(X86) || CPU(X86_64) |
10046 | if (!args[0].tmp().isGP()) |
10047 | OPGEN_RETURN(false); |
10048 | if (!Arg::isValidAddrForm(args[1].offset())) |
10049 | OPGEN_RETURN(false); |
10050 | OPGEN_RETURN(true); |
10051 | #endif |
10052 | break; |
10053 | break; |
10054 | default: |
10055 | break; |
10056 | } |
10057 | break; |
10058 | default: |
10059 | break; |
10060 | } |
10061 | break; |
10062 | default: |
10063 | break; |
10064 | } |
10065 | break; |
10066 | case Opcode::Swap64: |
10067 | switch (this->args.size()) { |
10068 | case 2: |
10069 | switch (this->args[0].kind()) { |
10070 | case Arg::Tmp: |
10071 | switch (this->args[1].kind()) { |
10072 | case Arg::Tmp: |
10073 | #if CPU(X86_64) |
10074 | if (!args[0].tmp().isGP()) |
10075 | OPGEN_RETURN(false); |
10076 | if (!args[1].tmp().isGP()) |
10077 | OPGEN_RETURN(false); |
10078 | OPGEN_RETURN(true); |
10079 | #endif |
10080 | break; |
10081 | break; |
10082 | case Arg::Addr: |
10083 | case Arg::Stack: |
10084 | case Arg::CallArg: |
10085 | #if CPU(X86_64) |
10086 | if (!args[0].tmp().isGP()) |
10087 | OPGEN_RETURN(false); |
10088 | if (!Arg::isValidAddrForm(args[1].offset())) |
10089 | OPGEN_RETURN(false); |
10090 | OPGEN_RETURN(true); |
10091 | #endif |
10092 | break; |
10093 | break; |
10094 | default: |
10095 | break; |
10096 | } |
10097 | break; |
10098 | default: |
10099 | break; |
10100 | } |
10101 | break; |
10102 | default: |
10103 | break; |
10104 | } |
10105 | break; |
10106 | case Opcode::Move32: |
10107 | switch (this->args.size()) { |
10108 | case 2: |
10109 | switch (this->args[0].kind()) { |
10110 | case Arg::Tmp: |
10111 | switch (this->args[1].kind()) { |
10112 | case Arg::Tmp: |
10113 | if (!args[0].tmp().isGP()) |
10114 | OPGEN_RETURN(false); |
10115 | if (!args[1].tmp().isGP()) |
10116 | OPGEN_RETURN(false); |
10117 | OPGEN_RETURN(true); |
10118 | break; |
10119 | break; |
10120 | case Arg::Addr: |
10121 | case Arg::Stack: |
10122 | case Arg::CallArg: |
10123 | if (!args[0].tmp().isGP()) |
10124 | OPGEN_RETURN(false); |
10125 | if (!Arg::isValidAddrForm(args[1].offset())) |
10126 | OPGEN_RETURN(false); |
10127 | OPGEN_RETURN(true); |
10128 | break; |
10129 | break; |
10130 | case Arg::Index: |
10131 | if (!args[0].tmp().isGP()) |
10132 | OPGEN_RETURN(false); |
10133 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
10134 | OPGEN_RETURN(false); |
10135 | OPGEN_RETURN(true); |
10136 | break; |
10137 | break; |
10138 | default: |
10139 | break; |
10140 | } |
10141 | break; |
10142 | case Arg::Addr: |
10143 | case Arg::Stack: |
10144 | case Arg::CallArg: |
10145 | switch (this->args[1].kind()) { |
10146 | case Arg::Tmp: |
10147 | if (!Arg::isValidAddrForm(args[0].offset())) |
10148 | OPGEN_RETURN(false); |
10149 | if (!args[1].tmp().isGP()) |
10150 | OPGEN_RETURN(false); |
10151 | OPGEN_RETURN(true); |
10152 | break; |
10153 | break; |
10154 | default: |
10155 | break; |
10156 | } |
10157 | break; |
10158 | case Arg::Index: |
10159 | switch (this->args[1].kind()) { |
10160 | case Arg::Tmp: |
10161 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
10162 | OPGEN_RETURN(false); |
10163 | if (!args[1].tmp().isGP()) |
10164 | OPGEN_RETURN(false); |
10165 | OPGEN_RETURN(true); |
10166 | break; |
10167 | break; |
10168 | default: |
10169 | break; |
10170 | } |
10171 | break; |
10172 | case Arg::Imm: |
10173 | switch (this->args[1].kind()) { |
10174 | case Arg::Tmp: |
10175 | #if CPU(X86) || CPU(X86_64) |
10176 | if (!Arg::isValidImmForm(args[0].value())) |
10177 | OPGEN_RETURN(false); |
10178 | if (!args[1].tmp().isGP()) |
10179 | OPGEN_RETURN(false); |
10180 | OPGEN_RETURN(true); |
10181 | #endif |
10182 | break; |
10183 | break; |
10184 | case Arg::Addr: |
10185 | case Arg::Stack: |
10186 | case Arg::CallArg: |
10187 | #if CPU(X86) || CPU(X86_64) |
10188 | if (!Arg::isValidImmForm(args[0].value())) |
10189 | OPGEN_RETURN(false); |
10190 | if (!Arg::isValidAddrForm(args[1].offset())) |
10191 | OPGEN_RETURN(false); |
10192 | OPGEN_RETURN(true); |
10193 | #endif |
10194 | break; |
10195 | break; |
10196 | case Arg::Index: |
10197 | #if CPU(X86) || CPU(X86_64) |
10198 | if (!Arg::isValidImmForm(args[0].value())) |
10199 | OPGEN_RETURN(false); |
10200 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
10201 | OPGEN_RETURN(false); |
10202 | OPGEN_RETURN(true); |
10203 | #endif |
10204 | break; |
10205 | break; |
10206 | default: |
10207 | break; |
10208 | } |
10209 | break; |
10210 | default: |
10211 | break; |
10212 | } |
10213 | break; |
10214 | case 3: |
10215 | switch (this->args[0].kind()) { |
10216 | case Arg::Addr: |
10217 | case Arg::Stack: |
10218 | case Arg::CallArg: |
10219 | switch (this->args[1].kind()) { |
10220 | case Arg::Addr: |
10221 | case Arg::Stack: |
10222 | case Arg::CallArg: |
10223 | switch (this->args[2].kind()) { |
10224 | case Arg::Tmp: |
10225 | if (!Arg::isValidAddrForm(args[0].offset())) |
10226 | OPGEN_RETURN(false); |
10227 | if (!Arg::isValidAddrForm(args[1].offset())) |
10228 | OPGEN_RETURN(false); |
10229 | if (!args[2].tmp().isGP()) |
10230 | OPGEN_RETURN(false); |
10231 | OPGEN_RETURN(true); |
10232 | break; |
10233 | break; |
10234 | default: |
10235 | break; |
10236 | } |
10237 | break; |
10238 | default: |
10239 | break; |
10240 | } |
10241 | break; |
10242 | default: |
10243 | break; |
10244 | } |
10245 | break; |
10246 | default: |
10247 | break; |
10248 | } |
10249 | break; |
10250 | case Opcode::StoreZero32: |
10251 | switch (this->args.size()) { |
10252 | case 1: |
10253 | switch (this->args[0].kind()) { |
10254 | case Arg::Addr: |
10255 | case Arg::Stack: |
10256 | case Arg::CallArg: |
10257 | if (!Arg::isValidAddrForm(args[0].offset())) |
10258 | OPGEN_RETURN(false); |
10259 | OPGEN_RETURN(true); |
10260 | break; |
10261 | break; |
10262 | case Arg::Index: |
10263 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
10264 | OPGEN_RETURN(false); |
10265 | OPGEN_RETURN(true); |
10266 | break; |
10267 | break; |
10268 | default: |
10269 | break; |
10270 | } |
10271 | break; |
10272 | default: |
10273 | break; |
10274 | } |
10275 | break; |
10276 | case Opcode::StoreZero64: |
10277 | switch (this->args.size()) { |
10278 | case 1: |
10279 | switch (this->args[0].kind()) { |
10280 | case Arg::Addr: |
10281 | case Arg::Stack: |
10282 | case Arg::CallArg: |
10283 | #if CPU(X86_64) || CPU(ARM64) |
10284 | if (!Arg::isValidAddrForm(args[0].offset())) |
10285 | OPGEN_RETURN(false); |
10286 | OPGEN_RETURN(true); |
10287 | #endif |
10288 | break; |
10289 | break; |
10290 | case Arg::Index: |
10291 | #if CPU(X86_64) || CPU(ARM64) |
10292 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
10293 | OPGEN_RETURN(false); |
10294 | OPGEN_RETURN(true); |
10295 | #endif |
10296 | break; |
10297 | break; |
10298 | default: |
10299 | break; |
10300 | } |
10301 | break; |
10302 | default: |
10303 | break; |
10304 | } |
10305 | break; |
10306 | case Opcode::SignExtend32ToPtr: |
10307 | switch (this->args.size()) { |
10308 | case 2: |
10309 | switch (this->args[0].kind()) { |
10310 | case Arg::Tmp: |
10311 | switch (this->args[1].kind()) { |
10312 | case Arg::Tmp: |
10313 | if (!args[0].tmp().isGP()) |
10314 | OPGEN_RETURN(false); |
10315 | if (!args[1].tmp().isGP()) |
10316 | OPGEN_RETURN(false); |
10317 | OPGEN_RETURN(true); |
10318 | break; |
10319 | break; |
10320 | default: |
10321 | break; |
10322 | } |
10323 | break; |
10324 | default: |
10325 | break; |
10326 | } |
10327 | break; |
10328 | default: |
10329 | break; |
10330 | } |
10331 | break; |
10332 | case Opcode::ZeroExtend8To32: |
10333 | switch (this->args.size()) { |
10334 | case 2: |
10335 | switch (this->args[0].kind()) { |
10336 | case Arg::Tmp: |
10337 | switch (this->args[1].kind()) { |
10338 | case Arg::Tmp: |
10339 | if (!args[0].tmp().isGP()) |
10340 | OPGEN_RETURN(false); |
10341 | if (!args[1].tmp().isGP()) |
10342 | OPGEN_RETURN(false); |
10343 | OPGEN_RETURN(true); |
10344 | break; |
10345 | break; |
10346 | default: |
10347 | break; |
10348 | } |
10349 | break; |
10350 | case Arg::Addr: |
10351 | case Arg::Stack: |
10352 | case Arg::CallArg: |
10353 | switch (this->args[1].kind()) { |
10354 | case Arg::Tmp: |
10355 | #if CPU(X86) || CPU(X86_64) |
10356 | if (!Arg::isValidAddrForm(args[0].offset())) |
10357 | OPGEN_RETURN(false); |
10358 | if (!args[1].tmp().isGP()) |
10359 | OPGEN_RETURN(false); |
10360 | OPGEN_RETURN(true); |
10361 | #endif |
10362 | break; |
10363 | break; |
10364 | default: |
10365 | break; |
10366 | } |
10367 | break; |
10368 | case Arg::Index: |
10369 | switch (this->args[1].kind()) { |
10370 | case Arg::Tmp: |
10371 | #if CPU(X86) || CPU(X86_64) |
10372 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width8)) |
10373 | OPGEN_RETURN(false); |
10374 | if (!args[1].tmp().isGP()) |
10375 | OPGEN_RETURN(false); |
10376 | OPGEN_RETURN(true); |
10377 | #endif |
10378 | break; |
10379 | break; |
10380 | default: |
10381 | break; |
10382 | } |
10383 | break; |
10384 | default: |
10385 | break; |
10386 | } |
10387 | break; |
10388 | default: |
10389 | break; |
10390 | } |
10391 | break; |
10392 | case Opcode::SignExtend8To32: |
10393 | switch (this->args.size()) { |
10394 | case 2: |
10395 | switch (this->args[0].kind()) { |
10396 | case Arg::Tmp: |
10397 | switch (this->args[1].kind()) { |
10398 | case Arg::Tmp: |
10399 | if (!args[0].tmp().isGP()) |
10400 | OPGEN_RETURN(false); |
10401 | if (!args[1].tmp().isGP()) |
10402 | OPGEN_RETURN(false); |
10403 | OPGEN_RETURN(true); |
10404 | break; |
10405 | break; |
10406 | default: |
10407 | break; |
10408 | } |
10409 | break; |
10410 | case Arg::Addr: |
10411 | case Arg::Stack: |
10412 | case Arg::CallArg: |
10413 | switch (this->args[1].kind()) { |
10414 | case Arg::Tmp: |
10415 | #if CPU(X86) || CPU(X86_64) |
10416 | if (!Arg::isValidAddrForm(args[0].offset())) |
10417 | OPGEN_RETURN(false); |
10418 | if (!args[1].tmp().isGP()) |
10419 | OPGEN_RETURN(false); |
10420 | OPGEN_RETURN(true); |
10421 | #endif |
10422 | break; |
10423 | break; |
10424 | default: |
10425 | break; |
10426 | } |
10427 | break; |
10428 | case Arg::Index: |
10429 | switch (this->args[1].kind()) { |
10430 | case Arg::Tmp: |
10431 | #if CPU(X86) || CPU(X86_64) |
10432 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width8)) |
10433 | OPGEN_RETURN(false); |
10434 | if (!args[1].tmp().isGP()) |
10435 | OPGEN_RETURN(false); |
10436 | OPGEN_RETURN(true); |
10437 | #endif |
10438 | break; |
10439 | break; |
10440 | default: |
10441 | break; |
10442 | } |
10443 | break; |
10444 | default: |
10445 | break; |
10446 | } |
10447 | break; |
10448 | default: |
10449 | break; |
10450 | } |
10451 | break; |
10452 | case Opcode::ZeroExtend16To32: |
10453 | switch (this->args.size()) { |
10454 | case 2: |
10455 | switch (this->args[0].kind()) { |
10456 | case Arg::Tmp: |
10457 | switch (this->args[1].kind()) { |
10458 | case Arg::Tmp: |
10459 | if (!args[0].tmp().isGP()) |
10460 | OPGEN_RETURN(false); |
10461 | if (!args[1].tmp().isGP()) |
10462 | OPGEN_RETURN(false); |
10463 | OPGEN_RETURN(true); |
10464 | break; |
10465 | break; |
10466 | default: |
10467 | break; |
10468 | } |
10469 | break; |
10470 | case Arg::Addr: |
10471 | case Arg::Stack: |
10472 | case Arg::CallArg: |
10473 | switch (this->args[1].kind()) { |
10474 | case Arg::Tmp: |
10475 | #if CPU(X86) || CPU(X86_64) |
10476 | if (!Arg::isValidAddrForm(args[0].offset())) |
10477 | OPGEN_RETURN(false); |
10478 | if (!args[1].tmp().isGP()) |
10479 | OPGEN_RETURN(false); |
10480 | OPGEN_RETURN(true); |
10481 | #endif |
10482 | break; |
10483 | break; |
10484 | default: |
10485 | break; |
10486 | } |
10487 | break; |
10488 | case Arg::Index: |
10489 | switch (this->args[1].kind()) { |
10490 | case Arg::Tmp: |
10491 | #if CPU(X86) || CPU(X86_64) |
10492 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width16)) |
10493 | OPGEN_RETURN(false); |
10494 | if (!args[1].tmp().isGP()) |
10495 | OPGEN_RETURN(false); |
10496 | OPGEN_RETURN(true); |
10497 | #endif |
10498 | break; |
10499 | break; |
10500 | default: |
10501 | break; |
10502 | } |
10503 | break; |
10504 | default: |
10505 | break; |
10506 | } |
10507 | break; |
10508 | default: |
10509 | break; |
10510 | } |
10511 | break; |
10512 | case Opcode::SignExtend16To32: |
10513 | switch (this->args.size()) { |
10514 | case 2: |
10515 | switch (this->args[0].kind()) { |
10516 | case Arg::Tmp: |
10517 | switch (this->args[1].kind()) { |
10518 | case Arg::Tmp: |
10519 | if (!args[0].tmp().isGP()) |
10520 | OPGEN_RETURN(false); |
10521 | if (!args[1].tmp().isGP()) |
10522 | OPGEN_RETURN(false); |
10523 | OPGEN_RETURN(true); |
10524 | break; |
10525 | break; |
10526 | default: |
10527 | break; |
10528 | } |
10529 | break; |
10530 | case Arg::Addr: |
10531 | case Arg::Stack: |
10532 | case Arg::CallArg: |
10533 | switch (this->args[1].kind()) { |
10534 | case Arg::Tmp: |
10535 | #if CPU(X86) || CPU(X86_64) |
10536 | if (!Arg::isValidAddrForm(args[0].offset())) |
10537 | OPGEN_RETURN(false); |
10538 | if (!args[1].tmp().isGP()) |
10539 | OPGEN_RETURN(false); |
10540 | OPGEN_RETURN(true); |
10541 | #endif |
10542 | break; |
10543 | break; |
10544 | default: |
10545 | break; |
10546 | } |
10547 | break; |
10548 | case Arg::Index: |
10549 | switch (this->args[1].kind()) { |
10550 | case Arg::Tmp: |
10551 | #if CPU(X86) || CPU(X86_64) |
10552 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width16)) |
10553 | OPGEN_RETURN(false); |
10554 | if (!args[1].tmp().isGP()) |
10555 | OPGEN_RETURN(false); |
10556 | OPGEN_RETURN(true); |
10557 | #endif |
10558 | break; |
10559 | break; |
10560 | default: |
10561 | break; |
10562 | } |
10563 | break; |
10564 | default: |
10565 | break; |
10566 | } |
10567 | break; |
10568 | default: |
10569 | break; |
10570 | } |
10571 | break; |
10572 | case Opcode::MoveFloat: |
10573 | switch (this->args.size()) { |
10574 | case 2: |
10575 | switch (this->args[0].kind()) { |
10576 | case Arg::Tmp: |
10577 | switch (this->args[1].kind()) { |
10578 | case Arg::Tmp: |
10579 | if (!args[0].tmp().isFP()) |
10580 | OPGEN_RETURN(false); |
10581 | if (!args[1].tmp().isFP()) |
10582 | OPGEN_RETURN(false); |
10583 | OPGEN_RETURN(true); |
10584 | break; |
10585 | break; |
10586 | case Arg::Addr: |
10587 | case Arg::Stack: |
10588 | case Arg::CallArg: |
10589 | if (!args[0].tmp().isFP()) |
10590 | OPGEN_RETURN(false); |
10591 | if (!Arg::isValidAddrForm(args[1].offset())) |
10592 | OPGEN_RETURN(false); |
10593 | OPGEN_RETURN(true); |
10594 | break; |
10595 | break; |
10596 | case Arg::Index: |
10597 | if (!args[0].tmp().isFP()) |
10598 | OPGEN_RETURN(false); |
10599 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
10600 | OPGEN_RETURN(false); |
10601 | OPGEN_RETURN(true); |
10602 | break; |
10603 | break; |
10604 | default: |
10605 | break; |
10606 | } |
10607 | break; |
10608 | case Arg::Addr: |
10609 | case Arg::Stack: |
10610 | case Arg::CallArg: |
10611 | switch (this->args[1].kind()) { |
10612 | case Arg::Tmp: |
10613 | if (!Arg::isValidAddrForm(args[0].offset())) |
10614 | OPGEN_RETURN(false); |
10615 | if (!args[1].tmp().isFP()) |
10616 | OPGEN_RETURN(false); |
10617 | OPGEN_RETURN(true); |
10618 | break; |
10619 | break; |
10620 | default: |
10621 | break; |
10622 | } |
10623 | break; |
10624 | case Arg::Index: |
10625 | switch (this->args[1].kind()) { |
10626 | case Arg::Tmp: |
10627 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
10628 | OPGEN_RETURN(false); |
10629 | if (!args[1].tmp().isFP()) |
10630 | OPGEN_RETURN(false); |
10631 | OPGEN_RETURN(true); |
10632 | break; |
10633 | break; |
10634 | default: |
10635 | break; |
10636 | } |
10637 | break; |
10638 | default: |
10639 | break; |
10640 | } |
10641 | break; |
10642 | case 3: |
10643 | switch (this->args[0].kind()) { |
10644 | case Arg::Addr: |
10645 | case Arg::Stack: |
10646 | case Arg::CallArg: |
10647 | switch (this->args[1].kind()) { |
10648 | case Arg::Addr: |
10649 | case Arg::Stack: |
10650 | case Arg::CallArg: |
10651 | switch (this->args[2].kind()) { |
10652 | case Arg::Tmp: |
10653 | if (!Arg::isValidAddrForm(args[0].offset())) |
10654 | OPGEN_RETURN(false); |
10655 | if (!Arg::isValidAddrForm(args[1].offset())) |
10656 | OPGEN_RETURN(false); |
10657 | if (!args[2].tmp().isFP()) |
10658 | OPGEN_RETURN(false); |
10659 | OPGEN_RETURN(true); |
10660 | break; |
10661 | break; |
10662 | default: |
10663 | break; |
10664 | } |
10665 | break; |
10666 | default: |
10667 | break; |
10668 | } |
10669 | break; |
10670 | default: |
10671 | break; |
10672 | } |
10673 | break; |
10674 | default: |
10675 | break; |
10676 | } |
10677 | break; |
10678 | case Opcode::MoveDouble: |
10679 | switch (this->args.size()) { |
10680 | case 2: |
10681 | switch (this->args[0].kind()) { |
10682 | case Arg::Tmp: |
10683 | switch (this->args[1].kind()) { |
10684 | case Arg::Tmp: |
10685 | if (!args[0].tmp().isFP()) |
10686 | OPGEN_RETURN(false); |
10687 | if (!args[1].tmp().isFP()) |
10688 | OPGEN_RETURN(false); |
10689 | OPGEN_RETURN(true); |
10690 | break; |
10691 | break; |
10692 | case Arg::Addr: |
10693 | case Arg::Stack: |
10694 | case Arg::CallArg: |
10695 | if (!args[0].tmp().isFP()) |
10696 | OPGEN_RETURN(false); |
10697 | if (!Arg::isValidAddrForm(args[1].offset())) |
10698 | OPGEN_RETURN(false); |
10699 | OPGEN_RETURN(true); |
10700 | break; |
10701 | break; |
10702 | case Arg::Index: |
10703 | if (!args[0].tmp().isFP()) |
10704 | OPGEN_RETURN(false); |
10705 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
10706 | OPGEN_RETURN(false); |
10707 | OPGEN_RETURN(true); |
10708 | break; |
10709 | break; |
10710 | default: |
10711 | break; |
10712 | } |
10713 | break; |
10714 | case Arg::Addr: |
10715 | case Arg::Stack: |
10716 | case Arg::CallArg: |
10717 | switch (this->args[1].kind()) { |
10718 | case Arg::Tmp: |
10719 | if (!Arg::isValidAddrForm(args[0].offset())) |
10720 | OPGEN_RETURN(false); |
10721 | if (!args[1].tmp().isFP()) |
10722 | OPGEN_RETURN(false); |
10723 | OPGEN_RETURN(true); |
10724 | break; |
10725 | break; |
10726 | default: |
10727 | break; |
10728 | } |
10729 | break; |
10730 | case Arg::Index: |
10731 | switch (this->args[1].kind()) { |
10732 | case Arg::Tmp: |
10733 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
10734 | OPGEN_RETURN(false); |
10735 | if (!args[1].tmp().isFP()) |
10736 | OPGEN_RETURN(false); |
10737 | OPGEN_RETURN(true); |
10738 | break; |
10739 | break; |
10740 | default: |
10741 | break; |
10742 | } |
10743 | break; |
10744 | default: |
10745 | break; |
10746 | } |
10747 | break; |
10748 | case 3: |
10749 | switch (this->args[0].kind()) { |
10750 | case Arg::Addr: |
10751 | case Arg::Stack: |
10752 | case Arg::CallArg: |
10753 | switch (this->args[1].kind()) { |
10754 | case Arg::Addr: |
10755 | case Arg::Stack: |
10756 | case Arg::CallArg: |
10757 | switch (this->args[2].kind()) { |
10758 | case Arg::Tmp: |
10759 | if (!Arg::isValidAddrForm(args[0].offset())) |
10760 | OPGEN_RETURN(false); |
10761 | if (!Arg::isValidAddrForm(args[1].offset())) |
10762 | OPGEN_RETURN(false); |
10763 | if (!args[2].tmp().isFP()) |
10764 | OPGEN_RETURN(false); |
10765 | OPGEN_RETURN(true); |
10766 | break; |
10767 | break; |
10768 | default: |
10769 | break; |
10770 | } |
10771 | break; |
10772 | default: |
10773 | break; |
10774 | } |
10775 | break; |
10776 | default: |
10777 | break; |
10778 | } |
10779 | break; |
10780 | default: |
10781 | break; |
10782 | } |
10783 | break; |
10784 | case Opcode::MoveZeroToDouble: |
10785 | switch (this->args.size()) { |
10786 | case 1: |
10787 | switch (this->args[0].kind()) { |
10788 | case Arg::Tmp: |
10789 | if (!args[0].tmp().isFP()) |
10790 | OPGEN_RETURN(false); |
10791 | OPGEN_RETURN(true); |
10792 | break; |
10793 | break; |
10794 | default: |
10795 | break; |
10796 | } |
10797 | break; |
10798 | default: |
10799 | break; |
10800 | } |
10801 | break; |
10802 | case Opcode::Move64ToDouble: |
10803 | switch (this->args.size()) { |
10804 | case 2: |
10805 | switch (this->args[0].kind()) { |
10806 | case Arg::Tmp: |
10807 | switch (this->args[1].kind()) { |
10808 | case Arg::Tmp: |
10809 | #if CPU(X86_64) || CPU(ARM64) |
10810 | if (!args[0].tmp().isGP()) |
10811 | OPGEN_RETURN(false); |
10812 | if (!args[1].tmp().isFP()) |
10813 | OPGEN_RETURN(false); |
10814 | OPGEN_RETURN(true); |
10815 | #endif |
10816 | break; |
10817 | break; |
10818 | default: |
10819 | break; |
10820 | } |
10821 | break; |
10822 | case Arg::Addr: |
10823 | case Arg::Stack: |
10824 | case Arg::CallArg: |
10825 | switch (this->args[1].kind()) { |
10826 | case Arg::Tmp: |
10827 | #if CPU(X86_64) |
10828 | if (!Arg::isValidAddrForm(args[0].offset())) |
10829 | OPGEN_RETURN(false); |
10830 | if (!args[1].tmp().isFP()) |
10831 | OPGEN_RETURN(false); |
10832 | OPGEN_RETURN(true); |
10833 | #endif |
10834 | break; |
10835 | break; |
10836 | default: |
10837 | break; |
10838 | } |
10839 | break; |
10840 | case Arg::Index: |
10841 | switch (this->args[1].kind()) { |
10842 | case Arg::Tmp: |
10843 | #if CPU(X86_64) || CPU(ARM64) |
10844 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
10845 | OPGEN_RETURN(false); |
10846 | if (!args[1].tmp().isFP()) |
10847 | OPGEN_RETURN(false); |
10848 | OPGEN_RETURN(true); |
10849 | #endif |
10850 | break; |
10851 | break; |
10852 | default: |
10853 | break; |
10854 | } |
10855 | break; |
10856 | default: |
10857 | break; |
10858 | } |
10859 | break; |
10860 | default: |
10861 | break; |
10862 | } |
10863 | break; |
10864 | case Opcode::Move32ToFloat: |
10865 | switch (this->args.size()) { |
10866 | case 2: |
10867 | switch (this->args[0].kind()) { |
10868 | case Arg::Tmp: |
10869 | switch (this->args[1].kind()) { |
10870 | case Arg::Tmp: |
10871 | if (!args[0].tmp().isGP()) |
10872 | OPGEN_RETURN(false); |
10873 | if (!args[1].tmp().isFP()) |
10874 | OPGEN_RETURN(false); |
10875 | OPGEN_RETURN(true); |
10876 | break; |
10877 | break; |
10878 | default: |
10879 | break; |
10880 | } |
10881 | break; |
10882 | case Arg::Addr: |
10883 | case Arg::Stack: |
10884 | case Arg::CallArg: |
10885 | switch (this->args[1].kind()) { |
10886 | case Arg::Tmp: |
10887 | #if CPU(X86) || CPU(X86_64) |
10888 | if (!Arg::isValidAddrForm(args[0].offset())) |
10889 | OPGEN_RETURN(false); |
10890 | if (!args[1].tmp().isFP()) |
10891 | OPGEN_RETURN(false); |
10892 | OPGEN_RETURN(true); |
10893 | #endif |
10894 | break; |
10895 | break; |
10896 | default: |
10897 | break; |
10898 | } |
10899 | break; |
10900 | case Arg::Index: |
10901 | switch (this->args[1].kind()) { |
10902 | case Arg::Tmp: |
10903 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
10904 | OPGEN_RETURN(false); |
10905 | if (!args[1].tmp().isFP()) |
10906 | OPGEN_RETURN(false); |
10907 | OPGEN_RETURN(true); |
10908 | break; |
10909 | break; |
10910 | default: |
10911 | break; |
10912 | } |
10913 | break; |
10914 | default: |
10915 | break; |
10916 | } |
10917 | break; |
10918 | default: |
10919 | break; |
10920 | } |
10921 | break; |
10922 | case Opcode::MoveDoubleTo64: |
10923 | switch (this->args.size()) { |
10924 | case 2: |
10925 | switch (this->args[0].kind()) { |
10926 | case Arg::Tmp: |
10927 | switch (this->args[1].kind()) { |
10928 | case Arg::Tmp: |
10929 | #if CPU(X86_64) || CPU(ARM64) |
10930 | if (!args[0].tmp().isFP()) |
10931 | OPGEN_RETURN(false); |
10932 | if (!args[1].tmp().isGP()) |
10933 | OPGEN_RETURN(false); |
10934 | OPGEN_RETURN(true); |
10935 | #endif |
10936 | break; |
10937 | break; |
10938 | default: |
10939 | break; |
10940 | } |
10941 | break; |
10942 | case Arg::Addr: |
10943 | case Arg::Stack: |
10944 | case Arg::CallArg: |
10945 | switch (this->args[1].kind()) { |
10946 | case Arg::Tmp: |
10947 | #if CPU(X86_64) || CPU(ARM64) |
10948 | if (!Arg::isValidAddrForm(args[0].offset())) |
10949 | OPGEN_RETURN(false); |
10950 | if (!args[1].tmp().isGP()) |
10951 | OPGEN_RETURN(false); |
10952 | OPGEN_RETURN(true); |
10953 | #endif |
10954 | break; |
10955 | break; |
10956 | default: |
10957 | break; |
10958 | } |
10959 | break; |
10960 | case Arg::Index: |
10961 | switch (this->args[1].kind()) { |
10962 | case Arg::Tmp: |
10963 | #if CPU(X86_64) || CPU(ARM64) |
10964 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
10965 | OPGEN_RETURN(false); |
10966 | if (!args[1].tmp().isGP()) |
10967 | OPGEN_RETURN(false); |
10968 | OPGEN_RETURN(true); |
10969 | #endif |
10970 | break; |
10971 | break; |
10972 | default: |
10973 | break; |
10974 | } |
10975 | break; |
10976 | default: |
10977 | break; |
10978 | } |
10979 | break; |
10980 | default: |
10981 | break; |
10982 | } |
10983 | break; |
10984 | case Opcode::MoveFloatTo32: |
10985 | switch (this->args.size()) { |
10986 | case 2: |
10987 | switch (this->args[0].kind()) { |
10988 | case Arg::Tmp: |
10989 | switch (this->args[1].kind()) { |
10990 | case Arg::Tmp: |
10991 | if (!args[0].tmp().isFP()) |
10992 | OPGEN_RETURN(false); |
10993 | if (!args[1].tmp().isGP()) |
10994 | OPGEN_RETURN(false); |
10995 | OPGEN_RETURN(true); |
10996 | break; |
10997 | break; |
10998 | default: |
10999 | break; |
11000 | } |
11001 | break; |
11002 | case Arg::Addr: |
11003 | case Arg::Stack: |
11004 | case Arg::CallArg: |
11005 | switch (this->args[1].kind()) { |
11006 | case Arg::Tmp: |
11007 | if (!Arg::isValidAddrForm(args[0].offset())) |
11008 | OPGEN_RETURN(false); |
11009 | if (!args[1].tmp().isGP()) |
11010 | OPGEN_RETURN(false); |
11011 | OPGEN_RETURN(true); |
11012 | break; |
11013 | break; |
11014 | default: |
11015 | break; |
11016 | } |
11017 | break; |
11018 | case Arg::Index: |
11019 | switch (this->args[1].kind()) { |
11020 | case Arg::Tmp: |
11021 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
11022 | OPGEN_RETURN(false); |
11023 | if (!args[1].tmp().isGP()) |
11024 | OPGEN_RETURN(false); |
11025 | OPGEN_RETURN(true); |
11026 | break; |
11027 | break; |
11028 | default: |
11029 | break; |
11030 | } |
11031 | break; |
11032 | default: |
11033 | break; |
11034 | } |
11035 | break; |
11036 | default: |
11037 | break; |
11038 | } |
11039 | break; |
11040 | case Opcode::Load8: |
11041 | switch (this->args.size()) { |
11042 | case 2: |
11043 | switch (this->args[0].kind()) { |
11044 | case Arg::Addr: |
11045 | case Arg::Stack: |
11046 | case Arg::CallArg: |
11047 | switch (this->args[1].kind()) { |
11048 | case Arg::Tmp: |
11049 | if (!Arg::isValidAddrForm(args[0].offset())) |
11050 | OPGEN_RETURN(false); |
11051 | if (!args[1].tmp().isGP()) |
11052 | OPGEN_RETURN(false); |
11053 | OPGEN_RETURN(true); |
11054 | break; |
11055 | break; |
11056 | default: |
11057 | break; |
11058 | } |
11059 | break; |
11060 | case Arg::Index: |
11061 | switch (this->args[1].kind()) { |
11062 | case Arg::Tmp: |
11063 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width8)) |
11064 | OPGEN_RETURN(false); |
11065 | if (!args[1].tmp().isGP()) |
11066 | OPGEN_RETURN(false); |
11067 | OPGEN_RETURN(true); |
11068 | break; |
11069 | break; |
11070 | default: |
11071 | break; |
11072 | } |
11073 | break; |
11074 | default: |
11075 | break; |
11076 | } |
11077 | break; |
11078 | default: |
11079 | break; |
11080 | } |
11081 | break; |
11082 | case Opcode::LoadAcq8: |
11083 | switch (this->args.size()) { |
11084 | case 2: |
11085 | switch (this->args[0].kind()) { |
11086 | case Arg::SimpleAddr: |
11087 | switch (this->args[1].kind()) { |
11088 | case Arg::Tmp: |
11089 | #if CPU(ARMv7) || CPU(ARM64) |
11090 | if (!args[0].ptr().isGP()) |
11091 | OPGEN_RETURN(false); |
11092 | if (!args[1].tmp().isGP()) |
11093 | OPGEN_RETURN(false); |
11094 | OPGEN_RETURN(true); |
11095 | #endif |
11096 | break; |
11097 | break; |
11098 | default: |
11099 | break; |
11100 | } |
11101 | break; |
11102 | default: |
11103 | break; |
11104 | } |
11105 | break; |
11106 | default: |
11107 | break; |
11108 | } |
11109 | break; |
11110 | case Opcode::Store8: |
11111 | switch (this->args.size()) { |
11112 | case 2: |
11113 | switch (this->args[0].kind()) { |
11114 | case Arg::Tmp: |
11115 | switch (this->args[1].kind()) { |
11116 | case Arg::Index: |
11117 | if (!args[0].tmp().isGP()) |
11118 | OPGEN_RETURN(false); |
11119 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
11120 | OPGEN_RETURN(false); |
11121 | OPGEN_RETURN(true); |
11122 | break; |
11123 | break; |
11124 | case Arg::Addr: |
11125 | case Arg::Stack: |
11126 | case Arg::CallArg: |
11127 | if (!args[0].tmp().isGP()) |
11128 | OPGEN_RETURN(false); |
11129 | if (!Arg::isValidAddrForm(args[1].offset())) |
11130 | OPGEN_RETURN(false); |
11131 | OPGEN_RETURN(true); |
11132 | break; |
11133 | break; |
11134 | default: |
11135 | break; |
11136 | } |
11137 | break; |
11138 | case Arg::Imm: |
11139 | switch (this->args[1].kind()) { |
11140 | case Arg::Index: |
11141 | #if CPU(X86) || CPU(X86_64) |
11142 | if (!Arg::isValidImmForm(args[0].value())) |
11143 | OPGEN_RETURN(false); |
11144 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
11145 | OPGEN_RETURN(false); |
11146 | OPGEN_RETURN(true); |
11147 | #endif |
11148 | break; |
11149 | break; |
11150 | case Arg::Addr: |
11151 | case Arg::Stack: |
11152 | case Arg::CallArg: |
11153 | #if CPU(X86) || CPU(X86_64) |
11154 | if (!Arg::isValidImmForm(args[0].value())) |
11155 | OPGEN_RETURN(false); |
11156 | if (!Arg::isValidAddrForm(args[1].offset())) |
11157 | OPGEN_RETURN(false); |
11158 | OPGEN_RETURN(true); |
11159 | #endif |
11160 | break; |
11161 | break; |
11162 | default: |
11163 | break; |
11164 | } |
11165 | break; |
11166 | default: |
11167 | break; |
11168 | } |
11169 | break; |
11170 | default: |
11171 | break; |
11172 | } |
11173 | break; |
11174 | case Opcode::StoreRel8: |
11175 | switch (this->args.size()) { |
11176 | case 2: |
11177 | switch (this->args[0].kind()) { |
11178 | case Arg::Tmp: |
11179 | switch (this->args[1].kind()) { |
11180 | case Arg::SimpleAddr: |
11181 | #if CPU(ARMv7) || CPU(ARM64) |
11182 | if (!args[0].tmp().isGP()) |
11183 | OPGEN_RETURN(false); |
11184 | if (!args[1].ptr().isGP()) |
11185 | OPGEN_RETURN(false); |
11186 | OPGEN_RETURN(true); |
11187 | #endif |
11188 | break; |
11189 | break; |
11190 | default: |
11191 | break; |
11192 | } |
11193 | break; |
11194 | default: |
11195 | break; |
11196 | } |
11197 | break; |
11198 | default: |
11199 | break; |
11200 | } |
11201 | break; |
11202 | case Opcode::Load8SignedExtendTo32: |
11203 | switch (this->args.size()) { |
11204 | case 2: |
11205 | switch (this->args[0].kind()) { |
11206 | case Arg::Addr: |
11207 | case Arg::Stack: |
11208 | case Arg::CallArg: |
11209 | switch (this->args[1].kind()) { |
11210 | case Arg::Tmp: |
11211 | if (!Arg::isValidAddrForm(args[0].offset())) |
11212 | OPGEN_RETURN(false); |
11213 | if (!args[1].tmp().isGP()) |
11214 | OPGEN_RETURN(false); |
11215 | OPGEN_RETURN(true); |
11216 | break; |
11217 | break; |
11218 | default: |
11219 | break; |
11220 | } |
11221 | break; |
11222 | case Arg::Index: |
11223 | switch (this->args[1].kind()) { |
11224 | case Arg::Tmp: |
11225 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width8)) |
11226 | OPGEN_RETURN(false); |
11227 | if (!args[1].tmp().isGP()) |
11228 | OPGEN_RETURN(false); |
11229 | OPGEN_RETURN(true); |
11230 | break; |
11231 | break; |
11232 | default: |
11233 | break; |
11234 | } |
11235 | break; |
11236 | default: |
11237 | break; |
11238 | } |
11239 | break; |
11240 | default: |
11241 | break; |
11242 | } |
11243 | break; |
11244 | case Opcode::LoadAcq8SignedExtendTo32: |
11245 | switch (this->args.size()) { |
11246 | case 2: |
11247 | switch (this->args[0].kind()) { |
11248 | case Arg::SimpleAddr: |
11249 | switch (this->args[1].kind()) { |
11250 | case Arg::Tmp: |
11251 | #if CPU(ARMv7) || CPU(ARM64) |
11252 | if (!args[0].ptr().isGP()) |
11253 | OPGEN_RETURN(false); |
11254 | if (!args[1].tmp().isGP()) |
11255 | OPGEN_RETURN(false); |
11256 | OPGEN_RETURN(true); |
11257 | #endif |
11258 | break; |
11259 | break; |
11260 | default: |
11261 | break; |
11262 | } |
11263 | break; |
11264 | default: |
11265 | break; |
11266 | } |
11267 | break; |
11268 | default: |
11269 | break; |
11270 | } |
11271 | break; |
11272 | case Opcode::Load16: |
11273 | switch (this->args.size()) { |
11274 | case 2: |
11275 | switch (this->args[0].kind()) { |
11276 | case Arg::Addr: |
11277 | case Arg::Stack: |
11278 | case Arg::CallArg: |
11279 | switch (this->args[1].kind()) { |
11280 | case Arg::Tmp: |
11281 | if (!Arg::isValidAddrForm(args[0].offset())) |
11282 | OPGEN_RETURN(false); |
11283 | if (!args[1].tmp().isGP()) |
11284 | OPGEN_RETURN(false); |
11285 | OPGEN_RETURN(true); |
11286 | break; |
11287 | break; |
11288 | default: |
11289 | break; |
11290 | } |
11291 | break; |
11292 | case Arg::Index: |
11293 | switch (this->args[1].kind()) { |
11294 | case Arg::Tmp: |
11295 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width16)) |
11296 | OPGEN_RETURN(false); |
11297 | if (!args[1].tmp().isGP()) |
11298 | OPGEN_RETURN(false); |
11299 | OPGEN_RETURN(true); |
11300 | break; |
11301 | break; |
11302 | default: |
11303 | break; |
11304 | } |
11305 | break; |
11306 | default: |
11307 | break; |
11308 | } |
11309 | break; |
11310 | default: |
11311 | break; |
11312 | } |
11313 | break; |
11314 | case Opcode::LoadAcq16: |
11315 | switch (this->args.size()) { |
11316 | case 2: |
11317 | switch (this->args[0].kind()) { |
11318 | case Arg::SimpleAddr: |
11319 | switch (this->args[1].kind()) { |
11320 | case Arg::Tmp: |
11321 | #if CPU(ARMv7) || CPU(ARM64) |
11322 | if (!args[0].ptr().isGP()) |
11323 | OPGEN_RETURN(false); |
11324 | if (!args[1].tmp().isGP()) |
11325 | OPGEN_RETURN(false); |
11326 | OPGEN_RETURN(true); |
11327 | #endif |
11328 | break; |
11329 | break; |
11330 | default: |
11331 | break; |
11332 | } |
11333 | break; |
11334 | default: |
11335 | break; |
11336 | } |
11337 | break; |
11338 | default: |
11339 | break; |
11340 | } |
11341 | break; |
11342 | case Opcode::Load16SignedExtendTo32: |
11343 | switch (this->args.size()) { |
11344 | case 2: |
11345 | switch (this->args[0].kind()) { |
11346 | case Arg::Addr: |
11347 | case Arg::Stack: |
11348 | case Arg::CallArg: |
11349 | switch (this->args[1].kind()) { |
11350 | case Arg::Tmp: |
11351 | if (!Arg::isValidAddrForm(args[0].offset())) |
11352 | OPGEN_RETURN(false); |
11353 | if (!args[1].tmp().isGP()) |
11354 | OPGEN_RETURN(false); |
11355 | OPGEN_RETURN(true); |
11356 | break; |
11357 | break; |
11358 | default: |
11359 | break; |
11360 | } |
11361 | break; |
11362 | case Arg::Index: |
11363 | switch (this->args[1].kind()) { |
11364 | case Arg::Tmp: |
11365 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width16)) |
11366 | OPGEN_RETURN(false); |
11367 | if (!args[1].tmp().isGP()) |
11368 | OPGEN_RETURN(false); |
11369 | OPGEN_RETURN(true); |
11370 | break; |
11371 | break; |
11372 | default: |
11373 | break; |
11374 | } |
11375 | break; |
11376 | default: |
11377 | break; |
11378 | } |
11379 | break; |
11380 | default: |
11381 | break; |
11382 | } |
11383 | break; |
11384 | case Opcode::LoadAcq16SignedExtendTo32: |
11385 | switch (this->args.size()) { |
11386 | case 2: |
11387 | switch (this->args[0].kind()) { |
11388 | case Arg::SimpleAddr: |
11389 | switch (this->args[1].kind()) { |
11390 | case Arg::Tmp: |
11391 | #if CPU(ARMv7) || CPU(ARM64) |
11392 | if (!args[0].ptr().isGP()) |
11393 | OPGEN_RETURN(false); |
11394 | if (!args[1].tmp().isGP()) |
11395 | OPGEN_RETURN(false); |
11396 | OPGEN_RETURN(true); |
11397 | #endif |
11398 | break; |
11399 | break; |
11400 | default: |
11401 | break; |
11402 | } |
11403 | break; |
11404 | default: |
11405 | break; |
11406 | } |
11407 | break; |
11408 | default: |
11409 | break; |
11410 | } |
11411 | break; |
11412 | case Opcode::Store16: |
11413 | switch (this->args.size()) { |
11414 | case 2: |
11415 | switch (this->args[0].kind()) { |
11416 | case Arg::Tmp: |
11417 | switch (this->args[1].kind()) { |
11418 | case Arg::Index: |
11419 | if (!args[0].tmp().isGP()) |
11420 | OPGEN_RETURN(false); |
11421 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
11422 | OPGEN_RETURN(false); |
11423 | OPGEN_RETURN(true); |
11424 | break; |
11425 | break; |
11426 | case Arg::Addr: |
11427 | case Arg::Stack: |
11428 | case Arg::CallArg: |
11429 | if (!args[0].tmp().isGP()) |
11430 | OPGEN_RETURN(false); |
11431 | if (!Arg::isValidAddrForm(args[1].offset())) |
11432 | OPGEN_RETURN(false); |
11433 | OPGEN_RETURN(true); |
11434 | break; |
11435 | break; |
11436 | default: |
11437 | break; |
11438 | } |
11439 | break; |
11440 | case Arg::Imm: |
11441 | switch (this->args[1].kind()) { |
11442 | case Arg::Index: |
11443 | #if CPU(X86) || CPU(X86_64) |
11444 | if (!Arg::isValidImmForm(args[0].value())) |
11445 | OPGEN_RETURN(false); |
11446 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
11447 | OPGEN_RETURN(false); |
11448 | OPGEN_RETURN(true); |
11449 | #endif |
11450 | break; |
11451 | break; |
11452 | case Arg::Addr: |
11453 | case Arg::Stack: |
11454 | case Arg::CallArg: |
11455 | #if CPU(X86) || CPU(X86_64) |
11456 | if (!Arg::isValidImmForm(args[0].value())) |
11457 | OPGEN_RETURN(false); |
11458 | if (!Arg::isValidAddrForm(args[1].offset())) |
11459 | OPGEN_RETURN(false); |
11460 | OPGEN_RETURN(true); |
11461 | #endif |
11462 | break; |
11463 | break; |
11464 | default: |
11465 | break; |
11466 | } |
11467 | break; |
11468 | default: |
11469 | break; |
11470 | } |
11471 | break; |
11472 | default: |
11473 | break; |
11474 | } |
11475 | break; |
11476 | case Opcode::StoreRel16: |
11477 | switch (this->args.size()) { |
11478 | case 2: |
11479 | switch (this->args[0].kind()) { |
11480 | case Arg::Tmp: |
11481 | switch (this->args[1].kind()) { |
11482 | case Arg::SimpleAddr: |
11483 | #if CPU(ARMv7) || CPU(ARM64) |
11484 | if (!args[0].tmp().isGP()) |
11485 | OPGEN_RETURN(false); |
11486 | if (!args[1].ptr().isGP()) |
11487 | OPGEN_RETURN(false); |
11488 | OPGEN_RETURN(true); |
11489 | #endif |
11490 | break; |
11491 | break; |
11492 | default: |
11493 | break; |
11494 | } |
11495 | break; |
11496 | default: |
11497 | break; |
11498 | } |
11499 | break; |
11500 | default: |
11501 | break; |
11502 | } |
11503 | break; |
11504 | case Opcode::LoadAcq32: |
11505 | switch (this->args.size()) { |
11506 | case 2: |
11507 | switch (this->args[0].kind()) { |
11508 | case Arg::SimpleAddr: |
11509 | switch (this->args[1].kind()) { |
11510 | case Arg::Tmp: |
11511 | #if CPU(ARMv7) || CPU(ARM64) |
11512 | if (!args[0].ptr().isGP()) |
11513 | OPGEN_RETURN(false); |
11514 | if (!args[1].tmp().isGP()) |
11515 | OPGEN_RETURN(false); |
11516 | OPGEN_RETURN(true); |
11517 | #endif |
11518 | break; |
11519 | break; |
11520 | default: |
11521 | break; |
11522 | } |
11523 | break; |
11524 | default: |
11525 | break; |
11526 | } |
11527 | break; |
11528 | default: |
11529 | break; |
11530 | } |
11531 | break; |
11532 | case Opcode::StoreRel32: |
11533 | switch (this->args.size()) { |
11534 | case 2: |
11535 | switch (this->args[0].kind()) { |
11536 | case Arg::Tmp: |
11537 | switch (this->args[1].kind()) { |
11538 | case Arg::SimpleAddr: |
11539 | #if CPU(ARMv7) || CPU(ARM64) |
11540 | if (!args[0].tmp().isGP()) |
11541 | OPGEN_RETURN(false); |
11542 | if (!args[1].ptr().isGP()) |
11543 | OPGEN_RETURN(false); |
11544 | OPGEN_RETURN(true); |
11545 | #endif |
11546 | break; |
11547 | break; |
11548 | default: |
11549 | break; |
11550 | } |
11551 | break; |
11552 | default: |
11553 | break; |
11554 | } |
11555 | break; |
11556 | default: |
11557 | break; |
11558 | } |
11559 | break; |
11560 | case Opcode::LoadAcq64: |
11561 | switch (this->args.size()) { |
11562 | case 2: |
11563 | switch (this->args[0].kind()) { |
11564 | case Arg::SimpleAddr: |
11565 | switch (this->args[1].kind()) { |
11566 | case Arg::Tmp: |
11567 | #if CPU(ARM64) |
11568 | if (!args[0].ptr().isGP()) |
11569 | OPGEN_RETURN(false); |
11570 | if (!args[1].tmp().isGP()) |
11571 | OPGEN_RETURN(false); |
11572 | OPGEN_RETURN(true); |
11573 | #endif |
11574 | break; |
11575 | break; |
11576 | default: |
11577 | break; |
11578 | } |
11579 | break; |
11580 | default: |
11581 | break; |
11582 | } |
11583 | break; |
11584 | default: |
11585 | break; |
11586 | } |
11587 | break; |
11588 | case Opcode::StoreRel64: |
11589 | switch (this->args.size()) { |
11590 | case 2: |
11591 | switch (this->args[0].kind()) { |
11592 | case Arg::Tmp: |
11593 | switch (this->args[1].kind()) { |
11594 | case Arg::SimpleAddr: |
11595 | #if CPU(ARM64) |
11596 | if (!args[0].tmp().isGP()) |
11597 | OPGEN_RETURN(false); |
11598 | if (!args[1].ptr().isGP()) |
11599 | OPGEN_RETURN(false); |
11600 | OPGEN_RETURN(true); |
11601 | #endif |
11602 | break; |
11603 | break; |
11604 | default: |
11605 | break; |
11606 | } |
11607 | break; |
11608 | default: |
11609 | break; |
11610 | } |
11611 | break; |
11612 | default: |
11613 | break; |
11614 | } |
11615 | break; |
11616 | case Opcode::Xchg8: |
11617 | switch (this->args.size()) { |
11618 | case 2: |
11619 | switch (this->args[0].kind()) { |
11620 | case Arg::Tmp: |
11621 | switch (this->args[1].kind()) { |
11622 | case Arg::Addr: |
11623 | case Arg::Stack: |
11624 | case Arg::CallArg: |
11625 | #if CPU(X86) || CPU(X86_64) |
11626 | if (!args[0].tmp().isGP()) |
11627 | OPGEN_RETURN(false); |
11628 | if (!Arg::isValidAddrForm(args[1].offset())) |
11629 | OPGEN_RETURN(false); |
11630 | OPGEN_RETURN(true); |
11631 | #endif |
11632 | break; |
11633 | break; |
11634 | case Arg::Index: |
11635 | #if CPU(X86) || CPU(X86_64) |
11636 | if (!args[0].tmp().isGP()) |
11637 | OPGEN_RETURN(false); |
11638 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
11639 | OPGEN_RETURN(false); |
11640 | OPGEN_RETURN(true); |
11641 | #endif |
11642 | break; |
11643 | break; |
11644 | default: |
11645 | break; |
11646 | } |
11647 | break; |
11648 | default: |
11649 | break; |
11650 | } |
11651 | break; |
11652 | default: |
11653 | break; |
11654 | } |
11655 | break; |
11656 | case Opcode::Xchg16: |
11657 | switch (this->args.size()) { |
11658 | case 2: |
11659 | switch (this->args[0].kind()) { |
11660 | case Arg::Tmp: |
11661 | switch (this->args[1].kind()) { |
11662 | case Arg::Addr: |
11663 | case Arg::Stack: |
11664 | case Arg::CallArg: |
11665 | #if CPU(X86) || CPU(X86_64) |
11666 | if (!args[0].tmp().isGP()) |
11667 | OPGEN_RETURN(false); |
11668 | if (!Arg::isValidAddrForm(args[1].offset())) |
11669 | OPGEN_RETURN(false); |
11670 | OPGEN_RETURN(true); |
11671 | #endif |
11672 | break; |
11673 | break; |
11674 | case Arg::Index: |
11675 | #if CPU(X86) || CPU(X86_64) |
11676 | if (!args[0].tmp().isGP()) |
11677 | OPGEN_RETURN(false); |
11678 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
11679 | OPGEN_RETURN(false); |
11680 | OPGEN_RETURN(true); |
11681 | #endif |
11682 | break; |
11683 | break; |
11684 | default: |
11685 | break; |
11686 | } |
11687 | break; |
11688 | default: |
11689 | break; |
11690 | } |
11691 | break; |
11692 | default: |
11693 | break; |
11694 | } |
11695 | break; |
11696 | case Opcode::Xchg32: |
11697 | switch (this->args.size()) { |
11698 | case 2: |
11699 | switch (this->args[0].kind()) { |
11700 | case Arg::Tmp: |
11701 | switch (this->args[1].kind()) { |
11702 | case Arg::Addr: |
11703 | case Arg::Stack: |
11704 | case Arg::CallArg: |
11705 | #if CPU(X86) || CPU(X86_64) |
11706 | if (!args[0].tmp().isGP()) |
11707 | OPGEN_RETURN(false); |
11708 | if (!Arg::isValidAddrForm(args[1].offset())) |
11709 | OPGEN_RETURN(false); |
11710 | OPGEN_RETURN(true); |
11711 | #endif |
11712 | break; |
11713 | break; |
11714 | case Arg::Index: |
11715 | #if CPU(X86) || CPU(X86_64) |
11716 | if (!args[0].tmp().isGP()) |
11717 | OPGEN_RETURN(false); |
11718 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
11719 | OPGEN_RETURN(false); |
11720 | OPGEN_RETURN(true); |
11721 | #endif |
11722 | break; |
11723 | break; |
11724 | default: |
11725 | break; |
11726 | } |
11727 | break; |
11728 | default: |
11729 | break; |
11730 | } |
11731 | break; |
11732 | default: |
11733 | break; |
11734 | } |
11735 | break; |
11736 | case Opcode::Xchg64: |
11737 | switch (this->args.size()) { |
11738 | case 2: |
11739 | switch (this->args[0].kind()) { |
11740 | case Arg::Tmp: |
11741 | switch (this->args[1].kind()) { |
11742 | case Arg::Addr: |
11743 | case Arg::Stack: |
11744 | case Arg::CallArg: |
11745 | #if CPU(X86_64) |
11746 | if (!args[0].tmp().isGP()) |
11747 | OPGEN_RETURN(false); |
11748 | if (!Arg::isValidAddrForm(args[1].offset())) |
11749 | OPGEN_RETURN(false); |
11750 | OPGEN_RETURN(true); |
11751 | #endif |
11752 | break; |
11753 | break; |
11754 | case Arg::Index: |
11755 | #if CPU(X86_64) |
11756 | if (!args[0].tmp().isGP()) |
11757 | OPGEN_RETURN(false); |
11758 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
11759 | OPGEN_RETURN(false); |
11760 | OPGEN_RETURN(true); |
11761 | #endif |
11762 | break; |
11763 | break; |
11764 | default: |
11765 | break; |
11766 | } |
11767 | break; |
11768 | default: |
11769 | break; |
11770 | } |
11771 | break; |
11772 | default: |
11773 | break; |
11774 | } |
11775 | break; |
11776 | case Opcode::AtomicStrongCAS8: |
11777 | switch (this->args.size()) { |
11778 | case 5: |
11779 | switch (this->args[0].kind()) { |
11780 | case Arg::StatusCond: |
11781 | switch (this->args[1].kind()) { |
11782 | case Arg::Tmp: |
11783 | switch (this->args[2].kind()) { |
11784 | case Arg::Tmp: |
11785 | switch (this->args[3].kind()) { |
11786 | case Arg::Addr: |
11787 | case Arg::Stack: |
11788 | case Arg::CallArg: |
11789 | switch (this->args[4].kind()) { |
11790 | case Arg::Tmp: |
11791 | #if CPU(X86) || CPU(X86_64) |
11792 | if (!args[1].tmp().isGP()) |
11793 | OPGEN_RETURN(false); |
11794 | if (!args[2].tmp().isGP()) |
11795 | OPGEN_RETURN(false); |
11796 | if (!Arg::isValidAddrForm(args[3].offset())) |
11797 | OPGEN_RETURN(false); |
11798 | if (!args[4].tmp().isGP()) |
11799 | OPGEN_RETURN(false); |
11800 | if (!isAtomicStrongCAS8Valid(*this)) |
11801 | OPGEN_RETURN(false); |
11802 | OPGEN_RETURN(true); |
11803 | #endif |
11804 | break; |
11805 | break; |
11806 | default: |
11807 | break; |
11808 | } |
11809 | break; |
11810 | case Arg::Index: |
11811 | switch (this->args[4].kind()) { |
11812 | case Arg::Tmp: |
11813 | #if CPU(X86) || CPU(X86_64) |
11814 | if (!args[1].tmp().isGP()) |
11815 | OPGEN_RETURN(false); |
11816 | if (!args[2].tmp().isGP()) |
11817 | OPGEN_RETURN(false); |
11818 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width8)) |
11819 | OPGEN_RETURN(false); |
11820 | if (!args[4].tmp().isGP()) |
11821 | OPGEN_RETURN(false); |
11822 | if (!isAtomicStrongCAS8Valid(*this)) |
11823 | OPGEN_RETURN(false); |
11824 | OPGEN_RETURN(true); |
11825 | #endif |
11826 | break; |
11827 | break; |
11828 | default: |
11829 | break; |
11830 | } |
11831 | break; |
11832 | default: |
11833 | break; |
11834 | } |
11835 | break; |
11836 | default: |
11837 | break; |
11838 | } |
11839 | break; |
11840 | default: |
11841 | break; |
11842 | } |
11843 | break; |
11844 | default: |
11845 | break; |
11846 | } |
11847 | break; |
11848 | case 3: |
11849 | switch (this->args[0].kind()) { |
11850 | case Arg::Tmp: |
11851 | switch (this->args[1].kind()) { |
11852 | case Arg::Tmp: |
11853 | switch (this->args[2].kind()) { |
11854 | case Arg::Addr: |
11855 | case Arg::Stack: |
11856 | case Arg::CallArg: |
11857 | #if CPU(X86) || CPU(X86_64) |
11858 | if (!args[0].tmp().isGP()) |
11859 | OPGEN_RETURN(false); |
11860 | if (!args[1].tmp().isGP()) |
11861 | OPGEN_RETURN(false); |
11862 | if (!Arg::isValidAddrForm(args[2].offset())) |
11863 | OPGEN_RETURN(false); |
11864 | if (!isAtomicStrongCAS8Valid(*this)) |
11865 | OPGEN_RETURN(false); |
11866 | OPGEN_RETURN(true); |
11867 | #endif |
11868 | break; |
11869 | break; |
11870 | case Arg::Index: |
11871 | #if CPU(X86) || CPU(X86_64) |
11872 | if (!args[0].tmp().isGP()) |
11873 | OPGEN_RETURN(false); |
11874 | if (!args[1].tmp().isGP()) |
11875 | OPGEN_RETURN(false); |
11876 | if (!Arg::isValidIndexForm(args[2].scale(), args[2].offset(), Width8)) |
11877 | OPGEN_RETURN(false); |
11878 | if (!isAtomicStrongCAS8Valid(*this)) |
11879 | OPGEN_RETURN(false); |
11880 | OPGEN_RETURN(true); |
11881 | #endif |
11882 | break; |
11883 | break; |
11884 | default: |
11885 | break; |
11886 | } |
11887 | break; |
11888 | default: |
11889 | break; |
11890 | } |
11891 | break; |
11892 | default: |
11893 | break; |
11894 | } |
11895 | break; |
11896 | default: |
11897 | break; |
11898 | } |
11899 | break; |
11900 | case Opcode::AtomicStrongCAS16: |
11901 | switch (this->args.size()) { |
11902 | case 5: |
11903 | switch (this->args[0].kind()) { |
11904 | case Arg::StatusCond: |
11905 | switch (this->args[1].kind()) { |
11906 | case Arg::Tmp: |
11907 | switch (this->args[2].kind()) { |
11908 | case Arg::Tmp: |
11909 | switch (this->args[3].kind()) { |
11910 | case Arg::Addr: |
11911 | case Arg::Stack: |
11912 | case Arg::CallArg: |
11913 | switch (this->args[4].kind()) { |
11914 | case Arg::Tmp: |
11915 | #if CPU(X86) || CPU(X86_64) |
11916 | if (!args[1].tmp().isGP()) |
11917 | OPGEN_RETURN(false); |
11918 | if (!args[2].tmp().isGP()) |
11919 | OPGEN_RETURN(false); |
11920 | if (!Arg::isValidAddrForm(args[3].offset())) |
11921 | OPGEN_RETURN(false); |
11922 | if (!args[4].tmp().isGP()) |
11923 | OPGEN_RETURN(false); |
11924 | if (!isAtomicStrongCAS16Valid(*this)) |
11925 | OPGEN_RETURN(false); |
11926 | OPGEN_RETURN(true); |
11927 | #endif |
11928 | break; |
11929 | break; |
11930 | default: |
11931 | break; |
11932 | } |
11933 | break; |
11934 | case Arg::Index: |
11935 | switch (this->args[4].kind()) { |
11936 | case Arg::Tmp: |
11937 | #if CPU(X86) || CPU(X86_64) |
11938 | if (!args[1].tmp().isGP()) |
11939 | OPGEN_RETURN(false); |
11940 | if (!args[2].tmp().isGP()) |
11941 | OPGEN_RETURN(false); |
11942 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width16)) |
11943 | OPGEN_RETURN(false); |
11944 | if (!args[4].tmp().isGP()) |
11945 | OPGEN_RETURN(false); |
11946 | if (!isAtomicStrongCAS16Valid(*this)) |
11947 | OPGEN_RETURN(false); |
11948 | OPGEN_RETURN(true); |
11949 | #endif |
11950 | break; |
11951 | break; |
11952 | default: |
11953 | break; |
11954 | } |
11955 | break; |
11956 | default: |
11957 | break; |
11958 | } |
11959 | break; |
11960 | default: |
11961 | break; |
11962 | } |
11963 | break; |
11964 | default: |
11965 | break; |
11966 | } |
11967 | break; |
11968 | default: |
11969 | break; |
11970 | } |
11971 | break; |
11972 | case 3: |
11973 | switch (this->args[0].kind()) { |
11974 | case Arg::Tmp: |
11975 | switch (this->args[1].kind()) { |
11976 | case Arg::Tmp: |
11977 | switch (this->args[2].kind()) { |
11978 | case Arg::Addr: |
11979 | case Arg::Stack: |
11980 | case Arg::CallArg: |
11981 | #if CPU(X86) || CPU(X86_64) |
11982 | if (!args[0].tmp().isGP()) |
11983 | OPGEN_RETURN(false); |
11984 | if (!args[1].tmp().isGP()) |
11985 | OPGEN_RETURN(false); |
11986 | if (!Arg::isValidAddrForm(args[2].offset())) |
11987 | OPGEN_RETURN(false); |
11988 | if (!isAtomicStrongCAS16Valid(*this)) |
11989 | OPGEN_RETURN(false); |
11990 | OPGEN_RETURN(true); |
11991 | #endif |
11992 | break; |
11993 | break; |
11994 | case Arg::Index: |
11995 | #if CPU(X86) || CPU(X86_64) |
11996 | if (!args[0].tmp().isGP()) |
11997 | OPGEN_RETURN(false); |
11998 | if (!args[1].tmp().isGP()) |
11999 | OPGEN_RETURN(false); |
12000 | if (!Arg::isValidIndexForm(args[2].scale(), args[2].offset(), Width16)) |
12001 | OPGEN_RETURN(false); |
12002 | if (!isAtomicStrongCAS16Valid(*this)) |
12003 | OPGEN_RETURN(false); |
12004 | OPGEN_RETURN(true); |
12005 | #endif |
12006 | break; |
12007 | break; |
12008 | default: |
12009 | break; |
12010 | } |
12011 | break; |
12012 | default: |
12013 | break; |
12014 | } |
12015 | break; |
12016 | default: |
12017 | break; |
12018 | } |
12019 | break; |
12020 | default: |
12021 | break; |
12022 | } |
12023 | break; |
12024 | case Opcode::AtomicStrongCAS32: |
12025 | switch (this->args.size()) { |
12026 | case 5: |
12027 | switch (this->args[0].kind()) { |
12028 | case Arg::StatusCond: |
12029 | switch (this->args[1].kind()) { |
12030 | case Arg::Tmp: |
12031 | switch (this->args[2].kind()) { |
12032 | case Arg::Tmp: |
12033 | switch (this->args[3].kind()) { |
12034 | case Arg::Addr: |
12035 | case Arg::Stack: |
12036 | case Arg::CallArg: |
12037 | switch (this->args[4].kind()) { |
12038 | case Arg::Tmp: |
12039 | #if CPU(X86) || CPU(X86_64) |
12040 | if (!args[1].tmp().isGP()) |
12041 | OPGEN_RETURN(false); |
12042 | if (!args[2].tmp().isGP()) |
12043 | OPGEN_RETURN(false); |
12044 | if (!Arg::isValidAddrForm(args[3].offset())) |
12045 | OPGEN_RETURN(false); |
12046 | if (!args[4].tmp().isGP()) |
12047 | OPGEN_RETURN(false); |
12048 | if (!isAtomicStrongCAS32Valid(*this)) |
12049 | OPGEN_RETURN(false); |
12050 | OPGEN_RETURN(true); |
12051 | #endif |
12052 | break; |
12053 | break; |
12054 | default: |
12055 | break; |
12056 | } |
12057 | break; |
12058 | case Arg::Index: |
12059 | switch (this->args[4].kind()) { |
12060 | case Arg::Tmp: |
12061 | #if CPU(X86) || CPU(X86_64) |
12062 | if (!args[1].tmp().isGP()) |
12063 | OPGEN_RETURN(false); |
12064 | if (!args[2].tmp().isGP()) |
12065 | OPGEN_RETURN(false); |
12066 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width32)) |
12067 | OPGEN_RETURN(false); |
12068 | if (!args[4].tmp().isGP()) |
12069 | OPGEN_RETURN(false); |
12070 | if (!isAtomicStrongCAS32Valid(*this)) |
12071 | OPGEN_RETURN(false); |
12072 | OPGEN_RETURN(true); |
12073 | #endif |
12074 | break; |
12075 | break; |
12076 | default: |
12077 | break; |
12078 | } |
12079 | break; |
12080 | default: |
12081 | break; |
12082 | } |
12083 | break; |
12084 | default: |
12085 | break; |
12086 | } |
12087 | break; |
12088 | default: |
12089 | break; |
12090 | } |
12091 | break; |
12092 | default: |
12093 | break; |
12094 | } |
12095 | break; |
12096 | case 3: |
12097 | switch (this->args[0].kind()) { |
12098 | case Arg::Tmp: |
12099 | switch (this->args[1].kind()) { |
12100 | case Arg::Tmp: |
12101 | switch (this->args[2].kind()) { |
12102 | case Arg::Addr: |
12103 | case Arg::Stack: |
12104 | case Arg::CallArg: |
12105 | #if CPU(X86) || CPU(X86_64) |
12106 | if (!args[0].tmp().isGP()) |
12107 | OPGEN_RETURN(false); |
12108 | if (!args[1].tmp().isGP()) |
12109 | OPGEN_RETURN(false); |
12110 | if (!Arg::isValidAddrForm(args[2].offset())) |
12111 | OPGEN_RETURN(false); |
12112 | if (!isAtomicStrongCAS32Valid(*this)) |
12113 | OPGEN_RETURN(false); |
12114 | OPGEN_RETURN(true); |
12115 | #endif |
12116 | break; |
12117 | break; |
12118 | case Arg::Index: |
12119 | #if CPU(X86) || CPU(X86_64) |
12120 | if (!args[0].tmp().isGP()) |
12121 | OPGEN_RETURN(false); |
12122 | if (!args[1].tmp().isGP()) |
12123 | OPGEN_RETURN(false); |
12124 | if (!Arg::isValidIndexForm(args[2].scale(), args[2].offset(), Width32)) |
12125 | OPGEN_RETURN(false); |
12126 | if (!isAtomicStrongCAS32Valid(*this)) |
12127 | OPGEN_RETURN(false); |
12128 | OPGEN_RETURN(true); |
12129 | #endif |
12130 | break; |
12131 | break; |
12132 | default: |
12133 | break; |
12134 | } |
12135 | break; |
12136 | default: |
12137 | break; |
12138 | } |
12139 | break; |
12140 | default: |
12141 | break; |
12142 | } |
12143 | break; |
12144 | default: |
12145 | break; |
12146 | } |
12147 | break; |
12148 | case Opcode::AtomicStrongCAS64: |
12149 | switch (this->args.size()) { |
12150 | case 5: |
12151 | switch (this->args[0].kind()) { |
12152 | case Arg::StatusCond: |
12153 | switch (this->args[1].kind()) { |
12154 | case Arg::Tmp: |
12155 | switch (this->args[2].kind()) { |
12156 | case Arg::Tmp: |
12157 | switch (this->args[3].kind()) { |
12158 | case Arg::Addr: |
12159 | case Arg::Stack: |
12160 | case Arg::CallArg: |
12161 | switch (this->args[4].kind()) { |
12162 | case Arg::Tmp: |
12163 | #if CPU(X86_64) |
12164 | if (!args[1].tmp().isGP()) |
12165 | OPGEN_RETURN(false); |
12166 | if (!args[2].tmp().isGP()) |
12167 | OPGEN_RETURN(false); |
12168 | if (!Arg::isValidAddrForm(args[3].offset())) |
12169 | OPGEN_RETURN(false); |
12170 | if (!args[4].tmp().isGP()) |
12171 | OPGEN_RETURN(false); |
12172 | if (!isAtomicStrongCAS64Valid(*this)) |
12173 | OPGEN_RETURN(false); |
12174 | OPGEN_RETURN(true); |
12175 | #endif |
12176 | break; |
12177 | break; |
12178 | default: |
12179 | break; |
12180 | } |
12181 | break; |
12182 | case Arg::Index: |
12183 | switch (this->args[4].kind()) { |
12184 | case Arg::Tmp: |
12185 | #if CPU(X86_64) |
12186 | if (!args[1].tmp().isGP()) |
12187 | OPGEN_RETURN(false); |
12188 | if (!args[2].tmp().isGP()) |
12189 | OPGEN_RETURN(false); |
12190 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width64)) |
12191 | OPGEN_RETURN(false); |
12192 | if (!args[4].tmp().isGP()) |
12193 | OPGEN_RETURN(false); |
12194 | if (!isAtomicStrongCAS64Valid(*this)) |
12195 | OPGEN_RETURN(false); |
12196 | OPGEN_RETURN(true); |
12197 | #endif |
12198 | break; |
12199 | break; |
12200 | default: |
12201 | break; |
12202 | } |
12203 | break; |
12204 | default: |
12205 | break; |
12206 | } |
12207 | break; |
12208 | default: |
12209 | break; |
12210 | } |
12211 | break; |
12212 | default: |
12213 | break; |
12214 | } |
12215 | break; |
12216 | default: |
12217 | break; |
12218 | } |
12219 | break; |
12220 | case 3: |
12221 | switch (this->args[0].kind()) { |
12222 | case Arg::Tmp: |
12223 | switch (this->args[1].kind()) { |
12224 | case Arg::Tmp: |
12225 | switch (this->args[2].kind()) { |
12226 | case Arg::Addr: |
12227 | case Arg::Stack: |
12228 | case Arg::CallArg: |
12229 | #if CPU(X86_64) |
12230 | if (!args[0].tmp().isGP()) |
12231 | OPGEN_RETURN(false); |
12232 | if (!args[1].tmp().isGP()) |
12233 | OPGEN_RETURN(false); |
12234 | if (!Arg::isValidAddrForm(args[2].offset())) |
12235 | OPGEN_RETURN(false); |
12236 | if (!isAtomicStrongCAS64Valid(*this)) |
12237 | OPGEN_RETURN(false); |
12238 | OPGEN_RETURN(true); |
12239 | #endif |
12240 | break; |
12241 | break; |
12242 | case Arg::Index: |
12243 | #if CPU(X86_64) |
12244 | if (!args[0].tmp().isGP()) |
12245 | OPGEN_RETURN(false); |
12246 | if (!args[1].tmp().isGP()) |
12247 | OPGEN_RETURN(false); |
12248 | if (!Arg::isValidIndexForm(args[2].scale(), args[2].offset(), Width64)) |
12249 | OPGEN_RETURN(false); |
12250 | if (!isAtomicStrongCAS64Valid(*this)) |
12251 | OPGEN_RETURN(false); |
12252 | OPGEN_RETURN(true); |
12253 | #endif |
12254 | break; |
12255 | break; |
12256 | default: |
12257 | break; |
12258 | } |
12259 | break; |
12260 | default: |
12261 | break; |
12262 | } |
12263 | break; |
12264 | default: |
12265 | break; |
12266 | } |
12267 | break; |
12268 | default: |
12269 | break; |
12270 | } |
12271 | break; |
12272 | case Opcode::BranchAtomicStrongCAS8: |
12273 | switch (this->args.size()) { |
12274 | case 4: |
12275 | switch (this->args[0].kind()) { |
12276 | case Arg::StatusCond: |
12277 | switch (this->args[1].kind()) { |
12278 | case Arg::Tmp: |
12279 | switch (this->args[2].kind()) { |
12280 | case Arg::Tmp: |
12281 | switch (this->args[3].kind()) { |
12282 | case Arg::Addr: |
12283 | case Arg::Stack: |
12284 | case Arg::CallArg: |
12285 | #if CPU(X86) || CPU(X86_64) |
12286 | if (!args[1].tmp().isGP()) |
12287 | OPGEN_RETURN(false); |
12288 | if (!args[2].tmp().isGP()) |
12289 | OPGEN_RETURN(false); |
12290 | if (!Arg::isValidAddrForm(args[3].offset())) |
12291 | OPGEN_RETURN(false); |
12292 | if (!isBranchAtomicStrongCAS8Valid(*this)) |
12293 | OPGEN_RETURN(false); |
12294 | OPGEN_RETURN(true); |
12295 | #endif |
12296 | break; |
12297 | break; |
12298 | case Arg::Index: |
12299 | #if CPU(X86) || CPU(X86_64) |
12300 | if (!args[1].tmp().isGP()) |
12301 | OPGEN_RETURN(false); |
12302 | if (!args[2].tmp().isGP()) |
12303 | OPGEN_RETURN(false); |
12304 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width8)) |
12305 | OPGEN_RETURN(false); |
12306 | if (!isBranchAtomicStrongCAS8Valid(*this)) |
12307 | OPGEN_RETURN(false); |
12308 | OPGEN_RETURN(true); |
12309 | #endif |
12310 | break; |
12311 | break; |
12312 | default: |
12313 | break; |
12314 | } |
12315 | break; |
12316 | default: |
12317 | break; |
12318 | } |
12319 | break; |
12320 | default: |
12321 | break; |
12322 | } |
12323 | break; |
12324 | default: |
12325 | break; |
12326 | } |
12327 | break; |
12328 | default: |
12329 | break; |
12330 | } |
12331 | break; |
12332 | case Opcode::BranchAtomicStrongCAS16: |
12333 | switch (this->args.size()) { |
12334 | case 4: |
12335 | switch (this->args[0].kind()) { |
12336 | case Arg::StatusCond: |
12337 | switch (this->args[1].kind()) { |
12338 | case Arg::Tmp: |
12339 | switch (this->args[2].kind()) { |
12340 | case Arg::Tmp: |
12341 | switch (this->args[3].kind()) { |
12342 | case Arg::Addr: |
12343 | case Arg::Stack: |
12344 | case Arg::CallArg: |
12345 | #if CPU(X86) || CPU(X86_64) |
12346 | if (!args[1].tmp().isGP()) |
12347 | OPGEN_RETURN(false); |
12348 | if (!args[2].tmp().isGP()) |
12349 | OPGEN_RETURN(false); |
12350 | if (!Arg::isValidAddrForm(args[3].offset())) |
12351 | OPGEN_RETURN(false); |
12352 | if (!isBranchAtomicStrongCAS16Valid(*this)) |
12353 | OPGEN_RETURN(false); |
12354 | OPGEN_RETURN(true); |
12355 | #endif |
12356 | break; |
12357 | break; |
12358 | case Arg::Index: |
12359 | #if CPU(X86) || CPU(X86_64) |
12360 | if (!args[1].tmp().isGP()) |
12361 | OPGEN_RETURN(false); |
12362 | if (!args[2].tmp().isGP()) |
12363 | OPGEN_RETURN(false); |
12364 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width16)) |
12365 | OPGEN_RETURN(false); |
12366 | if (!isBranchAtomicStrongCAS16Valid(*this)) |
12367 | OPGEN_RETURN(false); |
12368 | OPGEN_RETURN(true); |
12369 | #endif |
12370 | break; |
12371 | break; |
12372 | default: |
12373 | break; |
12374 | } |
12375 | break; |
12376 | default: |
12377 | break; |
12378 | } |
12379 | break; |
12380 | default: |
12381 | break; |
12382 | } |
12383 | break; |
12384 | default: |
12385 | break; |
12386 | } |
12387 | break; |
12388 | default: |
12389 | break; |
12390 | } |
12391 | break; |
12392 | case Opcode::BranchAtomicStrongCAS32: |
12393 | switch (this->args.size()) { |
12394 | case 4: |
12395 | switch (this->args[0].kind()) { |
12396 | case Arg::StatusCond: |
12397 | switch (this->args[1].kind()) { |
12398 | case Arg::Tmp: |
12399 | switch (this->args[2].kind()) { |
12400 | case Arg::Tmp: |
12401 | switch (this->args[3].kind()) { |
12402 | case Arg::Addr: |
12403 | case Arg::Stack: |
12404 | case Arg::CallArg: |
12405 | #if CPU(X86) || CPU(X86_64) |
12406 | if (!args[1].tmp().isGP()) |
12407 | OPGEN_RETURN(false); |
12408 | if (!args[2].tmp().isGP()) |
12409 | OPGEN_RETURN(false); |
12410 | if (!Arg::isValidAddrForm(args[3].offset())) |
12411 | OPGEN_RETURN(false); |
12412 | if (!isBranchAtomicStrongCAS32Valid(*this)) |
12413 | OPGEN_RETURN(false); |
12414 | OPGEN_RETURN(true); |
12415 | #endif |
12416 | break; |
12417 | break; |
12418 | case Arg::Index: |
12419 | #if CPU(X86) || CPU(X86_64) |
12420 | if (!args[1].tmp().isGP()) |
12421 | OPGEN_RETURN(false); |
12422 | if (!args[2].tmp().isGP()) |
12423 | OPGEN_RETURN(false); |
12424 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width32)) |
12425 | OPGEN_RETURN(false); |
12426 | if (!isBranchAtomicStrongCAS32Valid(*this)) |
12427 | OPGEN_RETURN(false); |
12428 | OPGEN_RETURN(true); |
12429 | #endif |
12430 | break; |
12431 | break; |
12432 | default: |
12433 | break; |
12434 | } |
12435 | break; |
12436 | default: |
12437 | break; |
12438 | } |
12439 | break; |
12440 | default: |
12441 | break; |
12442 | } |
12443 | break; |
12444 | default: |
12445 | break; |
12446 | } |
12447 | break; |
12448 | default: |
12449 | break; |
12450 | } |
12451 | break; |
12452 | case Opcode::BranchAtomicStrongCAS64: |
12453 | switch (this->args.size()) { |
12454 | case 4: |
12455 | switch (this->args[0].kind()) { |
12456 | case Arg::StatusCond: |
12457 | switch (this->args[1].kind()) { |
12458 | case Arg::Tmp: |
12459 | switch (this->args[2].kind()) { |
12460 | case Arg::Tmp: |
12461 | switch (this->args[3].kind()) { |
12462 | case Arg::Addr: |
12463 | case Arg::Stack: |
12464 | case Arg::CallArg: |
12465 | #if CPU(X86_64) |
12466 | if (!args[1].tmp().isGP()) |
12467 | OPGEN_RETURN(false); |
12468 | if (!args[2].tmp().isGP()) |
12469 | OPGEN_RETURN(false); |
12470 | if (!Arg::isValidAddrForm(args[3].offset())) |
12471 | OPGEN_RETURN(false); |
12472 | if (!isBranchAtomicStrongCAS64Valid(*this)) |
12473 | OPGEN_RETURN(false); |
12474 | OPGEN_RETURN(true); |
12475 | #endif |
12476 | break; |
12477 | break; |
12478 | case Arg::Index: |
12479 | #if CPU(X86_64) |
12480 | if (!args[1].tmp().isGP()) |
12481 | OPGEN_RETURN(false); |
12482 | if (!args[2].tmp().isGP()) |
12483 | OPGEN_RETURN(false); |
12484 | if (!Arg::isValidIndexForm(args[3].scale(), args[3].offset(), Width64)) |
12485 | OPGEN_RETURN(false); |
12486 | if (!isBranchAtomicStrongCAS64Valid(*this)) |
12487 | OPGEN_RETURN(false); |
12488 | OPGEN_RETURN(true); |
12489 | #endif |
12490 | break; |
12491 | break; |
12492 | default: |
12493 | break; |
12494 | } |
12495 | break; |
12496 | default: |
12497 | break; |
12498 | } |
12499 | break; |
12500 | default: |
12501 | break; |
12502 | } |
12503 | break; |
12504 | default: |
12505 | break; |
12506 | } |
12507 | break; |
12508 | default: |
12509 | break; |
12510 | } |
12511 | break; |
12512 | case Opcode::AtomicAdd8: |
12513 | switch (this->args.size()) { |
12514 | case 2: |
12515 | switch (this->args[0].kind()) { |
12516 | case Arg::Imm: |
12517 | switch (this->args[1].kind()) { |
12518 | case Arg::Addr: |
12519 | case Arg::Stack: |
12520 | case Arg::CallArg: |
12521 | #if CPU(X86) || CPU(X86_64) |
12522 | if (!Arg::isValidImmForm(args[0].value())) |
12523 | OPGEN_RETURN(false); |
12524 | if (!Arg::isValidAddrForm(args[1].offset())) |
12525 | OPGEN_RETURN(false); |
12526 | OPGEN_RETURN(true); |
12527 | #endif |
12528 | break; |
12529 | break; |
12530 | case Arg::Index: |
12531 | #if CPU(X86) || CPU(X86_64) |
12532 | if (!Arg::isValidImmForm(args[0].value())) |
12533 | OPGEN_RETURN(false); |
12534 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
12535 | OPGEN_RETURN(false); |
12536 | OPGEN_RETURN(true); |
12537 | #endif |
12538 | break; |
12539 | break; |
12540 | default: |
12541 | break; |
12542 | } |
12543 | break; |
12544 | case Arg::Tmp: |
12545 | switch (this->args[1].kind()) { |
12546 | case Arg::Addr: |
12547 | case Arg::Stack: |
12548 | case Arg::CallArg: |
12549 | #if CPU(X86) || CPU(X86_64) |
12550 | if (!args[0].tmp().isGP()) |
12551 | OPGEN_RETURN(false); |
12552 | if (!Arg::isValidAddrForm(args[1].offset())) |
12553 | OPGEN_RETURN(false); |
12554 | OPGEN_RETURN(true); |
12555 | #endif |
12556 | break; |
12557 | break; |
12558 | case Arg::Index: |
12559 | #if CPU(X86) || CPU(X86_64) |
12560 | if (!args[0].tmp().isGP()) |
12561 | OPGEN_RETURN(false); |
12562 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
12563 | OPGEN_RETURN(false); |
12564 | OPGEN_RETURN(true); |
12565 | #endif |
12566 | break; |
12567 | break; |
12568 | default: |
12569 | break; |
12570 | } |
12571 | break; |
12572 | default: |
12573 | break; |
12574 | } |
12575 | break; |
12576 | default: |
12577 | break; |
12578 | } |
12579 | break; |
12580 | case Opcode::AtomicAdd16: |
12581 | switch (this->args.size()) { |
12582 | case 2: |
12583 | switch (this->args[0].kind()) { |
12584 | case Arg::Imm: |
12585 | switch (this->args[1].kind()) { |
12586 | case Arg::Addr: |
12587 | case Arg::Stack: |
12588 | case Arg::CallArg: |
12589 | #if CPU(X86) || CPU(X86_64) |
12590 | if (!Arg::isValidImmForm(args[0].value())) |
12591 | OPGEN_RETURN(false); |
12592 | if (!Arg::isValidAddrForm(args[1].offset())) |
12593 | OPGEN_RETURN(false); |
12594 | OPGEN_RETURN(true); |
12595 | #endif |
12596 | break; |
12597 | break; |
12598 | case Arg::Index: |
12599 | #if CPU(X86) || CPU(X86_64) |
12600 | if (!Arg::isValidImmForm(args[0].value())) |
12601 | OPGEN_RETURN(false); |
12602 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
12603 | OPGEN_RETURN(false); |
12604 | OPGEN_RETURN(true); |
12605 | #endif |
12606 | break; |
12607 | break; |
12608 | default: |
12609 | break; |
12610 | } |
12611 | break; |
12612 | case Arg::Tmp: |
12613 | switch (this->args[1].kind()) { |
12614 | case Arg::Addr: |
12615 | case Arg::Stack: |
12616 | case Arg::CallArg: |
12617 | #if CPU(X86) || CPU(X86_64) |
12618 | if (!args[0].tmp().isGP()) |
12619 | OPGEN_RETURN(false); |
12620 | if (!Arg::isValidAddrForm(args[1].offset())) |
12621 | OPGEN_RETURN(false); |
12622 | OPGEN_RETURN(true); |
12623 | #endif |
12624 | break; |
12625 | break; |
12626 | case Arg::Index: |
12627 | #if CPU(X86) || CPU(X86_64) |
12628 | if (!args[0].tmp().isGP()) |
12629 | OPGEN_RETURN(false); |
12630 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
12631 | OPGEN_RETURN(false); |
12632 | OPGEN_RETURN(true); |
12633 | #endif |
12634 | break; |
12635 | break; |
12636 | default: |
12637 | break; |
12638 | } |
12639 | break; |
12640 | default: |
12641 | break; |
12642 | } |
12643 | break; |
12644 | default: |
12645 | break; |
12646 | } |
12647 | break; |
12648 | case Opcode::AtomicAdd32: |
12649 | switch (this->args.size()) { |
12650 | case 2: |
12651 | switch (this->args[0].kind()) { |
12652 | case Arg::Imm: |
12653 | switch (this->args[1].kind()) { |
12654 | case Arg::Addr: |
12655 | case Arg::Stack: |
12656 | case Arg::CallArg: |
12657 | #if CPU(X86) || CPU(X86_64) |
12658 | if (!Arg::isValidImmForm(args[0].value())) |
12659 | OPGEN_RETURN(false); |
12660 | if (!Arg::isValidAddrForm(args[1].offset())) |
12661 | OPGEN_RETURN(false); |
12662 | OPGEN_RETURN(true); |
12663 | #endif |
12664 | break; |
12665 | break; |
12666 | case Arg::Index: |
12667 | #if CPU(X86) || CPU(X86_64) |
12668 | if (!Arg::isValidImmForm(args[0].value())) |
12669 | OPGEN_RETURN(false); |
12670 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
12671 | OPGEN_RETURN(false); |
12672 | OPGEN_RETURN(true); |
12673 | #endif |
12674 | break; |
12675 | break; |
12676 | default: |
12677 | break; |
12678 | } |
12679 | break; |
12680 | case Arg::Tmp: |
12681 | switch (this->args[1].kind()) { |
12682 | case Arg::Addr: |
12683 | case Arg::Stack: |
12684 | case Arg::CallArg: |
12685 | #if CPU(X86) || CPU(X86_64) |
12686 | if (!args[0].tmp().isGP()) |
12687 | OPGEN_RETURN(false); |
12688 | if (!Arg::isValidAddrForm(args[1].offset())) |
12689 | OPGEN_RETURN(false); |
12690 | OPGEN_RETURN(true); |
12691 | #endif |
12692 | break; |
12693 | break; |
12694 | case Arg::Index: |
12695 | #if CPU(X86) || CPU(X86_64) |
12696 | if (!args[0].tmp().isGP()) |
12697 | OPGEN_RETURN(false); |
12698 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
12699 | OPGEN_RETURN(false); |
12700 | OPGEN_RETURN(true); |
12701 | #endif |
12702 | break; |
12703 | break; |
12704 | default: |
12705 | break; |
12706 | } |
12707 | break; |
12708 | default: |
12709 | break; |
12710 | } |
12711 | break; |
12712 | default: |
12713 | break; |
12714 | } |
12715 | break; |
12716 | case Opcode::AtomicAdd64: |
12717 | switch (this->args.size()) { |
12718 | case 2: |
12719 | switch (this->args[0].kind()) { |
12720 | case Arg::Imm: |
12721 | switch (this->args[1].kind()) { |
12722 | case Arg::Addr: |
12723 | case Arg::Stack: |
12724 | case Arg::CallArg: |
12725 | #if CPU(X86_64) |
12726 | if (!Arg::isValidImmForm(args[0].value())) |
12727 | OPGEN_RETURN(false); |
12728 | if (!Arg::isValidAddrForm(args[1].offset())) |
12729 | OPGEN_RETURN(false); |
12730 | OPGEN_RETURN(true); |
12731 | #endif |
12732 | break; |
12733 | break; |
12734 | case Arg::Index: |
12735 | #if CPU(X86_64) |
12736 | if (!Arg::isValidImmForm(args[0].value())) |
12737 | OPGEN_RETURN(false); |
12738 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
12739 | OPGEN_RETURN(false); |
12740 | OPGEN_RETURN(true); |
12741 | #endif |
12742 | break; |
12743 | break; |
12744 | default: |
12745 | break; |
12746 | } |
12747 | break; |
12748 | case Arg::Tmp: |
12749 | switch (this->args[1].kind()) { |
12750 | case Arg::Addr: |
12751 | case Arg::Stack: |
12752 | case Arg::CallArg: |
12753 | #if CPU(X86_64) |
12754 | if (!args[0].tmp().isGP()) |
12755 | OPGEN_RETURN(false); |
12756 | if (!Arg::isValidAddrForm(args[1].offset())) |
12757 | OPGEN_RETURN(false); |
12758 | OPGEN_RETURN(true); |
12759 | #endif |
12760 | break; |
12761 | break; |
12762 | case Arg::Index: |
12763 | #if CPU(X86_64) |
12764 | if (!args[0].tmp().isGP()) |
12765 | OPGEN_RETURN(false); |
12766 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
12767 | OPGEN_RETURN(false); |
12768 | OPGEN_RETURN(true); |
12769 | #endif |
12770 | break; |
12771 | break; |
12772 | default: |
12773 | break; |
12774 | } |
12775 | break; |
12776 | default: |
12777 | break; |
12778 | } |
12779 | break; |
12780 | default: |
12781 | break; |
12782 | } |
12783 | break; |
12784 | case Opcode::AtomicSub8: |
12785 | switch (this->args.size()) { |
12786 | case 2: |
12787 | switch (this->args[0].kind()) { |
12788 | case Arg::Imm: |
12789 | switch (this->args[1].kind()) { |
12790 | case Arg::Addr: |
12791 | case Arg::Stack: |
12792 | case Arg::CallArg: |
12793 | #if CPU(X86) || CPU(X86_64) |
12794 | if (!Arg::isValidImmForm(args[0].value())) |
12795 | OPGEN_RETURN(false); |
12796 | if (!Arg::isValidAddrForm(args[1].offset())) |
12797 | OPGEN_RETURN(false); |
12798 | OPGEN_RETURN(true); |
12799 | #endif |
12800 | break; |
12801 | break; |
12802 | case Arg::Index: |
12803 | #if CPU(X86) || CPU(X86_64) |
12804 | if (!Arg::isValidImmForm(args[0].value())) |
12805 | OPGEN_RETURN(false); |
12806 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
12807 | OPGEN_RETURN(false); |
12808 | OPGEN_RETURN(true); |
12809 | #endif |
12810 | break; |
12811 | break; |
12812 | default: |
12813 | break; |
12814 | } |
12815 | break; |
12816 | case Arg::Tmp: |
12817 | switch (this->args[1].kind()) { |
12818 | case Arg::Addr: |
12819 | case Arg::Stack: |
12820 | case Arg::CallArg: |
12821 | #if CPU(X86) || CPU(X86_64) |
12822 | if (!args[0].tmp().isGP()) |
12823 | OPGEN_RETURN(false); |
12824 | if (!Arg::isValidAddrForm(args[1].offset())) |
12825 | OPGEN_RETURN(false); |
12826 | OPGEN_RETURN(true); |
12827 | #endif |
12828 | break; |
12829 | break; |
12830 | case Arg::Index: |
12831 | #if CPU(X86) || CPU(X86_64) |
12832 | if (!args[0].tmp().isGP()) |
12833 | OPGEN_RETURN(false); |
12834 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
12835 | OPGEN_RETURN(false); |
12836 | OPGEN_RETURN(true); |
12837 | #endif |
12838 | break; |
12839 | break; |
12840 | default: |
12841 | break; |
12842 | } |
12843 | break; |
12844 | default: |
12845 | break; |
12846 | } |
12847 | break; |
12848 | default: |
12849 | break; |
12850 | } |
12851 | break; |
12852 | case Opcode::AtomicSub16: |
12853 | switch (this->args.size()) { |
12854 | case 2: |
12855 | switch (this->args[0].kind()) { |
12856 | case Arg::Imm: |
12857 | switch (this->args[1].kind()) { |
12858 | case Arg::Addr: |
12859 | case Arg::Stack: |
12860 | case Arg::CallArg: |
12861 | #if CPU(X86) || CPU(X86_64) |
12862 | if (!Arg::isValidImmForm(args[0].value())) |
12863 | OPGEN_RETURN(false); |
12864 | if (!Arg::isValidAddrForm(args[1].offset())) |
12865 | OPGEN_RETURN(false); |
12866 | OPGEN_RETURN(true); |
12867 | #endif |
12868 | break; |
12869 | break; |
12870 | case Arg::Index: |
12871 | #if CPU(X86) || CPU(X86_64) |
12872 | if (!Arg::isValidImmForm(args[0].value())) |
12873 | OPGEN_RETURN(false); |
12874 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
12875 | OPGEN_RETURN(false); |
12876 | OPGEN_RETURN(true); |
12877 | #endif |
12878 | break; |
12879 | break; |
12880 | default: |
12881 | break; |
12882 | } |
12883 | break; |
12884 | case Arg::Tmp: |
12885 | switch (this->args[1].kind()) { |
12886 | case Arg::Addr: |
12887 | case Arg::Stack: |
12888 | case Arg::CallArg: |
12889 | #if CPU(X86) || CPU(X86_64) |
12890 | if (!args[0].tmp().isGP()) |
12891 | OPGEN_RETURN(false); |
12892 | if (!Arg::isValidAddrForm(args[1].offset())) |
12893 | OPGEN_RETURN(false); |
12894 | OPGEN_RETURN(true); |
12895 | #endif |
12896 | break; |
12897 | break; |
12898 | case Arg::Index: |
12899 | #if CPU(X86) || CPU(X86_64) |
12900 | if (!args[0].tmp().isGP()) |
12901 | OPGEN_RETURN(false); |
12902 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
12903 | OPGEN_RETURN(false); |
12904 | OPGEN_RETURN(true); |
12905 | #endif |
12906 | break; |
12907 | break; |
12908 | default: |
12909 | break; |
12910 | } |
12911 | break; |
12912 | default: |
12913 | break; |
12914 | } |
12915 | break; |
12916 | default: |
12917 | break; |
12918 | } |
12919 | break; |
12920 | case Opcode::AtomicSub32: |
12921 | switch (this->args.size()) { |
12922 | case 2: |
12923 | switch (this->args[0].kind()) { |
12924 | case Arg::Imm: |
12925 | switch (this->args[1].kind()) { |
12926 | case Arg::Addr: |
12927 | case Arg::Stack: |
12928 | case Arg::CallArg: |
12929 | #if CPU(X86) || CPU(X86_64) |
12930 | if (!Arg::isValidImmForm(args[0].value())) |
12931 | OPGEN_RETURN(false); |
12932 | if (!Arg::isValidAddrForm(args[1].offset())) |
12933 | OPGEN_RETURN(false); |
12934 | OPGEN_RETURN(true); |
12935 | #endif |
12936 | break; |
12937 | break; |
12938 | case Arg::Index: |
12939 | #if CPU(X86) || CPU(X86_64) |
12940 | if (!Arg::isValidImmForm(args[0].value())) |
12941 | OPGEN_RETURN(false); |
12942 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
12943 | OPGEN_RETURN(false); |
12944 | OPGEN_RETURN(true); |
12945 | #endif |
12946 | break; |
12947 | break; |
12948 | default: |
12949 | break; |
12950 | } |
12951 | break; |
12952 | case Arg::Tmp: |
12953 | switch (this->args[1].kind()) { |
12954 | case Arg::Addr: |
12955 | case Arg::Stack: |
12956 | case Arg::CallArg: |
12957 | #if CPU(X86) || CPU(X86_64) |
12958 | if (!args[0].tmp().isGP()) |
12959 | OPGEN_RETURN(false); |
12960 | if (!Arg::isValidAddrForm(args[1].offset())) |
12961 | OPGEN_RETURN(false); |
12962 | OPGEN_RETURN(true); |
12963 | #endif |
12964 | break; |
12965 | break; |
12966 | case Arg::Index: |
12967 | #if CPU(X86) || CPU(X86_64) |
12968 | if (!args[0].tmp().isGP()) |
12969 | OPGEN_RETURN(false); |
12970 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
12971 | OPGEN_RETURN(false); |
12972 | OPGEN_RETURN(true); |
12973 | #endif |
12974 | break; |
12975 | break; |
12976 | default: |
12977 | break; |
12978 | } |
12979 | break; |
12980 | default: |
12981 | break; |
12982 | } |
12983 | break; |
12984 | default: |
12985 | break; |
12986 | } |
12987 | break; |
12988 | case Opcode::AtomicSub64: |
12989 | switch (this->args.size()) { |
12990 | case 2: |
12991 | switch (this->args[0].kind()) { |
12992 | case Arg::Imm: |
12993 | switch (this->args[1].kind()) { |
12994 | case Arg::Addr: |
12995 | case Arg::Stack: |
12996 | case Arg::CallArg: |
12997 | #if CPU(X86_64) |
12998 | if (!Arg::isValidImmForm(args[0].value())) |
12999 | OPGEN_RETURN(false); |
13000 | if (!Arg::isValidAddrForm(args[1].offset())) |
13001 | OPGEN_RETURN(false); |
13002 | OPGEN_RETURN(true); |
13003 | #endif |
13004 | break; |
13005 | break; |
13006 | case Arg::Index: |
13007 | #if CPU(X86_64) |
13008 | if (!Arg::isValidImmForm(args[0].value())) |
13009 | OPGEN_RETURN(false); |
13010 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13011 | OPGEN_RETURN(false); |
13012 | OPGEN_RETURN(true); |
13013 | #endif |
13014 | break; |
13015 | break; |
13016 | default: |
13017 | break; |
13018 | } |
13019 | break; |
13020 | case Arg::Tmp: |
13021 | switch (this->args[1].kind()) { |
13022 | case Arg::Addr: |
13023 | case Arg::Stack: |
13024 | case Arg::CallArg: |
13025 | #if CPU(X86_64) |
13026 | if (!args[0].tmp().isGP()) |
13027 | OPGEN_RETURN(false); |
13028 | if (!Arg::isValidAddrForm(args[1].offset())) |
13029 | OPGEN_RETURN(false); |
13030 | OPGEN_RETURN(true); |
13031 | #endif |
13032 | break; |
13033 | break; |
13034 | case Arg::Index: |
13035 | #if CPU(X86_64) |
13036 | if (!args[0].tmp().isGP()) |
13037 | OPGEN_RETURN(false); |
13038 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13039 | OPGEN_RETURN(false); |
13040 | OPGEN_RETURN(true); |
13041 | #endif |
13042 | break; |
13043 | break; |
13044 | default: |
13045 | break; |
13046 | } |
13047 | break; |
13048 | default: |
13049 | break; |
13050 | } |
13051 | break; |
13052 | default: |
13053 | break; |
13054 | } |
13055 | break; |
13056 | case Opcode::AtomicAnd8: |
13057 | switch (this->args.size()) { |
13058 | case 2: |
13059 | switch (this->args[0].kind()) { |
13060 | case Arg::Imm: |
13061 | switch (this->args[1].kind()) { |
13062 | case Arg::Addr: |
13063 | case Arg::Stack: |
13064 | case Arg::CallArg: |
13065 | #if CPU(X86) || CPU(X86_64) |
13066 | if (!Arg::isValidImmForm(args[0].value())) |
13067 | OPGEN_RETURN(false); |
13068 | if (!Arg::isValidAddrForm(args[1].offset())) |
13069 | OPGEN_RETURN(false); |
13070 | OPGEN_RETURN(true); |
13071 | #endif |
13072 | break; |
13073 | break; |
13074 | case Arg::Index: |
13075 | #if CPU(X86) || CPU(X86_64) |
13076 | if (!Arg::isValidImmForm(args[0].value())) |
13077 | OPGEN_RETURN(false); |
13078 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
13079 | OPGEN_RETURN(false); |
13080 | OPGEN_RETURN(true); |
13081 | #endif |
13082 | break; |
13083 | break; |
13084 | default: |
13085 | break; |
13086 | } |
13087 | break; |
13088 | case Arg::Tmp: |
13089 | switch (this->args[1].kind()) { |
13090 | case Arg::Addr: |
13091 | case Arg::Stack: |
13092 | case Arg::CallArg: |
13093 | #if CPU(X86) || CPU(X86_64) |
13094 | if (!args[0].tmp().isGP()) |
13095 | OPGEN_RETURN(false); |
13096 | if (!Arg::isValidAddrForm(args[1].offset())) |
13097 | OPGEN_RETURN(false); |
13098 | OPGEN_RETURN(true); |
13099 | #endif |
13100 | break; |
13101 | break; |
13102 | case Arg::Index: |
13103 | #if CPU(X86) || CPU(X86_64) |
13104 | if (!args[0].tmp().isGP()) |
13105 | OPGEN_RETURN(false); |
13106 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
13107 | OPGEN_RETURN(false); |
13108 | OPGEN_RETURN(true); |
13109 | #endif |
13110 | break; |
13111 | break; |
13112 | default: |
13113 | break; |
13114 | } |
13115 | break; |
13116 | default: |
13117 | break; |
13118 | } |
13119 | break; |
13120 | default: |
13121 | break; |
13122 | } |
13123 | break; |
13124 | case Opcode::AtomicAnd16: |
13125 | switch (this->args.size()) { |
13126 | case 2: |
13127 | switch (this->args[0].kind()) { |
13128 | case Arg::Imm: |
13129 | switch (this->args[1].kind()) { |
13130 | case Arg::Addr: |
13131 | case Arg::Stack: |
13132 | case Arg::CallArg: |
13133 | #if CPU(X86) || CPU(X86_64) |
13134 | if (!Arg::isValidImmForm(args[0].value())) |
13135 | OPGEN_RETURN(false); |
13136 | if (!Arg::isValidAddrForm(args[1].offset())) |
13137 | OPGEN_RETURN(false); |
13138 | OPGEN_RETURN(true); |
13139 | #endif |
13140 | break; |
13141 | break; |
13142 | case Arg::Index: |
13143 | #if CPU(X86) || CPU(X86_64) |
13144 | if (!Arg::isValidImmForm(args[0].value())) |
13145 | OPGEN_RETURN(false); |
13146 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
13147 | OPGEN_RETURN(false); |
13148 | OPGEN_RETURN(true); |
13149 | #endif |
13150 | break; |
13151 | break; |
13152 | default: |
13153 | break; |
13154 | } |
13155 | break; |
13156 | case Arg::Tmp: |
13157 | switch (this->args[1].kind()) { |
13158 | case Arg::Addr: |
13159 | case Arg::Stack: |
13160 | case Arg::CallArg: |
13161 | #if CPU(X86) || CPU(X86_64) |
13162 | if (!args[0].tmp().isGP()) |
13163 | OPGEN_RETURN(false); |
13164 | if (!Arg::isValidAddrForm(args[1].offset())) |
13165 | OPGEN_RETURN(false); |
13166 | OPGEN_RETURN(true); |
13167 | #endif |
13168 | break; |
13169 | break; |
13170 | case Arg::Index: |
13171 | #if CPU(X86) || CPU(X86_64) |
13172 | if (!args[0].tmp().isGP()) |
13173 | OPGEN_RETURN(false); |
13174 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
13175 | OPGEN_RETURN(false); |
13176 | OPGEN_RETURN(true); |
13177 | #endif |
13178 | break; |
13179 | break; |
13180 | default: |
13181 | break; |
13182 | } |
13183 | break; |
13184 | default: |
13185 | break; |
13186 | } |
13187 | break; |
13188 | default: |
13189 | break; |
13190 | } |
13191 | break; |
13192 | case Opcode::AtomicAnd32: |
13193 | switch (this->args.size()) { |
13194 | case 2: |
13195 | switch (this->args[0].kind()) { |
13196 | case Arg::Imm: |
13197 | switch (this->args[1].kind()) { |
13198 | case Arg::Addr: |
13199 | case Arg::Stack: |
13200 | case Arg::CallArg: |
13201 | #if CPU(X86) || CPU(X86_64) |
13202 | if (!Arg::isValidImmForm(args[0].value())) |
13203 | OPGEN_RETURN(false); |
13204 | if (!Arg::isValidAddrForm(args[1].offset())) |
13205 | OPGEN_RETURN(false); |
13206 | OPGEN_RETURN(true); |
13207 | #endif |
13208 | break; |
13209 | break; |
13210 | case Arg::Index: |
13211 | #if CPU(X86) || CPU(X86_64) |
13212 | if (!Arg::isValidImmForm(args[0].value())) |
13213 | OPGEN_RETURN(false); |
13214 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
13215 | OPGEN_RETURN(false); |
13216 | OPGEN_RETURN(true); |
13217 | #endif |
13218 | break; |
13219 | break; |
13220 | default: |
13221 | break; |
13222 | } |
13223 | break; |
13224 | case Arg::Tmp: |
13225 | switch (this->args[1].kind()) { |
13226 | case Arg::Addr: |
13227 | case Arg::Stack: |
13228 | case Arg::CallArg: |
13229 | #if CPU(X86) || CPU(X86_64) |
13230 | if (!args[0].tmp().isGP()) |
13231 | OPGEN_RETURN(false); |
13232 | if (!Arg::isValidAddrForm(args[1].offset())) |
13233 | OPGEN_RETURN(false); |
13234 | OPGEN_RETURN(true); |
13235 | #endif |
13236 | break; |
13237 | break; |
13238 | case Arg::Index: |
13239 | #if CPU(X86) || CPU(X86_64) |
13240 | if (!args[0].tmp().isGP()) |
13241 | OPGEN_RETURN(false); |
13242 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
13243 | OPGEN_RETURN(false); |
13244 | OPGEN_RETURN(true); |
13245 | #endif |
13246 | break; |
13247 | break; |
13248 | default: |
13249 | break; |
13250 | } |
13251 | break; |
13252 | default: |
13253 | break; |
13254 | } |
13255 | break; |
13256 | default: |
13257 | break; |
13258 | } |
13259 | break; |
13260 | case Opcode::AtomicAnd64: |
13261 | switch (this->args.size()) { |
13262 | case 2: |
13263 | switch (this->args[0].kind()) { |
13264 | case Arg::Imm: |
13265 | switch (this->args[1].kind()) { |
13266 | case Arg::Addr: |
13267 | case Arg::Stack: |
13268 | case Arg::CallArg: |
13269 | #if CPU(X86_64) |
13270 | if (!Arg::isValidImmForm(args[0].value())) |
13271 | OPGEN_RETURN(false); |
13272 | if (!Arg::isValidAddrForm(args[1].offset())) |
13273 | OPGEN_RETURN(false); |
13274 | OPGEN_RETURN(true); |
13275 | #endif |
13276 | break; |
13277 | break; |
13278 | case Arg::Index: |
13279 | #if CPU(X86_64) |
13280 | if (!Arg::isValidImmForm(args[0].value())) |
13281 | OPGEN_RETURN(false); |
13282 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13283 | OPGEN_RETURN(false); |
13284 | OPGEN_RETURN(true); |
13285 | #endif |
13286 | break; |
13287 | break; |
13288 | default: |
13289 | break; |
13290 | } |
13291 | break; |
13292 | case Arg::Tmp: |
13293 | switch (this->args[1].kind()) { |
13294 | case Arg::Addr: |
13295 | case Arg::Stack: |
13296 | case Arg::CallArg: |
13297 | #if CPU(X86_64) |
13298 | if (!args[0].tmp().isGP()) |
13299 | OPGEN_RETURN(false); |
13300 | if (!Arg::isValidAddrForm(args[1].offset())) |
13301 | OPGEN_RETURN(false); |
13302 | OPGEN_RETURN(true); |
13303 | #endif |
13304 | break; |
13305 | break; |
13306 | case Arg::Index: |
13307 | #if CPU(X86_64) |
13308 | if (!args[0].tmp().isGP()) |
13309 | OPGEN_RETURN(false); |
13310 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13311 | OPGEN_RETURN(false); |
13312 | OPGEN_RETURN(true); |
13313 | #endif |
13314 | break; |
13315 | break; |
13316 | default: |
13317 | break; |
13318 | } |
13319 | break; |
13320 | default: |
13321 | break; |
13322 | } |
13323 | break; |
13324 | default: |
13325 | break; |
13326 | } |
13327 | break; |
13328 | case Opcode::AtomicOr8: |
13329 | switch (this->args.size()) { |
13330 | case 2: |
13331 | switch (this->args[0].kind()) { |
13332 | case Arg::Imm: |
13333 | switch (this->args[1].kind()) { |
13334 | case Arg::Addr: |
13335 | case Arg::Stack: |
13336 | case Arg::CallArg: |
13337 | #if CPU(X86) || CPU(X86_64) |
13338 | if (!Arg::isValidImmForm(args[0].value())) |
13339 | OPGEN_RETURN(false); |
13340 | if (!Arg::isValidAddrForm(args[1].offset())) |
13341 | OPGEN_RETURN(false); |
13342 | OPGEN_RETURN(true); |
13343 | #endif |
13344 | break; |
13345 | break; |
13346 | case Arg::Index: |
13347 | #if CPU(X86) || CPU(X86_64) |
13348 | if (!Arg::isValidImmForm(args[0].value())) |
13349 | OPGEN_RETURN(false); |
13350 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
13351 | OPGEN_RETURN(false); |
13352 | OPGEN_RETURN(true); |
13353 | #endif |
13354 | break; |
13355 | break; |
13356 | default: |
13357 | break; |
13358 | } |
13359 | break; |
13360 | case Arg::Tmp: |
13361 | switch (this->args[1].kind()) { |
13362 | case Arg::Addr: |
13363 | case Arg::Stack: |
13364 | case Arg::CallArg: |
13365 | #if CPU(X86) || CPU(X86_64) |
13366 | if (!args[0].tmp().isGP()) |
13367 | OPGEN_RETURN(false); |
13368 | if (!Arg::isValidAddrForm(args[1].offset())) |
13369 | OPGEN_RETURN(false); |
13370 | OPGEN_RETURN(true); |
13371 | #endif |
13372 | break; |
13373 | break; |
13374 | case Arg::Index: |
13375 | #if CPU(X86) || CPU(X86_64) |
13376 | if (!args[0].tmp().isGP()) |
13377 | OPGEN_RETURN(false); |
13378 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
13379 | OPGEN_RETURN(false); |
13380 | OPGEN_RETURN(true); |
13381 | #endif |
13382 | break; |
13383 | break; |
13384 | default: |
13385 | break; |
13386 | } |
13387 | break; |
13388 | default: |
13389 | break; |
13390 | } |
13391 | break; |
13392 | default: |
13393 | break; |
13394 | } |
13395 | break; |
13396 | case Opcode::AtomicOr16: |
13397 | switch (this->args.size()) { |
13398 | case 2: |
13399 | switch (this->args[0].kind()) { |
13400 | case Arg::Imm: |
13401 | switch (this->args[1].kind()) { |
13402 | case Arg::Addr: |
13403 | case Arg::Stack: |
13404 | case Arg::CallArg: |
13405 | #if CPU(X86) || CPU(X86_64) |
13406 | if (!Arg::isValidImmForm(args[0].value())) |
13407 | OPGEN_RETURN(false); |
13408 | if (!Arg::isValidAddrForm(args[1].offset())) |
13409 | OPGEN_RETURN(false); |
13410 | OPGEN_RETURN(true); |
13411 | #endif |
13412 | break; |
13413 | break; |
13414 | case Arg::Index: |
13415 | #if CPU(X86) || CPU(X86_64) |
13416 | if (!Arg::isValidImmForm(args[0].value())) |
13417 | OPGEN_RETURN(false); |
13418 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
13419 | OPGEN_RETURN(false); |
13420 | OPGEN_RETURN(true); |
13421 | #endif |
13422 | break; |
13423 | break; |
13424 | default: |
13425 | break; |
13426 | } |
13427 | break; |
13428 | case Arg::Tmp: |
13429 | switch (this->args[1].kind()) { |
13430 | case Arg::Addr: |
13431 | case Arg::Stack: |
13432 | case Arg::CallArg: |
13433 | #if CPU(X86) || CPU(X86_64) |
13434 | if (!args[0].tmp().isGP()) |
13435 | OPGEN_RETURN(false); |
13436 | if (!Arg::isValidAddrForm(args[1].offset())) |
13437 | OPGEN_RETURN(false); |
13438 | OPGEN_RETURN(true); |
13439 | #endif |
13440 | break; |
13441 | break; |
13442 | case Arg::Index: |
13443 | #if CPU(X86) || CPU(X86_64) |
13444 | if (!args[0].tmp().isGP()) |
13445 | OPGEN_RETURN(false); |
13446 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
13447 | OPGEN_RETURN(false); |
13448 | OPGEN_RETURN(true); |
13449 | #endif |
13450 | break; |
13451 | break; |
13452 | default: |
13453 | break; |
13454 | } |
13455 | break; |
13456 | default: |
13457 | break; |
13458 | } |
13459 | break; |
13460 | default: |
13461 | break; |
13462 | } |
13463 | break; |
13464 | case Opcode::AtomicOr32: |
13465 | switch (this->args.size()) { |
13466 | case 2: |
13467 | switch (this->args[0].kind()) { |
13468 | case Arg::Imm: |
13469 | switch (this->args[1].kind()) { |
13470 | case Arg::Addr: |
13471 | case Arg::Stack: |
13472 | case Arg::CallArg: |
13473 | #if CPU(X86) || CPU(X86_64) |
13474 | if (!Arg::isValidImmForm(args[0].value())) |
13475 | OPGEN_RETURN(false); |
13476 | if (!Arg::isValidAddrForm(args[1].offset())) |
13477 | OPGEN_RETURN(false); |
13478 | OPGEN_RETURN(true); |
13479 | #endif |
13480 | break; |
13481 | break; |
13482 | case Arg::Index: |
13483 | #if CPU(X86) || CPU(X86_64) |
13484 | if (!Arg::isValidImmForm(args[0].value())) |
13485 | OPGEN_RETURN(false); |
13486 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
13487 | OPGEN_RETURN(false); |
13488 | OPGEN_RETURN(true); |
13489 | #endif |
13490 | break; |
13491 | break; |
13492 | default: |
13493 | break; |
13494 | } |
13495 | break; |
13496 | case Arg::Tmp: |
13497 | switch (this->args[1].kind()) { |
13498 | case Arg::Addr: |
13499 | case Arg::Stack: |
13500 | case Arg::CallArg: |
13501 | #if CPU(X86) || CPU(X86_64) |
13502 | if (!args[0].tmp().isGP()) |
13503 | OPGEN_RETURN(false); |
13504 | if (!Arg::isValidAddrForm(args[1].offset())) |
13505 | OPGEN_RETURN(false); |
13506 | OPGEN_RETURN(true); |
13507 | #endif |
13508 | break; |
13509 | break; |
13510 | case Arg::Index: |
13511 | #if CPU(X86) || CPU(X86_64) |
13512 | if (!args[0].tmp().isGP()) |
13513 | OPGEN_RETURN(false); |
13514 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
13515 | OPGEN_RETURN(false); |
13516 | OPGEN_RETURN(true); |
13517 | #endif |
13518 | break; |
13519 | break; |
13520 | default: |
13521 | break; |
13522 | } |
13523 | break; |
13524 | default: |
13525 | break; |
13526 | } |
13527 | break; |
13528 | default: |
13529 | break; |
13530 | } |
13531 | break; |
13532 | case Opcode::AtomicOr64: |
13533 | switch (this->args.size()) { |
13534 | case 2: |
13535 | switch (this->args[0].kind()) { |
13536 | case Arg::Imm: |
13537 | switch (this->args[1].kind()) { |
13538 | case Arg::Addr: |
13539 | case Arg::Stack: |
13540 | case Arg::CallArg: |
13541 | #if CPU(X86_64) |
13542 | if (!Arg::isValidImmForm(args[0].value())) |
13543 | OPGEN_RETURN(false); |
13544 | if (!Arg::isValidAddrForm(args[1].offset())) |
13545 | OPGEN_RETURN(false); |
13546 | OPGEN_RETURN(true); |
13547 | #endif |
13548 | break; |
13549 | break; |
13550 | case Arg::Index: |
13551 | #if CPU(X86_64) |
13552 | if (!Arg::isValidImmForm(args[0].value())) |
13553 | OPGEN_RETURN(false); |
13554 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13555 | OPGEN_RETURN(false); |
13556 | OPGEN_RETURN(true); |
13557 | #endif |
13558 | break; |
13559 | break; |
13560 | default: |
13561 | break; |
13562 | } |
13563 | break; |
13564 | case Arg::Tmp: |
13565 | switch (this->args[1].kind()) { |
13566 | case Arg::Addr: |
13567 | case Arg::Stack: |
13568 | case Arg::CallArg: |
13569 | #if CPU(X86_64) |
13570 | if (!args[0].tmp().isGP()) |
13571 | OPGEN_RETURN(false); |
13572 | if (!Arg::isValidAddrForm(args[1].offset())) |
13573 | OPGEN_RETURN(false); |
13574 | OPGEN_RETURN(true); |
13575 | #endif |
13576 | break; |
13577 | break; |
13578 | case Arg::Index: |
13579 | #if CPU(X86_64) |
13580 | if (!args[0].tmp().isGP()) |
13581 | OPGEN_RETURN(false); |
13582 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13583 | OPGEN_RETURN(false); |
13584 | OPGEN_RETURN(true); |
13585 | #endif |
13586 | break; |
13587 | break; |
13588 | default: |
13589 | break; |
13590 | } |
13591 | break; |
13592 | default: |
13593 | break; |
13594 | } |
13595 | break; |
13596 | default: |
13597 | break; |
13598 | } |
13599 | break; |
13600 | case Opcode::AtomicXor8: |
13601 | switch (this->args.size()) { |
13602 | case 2: |
13603 | switch (this->args[0].kind()) { |
13604 | case Arg::Imm: |
13605 | switch (this->args[1].kind()) { |
13606 | case Arg::Addr: |
13607 | case Arg::Stack: |
13608 | case Arg::CallArg: |
13609 | #if CPU(X86) || CPU(X86_64) |
13610 | if (!Arg::isValidImmForm(args[0].value())) |
13611 | OPGEN_RETURN(false); |
13612 | if (!Arg::isValidAddrForm(args[1].offset())) |
13613 | OPGEN_RETURN(false); |
13614 | OPGEN_RETURN(true); |
13615 | #endif |
13616 | break; |
13617 | break; |
13618 | case Arg::Index: |
13619 | #if CPU(X86) || CPU(X86_64) |
13620 | if (!Arg::isValidImmForm(args[0].value())) |
13621 | OPGEN_RETURN(false); |
13622 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
13623 | OPGEN_RETURN(false); |
13624 | OPGEN_RETURN(true); |
13625 | #endif |
13626 | break; |
13627 | break; |
13628 | default: |
13629 | break; |
13630 | } |
13631 | break; |
13632 | case Arg::Tmp: |
13633 | switch (this->args[1].kind()) { |
13634 | case Arg::Addr: |
13635 | case Arg::Stack: |
13636 | case Arg::CallArg: |
13637 | #if CPU(X86) || CPU(X86_64) |
13638 | if (!args[0].tmp().isGP()) |
13639 | OPGEN_RETURN(false); |
13640 | if (!Arg::isValidAddrForm(args[1].offset())) |
13641 | OPGEN_RETURN(false); |
13642 | OPGEN_RETURN(true); |
13643 | #endif |
13644 | break; |
13645 | break; |
13646 | case Arg::Index: |
13647 | #if CPU(X86) || CPU(X86_64) |
13648 | if (!args[0].tmp().isGP()) |
13649 | OPGEN_RETURN(false); |
13650 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
13651 | OPGEN_RETURN(false); |
13652 | OPGEN_RETURN(true); |
13653 | #endif |
13654 | break; |
13655 | break; |
13656 | default: |
13657 | break; |
13658 | } |
13659 | break; |
13660 | default: |
13661 | break; |
13662 | } |
13663 | break; |
13664 | default: |
13665 | break; |
13666 | } |
13667 | break; |
13668 | case Opcode::AtomicXor16: |
13669 | switch (this->args.size()) { |
13670 | case 2: |
13671 | switch (this->args[0].kind()) { |
13672 | case Arg::Imm: |
13673 | switch (this->args[1].kind()) { |
13674 | case Arg::Addr: |
13675 | case Arg::Stack: |
13676 | case Arg::CallArg: |
13677 | #if CPU(X86) || CPU(X86_64) |
13678 | if (!Arg::isValidImmForm(args[0].value())) |
13679 | OPGEN_RETURN(false); |
13680 | if (!Arg::isValidAddrForm(args[1].offset())) |
13681 | OPGEN_RETURN(false); |
13682 | OPGEN_RETURN(true); |
13683 | #endif |
13684 | break; |
13685 | break; |
13686 | case Arg::Index: |
13687 | #if CPU(X86) || CPU(X86_64) |
13688 | if (!Arg::isValidImmForm(args[0].value())) |
13689 | OPGEN_RETURN(false); |
13690 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
13691 | OPGEN_RETURN(false); |
13692 | OPGEN_RETURN(true); |
13693 | #endif |
13694 | break; |
13695 | break; |
13696 | default: |
13697 | break; |
13698 | } |
13699 | break; |
13700 | case Arg::Tmp: |
13701 | switch (this->args[1].kind()) { |
13702 | case Arg::Addr: |
13703 | case Arg::Stack: |
13704 | case Arg::CallArg: |
13705 | #if CPU(X86) || CPU(X86_64) |
13706 | if (!args[0].tmp().isGP()) |
13707 | OPGEN_RETURN(false); |
13708 | if (!Arg::isValidAddrForm(args[1].offset())) |
13709 | OPGEN_RETURN(false); |
13710 | OPGEN_RETURN(true); |
13711 | #endif |
13712 | break; |
13713 | break; |
13714 | case Arg::Index: |
13715 | #if CPU(X86) || CPU(X86_64) |
13716 | if (!args[0].tmp().isGP()) |
13717 | OPGEN_RETURN(false); |
13718 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
13719 | OPGEN_RETURN(false); |
13720 | OPGEN_RETURN(true); |
13721 | #endif |
13722 | break; |
13723 | break; |
13724 | default: |
13725 | break; |
13726 | } |
13727 | break; |
13728 | default: |
13729 | break; |
13730 | } |
13731 | break; |
13732 | default: |
13733 | break; |
13734 | } |
13735 | break; |
13736 | case Opcode::AtomicXor32: |
13737 | switch (this->args.size()) { |
13738 | case 2: |
13739 | switch (this->args[0].kind()) { |
13740 | case Arg::Imm: |
13741 | switch (this->args[1].kind()) { |
13742 | case Arg::Addr: |
13743 | case Arg::Stack: |
13744 | case Arg::CallArg: |
13745 | #if CPU(X86) || CPU(X86_64) |
13746 | if (!Arg::isValidImmForm(args[0].value())) |
13747 | OPGEN_RETURN(false); |
13748 | if (!Arg::isValidAddrForm(args[1].offset())) |
13749 | OPGEN_RETURN(false); |
13750 | OPGEN_RETURN(true); |
13751 | #endif |
13752 | break; |
13753 | break; |
13754 | case Arg::Index: |
13755 | #if CPU(X86) || CPU(X86_64) |
13756 | if (!Arg::isValidImmForm(args[0].value())) |
13757 | OPGEN_RETURN(false); |
13758 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
13759 | OPGEN_RETURN(false); |
13760 | OPGEN_RETURN(true); |
13761 | #endif |
13762 | break; |
13763 | break; |
13764 | default: |
13765 | break; |
13766 | } |
13767 | break; |
13768 | case Arg::Tmp: |
13769 | switch (this->args[1].kind()) { |
13770 | case Arg::Addr: |
13771 | case Arg::Stack: |
13772 | case Arg::CallArg: |
13773 | #if CPU(X86) || CPU(X86_64) |
13774 | if (!args[0].tmp().isGP()) |
13775 | OPGEN_RETURN(false); |
13776 | if (!Arg::isValidAddrForm(args[1].offset())) |
13777 | OPGEN_RETURN(false); |
13778 | OPGEN_RETURN(true); |
13779 | #endif |
13780 | break; |
13781 | break; |
13782 | case Arg::Index: |
13783 | #if CPU(X86) || CPU(X86_64) |
13784 | if (!args[0].tmp().isGP()) |
13785 | OPGEN_RETURN(false); |
13786 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
13787 | OPGEN_RETURN(false); |
13788 | OPGEN_RETURN(true); |
13789 | #endif |
13790 | break; |
13791 | break; |
13792 | default: |
13793 | break; |
13794 | } |
13795 | break; |
13796 | default: |
13797 | break; |
13798 | } |
13799 | break; |
13800 | default: |
13801 | break; |
13802 | } |
13803 | break; |
13804 | case Opcode::AtomicXor64: |
13805 | switch (this->args.size()) { |
13806 | case 2: |
13807 | switch (this->args[0].kind()) { |
13808 | case Arg::Imm: |
13809 | switch (this->args[1].kind()) { |
13810 | case Arg::Addr: |
13811 | case Arg::Stack: |
13812 | case Arg::CallArg: |
13813 | #if CPU(X86_64) |
13814 | if (!Arg::isValidImmForm(args[0].value())) |
13815 | OPGEN_RETURN(false); |
13816 | if (!Arg::isValidAddrForm(args[1].offset())) |
13817 | OPGEN_RETURN(false); |
13818 | OPGEN_RETURN(true); |
13819 | #endif |
13820 | break; |
13821 | break; |
13822 | case Arg::Index: |
13823 | #if CPU(X86_64) |
13824 | if (!Arg::isValidImmForm(args[0].value())) |
13825 | OPGEN_RETURN(false); |
13826 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13827 | OPGEN_RETURN(false); |
13828 | OPGEN_RETURN(true); |
13829 | #endif |
13830 | break; |
13831 | break; |
13832 | default: |
13833 | break; |
13834 | } |
13835 | break; |
13836 | case Arg::Tmp: |
13837 | switch (this->args[1].kind()) { |
13838 | case Arg::Addr: |
13839 | case Arg::Stack: |
13840 | case Arg::CallArg: |
13841 | #if CPU(X86_64) |
13842 | if (!args[0].tmp().isGP()) |
13843 | OPGEN_RETURN(false); |
13844 | if (!Arg::isValidAddrForm(args[1].offset())) |
13845 | OPGEN_RETURN(false); |
13846 | OPGEN_RETURN(true); |
13847 | #endif |
13848 | break; |
13849 | break; |
13850 | case Arg::Index: |
13851 | #if CPU(X86_64) |
13852 | if (!args[0].tmp().isGP()) |
13853 | OPGEN_RETURN(false); |
13854 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
13855 | OPGEN_RETURN(false); |
13856 | OPGEN_RETURN(true); |
13857 | #endif |
13858 | break; |
13859 | break; |
13860 | default: |
13861 | break; |
13862 | } |
13863 | break; |
13864 | default: |
13865 | break; |
13866 | } |
13867 | break; |
13868 | default: |
13869 | break; |
13870 | } |
13871 | break; |
13872 | case Opcode::AtomicNeg8: |
13873 | switch (this->args.size()) { |
13874 | case 1: |
13875 | switch (this->args[0].kind()) { |
13876 | case Arg::Addr: |
13877 | case Arg::Stack: |
13878 | case Arg::CallArg: |
13879 | #if CPU(X86) || CPU(X86_64) |
13880 | if (!Arg::isValidAddrForm(args[0].offset())) |
13881 | OPGEN_RETURN(false); |
13882 | OPGEN_RETURN(true); |
13883 | #endif |
13884 | break; |
13885 | break; |
13886 | case Arg::Index: |
13887 | #if CPU(X86) || CPU(X86_64) |
13888 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width8)) |
13889 | OPGEN_RETURN(false); |
13890 | OPGEN_RETURN(true); |
13891 | #endif |
13892 | break; |
13893 | break; |
13894 | default: |
13895 | break; |
13896 | } |
13897 | break; |
13898 | default: |
13899 | break; |
13900 | } |
13901 | break; |
13902 | case Opcode::AtomicNeg16: |
13903 | switch (this->args.size()) { |
13904 | case 1: |
13905 | switch (this->args[0].kind()) { |
13906 | case Arg::Addr: |
13907 | case Arg::Stack: |
13908 | case Arg::CallArg: |
13909 | #if CPU(X86) || CPU(X86_64) |
13910 | if (!Arg::isValidAddrForm(args[0].offset())) |
13911 | OPGEN_RETURN(false); |
13912 | OPGEN_RETURN(true); |
13913 | #endif |
13914 | break; |
13915 | break; |
13916 | case Arg::Index: |
13917 | #if CPU(X86) || CPU(X86_64) |
13918 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width16)) |
13919 | OPGEN_RETURN(false); |
13920 | OPGEN_RETURN(true); |
13921 | #endif |
13922 | break; |
13923 | break; |
13924 | default: |
13925 | break; |
13926 | } |
13927 | break; |
13928 | default: |
13929 | break; |
13930 | } |
13931 | break; |
13932 | case Opcode::AtomicNeg32: |
13933 | switch (this->args.size()) { |
13934 | case 1: |
13935 | switch (this->args[0].kind()) { |
13936 | case Arg::Addr: |
13937 | case Arg::Stack: |
13938 | case Arg::CallArg: |
13939 | #if CPU(X86) || CPU(X86_64) |
13940 | if (!Arg::isValidAddrForm(args[0].offset())) |
13941 | OPGEN_RETURN(false); |
13942 | OPGEN_RETURN(true); |
13943 | #endif |
13944 | break; |
13945 | break; |
13946 | case Arg::Index: |
13947 | #if CPU(X86) || CPU(X86_64) |
13948 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
13949 | OPGEN_RETURN(false); |
13950 | OPGEN_RETURN(true); |
13951 | #endif |
13952 | break; |
13953 | break; |
13954 | default: |
13955 | break; |
13956 | } |
13957 | break; |
13958 | default: |
13959 | break; |
13960 | } |
13961 | break; |
13962 | case Opcode::AtomicNeg64: |
13963 | switch (this->args.size()) { |
13964 | case 1: |
13965 | switch (this->args[0].kind()) { |
13966 | case Arg::Addr: |
13967 | case Arg::Stack: |
13968 | case Arg::CallArg: |
13969 | #if CPU(X86_64) |
13970 | if (!Arg::isValidAddrForm(args[0].offset())) |
13971 | OPGEN_RETURN(false); |
13972 | OPGEN_RETURN(true); |
13973 | #endif |
13974 | break; |
13975 | break; |
13976 | case Arg::Index: |
13977 | #if CPU(X86_64) |
13978 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
13979 | OPGEN_RETURN(false); |
13980 | OPGEN_RETURN(true); |
13981 | #endif |
13982 | break; |
13983 | break; |
13984 | default: |
13985 | break; |
13986 | } |
13987 | break; |
13988 | default: |
13989 | break; |
13990 | } |
13991 | break; |
13992 | case Opcode::AtomicNot8: |
13993 | switch (this->args.size()) { |
13994 | case 1: |
13995 | switch (this->args[0].kind()) { |
13996 | case Arg::Addr: |
13997 | case Arg::Stack: |
13998 | case Arg::CallArg: |
13999 | #if CPU(X86) || CPU(X86_64) |
14000 | if (!Arg::isValidAddrForm(args[0].offset())) |
14001 | OPGEN_RETURN(false); |
14002 | OPGEN_RETURN(true); |
14003 | #endif |
14004 | break; |
14005 | break; |
14006 | case Arg::Index: |
14007 | #if CPU(X86) || CPU(X86_64) |
14008 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width8)) |
14009 | OPGEN_RETURN(false); |
14010 | OPGEN_RETURN(true); |
14011 | #endif |
14012 | break; |
14013 | break; |
14014 | default: |
14015 | break; |
14016 | } |
14017 | break; |
14018 | default: |
14019 | break; |
14020 | } |
14021 | break; |
14022 | case Opcode::AtomicNot16: |
14023 | switch (this->args.size()) { |
14024 | case 1: |
14025 | switch (this->args[0].kind()) { |
14026 | case Arg::Addr: |
14027 | case Arg::Stack: |
14028 | case Arg::CallArg: |
14029 | #if CPU(X86) || CPU(X86_64) |
14030 | if (!Arg::isValidAddrForm(args[0].offset())) |
14031 | OPGEN_RETURN(false); |
14032 | OPGEN_RETURN(true); |
14033 | #endif |
14034 | break; |
14035 | break; |
14036 | case Arg::Index: |
14037 | #if CPU(X86) || CPU(X86_64) |
14038 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width16)) |
14039 | OPGEN_RETURN(false); |
14040 | OPGEN_RETURN(true); |
14041 | #endif |
14042 | break; |
14043 | break; |
14044 | default: |
14045 | break; |
14046 | } |
14047 | break; |
14048 | default: |
14049 | break; |
14050 | } |
14051 | break; |
14052 | case Opcode::AtomicNot32: |
14053 | switch (this->args.size()) { |
14054 | case 1: |
14055 | switch (this->args[0].kind()) { |
14056 | case Arg::Addr: |
14057 | case Arg::Stack: |
14058 | case Arg::CallArg: |
14059 | #if CPU(X86) || CPU(X86_64) |
14060 | if (!Arg::isValidAddrForm(args[0].offset())) |
14061 | OPGEN_RETURN(false); |
14062 | OPGEN_RETURN(true); |
14063 | #endif |
14064 | break; |
14065 | break; |
14066 | case Arg::Index: |
14067 | #if CPU(X86) || CPU(X86_64) |
14068 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width32)) |
14069 | OPGEN_RETURN(false); |
14070 | OPGEN_RETURN(true); |
14071 | #endif |
14072 | break; |
14073 | break; |
14074 | default: |
14075 | break; |
14076 | } |
14077 | break; |
14078 | default: |
14079 | break; |
14080 | } |
14081 | break; |
14082 | case Opcode::AtomicNot64: |
14083 | switch (this->args.size()) { |
14084 | case 1: |
14085 | switch (this->args[0].kind()) { |
14086 | case Arg::Addr: |
14087 | case Arg::Stack: |
14088 | case Arg::CallArg: |
14089 | #if CPU(X86_64) |
14090 | if (!Arg::isValidAddrForm(args[0].offset())) |
14091 | OPGEN_RETURN(false); |
14092 | OPGEN_RETURN(true); |
14093 | #endif |
14094 | break; |
14095 | break; |
14096 | case Arg::Index: |
14097 | #if CPU(X86_64) |
14098 | if (!Arg::isValidIndexForm(args[0].scale(), args[0].offset(), Width64)) |
14099 | OPGEN_RETURN(false); |
14100 | OPGEN_RETURN(true); |
14101 | #endif |
14102 | break; |
14103 | break; |
14104 | default: |
14105 | break; |
14106 | } |
14107 | break; |
14108 | default: |
14109 | break; |
14110 | } |
14111 | break; |
14112 | case Opcode::AtomicXchgAdd8: |
14113 | switch (this->args.size()) { |
14114 | case 2: |
14115 | switch (this->args[0].kind()) { |
14116 | case Arg::Tmp: |
14117 | switch (this->args[1].kind()) { |
14118 | case Arg::Addr: |
14119 | case Arg::Stack: |
14120 | case Arg::CallArg: |
14121 | #if CPU(X86) || CPU(X86_64) |
14122 | if (!args[0].tmp().isGP()) |
14123 | OPGEN_RETURN(false); |
14124 | if (!Arg::isValidAddrForm(args[1].offset())) |
14125 | OPGEN_RETURN(false); |
14126 | OPGEN_RETURN(true); |
14127 | #endif |
14128 | break; |
14129 | break; |
14130 | case Arg::Index: |
14131 | #if CPU(X86) || CPU(X86_64) |
14132 | if (!args[0].tmp().isGP()) |
14133 | OPGEN_RETURN(false); |
14134 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
14135 | OPGEN_RETURN(false); |
14136 | OPGEN_RETURN(true); |
14137 | #endif |
14138 | break; |
14139 | break; |
14140 | default: |
14141 | break; |
14142 | } |
14143 | break; |
14144 | default: |
14145 | break; |
14146 | } |
14147 | break; |
14148 | default: |
14149 | break; |
14150 | } |
14151 | break; |
14152 | case Opcode::AtomicXchgAdd16: |
14153 | switch (this->args.size()) { |
14154 | case 2: |
14155 | switch (this->args[0].kind()) { |
14156 | case Arg::Tmp: |
14157 | switch (this->args[1].kind()) { |
14158 | case Arg::Addr: |
14159 | case Arg::Stack: |
14160 | case Arg::CallArg: |
14161 | #if CPU(X86) || CPU(X86_64) |
14162 | if (!args[0].tmp().isGP()) |
14163 | OPGEN_RETURN(false); |
14164 | if (!Arg::isValidAddrForm(args[1].offset())) |
14165 | OPGEN_RETURN(false); |
14166 | OPGEN_RETURN(true); |
14167 | #endif |
14168 | break; |
14169 | break; |
14170 | case Arg::Index: |
14171 | #if CPU(X86) || CPU(X86_64) |
14172 | if (!args[0].tmp().isGP()) |
14173 | OPGEN_RETURN(false); |
14174 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
14175 | OPGEN_RETURN(false); |
14176 | OPGEN_RETURN(true); |
14177 | #endif |
14178 | break; |
14179 | break; |
14180 | default: |
14181 | break; |
14182 | } |
14183 | break; |
14184 | default: |
14185 | break; |
14186 | } |
14187 | break; |
14188 | default: |
14189 | break; |
14190 | } |
14191 | break; |
14192 | case Opcode::AtomicXchgAdd32: |
14193 | switch (this->args.size()) { |
14194 | case 2: |
14195 | switch (this->args[0].kind()) { |
14196 | case Arg::Tmp: |
14197 | switch (this->args[1].kind()) { |
14198 | case Arg::Addr: |
14199 | case Arg::Stack: |
14200 | case Arg::CallArg: |
14201 | #if CPU(X86) || CPU(X86_64) |
14202 | if (!args[0].tmp().isGP()) |
14203 | OPGEN_RETURN(false); |
14204 | if (!Arg::isValidAddrForm(args[1].offset())) |
14205 | OPGEN_RETURN(false); |
14206 | OPGEN_RETURN(true); |
14207 | #endif |
14208 | break; |
14209 | break; |
14210 | case Arg::Index: |
14211 | #if CPU(X86) || CPU(X86_64) |
14212 | if (!args[0].tmp().isGP()) |
14213 | OPGEN_RETURN(false); |
14214 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
14215 | OPGEN_RETURN(false); |
14216 | OPGEN_RETURN(true); |
14217 | #endif |
14218 | break; |
14219 | break; |
14220 | default: |
14221 | break; |
14222 | } |
14223 | break; |
14224 | default: |
14225 | break; |
14226 | } |
14227 | break; |
14228 | default: |
14229 | break; |
14230 | } |
14231 | break; |
14232 | case Opcode::AtomicXchgAdd64: |
14233 | switch (this->args.size()) { |
14234 | case 2: |
14235 | switch (this->args[0].kind()) { |
14236 | case Arg::Tmp: |
14237 | switch (this->args[1].kind()) { |
14238 | case Arg::Addr: |
14239 | case Arg::Stack: |
14240 | case Arg::CallArg: |
14241 | #if CPU(X86_64) |
14242 | if (!args[0].tmp().isGP()) |
14243 | OPGEN_RETURN(false); |
14244 | if (!Arg::isValidAddrForm(args[1].offset())) |
14245 | OPGEN_RETURN(false); |
14246 | OPGEN_RETURN(true); |
14247 | #endif |
14248 | break; |
14249 | break; |
14250 | case Arg::Index: |
14251 | #if CPU(X86_64) |
14252 | if (!args[0].tmp().isGP()) |
14253 | OPGEN_RETURN(false); |
14254 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
14255 | OPGEN_RETURN(false); |
14256 | OPGEN_RETURN(true); |
14257 | #endif |
14258 | break; |
14259 | break; |
14260 | default: |
14261 | break; |
14262 | } |
14263 | break; |
14264 | default: |
14265 | break; |
14266 | } |
14267 | break; |
14268 | default: |
14269 | break; |
14270 | } |
14271 | break; |
14272 | case Opcode::AtomicXchg8: |
14273 | switch (this->args.size()) { |
14274 | case 2: |
14275 | switch (this->args[0].kind()) { |
14276 | case Arg::Tmp: |
14277 | switch (this->args[1].kind()) { |
14278 | case Arg::Addr: |
14279 | case Arg::Stack: |
14280 | case Arg::CallArg: |
14281 | #if CPU(X86) || CPU(X86_64) |
14282 | if (!args[0].tmp().isGP()) |
14283 | OPGEN_RETURN(false); |
14284 | if (!Arg::isValidAddrForm(args[1].offset())) |
14285 | OPGEN_RETURN(false); |
14286 | OPGEN_RETURN(true); |
14287 | #endif |
14288 | break; |
14289 | break; |
14290 | case Arg::Index: |
14291 | #if CPU(X86) || CPU(X86_64) |
14292 | if (!args[0].tmp().isGP()) |
14293 | OPGEN_RETURN(false); |
14294 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
14295 | OPGEN_RETURN(false); |
14296 | OPGEN_RETURN(true); |
14297 | #endif |
14298 | break; |
14299 | break; |
14300 | default: |
14301 | break; |
14302 | } |
14303 | break; |
14304 | default: |
14305 | break; |
14306 | } |
14307 | break; |
14308 | default: |
14309 | break; |
14310 | } |
14311 | break; |
14312 | case Opcode::AtomicXchg16: |
14313 | switch (this->args.size()) { |
14314 | case 2: |
14315 | switch (this->args[0].kind()) { |
14316 | case Arg::Tmp: |
14317 | switch (this->args[1].kind()) { |
14318 | case Arg::Addr: |
14319 | case Arg::Stack: |
14320 | case Arg::CallArg: |
14321 | #if CPU(X86) || CPU(X86_64) |
14322 | if (!args[0].tmp().isGP()) |
14323 | OPGEN_RETURN(false); |
14324 | if (!Arg::isValidAddrForm(args[1].offset())) |
14325 | OPGEN_RETURN(false); |
14326 | OPGEN_RETURN(true); |
14327 | #endif |
14328 | break; |
14329 | break; |
14330 | case Arg::Index: |
14331 | #if CPU(X86) || CPU(X86_64) |
14332 | if (!args[0].tmp().isGP()) |
14333 | OPGEN_RETURN(false); |
14334 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width16)) |
14335 | OPGEN_RETURN(false); |
14336 | OPGEN_RETURN(true); |
14337 | #endif |
14338 | break; |
14339 | break; |
14340 | default: |
14341 | break; |
14342 | } |
14343 | break; |
14344 | default: |
14345 | break; |
14346 | } |
14347 | break; |
14348 | default: |
14349 | break; |
14350 | } |
14351 | break; |
14352 | case Opcode::AtomicXchg32: |
14353 | switch (this->args.size()) { |
14354 | case 2: |
14355 | switch (this->args[0].kind()) { |
14356 | case Arg::Tmp: |
14357 | switch (this->args[1].kind()) { |
14358 | case Arg::Addr: |
14359 | case Arg::Stack: |
14360 | case Arg::CallArg: |
14361 | #if CPU(X86) || CPU(X86_64) |
14362 | if (!args[0].tmp().isGP()) |
14363 | OPGEN_RETURN(false); |
14364 | if (!Arg::isValidAddrForm(args[1].offset())) |
14365 | OPGEN_RETURN(false); |
14366 | OPGEN_RETURN(true); |
14367 | #endif |
14368 | break; |
14369 | break; |
14370 | case Arg::Index: |
14371 | #if CPU(X86) || CPU(X86_64) |
14372 | if (!args[0].tmp().isGP()) |
14373 | OPGEN_RETURN(false); |
14374 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
14375 | OPGEN_RETURN(false); |
14376 | OPGEN_RETURN(true); |
14377 | #endif |
14378 | break; |
14379 | break; |
14380 | default: |
14381 | break; |
14382 | } |
14383 | break; |
14384 | default: |
14385 | break; |
14386 | } |
14387 | break; |
14388 | default: |
14389 | break; |
14390 | } |
14391 | break; |
14392 | case Opcode::AtomicXchg64: |
14393 | switch (this->args.size()) { |
14394 | case 2: |
14395 | switch (this->args[0].kind()) { |
14396 | case Arg::Tmp: |
14397 | switch (this->args[1].kind()) { |
14398 | case Arg::Addr: |
14399 | case Arg::Stack: |
14400 | case Arg::CallArg: |
14401 | #if CPU(X86_64) |
14402 | if (!args[0].tmp().isGP()) |
14403 | OPGEN_RETURN(false); |
14404 | if (!Arg::isValidAddrForm(args[1].offset())) |
14405 | OPGEN_RETURN(false); |
14406 | OPGEN_RETURN(true); |
14407 | #endif |
14408 | break; |
14409 | break; |
14410 | case Arg::Index: |
14411 | #if CPU(X86_64) |
14412 | if (!args[0].tmp().isGP()) |
14413 | OPGEN_RETURN(false); |
14414 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
14415 | OPGEN_RETURN(false); |
14416 | OPGEN_RETURN(true); |
14417 | #endif |
14418 | break; |
14419 | break; |
14420 | default: |
14421 | break; |
14422 | } |
14423 | break; |
14424 | default: |
14425 | break; |
14426 | } |
14427 | break; |
14428 | default: |
14429 | break; |
14430 | } |
14431 | break; |
14432 | case Opcode::LoadLink8: |
14433 | switch (this->args.size()) { |
14434 | case 2: |
14435 | switch (this->args[0].kind()) { |
14436 | case Arg::SimpleAddr: |
14437 | switch (this->args[1].kind()) { |
14438 | case Arg::Tmp: |
14439 | #if CPU(ARM64) |
14440 | if (!args[0].ptr().isGP()) |
14441 | OPGEN_RETURN(false); |
14442 | if (!args[1].tmp().isGP()) |
14443 | OPGEN_RETURN(false); |
14444 | OPGEN_RETURN(true); |
14445 | #endif |
14446 | break; |
14447 | break; |
14448 | default: |
14449 | break; |
14450 | } |
14451 | break; |
14452 | default: |
14453 | break; |
14454 | } |
14455 | break; |
14456 | default: |
14457 | break; |
14458 | } |
14459 | break; |
14460 | case Opcode::LoadLinkAcq8: |
14461 | switch (this->args.size()) { |
14462 | case 2: |
14463 | switch (this->args[0].kind()) { |
14464 | case Arg::SimpleAddr: |
14465 | switch (this->args[1].kind()) { |
14466 | case Arg::Tmp: |
14467 | #if CPU(ARM64) |
14468 | if (!args[0].ptr().isGP()) |
14469 | OPGEN_RETURN(false); |
14470 | if (!args[1].tmp().isGP()) |
14471 | OPGEN_RETURN(false); |
14472 | OPGEN_RETURN(true); |
14473 | #endif |
14474 | break; |
14475 | break; |
14476 | default: |
14477 | break; |
14478 | } |
14479 | break; |
14480 | default: |
14481 | break; |
14482 | } |
14483 | break; |
14484 | default: |
14485 | break; |
14486 | } |
14487 | break; |
14488 | case Opcode::StoreCond8: |
14489 | switch (this->args.size()) { |
14490 | case 3: |
14491 | switch (this->args[0].kind()) { |
14492 | case Arg::Tmp: |
14493 | switch (this->args[1].kind()) { |
14494 | case Arg::SimpleAddr: |
14495 | switch (this->args[2].kind()) { |
14496 | case Arg::Tmp: |
14497 | #if CPU(ARM64) |
14498 | if (!args[0].tmp().isGP()) |
14499 | OPGEN_RETURN(false); |
14500 | if (!args[1].ptr().isGP()) |
14501 | OPGEN_RETURN(false); |
14502 | if (!args[2].tmp().isGP()) |
14503 | OPGEN_RETURN(false); |
14504 | OPGEN_RETURN(true); |
14505 | #endif |
14506 | break; |
14507 | break; |
14508 | default: |
14509 | break; |
14510 | } |
14511 | break; |
14512 | default: |
14513 | break; |
14514 | } |
14515 | break; |
14516 | default: |
14517 | break; |
14518 | } |
14519 | break; |
14520 | default: |
14521 | break; |
14522 | } |
14523 | break; |
14524 | case Opcode::StoreCondRel8: |
14525 | switch (this->args.size()) { |
14526 | case 3: |
14527 | switch (this->args[0].kind()) { |
14528 | case Arg::Tmp: |
14529 | switch (this->args[1].kind()) { |
14530 | case Arg::SimpleAddr: |
14531 | switch (this->args[2].kind()) { |
14532 | case Arg::Tmp: |
14533 | #if CPU(ARM64) |
14534 | if (!args[0].tmp().isGP()) |
14535 | OPGEN_RETURN(false); |
14536 | if (!args[1].ptr().isGP()) |
14537 | OPGEN_RETURN(false); |
14538 | if (!args[2].tmp().isGP()) |
14539 | OPGEN_RETURN(false); |
14540 | OPGEN_RETURN(true); |
14541 | #endif |
14542 | break; |
14543 | break; |
14544 | default: |
14545 | break; |
14546 | } |
14547 | break; |
14548 | default: |
14549 | break; |
14550 | } |
14551 | break; |
14552 | default: |
14553 | break; |
14554 | } |
14555 | break; |
14556 | default: |
14557 | break; |
14558 | } |
14559 | break; |
14560 | case Opcode::LoadLink16: |
14561 | switch (this->args.size()) { |
14562 | case 2: |
14563 | switch (this->args[0].kind()) { |
14564 | case Arg::SimpleAddr: |
14565 | switch (this->args[1].kind()) { |
14566 | case Arg::Tmp: |
14567 | #if CPU(ARM64) |
14568 | if (!args[0].ptr().isGP()) |
14569 | OPGEN_RETURN(false); |
14570 | if (!args[1].tmp().isGP()) |
14571 | OPGEN_RETURN(false); |
14572 | OPGEN_RETURN(true); |
14573 | #endif |
14574 | break; |
14575 | break; |
14576 | default: |
14577 | break; |
14578 | } |
14579 | break; |
14580 | default: |
14581 | break; |
14582 | } |
14583 | break; |
14584 | default: |
14585 | break; |
14586 | } |
14587 | break; |
14588 | case Opcode::LoadLinkAcq16: |
14589 | switch (this->args.size()) { |
14590 | case 2: |
14591 | switch (this->args[0].kind()) { |
14592 | case Arg::SimpleAddr: |
14593 | switch (this->args[1].kind()) { |
14594 | case Arg::Tmp: |
14595 | #if CPU(ARM64) |
14596 | if (!args[0].ptr().isGP()) |
14597 | OPGEN_RETURN(false); |
14598 | if (!args[1].tmp().isGP()) |
14599 | OPGEN_RETURN(false); |
14600 | OPGEN_RETURN(true); |
14601 | #endif |
14602 | break; |
14603 | break; |
14604 | default: |
14605 | break; |
14606 | } |
14607 | break; |
14608 | default: |
14609 | break; |
14610 | } |
14611 | break; |
14612 | default: |
14613 | break; |
14614 | } |
14615 | break; |
14616 | case Opcode::StoreCond16: |
14617 | switch (this->args.size()) { |
14618 | case 3: |
14619 | switch (this->args[0].kind()) { |
14620 | case Arg::Tmp: |
14621 | switch (this->args[1].kind()) { |
14622 | case Arg::SimpleAddr: |
14623 | switch (this->args[2].kind()) { |
14624 | case Arg::Tmp: |
14625 | #if CPU(ARM64) |
14626 | if (!args[0].tmp().isGP()) |
14627 | OPGEN_RETURN(false); |
14628 | if (!args[1].ptr().isGP()) |
14629 | OPGEN_RETURN(false); |
14630 | if (!args[2].tmp().isGP()) |
14631 | OPGEN_RETURN(false); |
14632 | OPGEN_RETURN(true); |
14633 | #endif |
14634 | break; |
14635 | break; |
14636 | default: |
14637 | break; |
14638 | } |
14639 | break; |
14640 | default: |
14641 | break; |
14642 | } |
14643 | break; |
14644 | default: |
14645 | break; |
14646 | } |
14647 | break; |
14648 | default: |
14649 | break; |
14650 | } |
14651 | break; |
14652 | case Opcode::StoreCondRel16: |
14653 | switch (this->args.size()) { |
14654 | case 3: |
14655 | switch (this->args[0].kind()) { |
14656 | case Arg::Tmp: |
14657 | switch (this->args[1].kind()) { |
14658 | case Arg::SimpleAddr: |
14659 | switch (this->args[2].kind()) { |
14660 | case Arg::Tmp: |
14661 | #if CPU(ARM64) |
14662 | if (!args[0].tmp().isGP()) |
14663 | OPGEN_RETURN(false); |
14664 | if (!args[1].ptr().isGP()) |
14665 | OPGEN_RETURN(false); |
14666 | if (!args[2].tmp().isGP()) |
14667 | OPGEN_RETURN(false); |
14668 | OPGEN_RETURN(true); |
14669 | #endif |
14670 | break; |
14671 | break; |
14672 | default: |
14673 | break; |
14674 | } |
14675 | break; |
14676 | default: |
14677 | break; |
14678 | } |
14679 | break; |
14680 | default: |
14681 | break; |
14682 | } |
14683 | break; |
14684 | default: |
14685 | break; |
14686 | } |
14687 | break; |
14688 | case Opcode::LoadLink32: |
14689 | switch (this->args.size()) { |
14690 | case 2: |
14691 | switch (this->args[0].kind()) { |
14692 | case Arg::SimpleAddr: |
14693 | switch (this->args[1].kind()) { |
14694 | case Arg::Tmp: |
14695 | #if CPU(ARM64) |
14696 | if (!args[0].ptr().isGP()) |
14697 | OPGEN_RETURN(false); |
14698 | if (!args[1].tmp().isGP()) |
14699 | OPGEN_RETURN(false); |
14700 | OPGEN_RETURN(true); |
14701 | #endif |
14702 | break; |
14703 | break; |
14704 | default: |
14705 | break; |
14706 | } |
14707 | break; |
14708 | default: |
14709 | break; |
14710 | } |
14711 | break; |
14712 | default: |
14713 | break; |
14714 | } |
14715 | break; |
14716 | case Opcode::LoadLinkAcq32: |
14717 | switch (this->args.size()) { |
14718 | case 2: |
14719 | switch (this->args[0].kind()) { |
14720 | case Arg::SimpleAddr: |
14721 | switch (this->args[1].kind()) { |
14722 | case Arg::Tmp: |
14723 | #if CPU(ARM64) |
14724 | if (!args[0].ptr().isGP()) |
14725 | OPGEN_RETURN(false); |
14726 | if (!args[1].tmp().isGP()) |
14727 | OPGEN_RETURN(false); |
14728 | OPGEN_RETURN(true); |
14729 | #endif |
14730 | break; |
14731 | break; |
14732 | default: |
14733 | break; |
14734 | } |
14735 | break; |
14736 | default: |
14737 | break; |
14738 | } |
14739 | break; |
14740 | default: |
14741 | break; |
14742 | } |
14743 | break; |
14744 | case Opcode::StoreCond32: |
14745 | switch (this->args.size()) { |
14746 | case 3: |
14747 | switch (this->args[0].kind()) { |
14748 | case Arg::Tmp: |
14749 | switch (this->args[1].kind()) { |
14750 | case Arg::SimpleAddr: |
14751 | switch (this->args[2].kind()) { |
14752 | case Arg::Tmp: |
14753 | #if CPU(ARM64) |
14754 | if (!args[0].tmp().isGP()) |
14755 | OPGEN_RETURN(false); |
14756 | if (!args[1].ptr().isGP()) |
14757 | OPGEN_RETURN(false); |
14758 | if (!args[2].tmp().isGP()) |
14759 | OPGEN_RETURN(false); |
14760 | OPGEN_RETURN(true); |
14761 | #endif |
14762 | break; |
14763 | break; |
14764 | default: |
14765 | break; |
14766 | } |
14767 | break; |
14768 | default: |
14769 | break; |
14770 | } |
14771 | break; |
14772 | default: |
14773 | break; |
14774 | } |
14775 | break; |
14776 | default: |
14777 | break; |
14778 | } |
14779 | break; |
14780 | case Opcode::StoreCondRel32: |
14781 | switch (this->args.size()) { |
14782 | case 3: |
14783 | switch (this->args[0].kind()) { |
14784 | case Arg::Tmp: |
14785 | switch (this->args[1].kind()) { |
14786 | case Arg::SimpleAddr: |
14787 | switch (this->args[2].kind()) { |
14788 | case Arg::Tmp: |
14789 | #if CPU(ARM64) |
14790 | if (!args[0].tmp().isGP()) |
14791 | OPGEN_RETURN(false); |
14792 | if (!args[1].ptr().isGP()) |
14793 | OPGEN_RETURN(false); |
14794 | if (!args[2].tmp().isGP()) |
14795 | OPGEN_RETURN(false); |
14796 | OPGEN_RETURN(true); |
14797 | #endif |
14798 | break; |
14799 | break; |
14800 | default: |
14801 | break; |
14802 | } |
14803 | break; |
14804 | default: |
14805 | break; |
14806 | } |
14807 | break; |
14808 | default: |
14809 | break; |
14810 | } |
14811 | break; |
14812 | default: |
14813 | break; |
14814 | } |
14815 | break; |
14816 | case Opcode::LoadLink64: |
14817 | switch (this->args.size()) { |
14818 | case 2: |
14819 | switch (this->args[0].kind()) { |
14820 | case Arg::SimpleAddr: |
14821 | switch (this->args[1].kind()) { |
14822 | case Arg::Tmp: |
14823 | #if CPU(ARM64) |
14824 | if (!args[0].ptr().isGP()) |
14825 | OPGEN_RETURN(false); |
14826 | if (!args[1].tmp().isGP()) |
14827 | OPGEN_RETURN(false); |
14828 | OPGEN_RETURN(true); |
14829 | #endif |
14830 | break; |
14831 | break; |
14832 | default: |
14833 | break; |
14834 | } |
14835 | break; |
14836 | default: |
14837 | break; |
14838 | } |
14839 | break; |
14840 | default: |
14841 | break; |
14842 | } |
14843 | break; |
14844 | case Opcode::LoadLinkAcq64: |
14845 | switch (this->args.size()) { |
14846 | case 2: |
14847 | switch (this->args[0].kind()) { |
14848 | case Arg::SimpleAddr: |
14849 | switch (this->args[1].kind()) { |
14850 | case Arg::Tmp: |
14851 | #if CPU(ARM64) |
14852 | if (!args[0].ptr().isGP()) |
14853 | OPGEN_RETURN(false); |
14854 | if (!args[1].tmp().isGP()) |
14855 | OPGEN_RETURN(false); |
14856 | OPGEN_RETURN(true); |
14857 | #endif |
14858 | break; |
14859 | break; |
14860 | default: |
14861 | break; |
14862 | } |
14863 | break; |
14864 | default: |
14865 | break; |
14866 | } |
14867 | break; |
14868 | default: |
14869 | break; |
14870 | } |
14871 | break; |
14872 | case Opcode::StoreCond64: |
14873 | switch (this->args.size()) { |
14874 | case 3: |
14875 | switch (this->args[0].kind()) { |
14876 | case Arg::Tmp: |
14877 | switch (this->args[1].kind()) { |
14878 | case Arg::SimpleAddr: |
14879 | switch (this->args[2].kind()) { |
14880 | case Arg::Tmp: |
14881 | #if CPU(ARM64) |
14882 | if (!args[0].tmp().isGP()) |
14883 | OPGEN_RETURN(false); |
14884 | if (!args[1].ptr().isGP()) |
14885 | OPGEN_RETURN(false); |
14886 | if (!args[2].tmp().isGP()) |
14887 | OPGEN_RETURN(false); |
14888 | OPGEN_RETURN(true); |
14889 | #endif |
14890 | break; |
14891 | break; |
14892 | default: |
14893 | break; |
14894 | } |
14895 | break; |
14896 | default: |
14897 | break; |
14898 | } |
14899 | break; |
14900 | default: |
14901 | break; |
14902 | } |
14903 | break; |
14904 | default: |
14905 | break; |
14906 | } |
14907 | break; |
14908 | case Opcode::StoreCondRel64: |
14909 | switch (this->args.size()) { |
14910 | case 3: |
14911 | switch (this->args[0].kind()) { |
14912 | case Arg::Tmp: |
14913 | switch (this->args[1].kind()) { |
14914 | case Arg::SimpleAddr: |
14915 | switch (this->args[2].kind()) { |
14916 | case Arg::Tmp: |
14917 | #if CPU(ARM64) |
14918 | if (!args[0].tmp().isGP()) |
14919 | OPGEN_RETURN(false); |
14920 | if (!args[1].ptr().isGP()) |
14921 | OPGEN_RETURN(false); |
14922 | if (!args[2].tmp().isGP()) |
14923 | OPGEN_RETURN(false); |
14924 | OPGEN_RETURN(true); |
14925 | #endif |
14926 | break; |
14927 | break; |
14928 | default: |
14929 | break; |
14930 | } |
14931 | break; |
14932 | default: |
14933 | break; |
14934 | } |
14935 | break; |
14936 | default: |
14937 | break; |
14938 | } |
14939 | break; |
14940 | default: |
14941 | break; |
14942 | } |
14943 | break; |
14944 | case Opcode::Depend32: |
14945 | switch (this->args.size()) { |
14946 | case 2: |
14947 | switch (this->args[0].kind()) { |
14948 | case Arg::Tmp: |
14949 | switch (this->args[1].kind()) { |
14950 | case Arg::Tmp: |
14951 | #if CPU(ARM64) |
14952 | if (!args[0].tmp().isGP()) |
14953 | OPGEN_RETURN(false); |
14954 | if (!args[1].tmp().isGP()) |
14955 | OPGEN_RETURN(false); |
14956 | OPGEN_RETURN(true); |
14957 | #endif |
14958 | break; |
14959 | break; |
14960 | default: |
14961 | break; |
14962 | } |
14963 | break; |
14964 | default: |
14965 | break; |
14966 | } |
14967 | break; |
14968 | default: |
14969 | break; |
14970 | } |
14971 | break; |
14972 | case Opcode::Depend64: |
14973 | switch (this->args.size()) { |
14974 | case 2: |
14975 | switch (this->args[0].kind()) { |
14976 | case Arg::Tmp: |
14977 | switch (this->args[1].kind()) { |
14978 | case Arg::Tmp: |
14979 | #if CPU(ARM64) |
14980 | if (!args[0].tmp().isGP()) |
14981 | OPGEN_RETURN(false); |
14982 | if (!args[1].tmp().isGP()) |
14983 | OPGEN_RETURN(false); |
14984 | OPGEN_RETURN(true); |
14985 | #endif |
14986 | break; |
14987 | break; |
14988 | default: |
14989 | break; |
14990 | } |
14991 | break; |
14992 | default: |
14993 | break; |
14994 | } |
14995 | break; |
14996 | default: |
14997 | break; |
14998 | } |
14999 | break; |
15000 | case Opcode::Compare32: |
15001 | switch (this->args.size()) { |
15002 | case 4: |
15003 | switch (this->args[0].kind()) { |
15004 | case Arg::RelCond: |
15005 | switch (this->args[1].kind()) { |
15006 | case Arg::Tmp: |
15007 | switch (this->args[2].kind()) { |
15008 | case Arg::Tmp: |
15009 | switch (this->args[3].kind()) { |
15010 | case Arg::Tmp: |
15011 | if (!args[1].tmp().isGP()) |
15012 | OPGEN_RETURN(false); |
15013 | if (!args[2].tmp().isGP()) |
15014 | OPGEN_RETURN(false); |
15015 | if (!args[3].tmp().isGP()) |
15016 | OPGEN_RETURN(false); |
15017 | OPGEN_RETURN(true); |
15018 | break; |
15019 | break; |
15020 | default: |
15021 | break; |
15022 | } |
15023 | break; |
15024 | case Arg::Imm: |
15025 | switch (this->args[3].kind()) { |
15026 | case Arg::Tmp: |
15027 | if (!args[1].tmp().isGP()) |
15028 | OPGEN_RETURN(false); |
15029 | if (!Arg::isValidImmForm(args[2].value())) |
15030 | OPGEN_RETURN(false); |
15031 | if (!args[3].tmp().isGP()) |
15032 | OPGEN_RETURN(false); |
15033 | OPGEN_RETURN(true); |
15034 | break; |
15035 | break; |
15036 | default: |
15037 | break; |
15038 | } |
15039 | break; |
15040 | default: |
15041 | break; |
15042 | } |
15043 | break; |
15044 | default: |
15045 | break; |
15046 | } |
15047 | break; |
15048 | default: |
15049 | break; |
15050 | } |
15051 | break; |
15052 | default: |
15053 | break; |
15054 | } |
15055 | break; |
15056 | case Opcode::Compare64: |
15057 | switch (this->args.size()) { |
15058 | case 4: |
15059 | switch (this->args[0].kind()) { |
15060 | case Arg::RelCond: |
15061 | switch (this->args[1].kind()) { |
15062 | case Arg::Tmp: |
15063 | switch (this->args[2].kind()) { |
15064 | case Arg::Tmp: |
15065 | switch (this->args[3].kind()) { |
15066 | case Arg::Tmp: |
15067 | #if CPU(X86_64) || CPU(ARM64) |
15068 | if (!args[1].tmp().isGP()) |
15069 | OPGEN_RETURN(false); |
15070 | if (!args[2].tmp().isGP()) |
15071 | OPGEN_RETURN(false); |
15072 | if (!args[3].tmp().isGP()) |
15073 | OPGEN_RETURN(false); |
15074 | OPGEN_RETURN(true); |
15075 | #endif |
15076 | break; |
15077 | break; |
15078 | default: |
15079 | break; |
15080 | } |
15081 | break; |
15082 | case Arg::Imm: |
15083 | switch (this->args[3].kind()) { |
15084 | case Arg::Tmp: |
15085 | #if CPU(X86_64) |
15086 | if (!args[1].tmp().isGP()) |
15087 | OPGEN_RETURN(false); |
15088 | if (!Arg::isValidImmForm(args[2].value())) |
15089 | OPGEN_RETURN(false); |
15090 | if (!args[3].tmp().isGP()) |
15091 | OPGEN_RETURN(false); |
15092 | OPGEN_RETURN(true); |
15093 | #endif |
15094 | break; |
15095 | break; |
15096 | default: |
15097 | break; |
15098 | } |
15099 | break; |
15100 | default: |
15101 | break; |
15102 | } |
15103 | break; |
15104 | default: |
15105 | break; |
15106 | } |
15107 | break; |
15108 | default: |
15109 | break; |
15110 | } |
15111 | break; |
15112 | default: |
15113 | break; |
15114 | } |
15115 | break; |
15116 | case Opcode::Test32: |
15117 | switch (this->args.size()) { |
15118 | case 4: |
15119 | switch (this->args[0].kind()) { |
15120 | case Arg::ResCond: |
15121 | switch (this->args[1].kind()) { |
15122 | case Arg::Addr: |
15123 | case Arg::Stack: |
15124 | case Arg::CallArg: |
15125 | switch (this->args[2].kind()) { |
15126 | case Arg::Imm: |
15127 | switch (this->args[3].kind()) { |
15128 | case Arg::Tmp: |
15129 | #if CPU(X86) || CPU(X86_64) |
15130 | if (!Arg::isValidAddrForm(args[1].offset())) |
15131 | OPGEN_RETURN(false); |
15132 | if (!Arg::isValidImmForm(args[2].value())) |
15133 | OPGEN_RETURN(false); |
15134 | if (!args[3].tmp().isGP()) |
15135 | OPGEN_RETURN(false); |
15136 | OPGEN_RETURN(true); |
15137 | #endif |
15138 | break; |
15139 | break; |
15140 | default: |
15141 | break; |
15142 | } |
15143 | break; |
15144 | default: |
15145 | break; |
15146 | } |
15147 | break; |
15148 | case Arg::Tmp: |
15149 | switch (this->args[2].kind()) { |
15150 | case Arg::Tmp: |
15151 | switch (this->args[3].kind()) { |
15152 | case Arg::Tmp: |
15153 | if (!args[1].tmp().isGP()) |
15154 | OPGEN_RETURN(false); |
15155 | if (!args[2].tmp().isGP()) |
15156 | OPGEN_RETURN(false); |
15157 | if (!args[3].tmp().isGP()) |
15158 | OPGEN_RETURN(false); |
15159 | OPGEN_RETURN(true); |
15160 | break; |
15161 | break; |
15162 | default: |
15163 | break; |
15164 | } |
15165 | break; |
15166 | case Arg::BitImm: |
15167 | switch (this->args[3].kind()) { |
15168 | case Arg::Tmp: |
15169 | if (!args[1].tmp().isGP()) |
15170 | OPGEN_RETURN(false); |
15171 | if (!Arg::isValidBitImmForm(args[2].value())) |
15172 | OPGEN_RETURN(false); |
15173 | if (!args[3].tmp().isGP()) |
15174 | OPGEN_RETURN(false); |
15175 | OPGEN_RETURN(true); |
15176 | break; |
15177 | break; |
15178 | default: |
15179 | break; |
15180 | } |
15181 | break; |
15182 | default: |
15183 | break; |
15184 | } |
15185 | break; |
15186 | default: |
15187 | break; |
15188 | } |
15189 | break; |
15190 | default: |
15191 | break; |
15192 | } |
15193 | break; |
15194 | default: |
15195 | break; |
15196 | } |
15197 | break; |
15198 | case Opcode::Test64: |
15199 | switch (this->args.size()) { |
15200 | case 4: |
15201 | switch (this->args[0].kind()) { |
15202 | case Arg::ResCond: |
15203 | switch (this->args[1].kind()) { |
15204 | case Arg::Tmp: |
15205 | switch (this->args[2].kind()) { |
15206 | case Arg::Imm: |
15207 | switch (this->args[3].kind()) { |
15208 | case Arg::Tmp: |
15209 | #if CPU(X86_64) |
15210 | if (!args[1].tmp().isGP()) |
15211 | OPGEN_RETURN(false); |
15212 | if (!Arg::isValidImmForm(args[2].value())) |
15213 | OPGEN_RETURN(false); |
15214 | if (!args[3].tmp().isGP()) |
15215 | OPGEN_RETURN(false); |
15216 | OPGEN_RETURN(true); |
15217 | #endif |
15218 | break; |
15219 | break; |
15220 | default: |
15221 | break; |
15222 | } |
15223 | break; |
15224 | case Arg::Tmp: |
15225 | switch (this->args[3].kind()) { |
15226 | case Arg::Tmp: |
15227 | #if CPU(X86_64) || CPU(ARM64) |
15228 | if (!args[1].tmp().isGP()) |
15229 | OPGEN_RETURN(false); |
15230 | if (!args[2].tmp().isGP()) |
15231 | OPGEN_RETURN(false); |
15232 | if (!args[3].tmp().isGP()) |
15233 | OPGEN_RETURN(false); |
15234 | OPGEN_RETURN(true); |
15235 | #endif |
15236 | break; |
15237 | break; |
15238 | default: |
15239 | break; |
15240 | } |
15241 | break; |
15242 | default: |
15243 | break; |
15244 | } |
15245 | break; |
15246 | default: |
15247 | break; |
15248 | } |
15249 | break; |
15250 | default: |
15251 | break; |
15252 | } |
15253 | break; |
15254 | default: |
15255 | break; |
15256 | } |
15257 | break; |
15258 | case Opcode::CompareDouble: |
15259 | switch (this->args.size()) { |
15260 | case 4: |
15261 | switch (this->args[0].kind()) { |
15262 | case Arg::DoubleCond: |
15263 | switch (this->args[1].kind()) { |
15264 | case Arg::Tmp: |
15265 | switch (this->args[2].kind()) { |
15266 | case Arg::Tmp: |
15267 | switch (this->args[3].kind()) { |
15268 | case Arg::Tmp: |
15269 | if (!args[1].tmp().isFP()) |
15270 | OPGEN_RETURN(false); |
15271 | if (!args[2].tmp().isFP()) |
15272 | OPGEN_RETURN(false); |
15273 | if (!args[3].tmp().isGP()) |
15274 | OPGEN_RETURN(false); |
15275 | OPGEN_RETURN(true); |
15276 | break; |
15277 | break; |
15278 | default: |
15279 | break; |
15280 | } |
15281 | break; |
15282 | default: |
15283 | break; |
15284 | } |
15285 | break; |
15286 | default: |
15287 | break; |
15288 | } |
15289 | break; |
15290 | default: |
15291 | break; |
15292 | } |
15293 | break; |
15294 | default: |
15295 | break; |
15296 | } |
15297 | break; |
15298 | case Opcode::CompareFloat: |
15299 | switch (this->args.size()) { |
15300 | case 4: |
15301 | switch (this->args[0].kind()) { |
15302 | case Arg::DoubleCond: |
15303 | switch (this->args[1].kind()) { |
15304 | case Arg::Tmp: |
15305 | switch (this->args[2].kind()) { |
15306 | case Arg::Tmp: |
15307 | switch (this->args[3].kind()) { |
15308 | case Arg::Tmp: |
15309 | if (!args[1].tmp().isFP()) |
15310 | OPGEN_RETURN(false); |
15311 | if (!args[2].tmp().isFP()) |
15312 | OPGEN_RETURN(false); |
15313 | if (!args[3].tmp().isGP()) |
15314 | OPGEN_RETURN(false); |
15315 | OPGEN_RETURN(true); |
15316 | break; |
15317 | break; |
15318 | default: |
15319 | break; |
15320 | } |
15321 | break; |
15322 | default: |
15323 | break; |
15324 | } |
15325 | break; |
15326 | default: |
15327 | break; |
15328 | } |
15329 | break; |
15330 | default: |
15331 | break; |
15332 | } |
15333 | break; |
15334 | default: |
15335 | break; |
15336 | } |
15337 | break; |
15338 | case Opcode::Branch8: |
15339 | switch (this->args.size()) { |
15340 | case 3: |
15341 | switch (this->args[0].kind()) { |
15342 | case Arg::RelCond: |
15343 | switch (this->args[1].kind()) { |
15344 | case Arg::Addr: |
15345 | case Arg::Stack: |
15346 | case Arg::CallArg: |
15347 | switch (this->args[2].kind()) { |
15348 | case Arg::Imm: |
15349 | #if CPU(X86) || CPU(X86_64) |
15350 | if (!Arg::isValidAddrForm(args[1].offset())) |
15351 | OPGEN_RETURN(false); |
15352 | if (!Arg::isValidImmForm(args[2].value())) |
15353 | OPGEN_RETURN(false); |
15354 | OPGEN_RETURN(true); |
15355 | #endif |
15356 | break; |
15357 | break; |
15358 | default: |
15359 | break; |
15360 | } |
15361 | break; |
15362 | case Arg::Index: |
15363 | switch (this->args[2].kind()) { |
15364 | case Arg::Imm: |
15365 | #if CPU(X86) || CPU(X86_64) |
15366 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
15367 | OPGEN_RETURN(false); |
15368 | if (!Arg::isValidImmForm(args[2].value())) |
15369 | OPGEN_RETURN(false); |
15370 | OPGEN_RETURN(true); |
15371 | #endif |
15372 | break; |
15373 | break; |
15374 | default: |
15375 | break; |
15376 | } |
15377 | break; |
15378 | default: |
15379 | break; |
15380 | } |
15381 | break; |
15382 | default: |
15383 | break; |
15384 | } |
15385 | break; |
15386 | default: |
15387 | break; |
15388 | } |
15389 | break; |
15390 | case Opcode::Branch32: |
15391 | switch (this->args.size()) { |
15392 | case 3: |
15393 | switch (this->args[0].kind()) { |
15394 | case Arg::RelCond: |
15395 | switch (this->args[1].kind()) { |
15396 | case Arg::Addr: |
15397 | case Arg::Stack: |
15398 | case Arg::CallArg: |
15399 | switch (this->args[2].kind()) { |
15400 | case Arg::Imm: |
15401 | #if CPU(X86) || CPU(X86_64) |
15402 | if (!Arg::isValidAddrForm(args[1].offset())) |
15403 | OPGEN_RETURN(false); |
15404 | if (!Arg::isValidImmForm(args[2].value())) |
15405 | OPGEN_RETURN(false); |
15406 | OPGEN_RETURN(true); |
15407 | #endif |
15408 | break; |
15409 | break; |
15410 | case Arg::Tmp: |
15411 | #if CPU(X86) || CPU(X86_64) |
15412 | if (!Arg::isValidAddrForm(args[1].offset())) |
15413 | OPGEN_RETURN(false); |
15414 | if (!args[2].tmp().isGP()) |
15415 | OPGEN_RETURN(false); |
15416 | OPGEN_RETURN(true); |
15417 | #endif |
15418 | break; |
15419 | break; |
15420 | default: |
15421 | break; |
15422 | } |
15423 | break; |
15424 | case Arg::Tmp: |
15425 | switch (this->args[2].kind()) { |
15426 | case Arg::Tmp: |
15427 | if (!args[1].tmp().isGP()) |
15428 | OPGEN_RETURN(false); |
15429 | if (!args[2].tmp().isGP()) |
15430 | OPGEN_RETURN(false); |
15431 | OPGEN_RETURN(true); |
15432 | break; |
15433 | break; |
15434 | case Arg::Imm: |
15435 | if (!args[1].tmp().isGP()) |
15436 | OPGEN_RETURN(false); |
15437 | if (!Arg::isValidImmForm(args[2].value())) |
15438 | OPGEN_RETURN(false); |
15439 | OPGEN_RETURN(true); |
15440 | break; |
15441 | break; |
15442 | case Arg::Addr: |
15443 | case Arg::Stack: |
15444 | case Arg::CallArg: |
15445 | #if CPU(X86) || CPU(X86_64) |
15446 | if (!args[1].tmp().isGP()) |
15447 | OPGEN_RETURN(false); |
15448 | if (!Arg::isValidAddrForm(args[2].offset())) |
15449 | OPGEN_RETURN(false); |
15450 | OPGEN_RETURN(true); |
15451 | #endif |
15452 | break; |
15453 | break; |
15454 | default: |
15455 | break; |
15456 | } |
15457 | break; |
15458 | case Arg::Index: |
15459 | switch (this->args[2].kind()) { |
15460 | case Arg::Imm: |
15461 | #if CPU(X86) || CPU(X86_64) |
15462 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
15463 | OPGEN_RETURN(false); |
15464 | if (!Arg::isValidImmForm(args[2].value())) |
15465 | OPGEN_RETURN(false); |
15466 | OPGEN_RETURN(true); |
15467 | #endif |
15468 | break; |
15469 | break; |
15470 | default: |
15471 | break; |
15472 | } |
15473 | break; |
15474 | default: |
15475 | break; |
15476 | } |
15477 | break; |
15478 | default: |
15479 | break; |
15480 | } |
15481 | break; |
15482 | default: |
15483 | break; |
15484 | } |
15485 | break; |
15486 | case Opcode::Branch64: |
15487 | switch (this->args.size()) { |
15488 | case 3: |
15489 | switch (this->args[0].kind()) { |
15490 | case Arg::RelCond: |
15491 | switch (this->args[1].kind()) { |
15492 | case Arg::Tmp: |
15493 | switch (this->args[2].kind()) { |
15494 | case Arg::Tmp: |
15495 | #if CPU(X86_64) || CPU(ARM64) |
15496 | if (!args[1].tmp().isGP()) |
15497 | OPGEN_RETURN(false); |
15498 | if (!args[2].tmp().isGP()) |
15499 | OPGEN_RETURN(false); |
15500 | OPGEN_RETURN(true); |
15501 | #endif |
15502 | break; |
15503 | break; |
15504 | case Arg::Imm: |
15505 | #if CPU(X86_64) || CPU(ARM64) |
15506 | if (!args[1].tmp().isGP()) |
15507 | OPGEN_RETURN(false); |
15508 | if (!Arg::isValidImmForm(args[2].value())) |
15509 | OPGEN_RETURN(false); |
15510 | OPGEN_RETURN(true); |
15511 | #endif |
15512 | break; |
15513 | break; |
15514 | case Arg::Addr: |
15515 | case Arg::Stack: |
15516 | case Arg::CallArg: |
15517 | #if CPU(X86_64) |
15518 | if (!args[1].tmp().isGP()) |
15519 | OPGEN_RETURN(false); |
15520 | if (!Arg::isValidAddrForm(args[2].offset())) |
15521 | OPGEN_RETURN(false); |
15522 | OPGEN_RETURN(true); |
15523 | #endif |
15524 | break; |
15525 | break; |
15526 | default: |
15527 | break; |
15528 | } |
15529 | break; |
15530 | case Arg::Addr: |
15531 | case Arg::Stack: |
15532 | case Arg::CallArg: |
15533 | switch (this->args[2].kind()) { |
15534 | case Arg::Tmp: |
15535 | #if CPU(X86_64) |
15536 | if (!Arg::isValidAddrForm(args[1].offset())) |
15537 | OPGEN_RETURN(false); |
15538 | if (!args[2].tmp().isGP()) |
15539 | OPGEN_RETURN(false); |
15540 | OPGEN_RETURN(true); |
15541 | #endif |
15542 | break; |
15543 | break; |
15544 | case Arg::Imm: |
15545 | #if CPU(X86_64) |
15546 | if (!Arg::isValidAddrForm(args[1].offset())) |
15547 | OPGEN_RETURN(false); |
15548 | if (!Arg::isValidImmForm(args[2].value())) |
15549 | OPGEN_RETURN(false); |
15550 | OPGEN_RETURN(true); |
15551 | #endif |
15552 | break; |
15553 | break; |
15554 | default: |
15555 | break; |
15556 | } |
15557 | break; |
15558 | case Arg::Index: |
15559 | switch (this->args[2].kind()) { |
15560 | case Arg::Tmp: |
15561 | #if CPU(X86_64) |
15562 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
15563 | OPGEN_RETURN(false); |
15564 | if (!args[2].tmp().isGP()) |
15565 | OPGEN_RETURN(false); |
15566 | OPGEN_RETURN(true); |
15567 | #endif |
15568 | break; |
15569 | break; |
15570 | default: |
15571 | break; |
15572 | } |
15573 | break; |
15574 | default: |
15575 | break; |
15576 | } |
15577 | break; |
15578 | default: |
15579 | break; |
15580 | } |
15581 | break; |
15582 | default: |
15583 | break; |
15584 | } |
15585 | break; |
15586 | case Opcode::BranchTest8: |
15587 | switch (this->args.size()) { |
15588 | case 3: |
15589 | switch (this->args[0].kind()) { |
15590 | case Arg::ResCond: |
15591 | switch (this->args[1].kind()) { |
15592 | case Arg::Addr: |
15593 | case Arg::Stack: |
15594 | case Arg::CallArg: |
15595 | switch (this->args[2].kind()) { |
15596 | case Arg::BitImm: |
15597 | #if CPU(X86) || CPU(X86_64) |
15598 | if (!Arg::isValidAddrForm(args[1].offset())) |
15599 | OPGEN_RETURN(false); |
15600 | if (!Arg::isValidBitImmForm(args[2].value())) |
15601 | OPGEN_RETURN(false); |
15602 | OPGEN_RETURN(true); |
15603 | #endif |
15604 | break; |
15605 | break; |
15606 | default: |
15607 | break; |
15608 | } |
15609 | break; |
15610 | case Arg::Index: |
15611 | switch (this->args[2].kind()) { |
15612 | case Arg::BitImm: |
15613 | #if CPU(X86) || CPU(X86_64) |
15614 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width8)) |
15615 | OPGEN_RETURN(false); |
15616 | if (!Arg::isValidBitImmForm(args[2].value())) |
15617 | OPGEN_RETURN(false); |
15618 | OPGEN_RETURN(true); |
15619 | #endif |
15620 | break; |
15621 | break; |
15622 | default: |
15623 | break; |
15624 | } |
15625 | break; |
15626 | default: |
15627 | break; |
15628 | } |
15629 | break; |
15630 | default: |
15631 | break; |
15632 | } |
15633 | break; |
15634 | default: |
15635 | break; |
15636 | } |
15637 | break; |
15638 | case Opcode::BranchTest32: |
15639 | switch (this->args.size()) { |
15640 | case 3: |
15641 | switch (this->args[0].kind()) { |
15642 | case Arg::ResCond: |
15643 | switch (this->args[1].kind()) { |
15644 | case Arg::Tmp: |
15645 | switch (this->args[2].kind()) { |
15646 | case Arg::Tmp: |
15647 | if (!args[1].tmp().isGP()) |
15648 | OPGEN_RETURN(false); |
15649 | if (!args[2].tmp().isGP()) |
15650 | OPGEN_RETURN(false); |
15651 | OPGEN_RETURN(true); |
15652 | break; |
15653 | break; |
15654 | case Arg::BitImm: |
15655 | if (!args[1].tmp().isGP()) |
15656 | OPGEN_RETURN(false); |
15657 | if (!Arg::isValidBitImmForm(args[2].value())) |
15658 | OPGEN_RETURN(false); |
15659 | OPGEN_RETURN(true); |
15660 | break; |
15661 | break; |
15662 | default: |
15663 | break; |
15664 | } |
15665 | break; |
15666 | case Arg::Addr: |
15667 | case Arg::Stack: |
15668 | case Arg::CallArg: |
15669 | switch (this->args[2].kind()) { |
15670 | case Arg::BitImm: |
15671 | #if CPU(X86) || CPU(X86_64) |
15672 | if (!Arg::isValidAddrForm(args[1].offset())) |
15673 | OPGEN_RETURN(false); |
15674 | if (!Arg::isValidBitImmForm(args[2].value())) |
15675 | OPGEN_RETURN(false); |
15676 | OPGEN_RETURN(true); |
15677 | #endif |
15678 | break; |
15679 | break; |
15680 | default: |
15681 | break; |
15682 | } |
15683 | break; |
15684 | case Arg::Index: |
15685 | switch (this->args[2].kind()) { |
15686 | case Arg::BitImm: |
15687 | #if CPU(X86) || CPU(X86_64) |
15688 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
15689 | OPGEN_RETURN(false); |
15690 | if (!Arg::isValidBitImmForm(args[2].value())) |
15691 | OPGEN_RETURN(false); |
15692 | OPGEN_RETURN(true); |
15693 | #endif |
15694 | break; |
15695 | break; |
15696 | default: |
15697 | break; |
15698 | } |
15699 | break; |
15700 | default: |
15701 | break; |
15702 | } |
15703 | break; |
15704 | default: |
15705 | break; |
15706 | } |
15707 | break; |
15708 | default: |
15709 | break; |
15710 | } |
15711 | break; |
15712 | case Opcode::BranchTest64: |
15713 | switch (this->args.size()) { |
15714 | case 3: |
15715 | switch (this->args[0].kind()) { |
15716 | case Arg::ResCond: |
15717 | switch (this->args[1].kind()) { |
15718 | case Arg::Tmp: |
15719 | switch (this->args[2].kind()) { |
15720 | case Arg::Tmp: |
15721 | #if CPU(X86_64) || CPU(ARM64) |
15722 | if (!args[1].tmp().isGP()) |
15723 | OPGEN_RETURN(false); |
15724 | if (!args[2].tmp().isGP()) |
15725 | OPGEN_RETURN(false); |
15726 | OPGEN_RETURN(true); |
15727 | #endif |
15728 | break; |
15729 | break; |
15730 | #if USE(JSVALUE64) |
15731 | case Arg::BitImm64: |
15732 | #if CPU(ARM64) |
15733 | if (!args[1].tmp().isGP()) |
15734 | OPGEN_RETURN(false); |
15735 | if (!Arg::isValidBitImm64Form(args[2].value())) |
15736 | OPGEN_RETURN(false); |
15737 | OPGEN_RETURN(true); |
15738 | #endif |
15739 | break; |
15740 | break; |
15741 | #endif // USE(JSVALUE64) |
15742 | case Arg::BitImm: |
15743 | #if CPU(X86_64) |
15744 | if (!args[1].tmp().isGP()) |
15745 | OPGEN_RETURN(false); |
15746 | if (!Arg::isValidBitImmForm(args[2].value())) |
15747 | OPGEN_RETURN(false); |
15748 | OPGEN_RETURN(true); |
15749 | #endif |
15750 | break; |
15751 | break; |
15752 | default: |
15753 | break; |
15754 | } |
15755 | break; |
15756 | case Arg::Addr: |
15757 | case Arg::Stack: |
15758 | case Arg::CallArg: |
15759 | switch (this->args[2].kind()) { |
15760 | case Arg::BitImm: |
15761 | #if CPU(X86_64) |
15762 | if (!Arg::isValidAddrForm(args[1].offset())) |
15763 | OPGEN_RETURN(false); |
15764 | if (!Arg::isValidBitImmForm(args[2].value())) |
15765 | OPGEN_RETURN(false); |
15766 | OPGEN_RETURN(true); |
15767 | #endif |
15768 | break; |
15769 | break; |
15770 | case Arg::Tmp: |
15771 | #if CPU(X86_64) |
15772 | if (!Arg::isValidAddrForm(args[1].offset())) |
15773 | OPGEN_RETURN(false); |
15774 | if (!args[2].tmp().isGP()) |
15775 | OPGEN_RETURN(false); |
15776 | OPGEN_RETURN(true); |
15777 | #endif |
15778 | break; |
15779 | break; |
15780 | default: |
15781 | break; |
15782 | } |
15783 | break; |
15784 | case Arg::Index: |
15785 | switch (this->args[2].kind()) { |
15786 | case Arg::BitImm: |
15787 | #if CPU(X86_64) |
15788 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
15789 | OPGEN_RETURN(false); |
15790 | if (!Arg::isValidBitImmForm(args[2].value())) |
15791 | OPGEN_RETURN(false); |
15792 | OPGEN_RETURN(true); |
15793 | #endif |
15794 | break; |
15795 | break; |
15796 | default: |
15797 | break; |
15798 | } |
15799 | break; |
15800 | default: |
15801 | break; |
15802 | } |
15803 | break; |
15804 | default: |
15805 | break; |
15806 | } |
15807 | break; |
15808 | default: |
15809 | break; |
15810 | } |
15811 | break; |
15812 | case Opcode::BranchDouble: |
15813 | switch (this->args.size()) { |
15814 | case 3: |
15815 | switch (this->args[0].kind()) { |
15816 | case Arg::DoubleCond: |
15817 | switch (this->args[1].kind()) { |
15818 | case Arg::Tmp: |
15819 | switch (this->args[2].kind()) { |
15820 | case Arg::Tmp: |
15821 | if (!args[1].tmp().isFP()) |
15822 | OPGEN_RETURN(false); |
15823 | if (!args[2].tmp().isFP()) |
15824 | OPGEN_RETURN(false); |
15825 | OPGEN_RETURN(true); |
15826 | break; |
15827 | break; |
15828 | default: |
15829 | break; |
15830 | } |
15831 | break; |
15832 | default: |
15833 | break; |
15834 | } |
15835 | break; |
15836 | default: |
15837 | break; |
15838 | } |
15839 | break; |
15840 | default: |
15841 | break; |
15842 | } |
15843 | break; |
15844 | case Opcode::BranchFloat: |
15845 | switch (this->args.size()) { |
15846 | case 3: |
15847 | switch (this->args[0].kind()) { |
15848 | case Arg::DoubleCond: |
15849 | switch (this->args[1].kind()) { |
15850 | case Arg::Tmp: |
15851 | switch (this->args[2].kind()) { |
15852 | case Arg::Tmp: |
15853 | if (!args[1].tmp().isFP()) |
15854 | OPGEN_RETURN(false); |
15855 | if (!args[2].tmp().isFP()) |
15856 | OPGEN_RETURN(false); |
15857 | OPGEN_RETURN(true); |
15858 | break; |
15859 | break; |
15860 | default: |
15861 | break; |
15862 | } |
15863 | break; |
15864 | default: |
15865 | break; |
15866 | } |
15867 | break; |
15868 | default: |
15869 | break; |
15870 | } |
15871 | break; |
15872 | default: |
15873 | break; |
15874 | } |
15875 | break; |
15876 | case Opcode::BranchAdd32: |
15877 | switch (this->args.size()) { |
15878 | case 4: |
15879 | switch (this->args[0].kind()) { |
15880 | case Arg::ResCond: |
15881 | switch (this->args[1].kind()) { |
15882 | case Arg::Tmp: |
15883 | switch (this->args[2].kind()) { |
15884 | case Arg::Tmp: |
15885 | switch (this->args[3].kind()) { |
15886 | case Arg::Tmp: |
15887 | if (!args[1].tmp().isGP()) |
15888 | OPGEN_RETURN(false); |
15889 | if (!args[2].tmp().isGP()) |
15890 | OPGEN_RETURN(false); |
15891 | if (!args[3].tmp().isGP()) |
15892 | OPGEN_RETURN(false); |
15893 | OPGEN_RETURN(true); |
15894 | break; |
15895 | break; |
15896 | default: |
15897 | break; |
15898 | } |
15899 | break; |
15900 | case Arg::Addr: |
15901 | case Arg::Stack: |
15902 | case Arg::CallArg: |
15903 | switch (this->args[3].kind()) { |
15904 | case Arg::Tmp: |
15905 | #if CPU(X86) || CPU(X86_64) |
15906 | if (!args[1].tmp().isGP()) |
15907 | OPGEN_RETURN(false); |
15908 | if (!Arg::isValidAddrForm(args[2].offset())) |
15909 | OPGEN_RETURN(false); |
15910 | if (!args[3].tmp().isGP()) |
15911 | OPGEN_RETURN(false); |
15912 | OPGEN_RETURN(true); |
15913 | #endif |
15914 | break; |
15915 | break; |
15916 | default: |
15917 | break; |
15918 | } |
15919 | break; |
15920 | default: |
15921 | break; |
15922 | } |
15923 | break; |
15924 | case Arg::Addr: |
15925 | case Arg::Stack: |
15926 | case Arg::CallArg: |
15927 | switch (this->args[2].kind()) { |
15928 | case Arg::Tmp: |
15929 | switch (this->args[3].kind()) { |
15930 | case Arg::Tmp: |
15931 | #if CPU(X86) || CPU(X86_64) |
15932 | if (!Arg::isValidAddrForm(args[1].offset())) |
15933 | OPGEN_RETURN(false); |
15934 | if (!args[2].tmp().isGP()) |
15935 | OPGEN_RETURN(false); |
15936 | if (!args[3].tmp().isGP()) |
15937 | OPGEN_RETURN(false); |
15938 | OPGEN_RETURN(true); |
15939 | #endif |
15940 | break; |
15941 | break; |
15942 | default: |
15943 | break; |
15944 | } |
15945 | break; |
15946 | default: |
15947 | break; |
15948 | } |
15949 | break; |
15950 | default: |
15951 | break; |
15952 | } |
15953 | break; |
15954 | default: |
15955 | break; |
15956 | } |
15957 | break; |
15958 | case 3: |
15959 | switch (this->args[0].kind()) { |
15960 | case Arg::ResCond: |
15961 | switch (this->args[1].kind()) { |
15962 | case Arg::Tmp: |
15963 | switch (this->args[2].kind()) { |
15964 | case Arg::Tmp: |
15965 | if (!args[1].tmp().isGP()) |
15966 | OPGEN_RETURN(false); |
15967 | if (!args[2].tmp().isGP()) |
15968 | OPGEN_RETURN(false); |
15969 | OPGEN_RETURN(true); |
15970 | break; |
15971 | break; |
15972 | case Arg::Addr: |
15973 | case Arg::Stack: |
15974 | case Arg::CallArg: |
15975 | #if CPU(X86) || CPU(X86_64) |
15976 | if (!args[1].tmp().isGP()) |
15977 | OPGEN_RETURN(false); |
15978 | if (!Arg::isValidAddrForm(args[2].offset())) |
15979 | OPGEN_RETURN(false); |
15980 | OPGEN_RETURN(true); |
15981 | #endif |
15982 | break; |
15983 | break; |
15984 | default: |
15985 | break; |
15986 | } |
15987 | break; |
15988 | case Arg::Imm: |
15989 | switch (this->args[2].kind()) { |
15990 | case Arg::Tmp: |
15991 | if (!Arg::isValidImmForm(args[1].value())) |
15992 | OPGEN_RETURN(false); |
15993 | if (!args[2].tmp().isGP()) |
15994 | OPGEN_RETURN(false); |
15995 | OPGEN_RETURN(true); |
15996 | break; |
15997 | break; |
15998 | case Arg::Addr: |
15999 | case Arg::Stack: |
16000 | case Arg::CallArg: |
16001 | #if CPU(X86) || CPU(X86_64) |
16002 | if (!Arg::isValidImmForm(args[1].value())) |
16003 | OPGEN_RETURN(false); |
16004 | if (!Arg::isValidAddrForm(args[2].offset())) |
16005 | OPGEN_RETURN(false); |
16006 | OPGEN_RETURN(true); |
16007 | #endif |
16008 | break; |
16009 | break; |
16010 | default: |
16011 | break; |
16012 | } |
16013 | break; |
16014 | case Arg::Addr: |
16015 | case Arg::Stack: |
16016 | case Arg::CallArg: |
16017 | switch (this->args[2].kind()) { |
16018 | case Arg::Tmp: |
16019 | #if CPU(X86) || CPU(X86_64) |
16020 | if (!Arg::isValidAddrForm(args[1].offset())) |
16021 | OPGEN_RETURN(false); |
16022 | if (!args[2].tmp().isGP()) |
16023 | OPGEN_RETURN(false); |
16024 | OPGEN_RETURN(true); |
16025 | #endif |
16026 | break; |
16027 | break; |
16028 | default: |
16029 | break; |
16030 | } |
16031 | break; |
16032 | default: |
16033 | break; |
16034 | } |
16035 | break; |
16036 | default: |
16037 | break; |
16038 | } |
16039 | break; |
16040 | default: |
16041 | break; |
16042 | } |
16043 | break; |
16044 | case Opcode::BranchAdd64: |
16045 | switch (this->args.size()) { |
16046 | case 4: |
16047 | switch (this->args[0].kind()) { |
16048 | case Arg::ResCond: |
16049 | switch (this->args[1].kind()) { |
16050 | case Arg::Tmp: |
16051 | switch (this->args[2].kind()) { |
16052 | case Arg::Tmp: |
16053 | switch (this->args[3].kind()) { |
16054 | case Arg::Tmp: |
16055 | if (!args[1].tmp().isGP()) |
16056 | OPGEN_RETURN(false); |
16057 | if (!args[2].tmp().isGP()) |
16058 | OPGEN_RETURN(false); |
16059 | if (!args[3].tmp().isGP()) |
16060 | OPGEN_RETURN(false); |
16061 | OPGEN_RETURN(true); |
16062 | break; |
16063 | break; |
16064 | default: |
16065 | break; |
16066 | } |
16067 | break; |
16068 | case Arg::Addr: |
16069 | case Arg::Stack: |
16070 | case Arg::CallArg: |
16071 | switch (this->args[3].kind()) { |
16072 | case Arg::Tmp: |
16073 | #if CPU(X86) || CPU(X86_64) |
16074 | if (!args[1].tmp().isGP()) |
16075 | OPGEN_RETURN(false); |
16076 | if (!Arg::isValidAddrForm(args[2].offset())) |
16077 | OPGEN_RETURN(false); |
16078 | if (!args[3].tmp().isGP()) |
16079 | OPGEN_RETURN(false); |
16080 | OPGEN_RETURN(true); |
16081 | #endif |
16082 | break; |
16083 | break; |
16084 | default: |
16085 | break; |
16086 | } |
16087 | break; |
16088 | default: |
16089 | break; |
16090 | } |
16091 | break; |
16092 | case Arg::Addr: |
16093 | case Arg::Stack: |
16094 | case Arg::CallArg: |
16095 | switch (this->args[2].kind()) { |
16096 | case Arg::Tmp: |
16097 | switch (this->args[3].kind()) { |
16098 | case Arg::Tmp: |
16099 | #if CPU(X86) || CPU(X86_64) |
16100 | if (!Arg::isValidAddrForm(args[1].offset())) |
16101 | OPGEN_RETURN(false); |
16102 | if (!args[2].tmp().isGP()) |
16103 | OPGEN_RETURN(false); |
16104 | if (!args[3].tmp().isGP()) |
16105 | OPGEN_RETURN(false); |
16106 | OPGEN_RETURN(true); |
16107 | #endif |
16108 | break; |
16109 | break; |
16110 | default: |
16111 | break; |
16112 | } |
16113 | break; |
16114 | default: |
16115 | break; |
16116 | } |
16117 | break; |
16118 | default: |
16119 | break; |
16120 | } |
16121 | break; |
16122 | default: |
16123 | break; |
16124 | } |
16125 | break; |
16126 | case 3: |
16127 | switch (this->args[0].kind()) { |
16128 | case Arg::ResCond: |
16129 | switch (this->args[1].kind()) { |
16130 | case Arg::Imm: |
16131 | switch (this->args[2].kind()) { |
16132 | case Arg::Tmp: |
16133 | #if CPU(X86_64) || CPU(ARM64) |
16134 | if (!Arg::isValidImmForm(args[1].value())) |
16135 | OPGEN_RETURN(false); |
16136 | if (!args[2].tmp().isGP()) |
16137 | OPGEN_RETURN(false); |
16138 | OPGEN_RETURN(true); |
16139 | #endif |
16140 | break; |
16141 | break; |
16142 | default: |
16143 | break; |
16144 | } |
16145 | break; |
16146 | case Arg::Tmp: |
16147 | switch (this->args[2].kind()) { |
16148 | case Arg::Tmp: |
16149 | #if CPU(X86_64) || CPU(ARM64) |
16150 | if (!args[1].tmp().isGP()) |
16151 | OPGEN_RETURN(false); |
16152 | if (!args[2].tmp().isGP()) |
16153 | OPGEN_RETURN(false); |
16154 | OPGEN_RETURN(true); |
16155 | #endif |
16156 | break; |
16157 | break; |
16158 | default: |
16159 | break; |
16160 | } |
16161 | break; |
16162 | case Arg::Addr: |
16163 | case Arg::Stack: |
16164 | case Arg::CallArg: |
16165 | switch (this->args[2].kind()) { |
16166 | case Arg::Tmp: |
16167 | #if CPU(X86_64) |
16168 | if (!Arg::isValidAddrForm(args[1].offset())) |
16169 | OPGEN_RETURN(false); |
16170 | if (!args[2].tmp().isGP()) |
16171 | OPGEN_RETURN(false); |
16172 | OPGEN_RETURN(true); |
16173 | #endif |
16174 | break; |
16175 | break; |
16176 | default: |
16177 | break; |
16178 | } |
16179 | break; |
16180 | default: |
16181 | break; |
16182 | } |
16183 | break; |
16184 | default: |
16185 | break; |
16186 | } |
16187 | break; |
16188 | default: |
16189 | break; |
16190 | } |
16191 | break; |
16192 | case Opcode::BranchMul32: |
16193 | switch (this->args.size()) { |
16194 | case 3: |
16195 | switch (this->args[0].kind()) { |
16196 | case Arg::ResCond: |
16197 | switch (this->args[1].kind()) { |
16198 | case Arg::Tmp: |
16199 | switch (this->args[2].kind()) { |
16200 | case Arg::Tmp: |
16201 | #if CPU(X86) || CPU(X86_64) |
16202 | if (!args[1].tmp().isGP()) |
16203 | OPGEN_RETURN(false); |
16204 | if (!args[2].tmp().isGP()) |
16205 | OPGEN_RETURN(false); |
16206 | OPGEN_RETURN(true); |
16207 | #endif |
16208 | break; |
16209 | break; |
16210 | default: |
16211 | break; |
16212 | } |
16213 | break; |
16214 | case Arg::Addr: |
16215 | case Arg::Stack: |
16216 | case Arg::CallArg: |
16217 | switch (this->args[2].kind()) { |
16218 | case Arg::Tmp: |
16219 | #if CPU(X86) || CPU(X86_64) |
16220 | if (!Arg::isValidAddrForm(args[1].offset())) |
16221 | OPGEN_RETURN(false); |
16222 | if (!args[2].tmp().isGP()) |
16223 | OPGEN_RETURN(false); |
16224 | OPGEN_RETURN(true); |
16225 | #endif |
16226 | break; |
16227 | break; |
16228 | default: |
16229 | break; |
16230 | } |
16231 | break; |
16232 | default: |
16233 | break; |
16234 | } |
16235 | break; |
16236 | default: |
16237 | break; |
16238 | } |
16239 | break; |
16240 | case 4: |
16241 | switch (this->args[0].kind()) { |
16242 | case Arg::ResCond: |
16243 | switch (this->args[1].kind()) { |
16244 | case Arg::Tmp: |
16245 | switch (this->args[2].kind()) { |
16246 | case Arg::Imm: |
16247 | switch (this->args[3].kind()) { |
16248 | case Arg::Tmp: |
16249 | #if CPU(X86) || CPU(X86_64) |
16250 | if (!args[1].tmp().isGP()) |
16251 | OPGEN_RETURN(false); |
16252 | if (!Arg::isValidImmForm(args[2].value())) |
16253 | OPGEN_RETURN(false); |
16254 | if (!args[3].tmp().isGP()) |
16255 | OPGEN_RETURN(false); |
16256 | OPGEN_RETURN(true); |
16257 | #endif |
16258 | break; |
16259 | break; |
16260 | default: |
16261 | break; |
16262 | } |
16263 | break; |
16264 | default: |
16265 | break; |
16266 | } |
16267 | break; |
16268 | default: |
16269 | break; |
16270 | } |
16271 | break; |
16272 | default: |
16273 | break; |
16274 | } |
16275 | break; |
16276 | case 6: |
16277 | switch (this->args[0].kind()) { |
16278 | case Arg::ResCond: |
16279 | switch (this->args[1].kind()) { |
16280 | case Arg::Tmp: |
16281 | switch (this->args[2].kind()) { |
16282 | case Arg::Tmp: |
16283 | switch (this->args[3].kind()) { |
16284 | case Arg::Tmp: |
16285 | switch (this->args[4].kind()) { |
16286 | case Arg::Tmp: |
16287 | switch (this->args[5].kind()) { |
16288 | case Arg::Tmp: |
16289 | #if CPU(ARM64) |
16290 | if (!args[1].tmp().isGP()) |
16291 | OPGEN_RETURN(false); |
16292 | if (!args[2].tmp().isGP()) |
16293 | OPGEN_RETURN(false); |
16294 | if (!args[3].tmp().isGP()) |
16295 | OPGEN_RETURN(false); |
16296 | if (!args[4].tmp().isGP()) |
16297 | OPGEN_RETURN(false); |
16298 | if (!args[5].tmp().isGP()) |
16299 | OPGEN_RETURN(false); |
16300 | OPGEN_RETURN(true); |
16301 | #endif |
16302 | break; |
16303 | break; |
16304 | default: |
16305 | break; |
16306 | } |
16307 | break; |
16308 | default: |
16309 | break; |
16310 | } |
16311 | break; |
16312 | default: |
16313 | break; |
16314 | } |
16315 | break; |
16316 | default: |
16317 | break; |
16318 | } |
16319 | break; |
16320 | default: |
16321 | break; |
16322 | } |
16323 | break; |
16324 | default: |
16325 | break; |
16326 | } |
16327 | break; |
16328 | default: |
16329 | break; |
16330 | } |
16331 | break; |
16332 | case Opcode::BranchMul64: |
16333 | switch (this->args.size()) { |
16334 | case 3: |
16335 | switch (this->args[0].kind()) { |
16336 | case Arg::ResCond: |
16337 | switch (this->args[1].kind()) { |
16338 | case Arg::Tmp: |
16339 | switch (this->args[2].kind()) { |
16340 | case Arg::Tmp: |
16341 | #if CPU(X86_64) |
16342 | if (!args[1].tmp().isGP()) |
16343 | OPGEN_RETURN(false); |
16344 | if (!args[2].tmp().isGP()) |
16345 | OPGEN_RETURN(false); |
16346 | OPGEN_RETURN(true); |
16347 | #endif |
16348 | break; |
16349 | break; |
16350 | default: |
16351 | break; |
16352 | } |
16353 | break; |
16354 | default: |
16355 | break; |
16356 | } |
16357 | break; |
16358 | default: |
16359 | break; |
16360 | } |
16361 | break; |
16362 | case 6: |
16363 | switch (this->args[0].kind()) { |
16364 | case Arg::ResCond: |
16365 | switch (this->args[1].kind()) { |
16366 | case Arg::Tmp: |
16367 | switch (this->args[2].kind()) { |
16368 | case Arg::Tmp: |
16369 | switch (this->args[3].kind()) { |
16370 | case Arg::Tmp: |
16371 | switch (this->args[4].kind()) { |
16372 | case Arg::Tmp: |
16373 | switch (this->args[5].kind()) { |
16374 | case Arg::Tmp: |
16375 | #if CPU(ARM64) |
16376 | if (!args[1].tmp().isGP()) |
16377 | OPGEN_RETURN(false); |
16378 | if (!args[2].tmp().isGP()) |
16379 | OPGEN_RETURN(false); |
16380 | if (!args[3].tmp().isGP()) |
16381 | OPGEN_RETURN(false); |
16382 | if (!args[4].tmp().isGP()) |
16383 | OPGEN_RETURN(false); |
16384 | if (!args[5].tmp().isGP()) |
16385 | OPGEN_RETURN(false); |
16386 | OPGEN_RETURN(true); |
16387 | #endif |
16388 | break; |
16389 | break; |
16390 | default: |
16391 | break; |
16392 | } |
16393 | break; |
16394 | default: |
16395 | break; |
16396 | } |
16397 | break; |
16398 | default: |
16399 | break; |
16400 | } |
16401 | break; |
16402 | default: |
16403 | break; |
16404 | } |
16405 | break; |
16406 | default: |
16407 | break; |
16408 | } |
16409 | break; |
16410 | default: |
16411 | break; |
16412 | } |
16413 | break; |
16414 | default: |
16415 | break; |
16416 | } |
16417 | break; |
16418 | case Opcode::BranchSub32: |
16419 | switch (this->args.size()) { |
16420 | case 3: |
16421 | switch (this->args[0].kind()) { |
16422 | case Arg::ResCond: |
16423 | switch (this->args[1].kind()) { |
16424 | case Arg::Tmp: |
16425 | switch (this->args[2].kind()) { |
16426 | case Arg::Tmp: |
16427 | if (!args[1].tmp().isGP()) |
16428 | OPGEN_RETURN(false); |
16429 | if (!args[2].tmp().isGP()) |
16430 | OPGEN_RETURN(false); |
16431 | OPGEN_RETURN(true); |
16432 | break; |
16433 | break; |
16434 | case Arg::Addr: |
16435 | case Arg::Stack: |
16436 | case Arg::CallArg: |
16437 | #if CPU(X86) || CPU(X86_64) |
16438 | if (!args[1].tmp().isGP()) |
16439 | OPGEN_RETURN(false); |
16440 | if (!Arg::isValidAddrForm(args[2].offset())) |
16441 | OPGEN_RETURN(false); |
16442 | OPGEN_RETURN(true); |
16443 | #endif |
16444 | break; |
16445 | break; |
16446 | default: |
16447 | break; |
16448 | } |
16449 | break; |
16450 | case Arg::Imm: |
16451 | switch (this->args[2].kind()) { |
16452 | case Arg::Tmp: |
16453 | if (!Arg::isValidImmForm(args[1].value())) |
16454 | OPGEN_RETURN(false); |
16455 | if (!args[2].tmp().isGP()) |
16456 | OPGEN_RETURN(false); |
16457 | OPGEN_RETURN(true); |
16458 | break; |
16459 | break; |
16460 | case Arg::Addr: |
16461 | case Arg::Stack: |
16462 | case Arg::CallArg: |
16463 | #if CPU(X86) || CPU(X86_64) |
16464 | if (!Arg::isValidImmForm(args[1].value())) |
16465 | OPGEN_RETURN(false); |
16466 | if (!Arg::isValidAddrForm(args[2].offset())) |
16467 | OPGEN_RETURN(false); |
16468 | OPGEN_RETURN(true); |
16469 | #endif |
16470 | break; |
16471 | break; |
16472 | default: |
16473 | break; |
16474 | } |
16475 | break; |
16476 | case Arg::Addr: |
16477 | case Arg::Stack: |
16478 | case Arg::CallArg: |
16479 | switch (this->args[2].kind()) { |
16480 | case Arg::Tmp: |
16481 | #if CPU(X86) || CPU(X86_64) |
16482 | if (!Arg::isValidAddrForm(args[1].offset())) |
16483 | OPGEN_RETURN(false); |
16484 | if (!args[2].tmp().isGP()) |
16485 | OPGEN_RETURN(false); |
16486 | OPGEN_RETURN(true); |
16487 | #endif |
16488 | break; |
16489 | break; |
16490 | default: |
16491 | break; |
16492 | } |
16493 | break; |
16494 | default: |
16495 | break; |
16496 | } |
16497 | break; |
16498 | default: |
16499 | break; |
16500 | } |
16501 | break; |
16502 | default: |
16503 | break; |
16504 | } |
16505 | break; |
16506 | case Opcode::BranchSub64: |
16507 | switch (this->args.size()) { |
16508 | case 3: |
16509 | switch (this->args[0].kind()) { |
16510 | case Arg::ResCond: |
16511 | switch (this->args[1].kind()) { |
16512 | case Arg::Imm: |
16513 | switch (this->args[2].kind()) { |
16514 | case Arg::Tmp: |
16515 | #if CPU(X86_64) || CPU(ARM64) |
16516 | if (!Arg::isValidImmForm(args[1].value())) |
16517 | OPGEN_RETURN(false); |
16518 | if (!args[2].tmp().isGP()) |
16519 | OPGEN_RETURN(false); |
16520 | OPGEN_RETURN(true); |
16521 | #endif |
16522 | break; |
16523 | break; |
16524 | default: |
16525 | break; |
16526 | } |
16527 | break; |
16528 | case Arg::Tmp: |
16529 | switch (this->args[2].kind()) { |
16530 | case Arg::Tmp: |
16531 | #if CPU(X86_64) || CPU(ARM64) |
16532 | if (!args[1].tmp().isGP()) |
16533 | OPGEN_RETURN(false); |
16534 | if (!args[2].tmp().isGP()) |
16535 | OPGEN_RETURN(false); |
16536 | OPGEN_RETURN(true); |
16537 | #endif |
16538 | break; |
16539 | break; |
16540 | default: |
16541 | break; |
16542 | } |
16543 | break; |
16544 | default: |
16545 | break; |
16546 | } |
16547 | break; |
16548 | default: |
16549 | break; |
16550 | } |
16551 | break; |
16552 | default: |
16553 | break; |
16554 | } |
16555 | break; |
16556 | case Opcode::BranchNeg32: |
16557 | switch (this->args.size()) { |
16558 | case 2: |
16559 | switch (this->args[0].kind()) { |
16560 | case Arg::ResCond: |
16561 | switch (this->args[1].kind()) { |
16562 | case Arg::Tmp: |
16563 | if (!args[1].tmp().isGP()) |
16564 | OPGEN_RETURN(false); |
16565 | OPGEN_RETURN(true); |
16566 | break; |
16567 | break; |
16568 | default: |
16569 | break; |
16570 | } |
16571 | break; |
16572 | default: |
16573 | break; |
16574 | } |
16575 | break; |
16576 | default: |
16577 | break; |
16578 | } |
16579 | break; |
16580 | case Opcode::BranchNeg64: |
16581 | switch (this->args.size()) { |
16582 | case 2: |
16583 | switch (this->args[0].kind()) { |
16584 | case Arg::ResCond: |
16585 | switch (this->args[1].kind()) { |
16586 | case Arg::Tmp: |
16587 | #if CPU(X86_64) || CPU(ARM64) |
16588 | if (!args[1].tmp().isGP()) |
16589 | OPGEN_RETURN(false); |
16590 | OPGEN_RETURN(true); |
16591 | #endif |
16592 | break; |
16593 | break; |
16594 | default: |
16595 | break; |
16596 | } |
16597 | break; |
16598 | default: |
16599 | break; |
16600 | } |
16601 | break; |
16602 | default: |
16603 | break; |
16604 | } |
16605 | break; |
16606 | case Opcode::MoveConditionally32: |
16607 | switch (this->args.size()) { |
16608 | case 5: |
16609 | switch (this->args[0].kind()) { |
16610 | case Arg::RelCond: |
16611 | switch (this->args[1].kind()) { |
16612 | case Arg::Tmp: |
16613 | switch (this->args[2].kind()) { |
16614 | case Arg::Tmp: |
16615 | switch (this->args[3].kind()) { |
16616 | case Arg::Tmp: |
16617 | switch (this->args[4].kind()) { |
16618 | case Arg::Tmp: |
16619 | if (!args[1].tmp().isGP()) |
16620 | OPGEN_RETURN(false); |
16621 | if (!args[2].tmp().isGP()) |
16622 | OPGEN_RETURN(false); |
16623 | if (!args[3].tmp().isGP()) |
16624 | OPGEN_RETURN(false); |
16625 | if (!args[4].tmp().isGP()) |
16626 | OPGEN_RETURN(false); |
16627 | OPGEN_RETURN(true); |
16628 | break; |
16629 | break; |
16630 | default: |
16631 | break; |
16632 | } |
16633 | break; |
16634 | default: |
16635 | break; |
16636 | } |
16637 | break; |
16638 | default: |
16639 | break; |
16640 | } |
16641 | break; |
16642 | default: |
16643 | break; |
16644 | } |
16645 | break; |
16646 | default: |
16647 | break; |
16648 | } |
16649 | break; |
16650 | case 6: |
16651 | switch (this->args[0].kind()) { |
16652 | case Arg::RelCond: |
16653 | switch (this->args[1].kind()) { |
16654 | case Arg::Tmp: |
16655 | switch (this->args[2].kind()) { |
16656 | case Arg::Tmp: |
16657 | switch (this->args[3].kind()) { |
16658 | case Arg::Tmp: |
16659 | switch (this->args[4].kind()) { |
16660 | case Arg::Tmp: |
16661 | switch (this->args[5].kind()) { |
16662 | case Arg::Tmp: |
16663 | if (!args[1].tmp().isGP()) |
16664 | OPGEN_RETURN(false); |
16665 | if (!args[2].tmp().isGP()) |
16666 | OPGEN_RETURN(false); |
16667 | if (!args[3].tmp().isGP()) |
16668 | OPGEN_RETURN(false); |
16669 | if (!args[4].tmp().isGP()) |
16670 | OPGEN_RETURN(false); |
16671 | if (!args[5].tmp().isGP()) |
16672 | OPGEN_RETURN(false); |
16673 | OPGEN_RETURN(true); |
16674 | break; |
16675 | break; |
16676 | default: |
16677 | break; |
16678 | } |
16679 | break; |
16680 | default: |
16681 | break; |
16682 | } |
16683 | break; |
16684 | default: |
16685 | break; |
16686 | } |
16687 | break; |
16688 | case Arg::Imm: |
16689 | switch (this->args[3].kind()) { |
16690 | case Arg::Tmp: |
16691 | switch (this->args[4].kind()) { |
16692 | case Arg::Tmp: |
16693 | switch (this->args[5].kind()) { |
16694 | case Arg::Tmp: |
16695 | if (!args[1].tmp().isGP()) |
16696 | OPGEN_RETURN(false); |
16697 | if (!Arg::isValidImmForm(args[2].value())) |
16698 | OPGEN_RETURN(false); |
16699 | if (!args[3].tmp().isGP()) |
16700 | OPGEN_RETURN(false); |
16701 | if (!args[4].tmp().isGP()) |
16702 | OPGEN_RETURN(false); |
16703 | if (!args[5].tmp().isGP()) |
16704 | OPGEN_RETURN(false); |
16705 | OPGEN_RETURN(true); |
16706 | break; |
16707 | break; |
16708 | default: |
16709 | break; |
16710 | } |
16711 | break; |
16712 | default: |
16713 | break; |
16714 | } |
16715 | break; |
16716 | default: |
16717 | break; |
16718 | } |
16719 | break; |
16720 | default: |
16721 | break; |
16722 | } |
16723 | break; |
16724 | default: |
16725 | break; |
16726 | } |
16727 | break; |
16728 | default: |
16729 | break; |
16730 | } |
16731 | break; |
16732 | default: |
16733 | break; |
16734 | } |
16735 | break; |
16736 | case Opcode::MoveConditionally64: |
16737 | switch (this->args.size()) { |
16738 | case 5: |
16739 | switch (this->args[0].kind()) { |
16740 | case Arg::RelCond: |
16741 | switch (this->args[1].kind()) { |
16742 | case Arg::Tmp: |
16743 | switch (this->args[2].kind()) { |
16744 | case Arg::Tmp: |
16745 | switch (this->args[3].kind()) { |
16746 | case Arg::Tmp: |
16747 | switch (this->args[4].kind()) { |
16748 | case Arg::Tmp: |
16749 | #if CPU(X86_64) || CPU(ARM64) |
16750 | if (!args[1].tmp().isGP()) |
16751 | OPGEN_RETURN(false); |
16752 | if (!args[2].tmp().isGP()) |
16753 | OPGEN_RETURN(false); |
16754 | if (!args[3].tmp().isGP()) |
16755 | OPGEN_RETURN(false); |
16756 | if (!args[4].tmp().isGP()) |
16757 | OPGEN_RETURN(false); |
16758 | OPGEN_RETURN(true); |
16759 | #endif |
16760 | break; |
16761 | break; |
16762 | default: |
16763 | break; |
16764 | } |
16765 | break; |
16766 | default: |
16767 | break; |
16768 | } |
16769 | break; |
16770 | default: |
16771 | break; |
16772 | } |
16773 | break; |
16774 | default: |
16775 | break; |
16776 | } |
16777 | break; |
16778 | default: |
16779 | break; |
16780 | } |
16781 | break; |
16782 | case 6: |
16783 | switch (this->args[0].kind()) { |
16784 | case Arg::RelCond: |
16785 | switch (this->args[1].kind()) { |
16786 | case Arg::Tmp: |
16787 | switch (this->args[2].kind()) { |
16788 | case Arg::Tmp: |
16789 | switch (this->args[3].kind()) { |
16790 | case Arg::Tmp: |
16791 | switch (this->args[4].kind()) { |
16792 | case Arg::Tmp: |
16793 | switch (this->args[5].kind()) { |
16794 | case Arg::Tmp: |
16795 | #if CPU(X86_64) || CPU(ARM64) |
16796 | if (!args[1].tmp().isGP()) |
16797 | OPGEN_RETURN(false); |
16798 | if (!args[2].tmp().isGP()) |
16799 | OPGEN_RETURN(false); |
16800 | if (!args[3].tmp().isGP()) |
16801 | OPGEN_RETURN(false); |
16802 | if (!args[4].tmp().isGP()) |
16803 | OPGEN_RETURN(false); |
16804 | if (!args[5].tmp().isGP()) |
16805 | OPGEN_RETURN(false); |
16806 | OPGEN_RETURN(true); |
16807 | #endif |
16808 | break; |
16809 | break; |
16810 | default: |
16811 | break; |
16812 | } |
16813 | break; |
16814 | default: |
16815 | break; |
16816 | } |
16817 | break; |
16818 | default: |
16819 | break; |
16820 | } |
16821 | break; |
16822 | case Arg::Imm: |
16823 | switch (this->args[3].kind()) { |
16824 | case Arg::Tmp: |
16825 | switch (this->args[4].kind()) { |
16826 | case Arg::Tmp: |
16827 | switch (this->args[5].kind()) { |
16828 | case Arg::Tmp: |
16829 | #if CPU(X86_64) || CPU(ARM64) |
16830 | if (!args[1].tmp().isGP()) |
16831 | OPGEN_RETURN(false); |
16832 | if (!Arg::isValidImmForm(args[2].value())) |
16833 | OPGEN_RETURN(false); |
16834 | if (!args[3].tmp().isGP()) |
16835 | OPGEN_RETURN(false); |
16836 | if (!args[4].tmp().isGP()) |
16837 | OPGEN_RETURN(false); |
16838 | if (!args[5].tmp().isGP()) |
16839 | OPGEN_RETURN(false); |
16840 | OPGEN_RETURN(true); |
16841 | #endif |
16842 | break; |
16843 | break; |
16844 | default: |
16845 | break; |
16846 | } |
16847 | break; |
16848 | default: |
16849 | break; |
16850 | } |
16851 | break; |
16852 | default: |
16853 | break; |
16854 | } |
16855 | break; |
16856 | default: |
16857 | break; |
16858 | } |
16859 | break; |
16860 | default: |
16861 | break; |
16862 | } |
16863 | break; |
16864 | default: |
16865 | break; |
16866 | } |
16867 | break; |
16868 | default: |
16869 | break; |
16870 | } |
16871 | break; |
16872 | case Opcode::MoveConditionallyTest32: |
16873 | switch (this->args.size()) { |
16874 | case 5: |
16875 | switch (this->args[0].kind()) { |
16876 | case Arg::ResCond: |
16877 | switch (this->args[1].kind()) { |
16878 | case Arg::Tmp: |
16879 | switch (this->args[2].kind()) { |
16880 | case Arg::Tmp: |
16881 | switch (this->args[3].kind()) { |
16882 | case Arg::Tmp: |
16883 | switch (this->args[4].kind()) { |
16884 | case Arg::Tmp: |
16885 | if (!args[1].tmp().isGP()) |
16886 | OPGEN_RETURN(false); |
16887 | if (!args[2].tmp().isGP()) |
16888 | OPGEN_RETURN(false); |
16889 | if (!args[3].tmp().isGP()) |
16890 | OPGEN_RETURN(false); |
16891 | if (!args[4].tmp().isGP()) |
16892 | OPGEN_RETURN(false); |
16893 | OPGEN_RETURN(true); |
16894 | break; |
16895 | break; |
16896 | default: |
16897 | break; |
16898 | } |
16899 | break; |
16900 | default: |
16901 | break; |
16902 | } |
16903 | break; |
16904 | case Arg::Imm: |
16905 | switch (this->args[3].kind()) { |
16906 | case Arg::Tmp: |
16907 | switch (this->args[4].kind()) { |
16908 | case Arg::Tmp: |
16909 | #if CPU(X86) || CPU(X86_64) |
16910 | if (!args[1].tmp().isGP()) |
16911 | OPGEN_RETURN(false); |
16912 | if (!Arg::isValidImmForm(args[2].value())) |
16913 | OPGEN_RETURN(false); |
16914 | if (!args[3].tmp().isGP()) |
16915 | OPGEN_RETURN(false); |
16916 | if (!args[4].tmp().isGP()) |
16917 | OPGEN_RETURN(false); |
16918 | OPGEN_RETURN(true); |
16919 | #endif |
16920 | break; |
16921 | break; |
16922 | default: |
16923 | break; |
16924 | } |
16925 | break; |
16926 | default: |
16927 | break; |
16928 | } |
16929 | break; |
16930 | default: |
16931 | break; |
16932 | } |
16933 | break; |
16934 | default: |
16935 | break; |
16936 | } |
16937 | break; |
16938 | default: |
16939 | break; |
16940 | } |
16941 | break; |
16942 | case 6: |
16943 | switch (this->args[0].kind()) { |
16944 | case Arg::ResCond: |
16945 | switch (this->args[1].kind()) { |
16946 | case Arg::Tmp: |
16947 | switch (this->args[2].kind()) { |
16948 | case Arg::Tmp: |
16949 | switch (this->args[3].kind()) { |
16950 | case Arg::Tmp: |
16951 | switch (this->args[4].kind()) { |
16952 | case Arg::Tmp: |
16953 | switch (this->args[5].kind()) { |
16954 | case Arg::Tmp: |
16955 | if (!args[1].tmp().isGP()) |
16956 | OPGEN_RETURN(false); |
16957 | if (!args[2].tmp().isGP()) |
16958 | OPGEN_RETURN(false); |
16959 | if (!args[3].tmp().isGP()) |
16960 | OPGEN_RETURN(false); |
16961 | if (!args[4].tmp().isGP()) |
16962 | OPGEN_RETURN(false); |
16963 | if (!args[5].tmp().isGP()) |
16964 | OPGEN_RETURN(false); |
16965 | OPGEN_RETURN(true); |
16966 | break; |
16967 | break; |
16968 | default: |
16969 | break; |
16970 | } |
16971 | break; |
16972 | default: |
16973 | break; |
16974 | } |
16975 | break; |
16976 | default: |
16977 | break; |
16978 | } |
16979 | break; |
16980 | case Arg::BitImm: |
16981 | switch (this->args[3].kind()) { |
16982 | case Arg::Tmp: |
16983 | switch (this->args[4].kind()) { |
16984 | case Arg::Tmp: |
16985 | switch (this->args[5].kind()) { |
16986 | case Arg::Tmp: |
16987 | if (!args[1].tmp().isGP()) |
16988 | OPGEN_RETURN(false); |
16989 | if (!Arg::isValidBitImmForm(args[2].value())) |
16990 | OPGEN_RETURN(false); |
16991 | if (!args[3].tmp().isGP()) |
16992 | OPGEN_RETURN(false); |
16993 | if (!args[4].tmp().isGP()) |
16994 | OPGEN_RETURN(false); |
16995 | if (!args[5].tmp().isGP()) |
16996 | OPGEN_RETURN(false); |
16997 | OPGEN_RETURN(true); |
16998 | break; |
16999 | break; |
17000 | default: |
17001 | break; |
17002 | } |
17003 | break; |
17004 | default: |
17005 | break; |
17006 | } |
17007 | break; |
17008 | default: |
17009 | break; |
17010 | } |
17011 | break; |
17012 | default: |
17013 | break; |
17014 | } |
17015 | break; |
17016 | default: |
17017 | break; |
17018 | } |
17019 | break; |
17020 | default: |
17021 | break; |
17022 | } |
17023 | break; |
17024 | default: |
17025 | break; |
17026 | } |
17027 | break; |
17028 | case Opcode::MoveConditionallyTest64: |
17029 | switch (this->args.size()) { |
17030 | case 5: |
17031 | switch (this->args[0].kind()) { |
17032 | case Arg::ResCond: |
17033 | switch (this->args[1].kind()) { |
17034 | case Arg::Tmp: |
17035 | switch (this->args[2].kind()) { |
17036 | case Arg::Tmp: |
17037 | switch (this->args[3].kind()) { |
17038 | case Arg::Tmp: |
17039 | switch (this->args[4].kind()) { |
17040 | case Arg::Tmp: |
17041 | #if CPU(X86_64) || CPU(ARM64) |
17042 | if (!args[1].tmp().isGP()) |
17043 | OPGEN_RETURN(false); |
17044 | if (!args[2].tmp().isGP()) |
17045 | OPGEN_RETURN(false); |
17046 | if (!args[3].tmp().isGP()) |
17047 | OPGEN_RETURN(false); |
17048 | if (!args[4].tmp().isGP()) |
17049 | OPGEN_RETURN(false); |
17050 | OPGEN_RETURN(true); |
17051 | #endif |
17052 | break; |
17053 | break; |
17054 | default: |
17055 | break; |
17056 | } |
17057 | break; |
17058 | default: |
17059 | break; |
17060 | } |
17061 | break; |
17062 | case Arg::Imm: |
17063 | switch (this->args[3].kind()) { |
17064 | case Arg::Tmp: |
17065 | switch (this->args[4].kind()) { |
17066 | case Arg::Tmp: |
17067 | #if CPU(X86_64) |
17068 | if (!args[1].tmp().isGP()) |
17069 | OPGEN_RETURN(false); |
17070 | if (!Arg::isValidImmForm(args[2].value())) |
17071 | OPGEN_RETURN(false); |
17072 | if (!args[3].tmp().isGP()) |
17073 | OPGEN_RETURN(false); |
17074 | if (!args[4].tmp().isGP()) |
17075 | OPGEN_RETURN(false); |
17076 | OPGEN_RETURN(true); |
17077 | #endif |
17078 | break; |
17079 | break; |
17080 | default: |
17081 | break; |
17082 | } |
17083 | break; |
17084 | default: |
17085 | break; |
17086 | } |
17087 | break; |
17088 | default: |
17089 | break; |
17090 | } |
17091 | break; |
17092 | default: |
17093 | break; |
17094 | } |
17095 | break; |
17096 | default: |
17097 | break; |
17098 | } |
17099 | break; |
17100 | case 6: |
17101 | switch (this->args[0].kind()) { |
17102 | case Arg::ResCond: |
17103 | switch (this->args[1].kind()) { |
17104 | case Arg::Tmp: |
17105 | switch (this->args[2].kind()) { |
17106 | case Arg::Tmp: |
17107 | switch (this->args[3].kind()) { |
17108 | case Arg::Tmp: |
17109 | switch (this->args[4].kind()) { |
17110 | case Arg::Tmp: |
17111 | switch (this->args[5].kind()) { |
17112 | case Arg::Tmp: |
17113 | #if CPU(X86_64) || CPU(ARM64) |
17114 | if (!args[1].tmp().isGP()) |
17115 | OPGEN_RETURN(false); |
17116 | if (!args[2].tmp().isGP()) |
17117 | OPGEN_RETURN(false); |
17118 | if (!args[3].tmp().isGP()) |
17119 | OPGEN_RETURN(false); |
17120 | if (!args[4].tmp().isGP()) |
17121 | OPGEN_RETURN(false); |
17122 | if (!args[5].tmp().isGP()) |
17123 | OPGEN_RETURN(false); |
17124 | OPGEN_RETURN(true); |
17125 | #endif |
17126 | break; |
17127 | break; |
17128 | default: |
17129 | break; |
17130 | } |
17131 | break; |
17132 | default: |
17133 | break; |
17134 | } |
17135 | break; |
17136 | default: |
17137 | break; |
17138 | } |
17139 | break; |
17140 | case Arg::Imm: |
17141 | switch (this->args[3].kind()) { |
17142 | case Arg::Tmp: |
17143 | switch (this->args[4].kind()) { |
17144 | case Arg::Tmp: |
17145 | switch (this->args[5].kind()) { |
17146 | case Arg::Tmp: |
17147 | #if CPU(X86_64) |
17148 | if (!args[1].tmp().isGP()) |
17149 | OPGEN_RETURN(false); |
17150 | if (!Arg::isValidImmForm(args[2].value())) |
17151 | OPGEN_RETURN(false); |
17152 | if (!args[3].tmp().isGP()) |
17153 | OPGEN_RETURN(false); |
17154 | if (!args[4].tmp().isGP()) |
17155 | OPGEN_RETURN(false); |
17156 | if (!args[5].tmp().isGP()) |
17157 | OPGEN_RETURN(false); |
17158 | OPGEN_RETURN(true); |
17159 | #endif |
17160 | break; |
17161 | break; |
17162 | default: |
17163 | break; |
17164 | } |
17165 | break; |
17166 | default: |
17167 | break; |
17168 | } |
17169 | break; |
17170 | default: |
17171 | break; |
17172 | } |
17173 | break; |
17174 | default: |
17175 | break; |
17176 | } |
17177 | break; |
17178 | default: |
17179 | break; |
17180 | } |
17181 | break; |
17182 | default: |
17183 | break; |
17184 | } |
17185 | break; |
17186 | default: |
17187 | break; |
17188 | } |
17189 | break; |
17190 | case Opcode::MoveConditionallyDouble: |
17191 | switch (this->args.size()) { |
17192 | case 6: |
17193 | switch (this->args[0].kind()) { |
17194 | case Arg::DoubleCond: |
17195 | switch (this->args[1].kind()) { |
17196 | case Arg::Tmp: |
17197 | switch (this->args[2].kind()) { |
17198 | case Arg::Tmp: |
17199 | switch (this->args[3].kind()) { |
17200 | case Arg::Tmp: |
17201 | switch (this->args[4].kind()) { |
17202 | case Arg::Tmp: |
17203 | switch (this->args[5].kind()) { |
17204 | case Arg::Tmp: |
17205 | if (!args[1].tmp().isFP()) |
17206 | OPGEN_RETURN(false); |
17207 | if (!args[2].tmp().isFP()) |
17208 | OPGEN_RETURN(false); |
17209 | if (!args[3].tmp().isGP()) |
17210 | OPGEN_RETURN(false); |
17211 | if (!args[4].tmp().isGP()) |
17212 | OPGEN_RETURN(false); |
17213 | if (!args[5].tmp().isGP()) |
17214 | OPGEN_RETURN(false); |
17215 | OPGEN_RETURN(true); |
17216 | break; |
17217 | break; |
17218 | default: |
17219 | break; |
17220 | } |
17221 | break; |
17222 | default: |
17223 | break; |
17224 | } |
17225 | break; |
17226 | default: |
17227 | break; |
17228 | } |
17229 | break; |
17230 | default: |
17231 | break; |
17232 | } |
17233 | break; |
17234 | default: |
17235 | break; |
17236 | } |
17237 | break; |
17238 | default: |
17239 | break; |
17240 | } |
17241 | break; |
17242 | case 5: |
17243 | switch (this->args[0].kind()) { |
17244 | case Arg::DoubleCond: |
17245 | switch (this->args[1].kind()) { |
17246 | case Arg::Tmp: |
17247 | switch (this->args[2].kind()) { |
17248 | case Arg::Tmp: |
17249 | switch (this->args[3].kind()) { |
17250 | case Arg::Tmp: |
17251 | switch (this->args[4].kind()) { |
17252 | case Arg::Tmp: |
17253 | if (!args[1].tmp().isFP()) |
17254 | OPGEN_RETURN(false); |
17255 | if (!args[2].tmp().isFP()) |
17256 | OPGEN_RETURN(false); |
17257 | if (!args[3].tmp().isGP()) |
17258 | OPGEN_RETURN(false); |
17259 | if (!args[4].tmp().isGP()) |
17260 | OPGEN_RETURN(false); |
17261 | OPGEN_RETURN(true); |
17262 | break; |
17263 | break; |
17264 | default: |
17265 | break; |
17266 | } |
17267 | break; |
17268 | default: |
17269 | break; |
17270 | } |
17271 | break; |
17272 | default: |
17273 | break; |
17274 | } |
17275 | break; |
17276 | default: |
17277 | break; |
17278 | } |
17279 | break; |
17280 | default: |
17281 | break; |
17282 | } |
17283 | break; |
17284 | default: |
17285 | break; |
17286 | } |
17287 | break; |
17288 | case Opcode::MoveConditionallyFloat: |
17289 | switch (this->args.size()) { |
17290 | case 6: |
17291 | switch (this->args[0].kind()) { |
17292 | case Arg::DoubleCond: |
17293 | switch (this->args[1].kind()) { |
17294 | case Arg::Tmp: |
17295 | switch (this->args[2].kind()) { |
17296 | case Arg::Tmp: |
17297 | switch (this->args[3].kind()) { |
17298 | case Arg::Tmp: |
17299 | switch (this->args[4].kind()) { |
17300 | case Arg::Tmp: |
17301 | switch (this->args[5].kind()) { |
17302 | case Arg::Tmp: |
17303 | if (!args[1].tmp().isFP()) |
17304 | OPGEN_RETURN(false); |
17305 | if (!args[2].tmp().isFP()) |
17306 | OPGEN_RETURN(false); |
17307 | if (!args[3].tmp().isGP()) |
17308 | OPGEN_RETURN(false); |
17309 | if (!args[4].tmp().isGP()) |
17310 | OPGEN_RETURN(false); |
17311 | if (!args[5].tmp().isGP()) |
17312 | OPGEN_RETURN(false); |
17313 | OPGEN_RETURN(true); |
17314 | break; |
17315 | break; |
17316 | default: |
17317 | break; |
17318 | } |
17319 | break; |
17320 | default: |
17321 | break; |
17322 | } |
17323 | break; |
17324 | default: |
17325 | break; |
17326 | } |
17327 | break; |
17328 | default: |
17329 | break; |
17330 | } |
17331 | break; |
17332 | default: |
17333 | break; |
17334 | } |
17335 | break; |
17336 | default: |
17337 | break; |
17338 | } |
17339 | break; |
17340 | case 5: |
17341 | switch (this->args[0].kind()) { |
17342 | case Arg::DoubleCond: |
17343 | switch (this->args[1].kind()) { |
17344 | case Arg::Tmp: |
17345 | switch (this->args[2].kind()) { |
17346 | case Arg::Tmp: |
17347 | switch (this->args[3].kind()) { |
17348 | case Arg::Tmp: |
17349 | switch (this->args[4].kind()) { |
17350 | case Arg::Tmp: |
17351 | if (!args[1].tmp().isFP()) |
17352 | OPGEN_RETURN(false); |
17353 | if (!args[2].tmp().isFP()) |
17354 | OPGEN_RETURN(false); |
17355 | if (!args[3].tmp().isGP()) |
17356 | OPGEN_RETURN(false); |
17357 | if (!args[4].tmp().isGP()) |
17358 | OPGEN_RETURN(false); |
17359 | OPGEN_RETURN(true); |
17360 | break; |
17361 | break; |
17362 | default: |
17363 | break; |
17364 | } |
17365 | break; |
17366 | default: |
17367 | break; |
17368 | } |
17369 | break; |
17370 | default: |
17371 | break; |
17372 | } |
17373 | break; |
17374 | default: |
17375 | break; |
17376 | } |
17377 | break; |
17378 | default: |
17379 | break; |
17380 | } |
17381 | break; |
17382 | default: |
17383 | break; |
17384 | } |
17385 | break; |
17386 | case Opcode::MoveDoubleConditionally32: |
17387 | switch (this->args.size()) { |
17388 | case 6: |
17389 | switch (this->args[0].kind()) { |
17390 | case Arg::RelCond: |
17391 | switch (this->args[1].kind()) { |
17392 | case Arg::Tmp: |
17393 | switch (this->args[2].kind()) { |
17394 | case Arg::Tmp: |
17395 | switch (this->args[3].kind()) { |
17396 | case Arg::Tmp: |
17397 | switch (this->args[4].kind()) { |
17398 | case Arg::Tmp: |
17399 | switch (this->args[5].kind()) { |
17400 | case Arg::Tmp: |
17401 | if (!args[1].tmp().isGP()) |
17402 | OPGEN_RETURN(false); |
17403 | if (!args[2].tmp().isGP()) |
17404 | OPGEN_RETURN(false); |
17405 | if (!args[3].tmp().isFP()) |
17406 | OPGEN_RETURN(false); |
17407 | if (!args[4].tmp().isFP()) |
17408 | OPGEN_RETURN(false); |
17409 | if (!args[5].tmp().isFP()) |
17410 | OPGEN_RETURN(false); |
17411 | OPGEN_RETURN(true); |
17412 | break; |
17413 | break; |
17414 | default: |
17415 | break; |
17416 | } |
17417 | break; |
17418 | default: |
17419 | break; |
17420 | } |
17421 | break; |
17422 | default: |
17423 | break; |
17424 | } |
17425 | break; |
17426 | case Arg::Imm: |
17427 | switch (this->args[3].kind()) { |
17428 | case Arg::Tmp: |
17429 | switch (this->args[4].kind()) { |
17430 | case Arg::Tmp: |
17431 | switch (this->args[5].kind()) { |
17432 | case Arg::Tmp: |
17433 | if (!args[1].tmp().isGP()) |
17434 | OPGEN_RETURN(false); |
17435 | if (!Arg::isValidImmForm(args[2].value())) |
17436 | OPGEN_RETURN(false); |
17437 | if (!args[3].tmp().isFP()) |
17438 | OPGEN_RETURN(false); |
17439 | if (!args[4].tmp().isFP()) |
17440 | OPGEN_RETURN(false); |
17441 | if (!args[5].tmp().isFP()) |
17442 | OPGEN_RETURN(false); |
17443 | OPGEN_RETURN(true); |
17444 | break; |
17445 | break; |
17446 | default: |
17447 | break; |
17448 | } |
17449 | break; |
17450 | default: |
17451 | break; |
17452 | } |
17453 | break; |
17454 | default: |
17455 | break; |
17456 | } |
17457 | break; |
17458 | case Arg::Addr: |
17459 | case Arg::Stack: |
17460 | case Arg::CallArg: |
17461 | switch (this->args[3].kind()) { |
17462 | case Arg::Tmp: |
17463 | switch (this->args[4].kind()) { |
17464 | case Arg::Tmp: |
17465 | switch (this->args[5].kind()) { |
17466 | case Arg::Tmp: |
17467 | #if CPU(X86) || CPU(X86_64) |
17468 | if (!args[1].tmp().isGP()) |
17469 | OPGEN_RETURN(false); |
17470 | if (!Arg::isValidAddrForm(args[2].offset())) |
17471 | OPGEN_RETURN(false); |
17472 | if (!args[3].tmp().isFP()) |
17473 | OPGEN_RETURN(false); |
17474 | if (!args[4].tmp().isFP()) |
17475 | OPGEN_RETURN(false); |
17476 | if (!args[5].tmp().isFP()) |
17477 | OPGEN_RETURN(false); |
17478 | OPGEN_RETURN(true); |
17479 | #endif |
17480 | break; |
17481 | break; |
17482 | default: |
17483 | break; |
17484 | } |
17485 | break; |
17486 | default: |
17487 | break; |
17488 | } |
17489 | break; |
17490 | default: |
17491 | break; |
17492 | } |
17493 | break; |
17494 | default: |
17495 | break; |
17496 | } |
17497 | break; |
17498 | case Arg::Addr: |
17499 | case Arg::Stack: |
17500 | case Arg::CallArg: |
17501 | switch (this->args[2].kind()) { |
17502 | case Arg::Imm: |
17503 | switch (this->args[3].kind()) { |
17504 | case Arg::Tmp: |
17505 | switch (this->args[4].kind()) { |
17506 | case Arg::Tmp: |
17507 | switch (this->args[5].kind()) { |
17508 | case Arg::Tmp: |
17509 | #if CPU(X86) || CPU(X86_64) |
17510 | if (!Arg::isValidAddrForm(args[1].offset())) |
17511 | OPGEN_RETURN(false); |
17512 | if (!Arg::isValidImmForm(args[2].value())) |
17513 | OPGEN_RETURN(false); |
17514 | if (!args[3].tmp().isFP()) |
17515 | OPGEN_RETURN(false); |
17516 | if (!args[4].tmp().isFP()) |
17517 | OPGEN_RETURN(false); |
17518 | if (!args[5].tmp().isFP()) |
17519 | OPGEN_RETURN(false); |
17520 | OPGEN_RETURN(true); |
17521 | #endif |
17522 | break; |
17523 | break; |
17524 | default: |
17525 | break; |
17526 | } |
17527 | break; |
17528 | default: |
17529 | break; |
17530 | } |
17531 | break; |
17532 | default: |
17533 | break; |
17534 | } |
17535 | break; |
17536 | case Arg::Tmp: |
17537 | switch (this->args[3].kind()) { |
17538 | case Arg::Tmp: |
17539 | switch (this->args[4].kind()) { |
17540 | case Arg::Tmp: |
17541 | switch (this->args[5].kind()) { |
17542 | case Arg::Tmp: |
17543 | #if CPU(X86) || CPU(X86_64) |
17544 | if (!Arg::isValidAddrForm(args[1].offset())) |
17545 | OPGEN_RETURN(false); |
17546 | if (!args[2].tmp().isGP()) |
17547 | OPGEN_RETURN(false); |
17548 | if (!args[3].tmp().isFP()) |
17549 | OPGEN_RETURN(false); |
17550 | if (!args[4].tmp().isFP()) |
17551 | OPGEN_RETURN(false); |
17552 | if (!args[5].tmp().isFP()) |
17553 | OPGEN_RETURN(false); |
17554 | OPGEN_RETURN(true); |
17555 | #endif |
17556 | break; |
17557 | break; |
17558 | default: |
17559 | break; |
17560 | } |
17561 | break; |
17562 | default: |
17563 | break; |
17564 | } |
17565 | break; |
17566 | default: |
17567 | break; |
17568 | } |
17569 | break; |
17570 | default: |
17571 | break; |
17572 | } |
17573 | break; |
17574 | case Arg::Index: |
17575 | switch (this->args[2].kind()) { |
17576 | case Arg::Imm: |
17577 | switch (this->args[3].kind()) { |
17578 | case Arg::Tmp: |
17579 | switch (this->args[4].kind()) { |
17580 | case Arg::Tmp: |
17581 | switch (this->args[5].kind()) { |
17582 | case Arg::Tmp: |
17583 | #if CPU(X86) || CPU(X86_64) |
17584 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
17585 | OPGEN_RETURN(false); |
17586 | if (!Arg::isValidImmForm(args[2].value())) |
17587 | OPGEN_RETURN(false); |
17588 | if (!args[3].tmp().isFP()) |
17589 | OPGEN_RETURN(false); |
17590 | if (!args[4].tmp().isFP()) |
17591 | OPGEN_RETURN(false); |
17592 | if (!args[5].tmp().isFP()) |
17593 | OPGEN_RETURN(false); |
17594 | OPGEN_RETURN(true); |
17595 | #endif |
17596 | break; |
17597 | break; |
17598 | default: |
17599 | break; |
17600 | } |
17601 | break; |
17602 | default: |
17603 | break; |
17604 | } |
17605 | break; |
17606 | default: |
17607 | break; |
17608 | } |
17609 | break; |
17610 | default: |
17611 | break; |
17612 | } |
17613 | break; |
17614 | default: |
17615 | break; |
17616 | } |
17617 | break; |
17618 | default: |
17619 | break; |
17620 | } |
17621 | break; |
17622 | default: |
17623 | break; |
17624 | } |
17625 | break; |
17626 | case Opcode::MoveDoubleConditionally64: |
17627 | switch (this->args.size()) { |
17628 | case 6: |
17629 | switch (this->args[0].kind()) { |
17630 | case Arg::RelCond: |
17631 | switch (this->args[1].kind()) { |
17632 | case Arg::Tmp: |
17633 | switch (this->args[2].kind()) { |
17634 | case Arg::Tmp: |
17635 | switch (this->args[3].kind()) { |
17636 | case Arg::Tmp: |
17637 | switch (this->args[4].kind()) { |
17638 | case Arg::Tmp: |
17639 | switch (this->args[5].kind()) { |
17640 | case Arg::Tmp: |
17641 | #if CPU(X86_64) || CPU(ARM64) |
17642 | if (!args[1].tmp().isGP()) |
17643 | OPGEN_RETURN(false); |
17644 | if (!args[2].tmp().isGP()) |
17645 | OPGEN_RETURN(false); |
17646 | if (!args[3].tmp().isFP()) |
17647 | OPGEN_RETURN(false); |
17648 | if (!args[4].tmp().isFP()) |
17649 | OPGEN_RETURN(false); |
17650 | if (!args[5].tmp().isFP()) |
17651 | OPGEN_RETURN(false); |
17652 | OPGEN_RETURN(true); |
17653 | #endif |
17654 | break; |
17655 | break; |
17656 | default: |
17657 | break; |
17658 | } |
17659 | break; |
17660 | default: |
17661 | break; |
17662 | } |
17663 | break; |
17664 | default: |
17665 | break; |
17666 | } |
17667 | break; |
17668 | case Arg::Imm: |
17669 | switch (this->args[3].kind()) { |
17670 | case Arg::Tmp: |
17671 | switch (this->args[4].kind()) { |
17672 | case Arg::Tmp: |
17673 | switch (this->args[5].kind()) { |
17674 | case Arg::Tmp: |
17675 | #if CPU(X86_64) || CPU(ARM64) |
17676 | if (!args[1].tmp().isGP()) |
17677 | OPGEN_RETURN(false); |
17678 | if (!Arg::isValidImmForm(args[2].value())) |
17679 | OPGEN_RETURN(false); |
17680 | if (!args[3].tmp().isFP()) |
17681 | OPGEN_RETURN(false); |
17682 | if (!args[4].tmp().isFP()) |
17683 | OPGEN_RETURN(false); |
17684 | if (!args[5].tmp().isFP()) |
17685 | OPGEN_RETURN(false); |
17686 | OPGEN_RETURN(true); |
17687 | #endif |
17688 | break; |
17689 | break; |
17690 | default: |
17691 | break; |
17692 | } |
17693 | break; |
17694 | default: |
17695 | break; |
17696 | } |
17697 | break; |
17698 | default: |
17699 | break; |
17700 | } |
17701 | break; |
17702 | case Arg::Addr: |
17703 | case Arg::Stack: |
17704 | case Arg::CallArg: |
17705 | switch (this->args[3].kind()) { |
17706 | case Arg::Tmp: |
17707 | switch (this->args[4].kind()) { |
17708 | case Arg::Tmp: |
17709 | switch (this->args[5].kind()) { |
17710 | case Arg::Tmp: |
17711 | #if CPU(X86_64) |
17712 | if (!args[1].tmp().isGP()) |
17713 | OPGEN_RETURN(false); |
17714 | if (!Arg::isValidAddrForm(args[2].offset())) |
17715 | OPGEN_RETURN(false); |
17716 | if (!args[3].tmp().isFP()) |
17717 | OPGEN_RETURN(false); |
17718 | if (!args[4].tmp().isFP()) |
17719 | OPGEN_RETURN(false); |
17720 | if (!args[5].tmp().isFP()) |
17721 | OPGEN_RETURN(false); |
17722 | OPGEN_RETURN(true); |
17723 | #endif |
17724 | break; |
17725 | break; |
17726 | default: |
17727 | break; |
17728 | } |
17729 | break; |
17730 | default: |
17731 | break; |
17732 | } |
17733 | break; |
17734 | default: |
17735 | break; |
17736 | } |
17737 | break; |
17738 | default: |
17739 | break; |
17740 | } |
17741 | break; |
17742 | case Arg::Addr: |
17743 | case Arg::Stack: |
17744 | case Arg::CallArg: |
17745 | switch (this->args[2].kind()) { |
17746 | case Arg::Tmp: |
17747 | switch (this->args[3].kind()) { |
17748 | case Arg::Tmp: |
17749 | switch (this->args[4].kind()) { |
17750 | case Arg::Tmp: |
17751 | switch (this->args[5].kind()) { |
17752 | case Arg::Tmp: |
17753 | #if CPU(X86_64) |
17754 | if (!Arg::isValidAddrForm(args[1].offset())) |
17755 | OPGEN_RETURN(false); |
17756 | if (!args[2].tmp().isGP()) |
17757 | OPGEN_RETURN(false); |
17758 | if (!args[3].tmp().isFP()) |
17759 | OPGEN_RETURN(false); |
17760 | if (!args[4].tmp().isFP()) |
17761 | OPGEN_RETURN(false); |
17762 | if (!args[5].tmp().isFP()) |
17763 | OPGEN_RETURN(false); |
17764 | OPGEN_RETURN(true); |
17765 | #endif |
17766 | break; |
17767 | break; |
17768 | default: |
17769 | break; |
17770 | } |
17771 | break; |
17772 | default: |
17773 | break; |
17774 | } |
17775 | break; |
17776 | default: |
17777 | break; |
17778 | } |
17779 | break; |
17780 | case Arg::Imm: |
17781 | switch (this->args[3].kind()) { |
17782 | case Arg::Tmp: |
17783 | switch (this->args[4].kind()) { |
17784 | case Arg::Tmp: |
17785 | switch (this->args[5].kind()) { |
17786 | case Arg::Tmp: |
17787 | #if CPU(X86_64) |
17788 | if (!Arg::isValidAddrForm(args[1].offset())) |
17789 | OPGEN_RETURN(false); |
17790 | if (!Arg::isValidImmForm(args[2].value())) |
17791 | OPGEN_RETURN(false); |
17792 | if (!args[3].tmp().isFP()) |
17793 | OPGEN_RETURN(false); |
17794 | if (!args[4].tmp().isFP()) |
17795 | OPGEN_RETURN(false); |
17796 | if (!args[5].tmp().isFP()) |
17797 | OPGEN_RETURN(false); |
17798 | OPGEN_RETURN(true); |
17799 | #endif |
17800 | break; |
17801 | break; |
17802 | default: |
17803 | break; |
17804 | } |
17805 | break; |
17806 | default: |
17807 | break; |
17808 | } |
17809 | break; |
17810 | default: |
17811 | break; |
17812 | } |
17813 | break; |
17814 | default: |
17815 | break; |
17816 | } |
17817 | break; |
17818 | case Arg::Index: |
17819 | switch (this->args[2].kind()) { |
17820 | case Arg::Tmp: |
17821 | switch (this->args[3].kind()) { |
17822 | case Arg::Tmp: |
17823 | switch (this->args[4].kind()) { |
17824 | case Arg::Tmp: |
17825 | switch (this->args[5].kind()) { |
17826 | case Arg::Tmp: |
17827 | #if CPU(X86_64) |
17828 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
17829 | OPGEN_RETURN(false); |
17830 | if (!args[2].tmp().isGP()) |
17831 | OPGEN_RETURN(false); |
17832 | if (!args[3].tmp().isFP()) |
17833 | OPGEN_RETURN(false); |
17834 | if (!args[4].tmp().isFP()) |
17835 | OPGEN_RETURN(false); |
17836 | if (!args[5].tmp().isFP()) |
17837 | OPGEN_RETURN(false); |
17838 | OPGEN_RETURN(true); |
17839 | #endif |
17840 | break; |
17841 | break; |
17842 | default: |
17843 | break; |
17844 | } |
17845 | break; |
17846 | default: |
17847 | break; |
17848 | } |
17849 | break; |
17850 | default: |
17851 | break; |
17852 | } |
17853 | break; |
17854 | default: |
17855 | break; |
17856 | } |
17857 | break; |
17858 | default: |
17859 | break; |
17860 | } |
17861 | break; |
17862 | default: |
17863 | break; |
17864 | } |
17865 | break; |
17866 | default: |
17867 | break; |
17868 | } |
17869 | break; |
17870 | case Opcode::MoveDoubleConditionallyTest32: |
17871 | switch (this->args.size()) { |
17872 | case 6: |
17873 | switch (this->args[0].kind()) { |
17874 | case Arg::ResCond: |
17875 | switch (this->args[1].kind()) { |
17876 | case Arg::Tmp: |
17877 | switch (this->args[2].kind()) { |
17878 | case Arg::Tmp: |
17879 | switch (this->args[3].kind()) { |
17880 | case Arg::Tmp: |
17881 | switch (this->args[4].kind()) { |
17882 | case Arg::Tmp: |
17883 | switch (this->args[5].kind()) { |
17884 | case Arg::Tmp: |
17885 | if (!args[1].tmp().isGP()) |
17886 | OPGEN_RETURN(false); |
17887 | if (!args[2].tmp().isGP()) |
17888 | OPGEN_RETURN(false); |
17889 | if (!args[3].tmp().isFP()) |
17890 | OPGEN_RETURN(false); |
17891 | if (!args[4].tmp().isFP()) |
17892 | OPGEN_RETURN(false); |
17893 | if (!args[5].tmp().isFP()) |
17894 | OPGEN_RETURN(false); |
17895 | OPGEN_RETURN(true); |
17896 | break; |
17897 | break; |
17898 | default: |
17899 | break; |
17900 | } |
17901 | break; |
17902 | default: |
17903 | break; |
17904 | } |
17905 | break; |
17906 | default: |
17907 | break; |
17908 | } |
17909 | break; |
17910 | case Arg::BitImm: |
17911 | switch (this->args[3].kind()) { |
17912 | case Arg::Tmp: |
17913 | switch (this->args[4].kind()) { |
17914 | case Arg::Tmp: |
17915 | switch (this->args[5].kind()) { |
17916 | case Arg::Tmp: |
17917 | if (!args[1].tmp().isGP()) |
17918 | OPGEN_RETURN(false); |
17919 | if (!Arg::isValidBitImmForm(args[2].value())) |
17920 | OPGEN_RETURN(false); |
17921 | if (!args[3].tmp().isFP()) |
17922 | OPGEN_RETURN(false); |
17923 | if (!args[4].tmp().isFP()) |
17924 | OPGEN_RETURN(false); |
17925 | if (!args[5].tmp().isFP()) |
17926 | OPGEN_RETURN(false); |
17927 | OPGEN_RETURN(true); |
17928 | break; |
17929 | break; |
17930 | default: |
17931 | break; |
17932 | } |
17933 | break; |
17934 | default: |
17935 | break; |
17936 | } |
17937 | break; |
17938 | default: |
17939 | break; |
17940 | } |
17941 | break; |
17942 | default: |
17943 | break; |
17944 | } |
17945 | break; |
17946 | case Arg::Addr: |
17947 | case Arg::Stack: |
17948 | case Arg::CallArg: |
17949 | switch (this->args[2].kind()) { |
17950 | case Arg::Imm: |
17951 | switch (this->args[3].kind()) { |
17952 | case Arg::Tmp: |
17953 | switch (this->args[4].kind()) { |
17954 | case Arg::Tmp: |
17955 | switch (this->args[5].kind()) { |
17956 | case Arg::Tmp: |
17957 | #if CPU(X86) || CPU(X86_64) |
17958 | if (!Arg::isValidAddrForm(args[1].offset())) |
17959 | OPGEN_RETURN(false); |
17960 | if (!Arg::isValidImmForm(args[2].value())) |
17961 | OPGEN_RETURN(false); |
17962 | if (!args[3].tmp().isFP()) |
17963 | OPGEN_RETURN(false); |
17964 | if (!args[4].tmp().isFP()) |
17965 | OPGEN_RETURN(false); |
17966 | if (!args[5].tmp().isFP()) |
17967 | OPGEN_RETURN(false); |
17968 | OPGEN_RETURN(true); |
17969 | #endif |
17970 | break; |
17971 | break; |
17972 | default: |
17973 | break; |
17974 | } |
17975 | break; |
17976 | default: |
17977 | break; |
17978 | } |
17979 | break; |
17980 | default: |
17981 | break; |
17982 | } |
17983 | break; |
17984 | default: |
17985 | break; |
17986 | } |
17987 | break; |
17988 | case Arg::Index: |
17989 | switch (this->args[2].kind()) { |
17990 | case Arg::Imm: |
17991 | switch (this->args[3].kind()) { |
17992 | case Arg::Tmp: |
17993 | switch (this->args[4].kind()) { |
17994 | case Arg::Tmp: |
17995 | switch (this->args[5].kind()) { |
17996 | case Arg::Tmp: |
17997 | #if CPU(X86) || CPU(X86_64) |
17998 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width32)) |
17999 | OPGEN_RETURN(false); |
18000 | if (!Arg::isValidImmForm(args[2].value())) |
18001 | OPGEN_RETURN(false); |
18002 | if (!args[3].tmp().isFP()) |
18003 | OPGEN_RETURN(false); |
18004 | if (!args[4].tmp().isFP()) |
18005 | OPGEN_RETURN(false); |
18006 | if (!args[5].tmp().isFP()) |
18007 | OPGEN_RETURN(false); |
18008 | OPGEN_RETURN(true); |
18009 | #endif |
18010 | break; |
18011 | break; |
18012 | default: |
18013 | break; |
18014 | } |
18015 | break; |
18016 | default: |
18017 | break; |
18018 | } |
18019 | break; |
18020 | default: |
18021 | break; |
18022 | } |
18023 | break; |
18024 | default: |
18025 | break; |
18026 | } |
18027 | break; |
18028 | default: |
18029 | break; |
18030 | } |
18031 | break; |
18032 | default: |
18033 | break; |
18034 | } |
18035 | break; |
18036 | default: |
18037 | break; |
18038 | } |
18039 | break; |
18040 | case Opcode::MoveDoubleConditionallyTest64: |
18041 | switch (this->args.size()) { |
18042 | case 6: |
18043 | switch (this->args[0].kind()) { |
18044 | case Arg::ResCond: |
18045 | switch (this->args[1].kind()) { |
18046 | case Arg::Tmp: |
18047 | switch (this->args[2].kind()) { |
18048 | case Arg::Tmp: |
18049 | switch (this->args[3].kind()) { |
18050 | case Arg::Tmp: |
18051 | switch (this->args[4].kind()) { |
18052 | case Arg::Tmp: |
18053 | switch (this->args[5].kind()) { |
18054 | case Arg::Tmp: |
18055 | #if CPU(X86_64) || CPU(ARM64) |
18056 | if (!args[1].tmp().isGP()) |
18057 | OPGEN_RETURN(false); |
18058 | if (!args[2].tmp().isGP()) |
18059 | OPGEN_RETURN(false); |
18060 | if (!args[3].tmp().isFP()) |
18061 | OPGEN_RETURN(false); |
18062 | if (!args[4].tmp().isFP()) |
18063 | OPGEN_RETURN(false); |
18064 | if (!args[5].tmp().isFP()) |
18065 | OPGEN_RETURN(false); |
18066 | OPGEN_RETURN(true); |
18067 | #endif |
18068 | break; |
18069 | break; |
18070 | default: |
18071 | break; |
18072 | } |
18073 | break; |
18074 | default: |
18075 | break; |
18076 | } |
18077 | break; |
18078 | default: |
18079 | break; |
18080 | } |
18081 | break; |
18082 | case Arg::Imm: |
18083 | switch (this->args[3].kind()) { |
18084 | case Arg::Tmp: |
18085 | switch (this->args[4].kind()) { |
18086 | case Arg::Tmp: |
18087 | switch (this->args[5].kind()) { |
18088 | case Arg::Tmp: |
18089 | #if CPU(X86_64) |
18090 | if (!args[1].tmp().isGP()) |
18091 | OPGEN_RETURN(false); |
18092 | if (!Arg::isValidImmForm(args[2].value())) |
18093 | OPGEN_RETURN(false); |
18094 | if (!args[3].tmp().isFP()) |
18095 | OPGEN_RETURN(false); |
18096 | if (!args[4].tmp().isFP()) |
18097 | OPGEN_RETURN(false); |
18098 | if (!args[5].tmp().isFP()) |
18099 | OPGEN_RETURN(false); |
18100 | OPGEN_RETURN(true); |
18101 | #endif |
18102 | break; |
18103 | break; |
18104 | default: |
18105 | break; |
18106 | } |
18107 | break; |
18108 | default: |
18109 | break; |
18110 | } |
18111 | break; |
18112 | default: |
18113 | break; |
18114 | } |
18115 | break; |
18116 | default: |
18117 | break; |
18118 | } |
18119 | break; |
18120 | case Arg::Addr: |
18121 | case Arg::Stack: |
18122 | case Arg::CallArg: |
18123 | switch (this->args[2].kind()) { |
18124 | case Arg::Imm: |
18125 | switch (this->args[3].kind()) { |
18126 | case Arg::Tmp: |
18127 | switch (this->args[4].kind()) { |
18128 | case Arg::Tmp: |
18129 | switch (this->args[5].kind()) { |
18130 | case Arg::Tmp: |
18131 | #if CPU(X86_64) |
18132 | if (!Arg::isValidAddrForm(args[1].offset())) |
18133 | OPGEN_RETURN(false); |
18134 | if (!Arg::isValidImmForm(args[2].value())) |
18135 | OPGEN_RETURN(false); |
18136 | if (!args[3].tmp().isFP()) |
18137 | OPGEN_RETURN(false); |
18138 | if (!args[4].tmp().isFP()) |
18139 | OPGEN_RETURN(false); |
18140 | if (!args[5].tmp().isFP()) |
18141 | OPGEN_RETURN(false); |
18142 | OPGEN_RETURN(true); |
18143 | #endif |
18144 | break; |
18145 | break; |
18146 | default: |
18147 | break; |
18148 | } |
18149 | break; |
18150 | default: |
18151 | break; |
18152 | } |
18153 | break; |
18154 | default: |
18155 | break; |
18156 | } |
18157 | break; |
18158 | case Arg::Tmp: |
18159 | switch (this->args[3].kind()) { |
18160 | case Arg::Tmp: |
18161 | switch (this->args[4].kind()) { |
18162 | case Arg::Tmp: |
18163 | switch (this->args[5].kind()) { |
18164 | case Arg::Tmp: |
18165 | #if CPU(X86_64) |
18166 | if (!Arg::isValidAddrForm(args[1].offset())) |
18167 | OPGEN_RETURN(false); |
18168 | if (!args[2].tmp().isGP()) |
18169 | OPGEN_RETURN(false); |
18170 | if (!args[3].tmp().isFP()) |
18171 | OPGEN_RETURN(false); |
18172 | if (!args[4].tmp().isFP()) |
18173 | OPGEN_RETURN(false); |
18174 | if (!args[5].tmp().isFP()) |
18175 | OPGEN_RETURN(false); |
18176 | OPGEN_RETURN(true); |
18177 | #endif |
18178 | break; |
18179 | break; |
18180 | default: |
18181 | break; |
18182 | } |
18183 | break; |
18184 | default: |
18185 | break; |
18186 | } |
18187 | break; |
18188 | default: |
18189 | break; |
18190 | } |
18191 | break; |
18192 | default: |
18193 | break; |
18194 | } |
18195 | break; |
18196 | case Arg::Index: |
18197 | switch (this->args[2].kind()) { |
18198 | case Arg::Imm: |
18199 | switch (this->args[3].kind()) { |
18200 | case Arg::Tmp: |
18201 | switch (this->args[4].kind()) { |
18202 | case Arg::Tmp: |
18203 | switch (this->args[5].kind()) { |
18204 | case Arg::Tmp: |
18205 | #if CPU(X86_64) |
18206 | if (!Arg::isValidIndexForm(args[1].scale(), args[1].offset(), Width64)) |
18207 | OPGEN_RETURN(false); |
18208 | if (!Arg::isValidImmForm(args[2].value())) |
18209 | OPGEN_RETURN(false); |
18210 | if (!args[3].tmp().isFP()) |
18211 | OPGEN_RETURN(false); |
18212 | if (!args[4].tmp().isFP()) |
18213 | OPGEN_RETURN(false); |
18214 | if (!args[5].tmp().isFP()) |
18215 | OPGEN_RETURN(false); |
18216 | OPGEN_RETURN(true); |
18217 | #endif |
18218 | break; |
18219 | break; |
18220 | default: |
18221 | break; |
18222 | } |
18223 | break; |
18224 | default: |
18225 | break; |
18226 | } |
18227 | break; |
18228 | default: |
18229 | break; |
18230 | } |
18231 | break; |
18232 | default: |
18233 | break; |
18234 | } |
18235 | break; |
18236 | default: |
18237 | break; |
18238 | } |
18239 | break; |
18240 | default: |
18241 | break; |
18242 | } |
18243 | break; |
18244 | default: |
18245 | break; |
18246 | } |
18247 | break; |
18248 | case Opcode::MoveDoubleConditionallyDouble: |
18249 | switch (this->args.size()) { |
18250 | case 6: |
18251 | switch (this->args[0].kind()) { |
18252 | case Arg::DoubleCond: |
18253 | switch (this->args[1].kind()) { |
18254 | case Arg::Tmp: |
18255 | switch (this->args[2].kind()) { |
18256 | case Arg::Tmp: |
18257 | switch (this->args[3].kind()) { |
18258 | case Arg::Tmp: |
18259 | switch (this->args[4].kind()) { |
18260 | case Arg::Tmp: |
18261 | switch (this->args[5].kind()) { |
18262 | case Arg::Tmp: |
18263 | if (!args[1].tmp().isFP()) |
18264 | OPGEN_RETURN(false); |
18265 | if (!args[2].tmp().isFP()) |
18266 | OPGEN_RETURN(false); |
18267 | if (!args[3].tmp().isFP()) |
18268 | OPGEN_RETURN(false); |
18269 | if (!args[4].tmp().isFP()) |
18270 | OPGEN_RETURN(false); |
18271 | if (!args[5].tmp().isFP()) |
18272 | OPGEN_RETURN(false); |
18273 | OPGEN_RETURN(true); |
18274 | break; |
18275 | break; |
18276 | default: |
18277 | break; |
18278 | } |
18279 | break; |
18280 | default: |
18281 | break; |
18282 | } |
18283 | break; |
18284 | default: |
18285 | break; |
18286 | } |
18287 | break; |
18288 | default: |
18289 | break; |
18290 | } |
18291 | break; |
18292 | default: |
18293 | break; |
18294 | } |
18295 | break; |
18296 | default: |
18297 | break; |
18298 | } |
18299 | break; |
18300 | default: |
18301 | break; |
18302 | } |
18303 | break; |
18304 | case Opcode::MoveDoubleConditionallyFloat: |
18305 | switch (this->args.size()) { |
18306 | case 6: |
18307 | switch (this->args[0].kind()) { |
18308 | case Arg::DoubleCond: |
18309 | switch (this->args[1].kind()) { |
18310 | case Arg::Tmp: |
18311 | switch (this->args[2].kind()) { |
18312 | case Arg::Tmp: |
18313 | switch (this->args[3].kind()) { |
18314 | case Arg::Tmp: |
18315 | switch (this->args[4].kind()) { |
18316 | case Arg::Tmp: |
18317 | switch (this->args[5].kind()) { |
18318 | case Arg::Tmp: |
18319 | if (!args[1].tmp().isFP()) |
18320 | OPGEN_RETURN(false); |
18321 | if (!args[2].tmp().isFP()) |
18322 | OPGEN_RETURN(false); |
18323 | if (!args[3].tmp().isFP()) |
18324 | OPGEN_RETURN(false); |
18325 | if (!args[4].tmp().isFP()) |
18326 | OPGEN_RETURN(false); |
18327 | if (!args[5].tmp().isFP()) |
18328 | OPGEN_RETURN(false); |
18329 | OPGEN_RETURN(true); |
18330 | break; |
18331 | break; |
18332 | default: |
18333 | break; |
18334 | } |
18335 | break; |
18336 | default: |
18337 | break; |
18338 | } |
18339 | break; |
18340 | default: |
18341 | break; |
18342 | } |
18343 | break; |
18344 | default: |
18345 | break; |
18346 | } |
18347 | break; |
18348 | default: |
18349 | break; |
18350 | } |
18351 | break; |
18352 | default: |
18353 | break; |
18354 | } |
18355 | break; |
18356 | default: |
18357 | break; |
18358 | } |
18359 | break; |
18360 | case Opcode::MemoryFence: |
18361 | switch (this->args.size()) { |
18362 | case 0: |
18363 | OPGEN_RETURN(true); |
18364 | break; |
18365 | break; |
18366 | default: |
18367 | break; |
18368 | } |
18369 | break; |
18370 | case Opcode::StoreFence: |
18371 | switch (this->args.size()) { |
18372 | case 0: |
18373 | OPGEN_RETURN(true); |
18374 | break; |
18375 | break; |
18376 | default: |
18377 | break; |
18378 | } |
18379 | break; |
18380 | case Opcode::LoadFence: |
18381 | switch (this->args.size()) { |
18382 | case 0: |
18383 | OPGEN_RETURN(true); |
18384 | break; |
18385 | break; |
18386 | default: |
18387 | break; |
18388 | } |
18389 | break; |
18390 | case Opcode::Jump: |
18391 | switch (this->args.size()) { |
18392 | case 0: |
18393 | OPGEN_RETURN(true); |
18394 | break; |
18395 | break; |
18396 | default: |
18397 | break; |
18398 | } |
18399 | break; |
18400 | case Opcode::RetVoid: |
18401 | switch (this->args.size()) { |
18402 | case 0: |
18403 | OPGEN_RETURN(true); |
18404 | break; |
18405 | break; |
18406 | default: |
18407 | break; |
18408 | } |
18409 | break; |
18410 | case Opcode::Ret32: |
18411 | switch (this->args.size()) { |
18412 | case 1: |
18413 | switch (this->args[0].kind()) { |
18414 | case Arg::Tmp: |
18415 | if (!args[0].tmp().isGP()) |
18416 | OPGEN_RETURN(false); |
18417 | OPGEN_RETURN(true); |
18418 | break; |
18419 | break; |
18420 | default: |
18421 | break; |
18422 | } |
18423 | break; |
18424 | default: |
18425 | break; |
18426 | } |
18427 | break; |
18428 | case Opcode::Ret64: |
18429 | switch (this->args.size()) { |
18430 | case 1: |
18431 | switch (this->args[0].kind()) { |
18432 | case Arg::Tmp: |
18433 | #if CPU(X86_64) || CPU(ARM64) |
18434 | if (!args[0].tmp().isGP()) |
18435 | OPGEN_RETURN(false); |
18436 | OPGEN_RETURN(true); |
18437 | #endif |
18438 | break; |
18439 | break; |
18440 | default: |
18441 | break; |
18442 | } |
18443 | break; |
18444 | default: |
18445 | break; |
18446 | } |
18447 | break; |
18448 | case Opcode::RetFloat: |
18449 | switch (this->args.size()) { |
18450 | case 1: |
18451 | switch (this->args[0].kind()) { |
18452 | case Arg::Tmp: |
18453 | if (!args[0].tmp().isFP()) |
18454 | OPGEN_RETURN(false); |
18455 | OPGEN_RETURN(true); |
18456 | break; |
18457 | break; |
18458 | default: |
18459 | break; |
18460 | } |
18461 | break; |
18462 | default: |
18463 | break; |
18464 | } |
18465 | break; |
18466 | case Opcode::RetDouble: |
18467 | switch (this->args.size()) { |
18468 | case 1: |
18469 | switch (this->args[0].kind()) { |
18470 | case Arg::Tmp: |
18471 | if (!args[0].tmp().isFP()) |
18472 | OPGEN_RETURN(false); |
18473 | OPGEN_RETURN(true); |
18474 | break; |
18475 | break; |
18476 | default: |
18477 | break; |
18478 | } |
18479 | break; |
18480 | default: |
18481 | break; |
18482 | } |
18483 | break; |
18484 | case Opcode::Oops: |
18485 | switch (this->args.size()) { |
18486 | case 0: |
18487 | OPGEN_RETURN(true); |
18488 | break; |
18489 | break; |
18490 | default: |
18491 | break; |
18492 | } |
18493 | break; |
18494 | case Opcode::EntrySwitch: |
18495 | OPGEN_RETURN(EntrySwitchCustom::isValidForm(*this)); |
18496 | break; |
18497 | case Opcode::Shuffle: |
18498 | OPGEN_RETURN(ShuffleCustom::isValidForm(*this)); |
18499 | break; |
18500 | case Opcode::Patch: |
18501 | OPGEN_RETURN(PatchCustom::isValidForm(*this)); |
18502 | break; |
18503 | case Opcode::CCall: |
18504 | OPGEN_RETURN(CCallCustom::isValidForm(*this)); |
18505 | break; |
18506 | case Opcode::ColdCCall: |
18507 | OPGEN_RETURN(ColdCCallCustom::isValidForm(*this)); |
18508 | break; |
18509 | case Opcode::WasmBoundsCheck: |
18510 | OPGEN_RETURN(WasmBoundsCheckCustom::isValidForm(*this)); |
18511 | break; |
18512 | default: |
18513 | break; |
18514 | } |
18515 | return false; |
18516 | } |
18517 | bool Inst::admitsStack(unsigned argIndex) |
18518 | { |
18519 | switch (kind.opcode) { |
18520 | case Opcode::Nop: |
18521 | switch (argIndex) { |
18522 | default: |
18523 | break; |
18524 | } |
18525 | break; |
18526 | case Opcode::Add32: |
18527 | switch (argIndex) { |
18528 | case 0: |
18529 | switch (args.size()) { |
18530 | case 2: |
18531 | switch (Arg::Addr) { |
18532 | case Arg::Tmp: |
18533 | break; |
18534 | case Arg::Imm: |
18535 | break; |
18536 | case Arg::Addr: |
18537 | case Arg::Stack: |
18538 | case Arg::CallArg: |
18539 | switch (args[1].kind()) { |
18540 | case Arg::Tmp: |
18541 | #if CPU(X86) || CPU(X86_64) |
18542 | OPGEN_RETURN(true); |
18543 | #endif |
18544 | break; |
18545 | break; |
18546 | default: |
18547 | break; |
18548 | } |
18549 | break; |
18550 | case Arg::Index: |
18551 | break; |
18552 | default: |
18553 | break; |
18554 | } |
18555 | break; |
18556 | default: |
18557 | break; |
18558 | } |
18559 | break; |
18560 | case 1: |
18561 | switch (args.size()) { |
18562 | case 2: |
18563 | switch (args[0].kind()) { |
18564 | case Arg::Tmp: |
18565 | switch (Arg::Addr) { |
18566 | case Arg::Tmp: |
18567 | break; |
18568 | case Arg::Addr: |
18569 | case Arg::Stack: |
18570 | case Arg::CallArg: |
18571 | #if CPU(X86) || CPU(X86_64) |
18572 | OPGEN_RETURN(true); |
18573 | #endif |
18574 | break; |
18575 | break; |
18576 | case Arg::Index: |
18577 | break; |
18578 | default: |
18579 | break; |
18580 | } |
18581 | break; |
18582 | case Arg::Imm: |
18583 | switch (Arg::Addr) { |
18584 | case Arg::Addr: |
18585 | case Arg::Stack: |
18586 | case Arg::CallArg: |
18587 | #if CPU(X86) || CPU(X86_64) |
18588 | OPGEN_RETURN(true); |
18589 | #endif |
18590 | break; |
18591 | break; |
18592 | case Arg::Index: |
18593 | break; |
18594 | case Arg::Tmp: |
18595 | break; |
18596 | default: |
18597 | break; |
18598 | } |
18599 | break; |
18600 | case Arg::Addr: |
18601 | case Arg::Stack: |
18602 | case Arg::CallArg: |
18603 | break; |
18604 | case Arg::Index: |
18605 | break; |
18606 | default: |
18607 | break; |
18608 | } |
18609 | break; |
18610 | default: |
18611 | break; |
18612 | } |
18613 | break; |
18614 | case 2: |
18615 | OPGEN_RETURN(false); |
18616 | break; |
18617 | default: |
18618 | break; |
18619 | } |
18620 | break; |
18621 | case Opcode::Add8: |
18622 | switch (argIndex) { |
18623 | case 0: |
18624 | OPGEN_RETURN(false); |
18625 | break; |
18626 | case 1: |
18627 | switch (args[0].kind()) { |
18628 | case Arg::Imm: |
18629 | switch (Arg::Addr) { |
18630 | case Arg::Addr: |
18631 | case Arg::Stack: |
18632 | case Arg::CallArg: |
18633 | #if CPU(X86) || CPU(X86_64) |
18634 | OPGEN_RETURN(true); |
18635 | #endif |
18636 | break; |
18637 | break; |
18638 | case Arg::Index: |
18639 | break; |
18640 | default: |
18641 | break; |
18642 | } |
18643 | break; |
18644 | case Arg::Tmp: |
18645 | switch (Arg::Addr) { |
18646 | case Arg::Addr: |
18647 | case Arg::Stack: |
18648 | case Arg::CallArg: |
18649 | #if CPU(X86) || CPU(X86_64) |
18650 | OPGEN_RETURN(true); |
18651 | #endif |
18652 | break; |
18653 | break; |
18654 | case Arg::Index: |
18655 | break; |
18656 | default: |
18657 | break; |
18658 | } |
18659 | break; |
18660 | default: |
18661 | break; |
18662 | } |
18663 | break; |
18664 | default: |
18665 | break; |
18666 | } |
18667 | break; |
18668 | case Opcode::Add16: |
18669 | switch (argIndex) { |
18670 | case 0: |
18671 | OPGEN_RETURN(false); |
18672 | break; |
18673 | case 1: |
18674 | switch (args[0].kind()) { |
18675 | case Arg::Imm: |
18676 | switch (Arg::Addr) { |
18677 | case Arg::Addr: |
18678 | case Arg::Stack: |
18679 | case Arg::CallArg: |
18680 | #if CPU(X86) || CPU(X86_64) |
18681 | OPGEN_RETURN(true); |
18682 | #endif |
18683 | break; |
18684 | break; |
18685 | case Arg::Index: |
18686 | break; |
18687 | default: |
18688 | break; |
18689 | } |
18690 | break; |
18691 | case Arg::Tmp: |
18692 | switch (Arg::Addr) { |
18693 | case Arg::Addr: |
18694 | case Arg::Stack: |
18695 | case Arg::CallArg: |
18696 | #if CPU(X86) || CPU(X86_64) |
18697 | OPGEN_RETURN(true); |
18698 | #endif |
18699 | break; |
18700 | break; |
18701 | case Arg::Index: |
18702 | break; |
18703 | default: |
18704 | break; |
18705 | } |
18706 | break; |
18707 | default: |
18708 | break; |
18709 | } |
18710 | break; |
18711 | default: |
18712 | break; |
18713 | } |
18714 | break; |
18715 | case Opcode::Add64: |
18716 | switch (argIndex) { |
18717 | case 0: |
18718 | switch (args.size()) { |
18719 | case 2: |
18720 | switch (Arg::Addr) { |
18721 | case Arg::Tmp: |
18722 | break; |
18723 | case Arg::Imm: |
18724 | break; |
18725 | case Arg::Addr: |
18726 | case Arg::Stack: |
18727 | case Arg::CallArg: |
18728 | switch (args[1].kind()) { |
18729 | case Arg::Tmp: |
18730 | #if CPU(X86_64) |
18731 | OPGEN_RETURN(true); |
18732 | #endif |
18733 | break; |
18734 | break; |
18735 | default: |
18736 | break; |
18737 | } |
18738 | break; |
18739 | case Arg::Index: |
18740 | break; |
18741 | default: |
18742 | break; |
18743 | } |
18744 | break; |
18745 | default: |
18746 | break; |
18747 | } |
18748 | break; |
18749 | case 1: |
18750 | switch (args.size()) { |
18751 | case 2: |
18752 | switch (args[0].kind()) { |
18753 | case Arg::Tmp: |
18754 | switch (Arg::Addr) { |
18755 | case Arg::Tmp: |
18756 | break; |
18757 | case Arg::Addr: |
18758 | case Arg::Stack: |
18759 | case Arg::CallArg: |
18760 | #if CPU(X86_64) |
18761 | OPGEN_RETURN(true); |
18762 | #endif |
18763 | break; |
18764 | break; |
18765 | case Arg::Index: |
18766 | break; |
18767 | default: |
18768 | break; |
18769 | } |
18770 | break; |
18771 | case Arg::Imm: |
18772 | switch (Arg::Addr) { |
18773 | case Arg::Addr: |
18774 | case Arg::Stack: |
18775 | case Arg::CallArg: |
18776 | #if CPU(X86_64) |
18777 | OPGEN_RETURN(true); |
18778 | #endif |
18779 | break; |
18780 | break; |
18781 | case Arg::Index: |
18782 | break; |
18783 | case Arg::Tmp: |
18784 | break; |
18785 | default: |
18786 | break; |
18787 | } |
18788 | break; |
18789 | case Arg::Addr: |
18790 | case Arg::Stack: |
18791 | case Arg::CallArg: |
18792 | break; |
18793 | case Arg::Index: |
18794 | break; |
18795 | default: |
18796 | break; |
18797 | } |
18798 | break; |
18799 | default: |
18800 | break; |
18801 | } |
18802 | break; |
18803 | case 2: |
18804 | OPGEN_RETURN(false); |
18805 | break; |
18806 | default: |
18807 | break; |
18808 | } |
18809 | break; |
18810 | case Opcode::AddDouble: |
18811 | switch (argIndex) { |
18812 | case 0: |
18813 | switch (args.size()) { |
18814 | case 3: |
18815 | switch (Arg::Addr) { |
18816 | case Arg::Tmp: |
18817 | break; |
18818 | case Arg::Addr: |
18819 | case Arg::Stack: |
18820 | case Arg::CallArg: |
18821 | switch (args[1].kind()) { |
18822 | case Arg::Tmp: |
18823 | switch (args[2].kind()) { |
18824 | case Arg::Tmp: |
18825 | #if CPU(X86) || CPU(X86_64) |
18826 | OPGEN_RETURN(true); |
18827 | #endif |
18828 | break; |
18829 | break; |
18830 | default: |
18831 | break; |
18832 | } |
18833 | break; |
18834 | default: |
18835 | break; |
18836 | } |
18837 | break; |
18838 | case Arg::Index: |
18839 | break; |
18840 | default: |
18841 | break; |
18842 | } |
18843 | break; |
18844 | case 2: |
18845 | switch (Arg::Addr) { |
18846 | case Arg::Tmp: |
18847 | break; |
18848 | case Arg::Addr: |
18849 | case Arg::Stack: |
18850 | case Arg::CallArg: |
18851 | switch (args[1].kind()) { |
18852 | case Arg::Tmp: |
18853 | #if CPU(X86) || CPU(X86_64) |
18854 | OPGEN_RETURN(true); |
18855 | #endif |
18856 | break; |
18857 | break; |
18858 | default: |
18859 | break; |
18860 | } |
18861 | break; |
18862 | default: |
18863 | break; |
18864 | } |
18865 | break; |
18866 | default: |
18867 | break; |
18868 | } |
18869 | break; |
18870 | case 1: |
18871 | switch (args.size()) { |
18872 | case 3: |
18873 | switch (args[0].kind()) { |
18874 | case Arg::Tmp: |
18875 | switch (Arg::Addr) { |
18876 | case Arg::Tmp: |
18877 | break; |
18878 | case Arg::Addr: |
18879 | case Arg::Stack: |
18880 | case Arg::CallArg: |
18881 | switch (args[2].kind()) { |
18882 | case Arg::Tmp: |
18883 | #if CPU(X86) || CPU(X86_64) |
18884 | OPGEN_RETURN(true); |
18885 | #endif |
18886 | break; |
18887 | break; |
18888 | default: |
18889 | break; |
18890 | } |
18891 | break; |
18892 | default: |
18893 | break; |
18894 | } |
18895 | break; |
18896 | case Arg::Addr: |
18897 | case Arg::Stack: |
18898 | case Arg::CallArg: |
18899 | break; |
18900 | case Arg::Index: |
18901 | break; |
18902 | default: |
18903 | break; |
18904 | } |
18905 | break; |
18906 | default: |
18907 | break; |
18908 | } |
18909 | break; |
18910 | case 2: |
18911 | OPGEN_RETURN(false); |
18912 | break; |
18913 | default: |
18914 | break; |
18915 | } |
18916 | break; |
18917 | case Opcode::AddFloat: |
18918 | switch (argIndex) { |
18919 | case 0: |
18920 | switch (args.size()) { |
18921 | case 3: |
18922 | switch (Arg::Addr) { |
18923 | case Arg::Tmp: |
18924 | break; |
18925 | case Arg::Addr: |
18926 | case Arg::Stack: |
18927 | case Arg::CallArg: |
18928 | switch (args[1].kind()) { |
18929 | case Arg::Tmp: |
18930 | switch (args[2].kind()) { |
18931 | case Arg::Tmp: |
18932 | #if CPU(X86) || CPU(X86_64) |
18933 | OPGEN_RETURN(true); |
18934 | #endif |
18935 | break; |
18936 | break; |
18937 | default: |
18938 | break; |
18939 | } |
18940 | break; |
18941 | default: |
18942 | break; |
18943 | } |
18944 | break; |
18945 | case Arg::Index: |
18946 | break; |
18947 | default: |
18948 | break; |
18949 | } |
18950 | break; |
18951 | case 2: |
18952 | switch (Arg::Addr) { |
18953 | case Arg::Tmp: |
18954 | break; |
18955 | case Arg::Addr: |
18956 | case Arg::Stack: |
18957 | case Arg::CallArg: |
18958 | switch (args[1].kind()) { |
18959 | case Arg::Tmp: |
18960 | #if CPU(X86) || CPU(X86_64) |
18961 | OPGEN_RETURN(true); |
18962 | #endif |
18963 | break; |
18964 | break; |
18965 | default: |
18966 | break; |
18967 | } |
18968 | break; |
18969 | default: |
18970 | break; |
18971 | } |
18972 | break; |
18973 | default: |
18974 | break; |
18975 | } |
18976 | break; |
18977 | case 1: |
18978 | switch (args.size()) { |
18979 | case 3: |
18980 | switch (args[0].kind()) { |
18981 | case Arg::Tmp: |
18982 | switch (Arg::Addr) { |
18983 | case Arg::Tmp: |
18984 | break; |
18985 | case Arg::Addr: |
18986 | case Arg::Stack: |
18987 | case Arg::CallArg: |
18988 | switch (args[2].kind()) { |
18989 | case Arg::Tmp: |
18990 | #if CPU(X86) || CPU(X86_64) |
18991 | OPGEN_RETURN(true); |
18992 | #endif |
18993 | break; |
18994 | break; |
18995 | default: |
18996 | break; |
18997 | } |
18998 | break; |
18999 | default: |
19000 | break; |
19001 | } |
19002 | break; |
19003 | case Arg::Addr: |
19004 | case Arg::Stack: |
19005 | case Arg::CallArg: |
19006 | break; |
19007 | case Arg::Index: |
19008 | break; |
19009 | default: |
19010 | break; |
19011 | } |
19012 | break; |
19013 | default: |
19014 | break; |
19015 | } |
19016 | break; |
19017 | case 2: |
19018 | OPGEN_RETURN(false); |
19019 | break; |
19020 | default: |
19021 | break; |
19022 | } |
19023 | break; |
19024 | case Opcode::Sub32: |
19025 | switch (argIndex) { |
19026 | case 0: |
19027 | switch (args.size()) { |
19028 | case 2: |
19029 | switch (Arg::Addr) { |
19030 | case Arg::Tmp: |
19031 | break; |
19032 | case Arg::Imm: |
19033 | break; |
19034 | case Arg::Addr: |
19035 | case Arg::Stack: |
19036 | case Arg::CallArg: |
19037 | switch (args[1].kind()) { |
19038 | case Arg::Tmp: |
19039 | #if CPU(X86) || CPU(X86_64) |
19040 | OPGEN_RETURN(true); |
19041 | #endif |
19042 | break; |
19043 | break; |
19044 | default: |
19045 | break; |
19046 | } |
19047 | break; |
19048 | case Arg::Index: |
19049 | break; |
19050 | default: |
19051 | break; |
19052 | } |
19053 | break; |
19054 | default: |
19055 | break; |
19056 | } |
19057 | break; |
19058 | case 1: |
19059 | switch (args.size()) { |
19060 | case 2: |
19061 | switch (args[0].kind()) { |
19062 | case Arg::Tmp: |
19063 | switch (Arg::Addr) { |
19064 | case Arg::Tmp: |
19065 | break; |
19066 | case Arg::Addr: |
19067 | case Arg::Stack: |
19068 | case Arg::CallArg: |
19069 | #if CPU(X86) || CPU(X86_64) |
19070 | OPGEN_RETURN(true); |
19071 | #endif |
19072 | break; |
19073 | break; |
19074 | case Arg::Index: |
19075 | break; |
19076 | default: |
19077 | break; |
19078 | } |
19079 | break; |
19080 | case Arg::Imm: |
19081 | switch (Arg::Addr) { |
19082 | case Arg::Addr: |
19083 | case Arg::Stack: |
19084 | case Arg::CallArg: |
19085 | #if CPU(X86) || CPU(X86_64) |
19086 | OPGEN_RETURN(true); |
19087 | #endif |
19088 | break; |
19089 | break; |
19090 | case Arg::Index: |
19091 | break; |
19092 | case Arg::Tmp: |
19093 | break; |
19094 | default: |
19095 | break; |
19096 | } |
19097 | break; |
19098 | case Arg::Addr: |
19099 | case Arg::Stack: |
19100 | case Arg::CallArg: |
19101 | break; |
19102 | case Arg::Index: |
19103 | break; |
19104 | default: |
19105 | break; |
19106 | } |
19107 | break; |
19108 | default: |
19109 | break; |
19110 | } |
19111 | break; |
19112 | case 2: |
19113 | OPGEN_RETURN(false); |
19114 | break; |
19115 | default: |
19116 | break; |
19117 | } |
19118 | break; |
19119 | case Opcode::Sub64: |
19120 | switch (argIndex) { |
19121 | case 0: |
19122 | switch (args.size()) { |
19123 | case 2: |
19124 | switch (Arg::Addr) { |
19125 | case Arg::Tmp: |
19126 | break; |
19127 | case Arg::Imm: |
19128 | break; |
19129 | case Arg::Addr: |
19130 | case Arg::Stack: |
19131 | case Arg::CallArg: |
19132 | switch (args[1].kind()) { |
19133 | case Arg::Tmp: |
19134 | #if CPU(X86_64) |
19135 | OPGEN_RETURN(true); |
19136 | #endif |
19137 | break; |
19138 | break; |
19139 | default: |
19140 | break; |
19141 | } |
19142 | break; |
19143 | case Arg::Index: |
19144 | break; |
19145 | default: |
19146 | break; |
19147 | } |
19148 | break; |
19149 | default: |
19150 | break; |
19151 | } |
19152 | break; |
19153 | case 1: |
19154 | switch (args.size()) { |
19155 | case 2: |
19156 | switch (args[0].kind()) { |
19157 | case Arg::Tmp: |
19158 | switch (Arg::Addr) { |
19159 | case Arg::Tmp: |
19160 | break; |
19161 | case Arg::Addr: |
19162 | case Arg::Stack: |
19163 | case Arg::CallArg: |
19164 | #if CPU(X86_64) |
19165 | OPGEN_RETURN(true); |
19166 | #endif |
19167 | break; |
19168 | break; |
19169 | case Arg::Index: |
19170 | break; |
19171 | default: |
19172 | break; |
19173 | } |
19174 | break; |
19175 | case Arg::Imm: |
19176 | switch (Arg::Addr) { |
19177 | case Arg::Addr: |
19178 | case Arg::Stack: |
19179 | case Arg::CallArg: |
19180 | #if CPU(X86_64) |
19181 | OPGEN_RETURN(true); |
19182 | #endif |
19183 | break; |
19184 | break; |
19185 | case Arg::Index: |
19186 | break; |
19187 | case Arg::Tmp: |
19188 | break; |
19189 | default: |
19190 | break; |
19191 | } |
19192 | break; |
19193 | case Arg::Addr: |
19194 | case Arg::Stack: |
19195 | case Arg::CallArg: |
19196 | break; |
19197 | case Arg::Index: |
19198 | break; |
19199 | default: |
19200 | break; |
19201 | } |
19202 | break; |
19203 | default: |
19204 | break; |
19205 | } |
19206 | break; |
19207 | case 2: |
19208 | OPGEN_RETURN(false); |
19209 | break; |
19210 | default: |
19211 | break; |
19212 | } |
19213 | break; |
19214 | case Opcode::SubDouble: |
19215 | switch (argIndex) { |
19216 | case 0: |
19217 | switch (args.size()) { |
19218 | case 2: |
19219 | switch (Arg::Addr) { |
19220 | case Arg::Tmp: |
19221 | break; |
19222 | case Arg::Addr: |
19223 | case Arg::Stack: |
19224 | case Arg::CallArg: |
19225 | switch (args[1].kind()) { |
19226 | case Arg::Tmp: |
19227 | #if CPU(X86) || CPU(X86_64) |
19228 | OPGEN_RETURN(true); |
19229 | #endif |
19230 | break; |
19231 | break; |
19232 | default: |
19233 | break; |
19234 | } |
19235 | break; |
19236 | default: |
19237 | break; |
19238 | } |
19239 | break; |
19240 | default: |
19241 | break; |
19242 | } |
19243 | break; |
19244 | case 1: |
19245 | switch (args.size()) { |
19246 | case 3: |
19247 | switch (args[0].kind()) { |
19248 | case Arg::Tmp: |
19249 | switch (Arg::Addr) { |
19250 | case Arg::Tmp: |
19251 | break; |
19252 | case Arg::Addr: |
19253 | case Arg::Stack: |
19254 | case Arg::CallArg: |
19255 | switch (args[2].kind()) { |
19256 | case Arg::Tmp: |
19257 | #if CPU(X86) || CPU(X86_64) |
19258 | OPGEN_RETURN(true); |
19259 | #endif |
19260 | break; |
19261 | break; |
19262 | default: |
19263 | break; |
19264 | } |
19265 | break; |
19266 | case Arg::Index: |
19267 | break; |
19268 | default: |
19269 | break; |
19270 | } |
19271 | break; |
19272 | default: |
19273 | break; |
19274 | } |
19275 | break; |
19276 | default: |
19277 | break; |
19278 | } |
19279 | break; |
19280 | case 2: |
19281 | OPGEN_RETURN(false); |
19282 | break; |
19283 | default: |
19284 | break; |
19285 | } |
19286 | break; |
19287 | case Opcode::SubFloat: |
19288 | switch (argIndex) { |
19289 | case 0: |
19290 | switch (args.size()) { |
19291 | case 2: |
19292 | switch (Arg::Addr) { |
19293 | case Arg::Tmp: |
19294 | break; |
19295 | case Arg::Addr: |
19296 | case Arg::Stack: |
19297 | case Arg::CallArg: |
19298 | switch (args[1].kind()) { |
19299 | case Arg::Tmp: |
19300 | #if CPU(X86) || CPU(X86_64) |
19301 | OPGEN_RETURN(true); |
19302 | #endif |
19303 | break; |
19304 | break; |
19305 | default: |
19306 | break; |
19307 | } |
19308 | break; |
19309 | default: |
19310 | break; |
19311 | } |
19312 | break; |
19313 | default: |
19314 | break; |
19315 | } |
19316 | break; |
19317 | case 1: |
19318 | switch (args.size()) { |
19319 | case 3: |
19320 | switch (args[0].kind()) { |
19321 | case Arg::Tmp: |
19322 | switch (Arg::Addr) { |
19323 | case Arg::Tmp: |
19324 | break; |
19325 | case Arg::Addr: |
19326 | case Arg::Stack: |
19327 | case Arg::CallArg: |
19328 | switch (args[2].kind()) { |
19329 | case Arg::Tmp: |
19330 | #if CPU(X86) || CPU(X86_64) |
19331 | OPGEN_RETURN(true); |
19332 | #endif |
19333 | break; |
19334 | break; |
19335 | default: |
19336 | break; |
19337 | } |
19338 | break; |
19339 | case Arg::Index: |
19340 | break; |
19341 | default: |
19342 | break; |
19343 | } |
19344 | break; |
19345 | default: |
19346 | break; |
19347 | } |
19348 | break; |
19349 | default: |
19350 | break; |
19351 | } |
19352 | break; |
19353 | case 2: |
19354 | OPGEN_RETURN(false); |
19355 | break; |
19356 | default: |
19357 | break; |
19358 | } |
19359 | break; |
19360 | case Opcode::Neg32: |
19361 | switch (argIndex) { |
19362 | case 0: |
19363 | switch (Arg::Addr) { |
19364 | case Arg::Tmp: |
19365 | break; |
19366 | case Arg::Addr: |
19367 | case Arg::Stack: |
19368 | case Arg::CallArg: |
19369 | #if CPU(X86) || CPU(X86_64) |
19370 | OPGEN_RETURN(true); |
19371 | #endif |
19372 | break; |
19373 | break; |
19374 | case Arg::Index: |
19375 | break; |
19376 | default: |
19377 | break; |
19378 | } |
19379 | break; |
19380 | default: |
19381 | break; |
19382 | } |
19383 | break; |
19384 | case Opcode::Neg64: |
19385 | switch (argIndex) { |
19386 | case 0: |
19387 | switch (Arg::Addr) { |
19388 | case Arg::Tmp: |
19389 | break; |
19390 | case Arg::Addr: |
19391 | case Arg::Stack: |
19392 | case Arg::CallArg: |
19393 | #if CPU(X86_64) |
19394 | OPGEN_RETURN(true); |
19395 | #endif |
19396 | break; |
19397 | break; |
19398 | case Arg::Index: |
19399 | break; |
19400 | default: |
19401 | break; |
19402 | } |
19403 | break; |
19404 | default: |
19405 | break; |
19406 | } |
19407 | break; |
19408 | case Opcode::NegateDouble: |
19409 | switch (argIndex) { |
19410 | case 0: |
19411 | OPGEN_RETURN(false); |
19412 | break; |
19413 | case 1: |
19414 | OPGEN_RETURN(false); |
19415 | break; |
19416 | default: |
19417 | break; |
19418 | } |
19419 | break; |
19420 | case Opcode::NegateFloat: |
19421 | switch (argIndex) { |
19422 | case 0: |
19423 | OPGEN_RETURN(false); |
19424 | break; |
19425 | case 1: |
19426 | OPGEN_RETURN(false); |
19427 | break; |
19428 | default: |
19429 | break; |
19430 | } |
19431 | break; |
19432 | case Opcode::Mul32: |
19433 | switch (argIndex) { |
19434 | case 0: |
19435 | switch (args.size()) { |
19436 | case 2: |
19437 | switch (Arg::Addr) { |
19438 | case Arg::Tmp: |
19439 | break; |
19440 | case Arg::Addr: |
19441 | case Arg::Stack: |
19442 | case Arg::CallArg: |
19443 | switch (args[1].kind()) { |
19444 | case Arg::Tmp: |
19445 | #if CPU(X86) || CPU(X86_64) |
19446 | OPGEN_RETURN(true); |
19447 | #endif |
19448 | break; |
19449 | break; |
19450 | default: |
19451 | break; |
19452 | } |
19453 | break; |
19454 | default: |
19455 | break; |
19456 | } |
19457 | break; |
19458 | case 3: |
19459 | switch (Arg::Addr) { |
19460 | case Arg::Tmp: |
19461 | break; |
19462 | case Arg::Addr: |
19463 | case Arg::Stack: |
19464 | case Arg::CallArg: |
19465 | switch (args[1].kind()) { |
19466 | case Arg::Tmp: |
19467 | switch (args[2].kind()) { |
19468 | case Arg::Tmp: |
19469 | #if CPU(X86) || CPU(X86_64) |
19470 | OPGEN_RETURN(true); |
19471 | #endif |
19472 | break; |
19473 | break; |
19474 | default: |
19475 | break; |
19476 | } |
19477 | break; |
19478 | default: |
19479 | break; |
19480 | } |
19481 | break; |
19482 | case Arg::Imm: |
19483 | break; |
19484 | default: |
19485 | break; |
19486 | } |
19487 | break; |
19488 | default: |
19489 | break; |
19490 | } |
19491 | break; |
19492 | case 1: |
19493 | switch (args.size()) { |
19494 | case 3: |
19495 | switch (args[0].kind()) { |
19496 | case Arg::Tmp: |
19497 | switch (Arg::Addr) { |
19498 | case Arg::Tmp: |
19499 | break; |
19500 | case Arg::Addr: |
19501 | case Arg::Stack: |
19502 | case Arg::CallArg: |
19503 | switch (args[2].kind()) { |
19504 | case Arg::Tmp: |
19505 | #if CPU(X86) || CPU(X86_64) |
19506 | OPGEN_RETURN(true); |
19507 | #endif |
19508 | break; |
19509 | break; |
19510 | default: |
19511 | break; |
19512 | } |
19513 | break; |
19514 | default: |
19515 | break; |
19516 | } |
19517 | break; |
19518 | case Arg::Addr: |
19519 | case Arg::Stack: |
19520 | case Arg::CallArg: |
19521 | break; |
19522 | case Arg::Imm: |
19523 | break; |
19524 | default: |
19525 | break; |
19526 | } |
19527 | break; |
19528 | default: |
19529 | break; |
19530 | } |
19531 | break; |
19532 | case 2: |
19533 | OPGEN_RETURN(false); |
19534 | break; |
19535 | default: |
19536 | break; |
19537 | } |
19538 | break; |
19539 | case Opcode::Mul64: |
19540 | switch (argIndex) { |
19541 | case 0: |
19542 | OPGEN_RETURN(false); |
19543 | break; |
19544 | case 1: |
19545 | OPGEN_RETURN(false); |
19546 | break; |
19547 | case 2: |
19548 | OPGEN_RETURN(false); |
19549 | break; |
19550 | default: |
19551 | break; |
19552 | } |
19553 | break; |
19554 | case Opcode::MultiplyAdd32: |
19555 | switch (argIndex) { |
19556 | case 0: |
19557 | OPGEN_RETURN(false); |
19558 | break; |
19559 | case 1: |
19560 | OPGEN_RETURN(false); |
19561 | break; |
19562 | case 2: |
19563 | OPGEN_RETURN(false); |
19564 | break; |
19565 | case 3: |
19566 | OPGEN_RETURN(false); |
19567 | break; |
19568 | default: |
19569 | break; |
19570 | } |
19571 | break; |
19572 | case Opcode::MultiplyAdd64: |
19573 | switch (argIndex) { |
19574 | case 0: |
19575 | OPGEN_RETURN(false); |
19576 | break; |
19577 | case 1: |
19578 | OPGEN_RETURN(false); |
19579 | break; |
19580 | case 2: |
19581 | OPGEN_RETURN(false); |
19582 | break; |
19583 | case 3: |
19584 | OPGEN_RETURN(false); |
19585 | break; |
19586 | default: |
19587 | break; |
19588 | } |
19589 | break; |
19590 | case Opcode::MultiplySub32: |
19591 | switch (argIndex) { |
19592 | case 0: |
19593 | OPGEN_RETURN(false); |
19594 | break; |
19595 | case 1: |
19596 | OPGEN_RETURN(false); |
19597 | break; |
19598 | case 2: |
19599 | OPGEN_RETURN(false); |
19600 | break; |
19601 | case 3: |
19602 | OPGEN_RETURN(false); |
19603 | break; |
19604 | default: |
19605 | break; |
19606 | } |
19607 | break; |
19608 | case Opcode::MultiplySub64: |
19609 | switch (argIndex) { |
19610 | case 0: |
19611 | OPGEN_RETURN(false); |
19612 | break; |
19613 | case 1: |
19614 | OPGEN_RETURN(false); |
19615 | break; |
19616 | case 2: |
19617 | OPGEN_RETURN(false); |
19618 | break; |
19619 | case 3: |
19620 | OPGEN_RETURN(false); |
19621 | break; |
19622 | default: |
19623 | break; |
19624 | } |
19625 | break; |
19626 | case Opcode::MultiplyNeg32: |
19627 | switch (argIndex) { |
19628 | case 0: |
19629 | OPGEN_RETURN(false); |
19630 | break; |
19631 | case 1: |
19632 | OPGEN_RETURN(false); |
19633 | break; |
19634 | case 2: |
19635 | OPGEN_RETURN(false); |
19636 | break; |
19637 | default: |
19638 | break; |
19639 | } |
19640 | break; |
19641 | case Opcode::MultiplyNeg64: |
19642 | switch (argIndex) { |
19643 | case 0: |
19644 | OPGEN_RETURN(false); |
19645 | break; |
19646 | case 1: |
19647 | OPGEN_RETURN(false); |
19648 | break; |
19649 | case 2: |
19650 | OPGEN_RETURN(false); |
19651 | break; |
19652 | default: |
19653 | break; |
19654 | } |
19655 | break; |
19656 | case Opcode::Div32: |
19657 | switch (argIndex) { |
19658 | case 0: |
19659 | OPGEN_RETURN(false); |
19660 | break; |
19661 | case 1: |
19662 | OPGEN_RETURN(false); |
19663 | break; |
19664 | case 2: |
19665 | OPGEN_RETURN(false); |
19666 | break; |
19667 | default: |
19668 | break; |
19669 | } |
19670 | break; |
19671 | case Opcode::UDiv32: |
19672 | switch (argIndex) { |
19673 | case 0: |
19674 | OPGEN_RETURN(false); |
19675 | break; |
19676 | case 1: |
19677 | OPGEN_RETURN(false); |
19678 | break; |
19679 | case 2: |
19680 | OPGEN_RETURN(false); |
19681 | break; |
19682 | default: |
19683 | break; |
19684 | } |
19685 | break; |
19686 | case Opcode::Div64: |
19687 | switch (argIndex) { |
19688 | case 0: |
19689 | OPGEN_RETURN(false); |
19690 | break; |
19691 | case 1: |
19692 | OPGEN_RETURN(false); |
19693 | break; |
19694 | case 2: |
19695 | OPGEN_RETURN(false); |
19696 | break; |
19697 | default: |
19698 | break; |
19699 | } |
19700 | break; |
19701 | case Opcode::UDiv64: |
19702 | switch (argIndex) { |
19703 | case 0: |
19704 | OPGEN_RETURN(false); |
19705 | break; |
19706 | case 1: |
19707 | OPGEN_RETURN(false); |
19708 | break; |
19709 | case 2: |
19710 | OPGEN_RETURN(false); |
19711 | break; |
19712 | default: |
19713 | break; |
19714 | } |
19715 | break; |
19716 | case Opcode::MulDouble: |
19717 | switch (argIndex) { |
19718 | case 0: |
19719 | switch (args.size()) { |
19720 | case 3: |
19721 | switch (Arg::Addr) { |
19722 | case Arg::Tmp: |
19723 | break; |
19724 | case Arg::Addr: |
19725 | case Arg::Stack: |
19726 | case Arg::CallArg: |
19727 | switch (args[1].kind()) { |
19728 | case Arg::Tmp: |
19729 | switch (args[2].kind()) { |
19730 | case Arg::Tmp: |
19731 | #if CPU(X86) || CPU(X86_64) |
19732 | OPGEN_RETURN(true); |
19733 | #endif |
19734 | break; |
19735 | break; |
19736 | default: |
19737 | break; |
19738 | } |
19739 | break; |
19740 | default: |
19741 | break; |
19742 | } |
19743 | break; |
19744 | case Arg::Index: |
19745 | break; |
19746 | default: |
19747 | break; |
19748 | } |
19749 | break; |
19750 | case 2: |
19751 | switch (Arg::Addr) { |
19752 | case Arg::Tmp: |
19753 | break; |
19754 | case Arg::Addr: |
19755 | case Arg::Stack: |
19756 | case Arg::CallArg: |
19757 | switch (args[1].kind()) { |
19758 | case Arg::Tmp: |
19759 | #if CPU(X86) || CPU(X86_64) |
19760 | OPGEN_RETURN(true); |
19761 | #endif |
19762 | break; |
19763 | break; |
19764 | default: |
19765 | break; |
19766 | } |
19767 | break; |
19768 | default: |
19769 | break; |
19770 | } |
19771 | break; |
19772 | default: |
19773 | break; |
19774 | } |
19775 | break; |
19776 | case 1: |
19777 | switch (args.size()) { |
19778 | case 3: |
19779 | switch (args[0].kind()) { |
19780 | case Arg::Tmp: |
19781 | switch (Arg::Addr) { |
19782 | case Arg::Tmp: |
19783 | break; |
19784 | case Arg::Addr: |
19785 | case Arg::Stack: |
19786 | case Arg::CallArg: |
19787 | switch (args[2].kind()) { |
19788 | case Arg::Tmp: |
19789 | #if CPU(X86) || CPU(X86_64) |
19790 | OPGEN_RETURN(true); |
19791 | #endif |
19792 | break; |
19793 | break; |
19794 | default: |
19795 | break; |
19796 | } |
19797 | break; |
19798 | default: |
19799 | break; |
19800 | } |
19801 | break; |
19802 | case Arg::Addr: |
19803 | case Arg::Stack: |
19804 | case Arg::CallArg: |
19805 | break; |
19806 | case Arg::Index: |
19807 | break; |
19808 | default: |
19809 | break; |
19810 | } |
19811 | break; |
19812 | default: |
19813 | break; |
19814 | } |
19815 | break; |
19816 | case 2: |
19817 | OPGEN_RETURN(false); |
19818 | break; |
19819 | default: |
19820 | break; |
19821 | } |
19822 | break; |
19823 | case Opcode::MulFloat: |
19824 | switch (argIndex) { |
19825 | case 0: |
19826 | switch (args.size()) { |
19827 | case 3: |
19828 | switch (Arg::Addr) { |
19829 | case Arg::Tmp: |
19830 | break; |
19831 | case Arg::Addr: |
19832 | case Arg::Stack: |
19833 | case Arg::CallArg: |
19834 | switch (args[1].kind()) { |
19835 | case Arg::Tmp: |
19836 | switch (args[2].kind()) { |
19837 | case Arg::Tmp: |
19838 | #if CPU(X86) || CPU(X86_64) |
19839 | OPGEN_RETURN(true); |
19840 | #endif |
19841 | break; |
19842 | break; |
19843 | default: |
19844 | break; |
19845 | } |
19846 | break; |
19847 | default: |
19848 | break; |
19849 | } |
19850 | break; |
19851 | case Arg::Index: |
19852 | break; |
19853 | default: |
19854 | break; |
19855 | } |
19856 | break; |
19857 | case 2: |
19858 | switch (Arg::Addr) { |
19859 | case Arg::Tmp: |
19860 | break; |
19861 | case Arg::Addr: |
19862 | case Arg::Stack: |
19863 | case Arg::CallArg: |
19864 | switch (args[1].kind()) { |
19865 | case Arg::Tmp: |
19866 | #if CPU(X86) || CPU(X86_64) |
19867 | OPGEN_RETURN(true); |
19868 | #endif |
19869 | break; |
19870 | break; |
19871 | default: |
19872 | break; |
19873 | } |
19874 | break; |
19875 | default: |
19876 | break; |
19877 | } |
19878 | break; |
19879 | default: |
19880 | break; |
19881 | } |
19882 | break; |
19883 | case 1: |
19884 | switch (args.size()) { |
19885 | case 3: |
19886 | switch (args[0].kind()) { |
19887 | case Arg::Tmp: |
19888 | switch (Arg::Addr) { |
19889 | case Arg::Tmp: |
19890 | break; |
19891 | case Arg::Addr: |
19892 | case Arg::Stack: |
19893 | case Arg::CallArg: |
19894 | switch (args[2].kind()) { |
19895 | case Arg::Tmp: |
19896 | #if CPU(X86) || CPU(X86_64) |
19897 | OPGEN_RETURN(true); |
19898 | #endif |
19899 | break; |
19900 | break; |
19901 | default: |
19902 | break; |
19903 | } |
19904 | break; |
19905 | default: |
19906 | break; |
19907 | } |
19908 | break; |
19909 | case Arg::Addr: |
19910 | case Arg::Stack: |
19911 | case Arg::CallArg: |
19912 | break; |
19913 | case Arg::Index: |
19914 | break; |
19915 | default: |
19916 | break; |
19917 | } |
19918 | break; |
19919 | default: |
19920 | break; |
19921 | } |
19922 | break; |
19923 | case 2: |
19924 | OPGEN_RETURN(false); |
19925 | break; |
19926 | default: |
19927 | break; |
19928 | } |
19929 | break; |
19930 | case Opcode::DivDouble: |
19931 | switch (argIndex) { |
19932 | case 0: |
19933 | switch (args.size()) { |
19934 | case 2: |
19935 | switch (Arg::Addr) { |
19936 | case Arg::Tmp: |
19937 | break; |
19938 | case Arg::Addr: |
19939 | case Arg::Stack: |
19940 | case Arg::CallArg: |
19941 | switch (args[1].kind()) { |
19942 | case Arg::Tmp: |
19943 | #if CPU(X86) || CPU(X86_64) |
19944 | OPGEN_RETURN(true); |
19945 | #endif |
19946 | break; |
19947 | break; |
19948 | default: |
19949 | break; |
19950 | } |
19951 | break; |
19952 | default: |
19953 | break; |
19954 | } |
19955 | break; |
19956 | default: |
19957 | break; |
19958 | } |
19959 | break; |
19960 | case 1: |
19961 | OPGEN_RETURN(false); |
19962 | break; |
19963 | case 2: |
19964 | OPGEN_RETURN(false); |
19965 | break; |
19966 | default: |
19967 | break; |
19968 | } |
19969 | break; |
19970 | case Opcode::DivFloat: |
19971 | switch (argIndex) { |
19972 | case 0: |
19973 | switch (args.size()) { |
19974 | case 2: |
19975 | switch (Arg::Addr) { |
19976 | case Arg::Tmp: |
19977 | break; |
19978 | case Arg::Addr: |
19979 | case Arg::Stack: |
19980 | case Arg::CallArg: |
19981 | switch (args[1].kind()) { |
19982 | case Arg::Tmp: |
19983 | #if CPU(X86) || CPU(X86_64) |
19984 | OPGEN_RETURN(true); |
19985 | #endif |
19986 | break; |
19987 | break; |
19988 | default: |
19989 | break; |
19990 | } |
19991 | break; |
19992 | default: |
19993 | break; |
19994 | } |
19995 | break; |
19996 | default: |
19997 | break; |
19998 | } |
19999 | break; |
20000 | case 1: |
20001 | OPGEN_RETURN(false); |
20002 | break; |
20003 | case 2: |
20004 | OPGEN_RETURN(false); |
20005 | break; |
20006 | default: |
20007 | break; |
20008 | } |
20009 | break; |
20010 | case Opcode::X86ConvertToDoubleWord32: |
20011 | switch (argIndex) { |
20012 | case 0: |
20013 | OPGEN_RETURN(false); |
20014 | break; |
20015 | case 1: |
20016 | OPGEN_RETURN(false); |
20017 | break; |
20018 | default: |
20019 | break; |
20020 | } |
20021 | break; |
20022 | case Opcode::X86ConvertToQuadWord64: |
20023 | switch (argIndex) { |
20024 | case 0: |
20025 | OPGEN_RETURN(false); |
20026 | break; |
20027 | case 1: |
20028 | OPGEN_RETURN(false); |
20029 | break; |
20030 | default: |
20031 | break; |
20032 | } |
20033 | break; |
20034 | case Opcode::X86Div32: |
20035 | switch (argIndex) { |
20036 | case 0: |
20037 | OPGEN_RETURN(false); |
20038 | break; |
20039 | case 1: |
20040 | OPGEN_RETURN(false); |
20041 | break; |
20042 | case 2: |
20043 | OPGEN_RETURN(false); |
20044 | break; |
20045 | default: |
20046 | break; |
20047 | } |
20048 | break; |
20049 | case Opcode::X86UDiv32: |
20050 | switch (argIndex) { |
20051 | case 0: |
20052 | OPGEN_RETURN(false); |
20053 | break; |
20054 | case 1: |
20055 | OPGEN_RETURN(false); |
20056 | break; |
20057 | case 2: |
20058 | OPGEN_RETURN(false); |
20059 | break; |
20060 | default: |
20061 | break; |
20062 | } |
20063 | break; |
20064 | case Opcode::X86Div64: |
20065 | switch (argIndex) { |
20066 | case 0: |
20067 | OPGEN_RETURN(false); |
20068 | break; |
20069 | case 1: |
20070 | OPGEN_RETURN(false); |
20071 | break; |
20072 | case 2: |
20073 | OPGEN_RETURN(false); |
20074 | break; |
20075 | default: |
20076 | break; |
20077 | } |
20078 | break; |
20079 | case Opcode::X86UDiv64: |
20080 | switch (argIndex) { |
20081 | case 0: |
20082 | OPGEN_RETURN(false); |
20083 | break; |
20084 | case 1: |
20085 | OPGEN_RETURN(false); |
20086 | break; |
20087 | case 2: |
20088 | OPGEN_RETURN(false); |
20089 | break; |
20090 | default: |
20091 | break; |
20092 | } |
20093 | break; |
20094 | case Opcode::Lea32: |
20095 | switch (argIndex) { |
20096 | case 0: |
20097 | OPGEN_RETURN(false); |
20098 | break; |
20099 | case 1: |
20100 | OPGEN_RETURN(false); |
20101 | break; |
20102 | default: |
20103 | break; |
20104 | } |
20105 | break; |
20106 | case Opcode::Lea64: |
20107 | switch (argIndex) { |
20108 | case 0: |
20109 | OPGEN_RETURN(false); |
20110 | break; |
20111 | case 1: |
20112 | OPGEN_RETURN(false); |
20113 | break; |
20114 | default: |
20115 | break; |
20116 | } |
20117 | break; |
20118 | case Opcode::And32: |
20119 | switch (argIndex) { |
20120 | case 0: |
20121 | switch (args.size()) { |
20122 | case 3: |
20123 | switch (Arg::Addr) { |
20124 | case Arg::Tmp: |
20125 | break; |
20126 | case Arg::BitImm: |
20127 | break; |
20128 | case Arg::Addr: |
20129 | case Arg::Stack: |
20130 | case Arg::CallArg: |
20131 | switch (args[1].kind()) { |
20132 | case Arg::Tmp: |
20133 | switch (args[2].kind()) { |
20134 | case Arg::Tmp: |
20135 | #if CPU(X86) || CPU(X86_64) |
20136 | OPGEN_RETURN(true); |
20137 | #endif |
20138 | break; |
20139 | break; |
20140 | default: |
20141 | break; |
20142 | } |
20143 | break; |
20144 | default: |
20145 | break; |
20146 | } |
20147 | break; |
20148 | default: |
20149 | break; |
20150 | } |
20151 | break; |
20152 | case 2: |
20153 | switch (Arg::Addr) { |
20154 | case Arg::Tmp: |
20155 | break; |
20156 | case Arg::Imm: |
20157 | break; |
20158 | case Arg::Addr: |
20159 | case Arg::Stack: |
20160 | case Arg::CallArg: |
20161 | switch (args[1].kind()) { |
20162 | case Arg::Tmp: |
20163 | #if CPU(X86) || CPU(X86_64) |
20164 | OPGEN_RETURN(true); |
20165 | #endif |
20166 | break; |
20167 | break; |
20168 | default: |
20169 | break; |
20170 | } |
20171 | break; |
20172 | case Arg::Index: |
20173 | break; |
20174 | default: |
20175 | break; |
20176 | } |
20177 | break; |
20178 | default: |
20179 | break; |
20180 | } |
20181 | break; |
20182 | case 1: |
20183 | switch (args.size()) { |
20184 | case 3: |
20185 | switch (args[0].kind()) { |
20186 | case Arg::Tmp: |
20187 | switch (Arg::Addr) { |
20188 | case Arg::Tmp: |
20189 | break; |
20190 | case Arg::Addr: |
20191 | case Arg::Stack: |
20192 | case Arg::CallArg: |
20193 | switch (args[2].kind()) { |
20194 | case Arg::Tmp: |
20195 | #if CPU(X86) || CPU(X86_64) |
20196 | OPGEN_RETURN(true); |
20197 | #endif |
20198 | break; |
20199 | break; |
20200 | default: |
20201 | break; |
20202 | } |
20203 | break; |
20204 | default: |
20205 | break; |
20206 | } |
20207 | break; |
20208 | case Arg::BitImm: |
20209 | break; |
20210 | case Arg::Addr: |
20211 | case Arg::Stack: |
20212 | case Arg::CallArg: |
20213 | break; |
20214 | default: |
20215 | break; |
20216 | } |
20217 | break; |
20218 | case 2: |
20219 | switch (args[0].kind()) { |
20220 | case Arg::Tmp: |
20221 | switch (Arg::Addr) { |
20222 | case Arg::Tmp: |
20223 | break; |
20224 | case Arg::Addr: |
20225 | case Arg::Stack: |
20226 | case Arg::CallArg: |
20227 | #if CPU(X86) || CPU(X86_64) |
20228 | OPGEN_RETURN(true); |
20229 | #endif |
20230 | break; |
20231 | break; |
20232 | case Arg::Index: |
20233 | break; |
20234 | default: |
20235 | break; |
20236 | } |
20237 | break; |
20238 | case Arg::Imm: |
20239 | switch (Arg::Addr) { |
20240 | case Arg::Tmp: |
20241 | break; |
20242 | case Arg::Addr: |
20243 | case Arg::Stack: |
20244 | case Arg::CallArg: |
20245 | #if CPU(X86) || CPU(X86_64) |
20246 | OPGEN_RETURN(true); |
20247 | #endif |
20248 | break; |
20249 | break; |
20250 | case Arg::Index: |
20251 | break; |
20252 | default: |
20253 | break; |
20254 | } |
20255 | break; |
20256 | case Arg::Addr: |
20257 | case Arg::Stack: |
20258 | case Arg::CallArg: |
20259 | break; |
20260 | case Arg::Index: |
20261 | break; |
20262 | default: |
20263 | break; |
20264 | } |
20265 | break; |
20266 | default: |
20267 | break; |
20268 | } |
20269 | break; |
20270 | case 2: |
20271 | OPGEN_RETURN(false); |
20272 | break; |
20273 | default: |
20274 | break; |
20275 | } |
20276 | break; |
20277 | case Opcode::And64: |
20278 | switch (argIndex) { |
20279 | case 0: |
20280 | switch (args.size()) { |
20281 | case 2: |
20282 | switch (Arg::Addr) { |
20283 | case Arg::Tmp: |
20284 | break; |
20285 | case Arg::Imm: |
20286 | break; |
20287 | case Arg::Addr: |
20288 | case Arg::Stack: |
20289 | case Arg::CallArg: |
20290 | switch (args[1].kind()) { |
20291 | case Arg::Tmp: |
20292 | #if CPU(X86_64) |
20293 | OPGEN_RETURN(true); |
20294 | #endif |
20295 | break; |
20296 | break; |
20297 | default: |
20298 | break; |
20299 | } |
20300 | break; |
20301 | case Arg::Index: |
20302 | break; |
20303 | default: |
20304 | break; |
20305 | } |
20306 | break; |
20307 | default: |
20308 | break; |
20309 | } |
20310 | break; |
20311 | case 1: |
20312 | switch (args.size()) { |
20313 | case 2: |
20314 | switch (args[0].kind()) { |
20315 | case Arg::Tmp: |
20316 | switch (Arg::Addr) { |
20317 | case Arg::Tmp: |
20318 | break; |
20319 | case Arg::Addr: |
20320 | case Arg::Stack: |
20321 | case Arg::CallArg: |
20322 | #if CPU(X86_64) |
20323 | OPGEN_RETURN(true); |
20324 | #endif |
20325 | break; |
20326 | break; |
20327 | case Arg::Index: |
20328 | break; |
20329 | default: |
20330 | break; |
20331 | } |
20332 | break; |
20333 | case Arg::Imm: |
20334 | switch (Arg::Addr) { |
20335 | case Arg::Tmp: |
20336 | break; |
20337 | case Arg::Addr: |
20338 | case Arg::Stack: |
20339 | case Arg::CallArg: |
20340 | #if CPU(X86_64) |
20341 | OPGEN_RETURN(true); |
20342 | #endif |
20343 | break; |
20344 | break; |
20345 | case Arg::Index: |
20346 | break; |
20347 | default: |
20348 | break; |
20349 | } |
20350 | break; |
20351 | case Arg::Addr: |
20352 | case Arg::Stack: |
20353 | case Arg::CallArg: |
20354 | break; |
20355 | case Arg::Index: |
20356 | break; |
20357 | default: |
20358 | break; |
20359 | } |
20360 | break; |
20361 | default: |
20362 | break; |
20363 | } |
20364 | break; |
20365 | case 2: |
20366 | OPGEN_RETURN(false); |
20367 | break; |
20368 | default: |
20369 | break; |
20370 | } |
20371 | break; |
20372 | case Opcode::AndDouble: |
20373 | switch (argIndex) { |
20374 | case 0: |
20375 | OPGEN_RETURN(false); |
20376 | break; |
20377 | case 1: |
20378 | OPGEN_RETURN(false); |
20379 | break; |
20380 | case 2: |
20381 | OPGEN_RETURN(false); |
20382 | break; |
20383 | default: |
20384 | break; |
20385 | } |
20386 | break; |
20387 | case Opcode::AndFloat: |
20388 | switch (argIndex) { |
20389 | case 0: |
20390 | OPGEN_RETURN(false); |
20391 | break; |
20392 | case 1: |
20393 | OPGEN_RETURN(false); |
20394 | break; |
20395 | case 2: |
20396 | OPGEN_RETURN(false); |
20397 | break; |
20398 | default: |
20399 | break; |
20400 | } |
20401 | break; |
20402 | case Opcode::OrDouble: |
20403 | switch (argIndex) { |
20404 | case 0: |
20405 | OPGEN_RETURN(false); |
20406 | break; |
20407 | case 1: |
20408 | OPGEN_RETURN(false); |
20409 | break; |
20410 | case 2: |
20411 | OPGEN_RETURN(false); |
20412 | break; |
20413 | default: |
20414 | break; |
20415 | } |
20416 | break; |
20417 | case Opcode::OrFloat: |
20418 | switch (argIndex) { |
20419 | case 0: |
20420 | OPGEN_RETURN(false); |
20421 | break; |
20422 | case 1: |
20423 | OPGEN_RETURN(false); |
20424 | break; |
20425 | case 2: |
20426 | OPGEN_RETURN(false); |
20427 | break; |
20428 | default: |
20429 | break; |
20430 | } |
20431 | break; |
20432 | case Opcode::XorDouble: |
20433 | switch (argIndex) { |
20434 | case 0: |
20435 | OPGEN_RETURN(false); |
20436 | break; |
20437 | case 1: |
20438 | OPGEN_RETURN(false); |
20439 | break; |
20440 | case 2: |
20441 | OPGEN_RETURN(false); |
20442 | break; |
20443 | default: |
20444 | break; |
20445 | } |
20446 | break; |
20447 | case Opcode::XorFloat: |
20448 | switch (argIndex) { |
20449 | case 0: |
20450 | OPGEN_RETURN(false); |
20451 | break; |
20452 | case 1: |
20453 | OPGEN_RETURN(false); |
20454 | break; |
20455 | case 2: |
20456 | OPGEN_RETURN(false); |
20457 | break; |
20458 | default: |
20459 | break; |
20460 | } |
20461 | break; |
20462 | case Opcode::Lshift32: |
20463 | switch (argIndex) { |
20464 | case 0: |
20465 | OPGEN_RETURN(false); |
20466 | break; |
20467 | case 1: |
20468 | OPGEN_RETURN(false); |
20469 | break; |
20470 | case 2: |
20471 | OPGEN_RETURN(false); |
20472 | break; |
20473 | default: |
20474 | break; |
20475 | } |
20476 | break; |
20477 | case Opcode::Lshift64: |
20478 | switch (argIndex) { |
20479 | case 0: |
20480 | OPGEN_RETURN(false); |
20481 | break; |
20482 | case 1: |
20483 | OPGEN_RETURN(false); |
20484 | break; |
20485 | case 2: |
20486 | OPGEN_RETURN(false); |
20487 | break; |
20488 | default: |
20489 | break; |
20490 | } |
20491 | break; |
20492 | case Opcode::Rshift32: |
20493 | switch (argIndex) { |
20494 | case 0: |
20495 | OPGEN_RETURN(false); |
20496 | break; |
20497 | case 1: |
20498 | OPGEN_RETURN(false); |
20499 | break; |
20500 | case 2: |
20501 | OPGEN_RETURN(false); |
20502 | break; |
20503 | default: |
20504 | break; |
20505 | } |
20506 | break; |
20507 | case Opcode::Rshift64: |
20508 | switch (argIndex) { |
20509 | case 0: |
20510 | OPGEN_RETURN(false); |
20511 | break; |
20512 | case 1: |
20513 | OPGEN_RETURN(false); |
20514 | break; |
20515 | case 2: |
20516 | OPGEN_RETURN(false); |
20517 | break; |
20518 | default: |
20519 | break; |
20520 | } |
20521 | break; |
20522 | case Opcode::Urshift32: |
20523 | switch (argIndex) { |
20524 | case 0: |
20525 | OPGEN_RETURN(false); |
20526 | break; |
20527 | case 1: |
20528 | OPGEN_RETURN(false); |
20529 | break; |
20530 | case 2: |
20531 | OPGEN_RETURN(false); |
20532 | break; |
20533 | default: |
20534 | break; |
20535 | } |
20536 | break; |
20537 | case Opcode::Urshift64: |
20538 | switch (argIndex) { |
20539 | case 0: |
20540 | OPGEN_RETURN(false); |
20541 | break; |
20542 | case 1: |
20543 | OPGEN_RETURN(false); |
20544 | break; |
20545 | case 2: |
20546 | OPGEN_RETURN(false); |
20547 | break; |
20548 | default: |
20549 | break; |
20550 | } |
20551 | break; |
20552 | case Opcode::RotateRight32: |
20553 | switch (argIndex) { |
20554 | case 0: |
20555 | OPGEN_RETURN(false); |
20556 | break; |
20557 | case 1: |
20558 | OPGEN_RETURN(false); |
20559 | break; |
20560 | case 2: |
20561 | OPGEN_RETURN(false); |
20562 | break; |
20563 | default: |
20564 | break; |
20565 | } |
20566 | break; |
20567 | case Opcode::RotateRight64: |
20568 | switch (argIndex) { |
20569 | case 0: |
20570 | OPGEN_RETURN(false); |
20571 | break; |
20572 | case 1: |
20573 | OPGEN_RETURN(false); |
20574 | break; |
20575 | case 2: |
20576 | OPGEN_RETURN(false); |
20577 | break; |
20578 | default: |
20579 | break; |
20580 | } |
20581 | break; |
20582 | case Opcode::RotateLeft32: |
20583 | switch (argIndex) { |
20584 | case 0: |
20585 | OPGEN_RETURN(false); |
20586 | break; |
20587 | case 1: |
20588 | OPGEN_RETURN(false); |
20589 | break; |
20590 | default: |
20591 | break; |
20592 | } |
20593 | break; |
20594 | case Opcode::RotateLeft64: |
20595 | switch (argIndex) { |
20596 | case 0: |
20597 | OPGEN_RETURN(false); |
20598 | break; |
20599 | case 1: |
20600 | OPGEN_RETURN(false); |
20601 | break; |
20602 | default: |
20603 | break; |
20604 | } |
20605 | break; |
20606 | case Opcode::Or32: |
20607 | switch (argIndex) { |
20608 | case 0: |
20609 | switch (args.size()) { |
20610 | case 3: |
20611 | switch (Arg::Addr) { |
20612 | case Arg::Tmp: |
20613 | break; |
20614 | case Arg::BitImm: |
20615 | break; |
20616 | case Arg::Addr: |
20617 | case Arg::Stack: |
20618 | case Arg::CallArg: |
20619 | switch (args[1].kind()) { |
20620 | case Arg::Tmp: |
20621 | switch (args[2].kind()) { |
20622 | case Arg::Tmp: |
20623 | #if CPU(X86) || CPU(X86_64) |
20624 | OPGEN_RETURN(true); |
20625 | #endif |
20626 | break; |
20627 | break; |
20628 | default: |
20629 | break; |
20630 | } |
20631 | break; |
20632 | default: |
20633 | break; |
20634 | } |
20635 | break; |
20636 | default: |
20637 | break; |
20638 | } |
20639 | break; |
20640 | case 2: |
20641 | switch (Arg::Addr) { |
20642 | case Arg::Tmp: |
20643 | break; |
20644 | case Arg::Imm: |
20645 | break; |
20646 | case Arg::Addr: |
20647 | case Arg::Stack: |
20648 | case Arg::CallArg: |
20649 | switch (args[1].kind()) { |
20650 | case Arg::Tmp: |
20651 | #if CPU(X86) || CPU(X86_64) |
20652 | OPGEN_RETURN(true); |
20653 | #endif |
20654 | break; |
20655 | break; |
20656 | default: |
20657 | break; |
20658 | } |
20659 | break; |
20660 | case Arg::Index: |
20661 | break; |
20662 | default: |
20663 | break; |
20664 | } |
20665 | break; |
20666 | default: |
20667 | break; |
20668 | } |
20669 | break; |
20670 | case 1: |
20671 | switch (args.size()) { |
20672 | case 3: |
20673 | switch (args[0].kind()) { |
20674 | case Arg::Tmp: |
20675 | switch (Arg::Addr) { |
20676 | case Arg::Tmp: |
20677 | break; |
20678 | case Arg::Addr: |
20679 | case Arg::Stack: |
20680 | case Arg::CallArg: |
20681 | switch (args[2].kind()) { |
20682 | case Arg::Tmp: |
20683 | #if CPU(X86) || CPU(X86_64) |
20684 | OPGEN_RETURN(true); |
20685 | #endif |
20686 | break; |
20687 | break; |
20688 | default: |
20689 | break; |
20690 | } |
20691 | break; |
20692 | default: |
20693 | break; |
20694 | } |
20695 | break; |
20696 | case Arg::BitImm: |
20697 | break; |
20698 | case Arg::Addr: |
20699 | case Arg::Stack: |
20700 | case Arg::CallArg: |
20701 | break; |
20702 | default: |
20703 | break; |
20704 | } |
20705 | break; |
20706 | case 2: |
20707 | switch (args[0].kind()) { |
20708 | case Arg::Tmp: |
20709 | switch (Arg::Addr) { |
20710 | case Arg::Tmp: |
20711 | break; |
20712 | case Arg::Addr: |
20713 | case Arg::Stack: |
20714 | case Arg::CallArg: |
20715 | #if CPU(X86) || CPU(X86_64) |
20716 | OPGEN_RETURN(true); |
20717 | #endif |
20718 | break; |
20719 | break; |
20720 | case Arg::Index: |
20721 | break; |
20722 | default: |
20723 | break; |
20724 | } |
20725 | break; |
20726 | case Arg::Imm: |
20727 | switch (Arg::Addr) { |
20728 | case Arg::Tmp: |
20729 | break; |
20730 | case Arg::Addr: |
20731 | case Arg::Stack: |
20732 | case Arg::CallArg: |
20733 | #if CPU(X86) || CPU(X86_64) |
20734 | OPGEN_RETURN(true); |
20735 | #endif |
20736 | break; |
20737 | break; |
20738 | case Arg::Index: |
20739 | break; |
20740 | default: |
20741 | break; |
20742 | } |
20743 | break; |
20744 | case Arg::Addr: |
20745 | case Arg::Stack: |
20746 | case Arg::CallArg: |
20747 | break; |
20748 | case Arg::Index: |
20749 | break; |
20750 | default: |
20751 | break; |
20752 | } |
20753 | break; |
20754 | default: |
20755 | break; |
20756 | } |
20757 | break; |
20758 | case 2: |
20759 | OPGEN_RETURN(false); |
20760 | break; |
20761 | default: |
20762 | break; |
20763 | } |
20764 | break; |
20765 | case Opcode::Or64: |
20766 | switch (argIndex) { |
20767 | case 0: |
20768 | switch (args.size()) { |
20769 | case 2: |
20770 | switch (Arg::Addr) { |
20771 | case Arg::Tmp: |
20772 | break; |
20773 | case Arg::Imm: |
20774 | break; |
20775 | case Arg::Addr: |
20776 | case Arg::Stack: |
20777 | case Arg::CallArg: |
20778 | switch (args[1].kind()) { |
20779 | case Arg::Tmp: |
20780 | #if CPU(X86_64) |
20781 | OPGEN_RETURN(true); |
20782 | #endif |
20783 | break; |
20784 | break; |
20785 | default: |
20786 | break; |
20787 | } |
20788 | break; |
20789 | case Arg::Index: |
20790 | break; |
20791 | default: |
20792 | break; |
20793 | } |
20794 | break; |
20795 | default: |
20796 | break; |
20797 | } |
20798 | break; |
20799 | case 1: |
20800 | switch (args.size()) { |
20801 | case 2: |
20802 | switch (args[0].kind()) { |
20803 | case Arg::Tmp: |
20804 | switch (Arg::Addr) { |
20805 | case Arg::Tmp: |
20806 | break; |
20807 | case Arg::Addr: |
20808 | case Arg::Stack: |
20809 | case Arg::CallArg: |
20810 | #if CPU(X86_64) |
20811 | OPGEN_RETURN(true); |
20812 | #endif |
20813 | break; |
20814 | break; |
20815 | case Arg::Index: |
20816 | break; |
20817 | default: |
20818 | break; |
20819 | } |
20820 | break; |
20821 | case Arg::Imm: |
20822 | switch (Arg::Addr) { |
20823 | case Arg::Tmp: |
20824 | break; |
20825 | case Arg::Addr: |
20826 | case Arg::Stack: |
20827 | case Arg::CallArg: |
20828 | #if CPU(X86_64) |
20829 | OPGEN_RETURN(true); |
20830 | #endif |
20831 | break; |
20832 | break; |
20833 | case Arg::Index: |
20834 | break; |
20835 | default: |
20836 | break; |
20837 | } |
20838 | break; |
20839 | case Arg::Addr: |
20840 | case Arg::Stack: |
20841 | case Arg::CallArg: |
20842 | break; |
20843 | case Arg::Index: |
20844 | break; |
20845 | default: |
20846 | break; |
20847 | } |
20848 | break; |
20849 | default: |
20850 | break; |
20851 | } |
20852 | break; |
20853 | case 2: |
20854 | OPGEN_RETURN(false); |
20855 | break; |
20856 | default: |
20857 | break; |
20858 | } |
20859 | break; |
20860 | case Opcode::Xor32: |
20861 | switch (argIndex) { |
20862 | case 0: |
20863 | switch (args.size()) { |
20864 | case 3: |
20865 | switch (Arg::Addr) { |
20866 | case Arg::Tmp: |
20867 | break; |
20868 | case Arg::BitImm: |
20869 | break; |
20870 | case Arg::Addr: |
20871 | case Arg::Stack: |
20872 | case Arg::CallArg: |
20873 | switch (args[1].kind()) { |
20874 | case Arg::Tmp: |
20875 | switch (args[2].kind()) { |
20876 | case Arg::Tmp: |
20877 | #if CPU(X86) || CPU(X86_64) |
20878 | OPGEN_RETURN(true); |
20879 | #endif |
20880 | break; |
20881 | break; |
20882 | default: |
20883 | break; |
20884 | } |
20885 | break; |
20886 | default: |
20887 | break; |
20888 | } |
20889 | break; |
20890 | default: |
20891 | break; |
20892 | } |
20893 | break; |
20894 | case 2: |
20895 | switch (Arg::Addr) { |
20896 | case Arg::Tmp: |
20897 | break; |
20898 | case Arg::Imm: |
20899 | break; |
20900 | case Arg::Addr: |
20901 | case Arg::Stack: |
20902 | case Arg::CallArg: |
20903 | switch (args[1].kind()) { |
20904 | case Arg::Tmp: |
20905 | #if CPU(X86) || CPU(X86_64) |
20906 | OPGEN_RETURN(true); |
20907 | #endif |
20908 | break; |
20909 | break; |
20910 | default: |
20911 | break; |
20912 | } |
20913 | break; |
20914 | case Arg::Index: |
20915 | break; |
20916 | default: |
20917 | break; |
20918 | } |
20919 | break; |
20920 | default: |
20921 | break; |
20922 | } |
20923 | break; |
20924 | case 1: |
20925 | switch (args.size()) { |
20926 | case 3: |
20927 | switch (args[0].kind()) { |
20928 | case Arg::Tmp: |
20929 | switch (Arg::Addr) { |
20930 | case Arg::Tmp: |
20931 | break; |
20932 | case Arg::Addr: |
20933 | case Arg::Stack: |
20934 | case Arg::CallArg: |
20935 | switch (args[2].kind()) { |
20936 | case Arg::Tmp: |
20937 | #if CPU(X86) || CPU(X86_64) |
20938 | OPGEN_RETURN(true); |
20939 | #endif |
20940 | break; |
20941 | break; |
20942 | default: |
20943 | break; |
20944 | } |
20945 | break; |
20946 | default: |
20947 | break; |
20948 | } |
20949 | break; |
20950 | case Arg::BitImm: |
20951 | break; |
20952 | case Arg::Addr: |
20953 | case Arg::Stack: |
20954 | case Arg::CallArg: |
20955 | break; |
20956 | default: |
20957 | break; |
20958 | } |
20959 | break; |
20960 | case 2: |
20961 | switch (args[0].kind()) { |
20962 | case Arg::Tmp: |
20963 | switch (Arg::Addr) { |
20964 | case Arg::Tmp: |
20965 | break; |
20966 | case Arg::Addr: |
20967 | case Arg::Stack: |
20968 | case Arg::CallArg: |
20969 | #if CPU(X86) || CPU(X86_64) |
20970 | OPGEN_RETURN(true); |
20971 | #endif |
20972 | break; |
20973 | break; |
20974 | case Arg::Index: |
20975 | break; |
20976 | default: |
20977 | break; |
20978 | } |
20979 | break; |
20980 | case Arg::Imm: |
20981 | switch (Arg::Addr) { |
20982 | case Arg::Tmp: |
20983 | break; |
20984 | case Arg::Addr: |
20985 | case Arg::Stack: |
20986 | case Arg::CallArg: |
20987 | #if CPU(X86) || CPU(X86_64) |
20988 | OPGEN_RETURN(true); |
20989 | #endif |
20990 | break; |
20991 | break; |
20992 | case Arg::Index: |
20993 | break; |
20994 | default: |
20995 | break; |
20996 | } |
20997 | break; |
20998 | case Arg::Addr: |
20999 | case Arg::Stack: |
21000 | case Arg::CallArg: |
21001 | break; |
21002 | case Arg::Index: |
21003 | break; |
21004 | default: |
21005 | break; |
21006 | } |
21007 | break; |
21008 | default: |
21009 | break; |
21010 | } |
21011 | break; |
21012 | case 2: |
21013 | OPGEN_RETURN(false); |
21014 | break; |
21015 | default: |
21016 | break; |
21017 | } |
21018 | break; |
21019 | case Opcode::Xor64: |
21020 | switch (argIndex) { |
21021 | case 0: |
21022 | switch (args.size()) { |
21023 | case 2: |
21024 | switch (Arg::Addr) { |
21025 | case Arg::Tmp: |
21026 | break; |
21027 | case Arg::Addr: |
21028 | case Arg::Stack: |
21029 | case Arg::CallArg: |
21030 | switch (args[1].kind()) { |
21031 | case Arg::Tmp: |
21032 | #if CPU(X86_64) |
21033 | OPGEN_RETURN(true); |
21034 | #endif |
21035 | break; |
21036 | break; |
21037 | default: |
21038 | break; |
21039 | } |
21040 | break; |
21041 | case Arg::Index: |
21042 | break; |
21043 | case Arg::Imm: |
21044 | break; |
21045 | default: |
21046 | break; |
21047 | } |
21048 | break; |
21049 | default: |
21050 | break; |
21051 | } |
21052 | break; |
21053 | case 1: |
21054 | switch (args.size()) { |
21055 | case 2: |
21056 | switch (args[0].kind()) { |
21057 | case Arg::Tmp: |
21058 | switch (Arg::Addr) { |
21059 | case Arg::Tmp: |
21060 | break; |
21061 | case Arg::Addr: |
21062 | case Arg::Stack: |
21063 | case Arg::CallArg: |
21064 | #if CPU(X86_64) |
21065 | OPGEN_RETURN(true); |
21066 | #endif |
21067 | break; |
21068 | break; |
21069 | case Arg::Index: |
21070 | break; |
21071 | default: |
21072 | break; |
21073 | } |
21074 | break; |
21075 | case Arg::Addr: |
21076 | case Arg::Stack: |
21077 | case Arg::CallArg: |
21078 | break; |
21079 | case Arg::Index: |
21080 | break; |
21081 | case Arg::Imm: |
21082 | switch (Arg::Addr) { |
21083 | case Arg::Addr: |
21084 | case Arg::Stack: |
21085 | case Arg::CallArg: |
21086 | #if CPU(X86_64) |
21087 | OPGEN_RETURN(true); |
21088 | #endif |
21089 | break; |
21090 | break; |
21091 | case Arg::Index: |
21092 | break; |
21093 | case Arg::Tmp: |
21094 | break; |
21095 | default: |
21096 | break; |
21097 | } |
21098 | break; |
21099 | default: |
21100 | break; |
21101 | } |
21102 | break; |
21103 | default: |
21104 | break; |
21105 | } |
21106 | break; |
21107 | case 2: |
21108 | OPGEN_RETURN(false); |
21109 | break; |
21110 | default: |
21111 | break; |
21112 | } |
21113 | break; |
21114 | case Opcode::Not32: |
21115 | switch (argIndex) { |
21116 | case 0: |
21117 | switch (args.size()) { |
21118 | case 1: |
21119 | switch (Arg::Addr) { |
21120 | case Arg::Tmp: |
21121 | break; |
21122 | case Arg::Addr: |
21123 | case Arg::Stack: |
21124 | case Arg::CallArg: |
21125 | #if CPU(X86) || CPU(X86_64) |
21126 | OPGEN_RETURN(true); |
21127 | #endif |
21128 | break; |
21129 | break; |
21130 | case Arg::Index: |
21131 | break; |
21132 | default: |
21133 | break; |
21134 | } |
21135 | break; |
21136 | default: |
21137 | break; |
21138 | } |
21139 | break; |
21140 | case 1: |
21141 | OPGEN_RETURN(false); |
21142 | break; |
21143 | default: |
21144 | break; |
21145 | } |
21146 | break; |
21147 | case Opcode::Not64: |
21148 | switch (argIndex) { |
21149 | case 0: |
21150 | switch (args.size()) { |
21151 | case 1: |
21152 | switch (Arg::Addr) { |
21153 | case Arg::Tmp: |
21154 | break; |
21155 | case Arg::Addr: |
21156 | case Arg::Stack: |
21157 | case Arg::CallArg: |
21158 | #if CPU(X86_64) |
21159 | OPGEN_RETURN(true); |
21160 | #endif |
21161 | break; |
21162 | break; |
21163 | case Arg::Index: |
21164 | break; |
21165 | default: |
21166 | break; |
21167 | } |
21168 | break; |
21169 | default: |
21170 | break; |
21171 | } |
21172 | break; |
21173 | case 1: |
21174 | OPGEN_RETURN(false); |
21175 | break; |
21176 | default: |
21177 | break; |
21178 | } |
21179 | break; |
21180 | case Opcode::AbsDouble: |
21181 | switch (argIndex) { |
21182 | case 0: |
21183 | OPGEN_RETURN(false); |
21184 | break; |
21185 | case 1: |
21186 | OPGEN_RETURN(false); |
21187 | break; |
21188 | default: |
21189 | break; |
21190 | } |
21191 | break; |
21192 | case Opcode::AbsFloat: |
21193 | switch (argIndex) { |
21194 | case 0: |
21195 | OPGEN_RETURN(false); |
21196 | break; |
21197 | case 1: |
21198 | OPGEN_RETURN(false); |
21199 | break; |
21200 | default: |
21201 | break; |
21202 | } |
21203 | break; |
21204 | case Opcode::CeilDouble: |
21205 | switch (argIndex) { |
21206 | case 0: |
21207 | switch (Arg::Addr) { |
21208 | case Arg::Tmp: |
21209 | break; |
21210 | case Arg::Addr: |
21211 | case Arg::Stack: |
21212 | case Arg::CallArg: |
21213 | switch (args[1].kind()) { |
21214 | case Arg::Tmp: |
21215 | #if CPU(X86) || CPU(X86_64) |
21216 | OPGEN_RETURN(true); |
21217 | #endif |
21218 | break; |
21219 | break; |
21220 | default: |
21221 | break; |
21222 | } |
21223 | break; |
21224 | default: |
21225 | break; |
21226 | } |
21227 | break; |
21228 | case 1: |
21229 | OPGEN_RETURN(false); |
21230 | break; |
21231 | default: |
21232 | break; |
21233 | } |
21234 | break; |
21235 | case Opcode::CeilFloat: |
21236 | switch (argIndex) { |
21237 | case 0: |
21238 | switch (Arg::Addr) { |
21239 | case Arg::Tmp: |
21240 | break; |
21241 | case Arg::Addr: |
21242 | case Arg::Stack: |
21243 | case Arg::CallArg: |
21244 | switch (args[1].kind()) { |
21245 | case Arg::Tmp: |
21246 | #if CPU(X86) || CPU(X86_64) |
21247 | OPGEN_RETURN(true); |
21248 | #endif |
21249 | break; |
21250 | break; |
21251 | default: |
21252 | break; |
21253 | } |
21254 | break; |
21255 | default: |
21256 | break; |
21257 | } |
21258 | break; |
21259 | case 1: |
21260 | OPGEN_RETURN(false); |
21261 | break; |
21262 | default: |
21263 | break; |
21264 | } |
21265 | break; |
21266 | case Opcode::FloorDouble: |
21267 | switch (argIndex) { |
21268 | case 0: |
21269 | switch (Arg::Addr) { |
21270 | case Arg::Tmp: |
21271 | break; |
21272 | case Arg::Addr: |
21273 | case Arg::Stack: |
21274 | case Arg::CallArg: |
21275 | switch (args[1].kind()) { |
21276 | case Arg::Tmp: |
21277 | #if CPU(X86) || CPU(X86_64) |
21278 | OPGEN_RETURN(true); |
21279 | #endif |
21280 | break; |
21281 | break; |
21282 | default: |
21283 | break; |
21284 | } |
21285 | break; |
21286 | default: |
21287 | break; |
21288 | } |
21289 | break; |
21290 | case 1: |
21291 | OPGEN_RETURN(false); |
21292 | break; |
21293 | default: |
21294 | break; |
21295 | } |
21296 | break; |
21297 | case Opcode::FloorFloat: |
21298 | switch (argIndex) { |
21299 | case 0: |
21300 | switch (Arg::Addr) { |
21301 | case Arg::Tmp: |
21302 | break; |
21303 | case Arg::Addr: |
21304 | case Arg::Stack: |
21305 | case Arg::CallArg: |
21306 | switch (args[1].kind()) { |
21307 | case Arg::Tmp: |
21308 | #if CPU(X86) || CPU(X86_64) |
21309 | OPGEN_RETURN(true); |
21310 | #endif |
21311 | break; |
21312 | break; |
21313 | default: |
21314 | break; |
21315 | } |
21316 | break; |
21317 | default: |
21318 | break; |
21319 | } |
21320 | break; |
21321 | case 1: |
21322 | OPGEN_RETURN(false); |
21323 | break; |
21324 | default: |
21325 | break; |
21326 | } |
21327 | break; |
21328 | case Opcode::SqrtDouble: |
21329 | switch (argIndex) { |
21330 | case 0: |
21331 | switch (Arg::Addr) { |
21332 | case Arg::Tmp: |
21333 | break; |
21334 | case Arg::Addr: |
21335 | case Arg::Stack: |
21336 | case Arg::CallArg: |
21337 | switch (args[1].kind()) { |
21338 | case Arg::Tmp: |
21339 | #if CPU(X86) || CPU(X86_64) |
21340 | OPGEN_RETURN(true); |
21341 | #endif |
21342 | break; |
21343 | break; |
21344 | default: |
21345 | break; |
21346 | } |
21347 | break; |
21348 | default: |
21349 | break; |
21350 | } |
21351 | break; |
21352 | case 1: |
21353 | OPGEN_RETURN(false); |
21354 | break; |
21355 | default: |
21356 | break; |
21357 | } |
21358 | break; |
21359 | case Opcode::SqrtFloat: |
21360 | switch (argIndex) { |
21361 | case 0: |
21362 | switch (Arg::Addr) { |
21363 | case Arg::Tmp: |
21364 | break; |
21365 | case Arg::Addr: |
21366 | case Arg::Stack: |
21367 | case Arg::CallArg: |
21368 | switch (args[1].kind()) { |
21369 | case Arg::Tmp: |
21370 | #if CPU(X86) || CPU(X86_64) |
21371 | OPGEN_RETURN(true); |
21372 | #endif |
21373 | break; |
21374 | break; |
21375 | default: |
21376 | break; |
21377 | } |
21378 | break; |
21379 | default: |
21380 | break; |
21381 | } |
21382 | break; |
21383 | case 1: |
21384 | OPGEN_RETURN(false); |
21385 | break; |
21386 | default: |
21387 | break; |
21388 | } |
21389 | break; |
21390 | case Opcode::ConvertInt32ToDouble: |
21391 | switch (argIndex) { |
21392 | case 0: |
21393 | switch (Arg::Addr) { |
21394 | case Arg::Tmp: |
21395 | break; |
21396 | case Arg::Addr: |
21397 | case Arg::Stack: |
21398 | case Arg::CallArg: |
21399 | switch (args[1].kind()) { |
21400 | case Arg::Tmp: |
21401 | #if CPU(X86) || CPU(X86_64) |
21402 | OPGEN_RETURN(true); |
21403 | #endif |
21404 | break; |
21405 | break; |
21406 | default: |
21407 | break; |
21408 | } |
21409 | break; |
21410 | default: |
21411 | break; |
21412 | } |
21413 | break; |
21414 | case 1: |
21415 | OPGEN_RETURN(false); |
21416 | break; |
21417 | default: |
21418 | break; |
21419 | } |
21420 | break; |
21421 | case Opcode::ConvertInt64ToDouble: |
21422 | switch (argIndex) { |
21423 | case 0: |
21424 | switch (Arg::Addr) { |
21425 | case Arg::Tmp: |
21426 | break; |
21427 | case Arg::Addr: |
21428 | case Arg::Stack: |
21429 | case Arg::CallArg: |
21430 | switch (args[1].kind()) { |
21431 | case Arg::Tmp: |
21432 | #if CPU(X86_64) |
21433 | OPGEN_RETURN(true); |
21434 | #endif |
21435 | break; |
21436 | break; |
21437 | default: |
21438 | break; |
21439 | } |
21440 | break; |
21441 | default: |
21442 | break; |
21443 | } |
21444 | break; |
21445 | case 1: |
21446 | OPGEN_RETURN(false); |
21447 | break; |
21448 | default: |
21449 | break; |
21450 | } |
21451 | break; |
21452 | case Opcode::ConvertInt32ToFloat: |
21453 | switch (argIndex) { |
21454 | case 0: |
21455 | switch (Arg::Addr) { |
21456 | case Arg::Tmp: |
21457 | break; |
21458 | case Arg::Addr: |
21459 | case Arg::Stack: |
21460 | case Arg::CallArg: |
21461 | switch (args[1].kind()) { |
21462 | case Arg::Tmp: |
21463 | #if CPU(X86) || CPU(X86_64) |
21464 | OPGEN_RETURN(true); |
21465 | #endif |
21466 | break; |
21467 | break; |
21468 | default: |
21469 | break; |
21470 | } |
21471 | break; |
21472 | default: |
21473 | break; |
21474 | } |
21475 | break; |
21476 | case 1: |
21477 | OPGEN_RETURN(false); |
21478 | break; |
21479 | default: |
21480 | break; |
21481 | } |
21482 | break; |
21483 | case Opcode::ConvertInt64ToFloat: |
21484 | switch (argIndex) { |
21485 | case 0: |
21486 | switch (Arg::Addr) { |
21487 | case Arg::Tmp: |
21488 | break; |
21489 | case Arg::Addr: |
21490 | case Arg::Stack: |
21491 | case Arg::CallArg: |
21492 | switch (args[1].kind()) { |
21493 | case Arg::Tmp: |
21494 | #if CPU(X86_64) |
21495 | OPGEN_RETURN(true); |
21496 | #endif |
21497 | break; |
21498 | break; |
21499 | default: |
21500 | break; |
21501 | } |
21502 | break; |
21503 | default: |
21504 | break; |
21505 | } |
21506 | break; |
21507 | case 1: |
21508 | OPGEN_RETURN(false); |
21509 | break; |
21510 | default: |
21511 | break; |
21512 | } |
21513 | break; |
21514 | case Opcode::CountLeadingZeros32: |
21515 | switch (argIndex) { |
21516 | case 0: |
21517 | switch (Arg::Addr) { |
21518 | case Arg::Tmp: |
21519 | break; |
21520 | case Arg::Addr: |
21521 | case Arg::Stack: |
21522 | case Arg::CallArg: |
21523 | switch (args[1].kind()) { |
21524 | case Arg::Tmp: |
21525 | #if CPU(X86) || CPU(X86_64) |
21526 | OPGEN_RETURN(true); |
21527 | #endif |
21528 | break; |
21529 | break; |
21530 | default: |
21531 | break; |
21532 | } |
21533 | break; |
21534 | default: |
21535 | break; |
21536 | } |
21537 | break; |
21538 | case 1: |
21539 | OPGEN_RETURN(false); |
21540 | break; |
21541 | default: |
21542 | break; |
21543 | } |
21544 | break; |
21545 | case Opcode::CountLeadingZeros64: |
21546 | switch (argIndex) { |
21547 | case 0: |
21548 | switch (Arg::Addr) { |
21549 | case Arg::Tmp: |
21550 | break; |
21551 | case Arg::Addr: |
21552 | case Arg::Stack: |
21553 | case Arg::CallArg: |
21554 | switch (args[1].kind()) { |
21555 | case Arg::Tmp: |
21556 | #if CPU(X86_64) |
21557 | OPGEN_RETURN(true); |
21558 | #endif |
21559 | break; |
21560 | break; |
21561 | default: |
21562 | break; |
21563 | } |
21564 | break; |
21565 | default: |
21566 | break; |
21567 | } |
21568 | break; |
21569 | case 1: |
21570 | OPGEN_RETURN(false); |
21571 | break; |
21572 | default: |
21573 | break; |
21574 | } |
21575 | break; |
21576 | case Opcode::ConvertDoubleToFloat: |
21577 | switch (argIndex) { |
21578 | case 0: |
21579 | switch (Arg::Addr) { |
21580 | case Arg::Tmp: |
21581 | break; |
21582 | case Arg::Addr: |
21583 | case Arg::Stack: |
21584 | case Arg::CallArg: |
21585 | switch (args[1].kind()) { |
21586 | case Arg::Tmp: |
21587 | #if CPU(X86) || CPU(X86_64) |
21588 | OPGEN_RETURN(true); |
21589 | #endif |
21590 | break; |
21591 | break; |
21592 | default: |
21593 | break; |
21594 | } |
21595 | break; |
21596 | default: |
21597 | break; |
21598 | } |
21599 | break; |
21600 | case 1: |
21601 | OPGEN_RETURN(false); |
21602 | break; |
21603 | default: |
21604 | break; |
21605 | } |
21606 | break; |
21607 | case Opcode::ConvertFloatToDouble: |
21608 | switch (argIndex) { |
21609 | case 0: |
21610 | switch (Arg::Addr) { |
21611 | case Arg::Tmp: |
21612 | break; |
21613 | case Arg::Addr: |
21614 | case Arg::Stack: |
21615 | case Arg::CallArg: |
21616 | switch (args[1].kind()) { |
21617 | case Arg::Tmp: |
21618 | #if CPU(X86) || CPU(X86_64) |
21619 | OPGEN_RETURN(true); |
21620 | #endif |
21621 | break; |
21622 | break; |
21623 | default: |
21624 | break; |
21625 | } |
21626 | break; |
21627 | default: |
21628 | break; |
21629 | } |
21630 | break; |
21631 | case 1: |
21632 | OPGEN_RETURN(false); |
21633 | break; |
21634 | default: |
21635 | break; |
21636 | } |
21637 | break; |
21638 | case Opcode::Move: |
21639 | switch (argIndex) { |
21640 | case 0: |
21641 | switch (args.size()) { |
21642 | case 2: |
21643 | switch (Arg::Addr) { |
21644 | case Arg::Tmp: |
21645 | break; |
21646 | case Arg::Imm: |
21647 | break; |
21648 | #if USE(JSVALUE64) |
21649 | case Arg::BigImm: |
21650 | break; |
21651 | #endif // USE(JSVALUE64) |
21652 | case Arg::Addr: |
21653 | case Arg::Stack: |
21654 | case Arg::CallArg: |
21655 | switch (args[1].kind()) { |
21656 | case Arg::Tmp: |
21657 | OPGEN_RETURN(true); |
21658 | break; |
21659 | break; |
21660 | default: |
21661 | break; |
21662 | } |
21663 | break; |
21664 | case Arg::Index: |
21665 | break; |
21666 | default: |
21667 | break; |
21668 | } |
21669 | break; |
21670 | case 3: |
21671 | OPGEN_RETURN(true); |
21672 | break; |
21673 | default: |
21674 | break; |
21675 | } |
21676 | break; |
21677 | case 1: |
21678 | switch (args.size()) { |
21679 | case 2: |
21680 | switch (args[0].kind()) { |
21681 | case Arg::Tmp: |
21682 | switch (Arg::Addr) { |
21683 | case Arg::Tmp: |
21684 | break; |
21685 | case Arg::Addr: |
21686 | case Arg::Stack: |
21687 | case Arg::CallArg: |
21688 | OPGEN_RETURN(true); |
21689 | break; |
21690 | break; |
21691 | case Arg::Index: |
21692 | break; |
21693 | default: |
21694 | break; |
21695 | } |
21696 | break; |
21697 | case Arg::Imm: |
21698 | switch (Arg::Addr) { |
21699 | case Arg::Tmp: |
21700 | break; |
21701 | case Arg::Addr: |
21702 | case Arg::Stack: |
21703 | case Arg::CallArg: |
21704 | #if CPU(X86) || CPU(X86_64) |
21705 | OPGEN_RETURN(true); |
21706 | #endif |
21707 | break; |
21708 | break; |
21709 | default: |
21710 | break; |
21711 | } |
21712 | break; |
21713 | #if USE(JSVALUE64) |
21714 | case Arg::BigImm: |
21715 | break; |
21716 | #endif // USE(JSVALUE64) |
21717 | case Arg::Addr: |
21718 | case Arg::Stack: |
21719 | case Arg::CallArg: |
21720 | break; |
21721 | case Arg::Index: |
21722 | break; |
21723 | default: |
21724 | break; |
21725 | } |
21726 | break; |
21727 | case 3: |
21728 | OPGEN_RETURN(true); |
21729 | break; |
21730 | default: |
21731 | break; |
21732 | } |
21733 | break; |
21734 | case 2: |
21735 | OPGEN_RETURN(false); |
21736 | break; |
21737 | default: |
21738 | break; |
21739 | } |
21740 | break; |
21741 | case Opcode::Swap32: |
21742 | switch (argIndex) { |
21743 | case 0: |
21744 | OPGEN_RETURN(false); |
21745 | break; |
21746 | case 1: |
21747 | switch (args[0].kind()) { |
21748 | case Arg::Tmp: |
21749 | switch (Arg::Addr) { |
21750 | case Arg::Tmp: |
21751 | break; |
21752 | case Arg::Addr: |
21753 | case Arg::Stack: |
21754 | case Arg::CallArg: |
21755 | #if CPU(X86) || CPU(X86_64) |
21756 | OPGEN_RETURN(true); |
21757 | #endif |
21758 | break; |
21759 | break; |
21760 | default: |
21761 | break; |
21762 | } |
21763 | break; |
21764 | default: |
21765 | break; |
21766 | } |
21767 | break; |
21768 | default: |
21769 | break; |
21770 | } |
21771 | break; |
21772 | case Opcode::Swap64: |
21773 | switch (argIndex) { |
21774 | case 0: |
21775 | OPGEN_RETURN(false); |
21776 | break; |
21777 | case 1: |
21778 | switch (args[0].kind()) { |
21779 | case Arg::Tmp: |
21780 | switch (Arg::Addr) { |
21781 | case Arg::Tmp: |
21782 | break; |
21783 | case Arg::Addr: |
21784 | case Arg::Stack: |
21785 | case Arg::CallArg: |
21786 | #if CPU(X86_64) |
21787 | OPGEN_RETURN(true); |
21788 | #endif |
21789 | break; |
21790 | break; |
21791 | default: |
21792 | break; |
21793 | } |
21794 | break; |
21795 | default: |
21796 | break; |
21797 | } |
21798 | break; |
21799 | default: |
21800 | break; |
21801 | } |
21802 | break; |
21803 | case Opcode::Move32: |
21804 | switch (argIndex) { |
21805 | case 0: |
21806 | switch (args.size()) { |
21807 | case 2: |
21808 | switch (Arg::Addr) { |
21809 | case Arg::Tmp: |
21810 | break; |
21811 | case Arg::Addr: |
21812 | case Arg::Stack: |
21813 | case Arg::CallArg: |
21814 | switch (args[1].kind()) { |
21815 | case Arg::Tmp: |
21816 | OPGEN_RETURN(true); |
21817 | break; |
21818 | break; |
21819 | default: |
21820 | break; |
21821 | } |
21822 | break; |
21823 | case Arg::Index: |
21824 | break; |
21825 | case Arg::Imm: |
21826 | break; |
21827 | default: |
21828 | break; |
21829 | } |
21830 | break; |
21831 | case 3: |
21832 | OPGEN_RETURN(true); |
21833 | break; |
21834 | default: |
21835 | break; |
21836 | } |
21837 | break; |
21838 | case 1: |
21839 | switch (args.size()) { |
21840 | case 2: |
21841 | switch (args[0].kind()) { |
21842 | case Arg::Tmp: |
21843 | switch (Arg::Addr) { |
21844 | case Arg::Tmp: |
21845 | break; |
21846 | case Arg::Addr: |
21847 | case Arg::Stack: |
21848 | case Arg::CallArg: |
21849 | OPGEN_RETURN(true); |
21850 | break; |
21851 | break; |
21852 | case Arg::Index: |
21853 | break; |
21854 | default: |
21855 | break; |
21856 | } |
21857 | break; |
21858 | case Arg::Addr: |
21859 | case Arg::Stack: |
21860 | case Arg::CallArg: |
21861 | break; |
21862 | case Arg::Index: |
21863 | break; |
21864 | case Arg::Imm: |
21865 | switch (Arg::Addr) { |
21866 | case Arg::Tmp: |
21867 | break; |
21868 | case Arg::Addr: |
21869 | case Arg::Stack: |
21870 | case Arg::CallArg: |
21871 | #if CPU(X86) || CPU(X86_64) |
21872 | OPGEN_RETURN(true); |
21873 | #endif |
21874 | break; |
21875 | break; |
21876 | case Arg::Index: |
21877 | break; |
21878 | default: |
21879 | break; |
21880 | } |
21881 | break; |
21882 | default: |
21883 | break; |
21884 | } |
21885 | break; |
21886 | case 3: |
21887 | OPGEN_RETURN(true); |
21888 | break; |
21889 | default: |
21890 | break; |
21891 | } |
21892 | break; |
21893 | case 2: |
21894 | OPGEN_RETURN(false); |
21895 | break; |
21896 | default: |
21897 | break; |
21898 | } |
21899 | break; |
21900 | case Opcode::StoreZero32: |
21901 | switch (argIndex) { |
21902 | case 0: |
21903 | switch (Arg::Addr) { |
21904 | case Arg::Addr: |
21905 | case Arg::Stack: |
21906 | case Arg::CallArg: |
21907 | OPGEN_RETURN(true); |
21908 | break; |
21909 | break; |
21910 | case Arg::Index: |
21911 | break; |
21912 | default: |
21913 | break; |
21914 | } |
21915 | break; |
21916 | default: |
21917 | break; |
21918 | } |
21919 | break; |
21920 | case Opcode::StoreZero64: |
21921 | switch (argIndex) { |
21922 | case 0: |
21923 | switch (Arg::Addr) { |
21924 | case Arg::Addr: |
21925 | case Arg::Stack: |
21926 | case Arg::CallArg: |
21927 | #if CPU(X86_64) || CPU(ARM64) |
21928 | OPGEN_RETURN(true); |
21929 | #endif |
21930 | break; |
21931 | break; |
21932 | case Arg::Index: |
21933 | break; |
21934 | default: |
21935 | break; |
21936 | } |
21937 | break; |
21938 | default: |
21939 | break; |
21940 | } |
21941 | break; |
21942 | case Opcode::SignExtend32ToPtr: |
21943 | switch (argIndex) { |
21944 | case 0: |
21945 | OPGEN_RETURN(false); |
21946 | break; |
21947 | case 1: |
21948 | OPGEN_RETURN(false); |
21949 | break; |
21950 | default: |
21951 | break; |
21952 | } |
21953 | break; |
21954 | case Opcode::ZeroExtend8To32: |
21955 | switch (argIndex) { |
21956 | case 0: |
21957 | switch (Arg::Addr) { |
21958 | case Arg::Tmp: |
21959 | break; |
21960 | case Arg::Addr: |
21961 | case Arg::Stack: |
21962 | case Arg::CallArg: |
21963 | switch (args[1].kind()) { |
21964 | case Arg::Tmp: |
21965 | #if CPU(X86) || CPU(X86_64) |
21966 | OPGEN_RETURN(true); |
21967 | #endif |
21968 | break; |
21969 | break; |
21970 | default: |
21971 | break; |
21972 | } |
21973 | break; |
21974 | case Arg::Index: |
21975 | break; |
21976 | default: |
21977 | break; |
21978 | } |
21979 | break; |
21980 | case 1: |
21981 | OPGEN_RETURN(false); |
21982 | break; |
21983 | default: |
21984 | break; |
21985 | } |
21986 | break; |
21987 | case Opcode::SignExtend8To32: |
21988 | switch (argIndex) { |
21989 | case 0: |
21990 | switch (Arg::Addr) { |
21991 | case Arg::Tmp: |
21992 | break; |
21993 | case Arg::Addr: |
21994 | case Arg::Stack: |
21995 | case Arg::CallArg: |
21996 | switch (args[1].kind()) { |
21997 | case Arg::Tmp: |
21998 | #if CPU(X86) || CPU(X86_64) |
21999 | OPGEN_RETURN(true); |
22000 | #endif |
22001 | break; |
22002 | break; |
22003 | default: |
22004 | break; |
22005 | } |
22006 | break; |
22007 | case Arg::Index: |
22008 | break; |
22009 | default: |
22010 | break; |
22011 | } |
22012 | break; |
22013 | case 1: |
22014 | OPGEN_RETURN(false); |
22015 | break; |
22016 | default: |
22017 | break; |
22018 | } |
22019 | break; |
22020 | case Opcode::ZeroExtend16To32: |
22021 | switch (argIndex) { |
22022 | case 0: |
22023 | switch (Arg::Addr) { |
22024 | case Arg::Tmp: |
22025 | break; |
22026 | case Arg::Addr: |
22027 | case Arg::Stack: |
22028 | case Arg::CallArg: |
22029 | switch (args[1].kind()) { |
22030 | case Arg::Tmp: |
22031 | #if CPU(X86) || CPU(X86_64) |
22032 | OPGEN_RETURN(true); |
22033 | #endif |
22034 | break; |
22035 | break; |
22036 | default: |
22037 | break; |
22038 | } |
22039 | break; |
22040 | case Arg::Index: |
22041 | break; |
22042 | default: |
22043 | break; |
22044 | } |
22045 | break; |
22046 | case 1: |
22047 | OPGEN_RETURN(false); |
22048 | break; |
22049 | default: |
22050 | break; |
22051 | } |
22052 | break; |
22053 | case Opcode::SignExtend16To32: |
22054 | switch (argIndex) { |
22055 | case 0: |
22056 | switch (Arg::Addr) { |
22057 | case Arg::Tmp: |
22058 | break; |
22059 | case Arg::Addr: |
22060 | case Arg::Stack: |
22061 | case Arg::CallArg: |
22062 | switch (args[1].kind()) { |
22063 | case Arg::Tmp: |
22064 | #if CPU(X86) || CPU(X86_64) |
22065 | OPGEN_RETURN(true); |
22066 | #endif |
22067 | break; |
22068 | break; |
22069 | default: |
22070 | break; |
22071 | } |
22072 | break; |
22073 | case Arg::Index: |
22074 | break; |
22075 | default: |
22076 | break; |
22077 | } |
22078 | break; |
22079 | case 1: |
22080 | OPGEN_RETURN(false); |
22081 | break; |
22082 | default: |
22083 | break; |
22084 | } |
22085 | break; |
22086 | case Opcode::MoveFloat: |
22087 | switch (argIndex) { |
22088 | case 0: |
22089 | switch (args.size()) { |
22090 | case 2: |
22091 | switch (Arg::Addr) { |
22092 | case Arg::Tmp: |
22093 | break; |
22094 | case Arg::Addr: |
22095 | case Arg::Stack: |
22096 | case Arg::CallArg: |
22097 | switch (args[1].kind()) { |
22098 | case Arg::Tmp: |
22099 | OPGEN_RETURN(true); |
22100 | break; |
22101 | break; |
22102 | default: |
22103 | break; |
22104 | } |
22105 | break; |
22106 | case Arg::Index: |
22107 | break; |
22108 | default: |
22109 | break; |
22110 | } |
22111 | break; |
22112 | case 3: |
22113 | OPGEN_RETURN(true); |
22114 | break; |
22115 | default: |
22116 | break; |
22117 | } |
22118 | break; |
22119 | case 1: |
22120 | switch (args.size()) { |
22121 | case 2: |
22122 | switch (args[0].kind()) { |
22123 | case Arg::Tmp: |
22124 | switch (Arg::Addr) { |
22125 | case Arg::Tmp: |
22126 | break; |
22127 | case Arg::Addr: |
22128 | case Arg::Stack: |
22129 | case Arg::CallArg: |
22130 | OPGEN_RETURN(true); |
22131 | break; |
22132 | break; |
22133 | case Arg::Index: |
22134 | break; |
22135 | default: |
22136 | break; |
22137 | } |
22138 | break; |
22139 | case Arg::Addr: |
22140 | case Arg::Stack: |
22141 | case Arg::CallArg: |
22142 | break; |
22143 | case Arg::Index: |
22144 | break; |
22145 | default: |
22146 | break; |
22147 | } |
22148 | break; |
22149 | case 3: |
22150 | OPGEN_RETURN(true); |
22151 | break; |
22152 | default: |
22153 | break; |
22154 | } |
22155 | break; |
22156 | case 2: |
22157 | OPGEN_RETURN(false); |
22158 | break; |
22159 | default: |
22160 | break; |
22161 | } |
22162 | break; |
22163 | case Opcode::MoveDouble: |
22164 | switch (argIndex) { |
22165 | case 0: |
22166 | switch (args.size()) { |
22167 | case 2: |
22168 | switch (Arg::Addr) { |
22169 | case Arg::Tmp: |
22170 | break; |
22171 | case Arg::Addr: |
22172 | case Arg::Stack: |
22173 | case Arg::CallArg: |
22174 | switch (args[1].kind()) { |
22175 | case Arg::Tmp: |
22176 | OPGEN_RETURN(true); |
22177 | break; |
22178 | break; |
22179 | default: |
22180 | break; |
22181 | } |
22182 | break; |
22183 | case Arg::Index: |
22184 | break; |
22185 | default: |
22186 | break; |
22187 | } |
22188 | break; |
22189 | case 3: |
22190 | OPGEN_RETURN(true); |
22191 | break; |
22192 | default: |
22193 | break; |
22194 | } |
22195 | break; |
22196 | case 1: |
22197 | switch (args.size()) { |
22198 | case 2: |
22199 | switch (args[0].kind()) { |
22200 | case Arg::Tmp: |
22201 | switch (Arg::Addr) { |
22202 | case Arg::Tmp: |
22203 | break; |
22204 | case Arg::Addr: |
22205 | case Arg::Stack: |
22206 | case Arg::CallArg: |
22207 | OPGEN_RETURN(true); |
22208 | break; |
22209 | break; |
22210 | case Arg::Index: |
22211 | break; |
22212 | default: |
22213 | break; |
22214 | } |
22215 | break; |
22216 | case Arg::Addr: |
22217 | case Arg::Stack: |
22218 | case Arg::CallArg: |
22219 | break; |
22220 | case Arg::Index: |
22221 | break; |
22222 | default: |
22223 | break; |
22224 | } |
22225 | break; |
22226 | case 3: |
22227 | OPGEN_RETURN(true); |
22228 | break; |
22229 | default: |
22230 | break; |
22231 | } |
22232 | break; |
22233 | case 2: |
22234 | OPGEN_RETURN(false); |
22235 | break; |
22236 | default: |
22237 | break; |
22238 | } |
22239 | break; |
22240 | case Opcode::MoveZeroToDouble: |
22241 | switch (argIndex) { |
22242 | case 0: |
22243 | OPGEN_RETURN(false); |
22244 | break; |
22245 | default: |
22246 | break; |
22247 | } |
22248 | break; |
22249 | case Opcode::Move64ToDouble: |
22250 | switch (argIndex) { |
22251 | case 0: |
22252 | switch (Arg::Addr) { |
22253 | case Arg::Tmp: |
22254 | break; |
22255 | case Arg::Addr: |
22256 | case Arg::Stack: |
22257 | case Arg::CallArg: |
22258 | switch (args[1].kind()) { |
22259 | case Arg::Tmp: |
22260 | #if CPU(X86_64) |
22261 | OPGEN_RETURN(true); |
22262 | #endif |
22263 | break; |
22264 | break; |
22265 | default: |
22266 | break; |
22267 | } |
22268 | break; |
22269 | case Arg::Index: |
22270 | break; |
22271 | default: |
22272 | break; |
22273 | } |
22274 | break; |
22275 | case 1: |
22276 | OPGEN_RETURN(false); |
22277 | break; |
22278 | default: |
22279 | break; |
22280 | } |
22281 | break; |
22282 | case Opcode::Move32ToFloat: |
22283 | switch (argIndex) { |
22284 | case 0: |
22285 | switch (Arg::Addr) { |
22286 | case Arg::Tmp: |
22287 | break; |
22288 | case Arg::Addr: |
22289 | case Arg::Stack: |
22290 | case Arg::CallArg: |
22291 | switch (args[1].kind()) { |
22292 | case Arg::Tmp: |
22293 | #if CPU(X86) || CPU(X86_64) |
22294 | OPGEN_RETURN(true); |
22295 | #endif |
22296 | break; |
22297 | break; |
22298 | default: |
22299 | break; |
22300 | } |
22301 | break; |
22302 | case Arg::Index: |
22303 | break; |
22304 | default: |
22305 | break; |
22306 | } |
22307 | break; |
22308 | case 1: |
22309 | OPGEN_RETURN(false); |
22310 | break; |
22311 | default: |
22312 | break; |
22313 | } |
22314 | break; |
22315 | case Opcode::MoveDoubleTo64: |
22316 | switch (argIndex) { |
22317 | case 0: |
22318 | switch (Arg::Addr) { |
22319 | case Arg::Tmp: |
22320 | break; |
22321 | case Arg::Addr: |
22322 | case Arg::Stack: |
22323 | case Arg::CallArg: |
22324 | switch (args[1].kind()) { |
22325 | case Arg::Tmp: |
22326 | #if CPU(X86_64) || CPU(ARM64) |
22327 | OPGEN_RETURN(true); |
22328 | #endif |
22329 | break; |
22330 | break; |
22331 | default: |
22332 | break; |
22333 | } |
22334 | break; |
22335 | case Arg::Index: |
22336 | break; |
22337 | default: |
22338 | break; |
22339 | } |
22340 | break; |
22341 | case 1: |
22342 | OPGEN_RETURN(false); |
22343 | break; |
22344 | default: |
22345 | break; |
22346 | } |
22347 | break; |
22348 | case Opcode::MoveFloatTo32: |
22349 | switch (argIndex) { |
22350 | case 0: |
22351 | switch (Arg::Addr) { |
22352 | case Arg::Tmp: |
22353 | break; |
22354 | case Arg::Addr: |
22355 | case Arg::Stack: |
22356 | case Arg::CallArg: |
22357 | switch (args[1].kind()) { |
22358 | case Arg::Tmp: |
22359 | OPGEN_RETURN(true); |
22360 | break; |
22361 | break; |
22362 | default: |
22363 | break; |
22364 | } |
22365 | break; |
22366 | case Arg::Index: |
22367 | break; |
22368 | default: |
22369 | break; |
22370 | } |
22371 | break; |
22372 | case 1: |
22373 | OPGEN_RETURN(false); |
22374 | break; |
22375 | default: |
22376 | break; |
22377 | } |
22378 | break; |
22379 | case Opcode::Load8: |
22380 | switch (argIndex) { |
22381 | case 0: |
22382 | switch (Arg::Addr) { |
22383 | case Arg::Addr: |
22384 | case Arg::Stack: |
22385 | case Arg::CallArg: |
22386 | switch (args[1].kind()) { |
22387 | case Arg::Tmp: |
22388 | OPGEN_RETURN(true); |
22389 | break; |
22390 | break; |
22391 | default: |
22392 | break; |
22393 | } |
22394 | break; |
22395 | case Arg::Index: |
22396 | break; |
22397 | default: |
22398 | break; |
22399 | } |
22400 | break; |
22401 | case 1: |
22402 | OPGEN_RETURN(false); |
22403 | break; |
22404 | default: |
22405 | break; |
22406 | } |
22407 | break; |
22408 | case Opcode::LoadAcq8: |
22409 | switch (argIndex) { |
22410 | case 0: |
22411 | OPGEN_RETURN(false); |
22412 | break; |
22413 | case 1: |
22414 | OPGEN_RETURN(false); |
22415 | break; |
22416 | default: |
22417 | break; |
22418 | } |
22419 | break; |
22420 | case Opcode::Store8: |
22421 | switch (argIndex) { |
22422 | case 0: |
22423 | OPGEN_RETURN(false); |
22424 | break; |
22425 | case 1: |
22426 | switch (args[0].kind()) { |
22427 | case Arg::Tmp: |
22428 | switch (Arg::Addr) { |
22429 | case Arg::Index: |
22430 | break; |
22431 | case Arg::Addr: |
22432 | case Arg::Stack: |
22433 | case Arg::CallArg: |
22434 | OPGEN_RETURN(true); |
22435 | break; |
22436 | break; |
22437 | default: |
22438 | break; |
22439 | } |
22440 | break; |
22441 | case Arg::Imm: |
22442 | switch (Arg::Addr) { |
22443 | case Arg::Index: |
22444 | break; |
22445 | case Arg::Addr: |
22446 | case Arg::Stack: |
22447 | case Arg::CallArg: |
22448 | #if CPU(X86) || CPU(X86_64) |
22449 | OPGEN_RETURN(true); |
22450 | #endif |
22451 | break; |
22452 | break; |
22453 | default: |
22454 | break; |
22455 | } |
22456 | break; |
22457 | default: |
22458 | break; |
22459 | } |
22460 | break; |
22461 | default: |
22462 | break; |
22463 | } |
22464 | break; |
22465 | case Opcode::StoreRel8: |
22466 | switch (argIndex) { |
22467 | case 0: |
22468 | OPGEN_RETURN(false); |
22469 | break; |
22470 | case 1: |
22471 | OPGEN_RETURN(false); |
22472 | break; |
22473 | default: |
22474 | break; |
22475 | } |
22476 | break; |
22477 | case Opcode::Load8SignedExtendTo32: |
22478 | switch (argIndex) { |
22479 | case 0: |
22480 | switch (Arg::Addr) { |
22481 | case Arg::Addr: |
22482 | case Arg::Stack: |
22483 | case Arg::CallArg: |
22484 | switch (args[1].kind()) { |
22485 | case Arg::Tmp: |
22486 | OPGEN_RETURN(true); |
22487 | break; |
22488 | break; |
22489 | default: |
22490 | break; |
22491 | } |
22492 | break; |
22493 | case Arg::Index: |
22494 | break; |
22495 | default: |
22496 | break; |
22497 | } |
22498 | break; |
22499 | case 1: |
22500 | OPGEN_RETURN(false); |
22501 | break; |
22502 | default: |
22503 | break; |
22504 | } |
22505 | break; |
22506 | case Opcode::LoadAcq8SignedExtendTo32: |
22507 | switch (argIndex) { |
22508 | case 0: |
22509 | OPGEN_RETURN(false); |
22510 | break; |
22511 | case 1: |
22512 | OPGEN_RETURN(false); |
22513 | break; |
22514 | default: |
22515 | break; |
22516 | } |
22517 | break; |
22518 | case Opcode::Load16: |
22519 | switch (argIndex) { |
22520 | case 0: |
22521 | switch (Arg::Addr) { |
22522 | case Arg::Addr: |
22523 | case Arg::Stack: |
22524 | case Arg::CallArg: |
22525 | switch (args[1].kind()) { |
22526 | case Arg::Tmp: |
22527 | OPGEN_RETURN(true); |
22528 | break; |
22529 | break; |
22530 | default: |
22531 | break; |
22532 | } |
22533 | break; |
22534 | case Arg::Index: |
22535 | break; |
22536 | default: |
22537 | break; |
22538 | } |
22539 | break; |
22540 | case 1: |
22541 | OPGEN_RETURN(false); |
22542 | break; |
22543 | default: |
22544 | break; |
22545 | } |
22546 | break; |
22547 | case Opcode::LoadAcq16: |
22548 | switch (argIndex) { |
22549 | case 0: |
22550 | OPGEN_RETURN(false); |
22551 | break; |
22552 | case 1: |
22553 | OPGEN_RETURN(false); |
22554 | break; |
22555 | default: |
22556 | break; |
22557 | } |
22558 | break; |
22559 | case Opcode::Load16SignedExtendTo32: |
22560 | switch (argIndex) { |
22561 | case 0: |
22562 | switch (Arg::Addr) { |
22563 | case Arg::Addr: |
22564 | case Arg::Stack: |
22565 | case Arg::CallArg: |
22566 | switch (args[1].kind()) { |
22567 | case Arg::Tmp: |
22568 | OPGEN_RETURN(true); |
22569 | break; |
22570 | break; |
22571 | default: |
22572 | break; |
22573 | } |
22574 | break; |
22575 | case Arg::Index: |
22576 | break; |
22577 | default: |
22578 | break; |
22579 | } |
22580 | break; |
22581 | case 1: |
22582 | OPGEN_RETURN(false); |
22583 | break; |
22584 | default: |
22585 | break; |
22586 | } |
22587 | break; |
22588 | case Opcode::LoadAcq16SignedExtendTo32: |
22589 | switch (argIndex) { |
22590 | case 0: |
22591 | OPGEN_RETURN(false); |
22592 | break; |
22593 | case 1: |
22594 | OPGEN_RETURN(false); |
22595 | break; |
22596 | default: |
22597 | break; |
22598 | } |
22599 | break; |
22600 | case Opcode::Store16: |
22601 | switch (argIndex) { |
22602 | case 0: |
22603 | OPGEN_RETURN(false); |
22604 | break; |
22605 | case 1: |
22606 | switch (args[0].kind()) { |
22607 | case Arg::Tmp: |
22608 | switch (Arg::Addr) { |
22609 | case Arg::Index: |
22610 | break; |
22611 | case Arg::Addr: |
22612 | case Arg::Stack: |
22613 | case Arg::CallArg: |
22614 | OPGEN_RETURN(true); |
22615 | break; |
22616 | break; |
22617 | default: |
22618 | break; |
22619 | } |
22620 | break; |
22621 | case Arg::Imm: |
22622 | switch (Arg::Addr) { |
22623 | case Arg::Index: |
22624 | break; |
22625 | case Arg::Addr: |
22626 | case Arg::Stack: |
22627 | case Arg::CallArg: |
22628 | #if CPU(X86) || CPU(X86_64) |
22629 | OPGEN_RETURN(true); |
22630 | #endif |
22631 | break; |
22632 | break; |
22633 | default: |
22634 | break; |
22635 | } |
22636 | break; |
22637 | default: |
22638 | break; |
22639 | } |
22640 | break; |
22641 | default: |
22642 | break; |
22643 | } |
22644 | break; |
22645 | case Opcode::StoreRel16: |
22646 | switch (argIndex) { |
22647 | case 0: |
22648 | OPGEN_RETURN(false); |
22649 | break; |
22650 | case 1: |
22651 | OPGEN_RETURN(false); |
22652 | break; |
22653 | default: |
22654 | break; |
22655 | } |
22656 | break; |
22657 | case Opcode::LoadAcq32: |
22658 | switch (argIndex) { |
22659 | case 0: |
22660 | OPGEN_RETURN(false); |
22661 | break; |
22662 | case 1: |
22663 | OPGEN_RETURN(false); |
22664 | break; |
22665 | default: |
22666 | break; |
22667 | } |
22668 | break; |
22669 | case Opcode::StoreRel32: |
22670 | switch (argIndex) { |
22671 | case 0: |
22672 | OPGEN_RETURN(false); |
22673 | break; |
22674 | case 1: |
22675 | OPGEN_RETURN(false); |
22676 | break; |
22677 | default: |
22678 | break; |
22679 | } |
22680 | break; |
22681 | case Opcode::LoadAcq64: |
22682 | switch (argIndex) { |
22683 | case 0: |
22684 | OPGEN_RETURN(false); |
22685 | break; |
22686 | case 1: |
22687 | OPGEN_RETURN(false); |
22688 | break; |
22689 | default: |
22690 | break; |
22691 | } |
22692 | break; |
22693 | case Opcode::StoreRel64: |
22694 | switch (argIndex) { |
22695 | case 0: |
22696 | OPGEN_RETURN(false); |
22697 | break; |
22698 | case 1: |
22699 | OPGEN_RETURN(false); |
22700 | break; |
22701 | default: |
22702 | break; |
22703 | } |
22704 | break; |
22705 | case Opcode::Xchg8: |
22706 | switch (argIndex) { |
22707 | case 0: |
22708 | OPGEN_RETURN(false); |
22709 | break; |
22710 | case 1: |
22711 | switch (args[0].kind()) { |
22712 | case Arg::Tmp: |
22713 | switch (Arg::Addr) { |
22714 | case Arg::Addr: |
22715 | case Arg::Stack: |
22716 | case Arg::CallArg: |
22717 | #if CPU(X86) || CPU(X86_64) |
22718 | OPGEN_RETURN(true); |
22719 | #endif |
22720 | break; |
22721 | break; |
22722 | case Arg::Index: |
22723 | break; |
22724 | default: |
22725 | break; |
22726 | } |
22727 | break; |
22728 | default: |
22729 | break; |
22730 | } |
22731 | break; |
22732 | default: |
22733 | break; |
22734 | } |
22735 | break; |
22736 | case Opcode::Xchg16: |
22737 | switch (argIndex) { |
22738 | case 0: |
22739 | OPGEN_RETURN(false); |
22740 | break; |
22741 | case 1: |
22742 | switch (args[0].kind()) { |
22743 | case Arg::Tmp: |
22744 | switch (Arg::Addr) { |
22745 | case Arg::Addr: |
22746 | case Arg::Stack: |
22747 | case Arg::CallArg: |
22748 | #if CPU(X86) || CPU(X86_64) |
22749 | OPGEN_RETURN(true); |
22750 | #endif |
22751 | break; |
22752 | break; |
22753 | case Arg::Index: |
22754 | break; |
22755 | default: |
22756 | break; |
22757 | } |
22758 | break; |
22759 | default: |
22760 | break; |
22761 | } |
22762 | break; |
22763 | default: |
22764 | break; |
22765 | } |
22766 | break; |
22767 | case Opcode::Xchg32: |
22768 | switch (argIndex) { |
22769 | case 0: |
22770 | OPGEN_RETURN(false); |
22771 | break; |
22772 | case 1: |
22773 | switch (args[0].kind()) { |
22774 | case Arg::Tmp: |
22775 | switch (Arg::Addr) { |
22776 | case Arg::Addr: |
22777 | case Arg::Stack: |
22778 | case Arg::CallArg: |
22779 | #if CPU(X86) || CPU(X86_64) |
22780 | OPGEN_RETURN(true); |
22781 | #endif |
22782 | break; |
22783 | break; |
22784 | case Arg::Index: |
22785 | break; |
22786 | default: |
22787 | break; |
22788 | } |
22789 | break; |
22790 | default: |
22791 | break; |
22792 | } |
22793 | break; |
22794 | default: |
22795 | break; |
22796 | } |
22797 | break; |
22798 | case Opcode::Xchg64: |
22799 | switch (argIndex) { |
22800 | case 0: |
22801 | OPGEN_RETURN(false); |
22802 | break; |
22803 | case 1: |
22804 | switch (args[0].kind()) { |
22805 | case Arg::Tmp: |
22806 | switch (Arg::Addr) { |
22807 | case Arg::Addr: |
22808 | case Arg::Stack: |
22809 | case Arg::CallArg: |
22810 | #if CPU(X86_64) |
22811 | OPGEN_RETURN(true); |
22812 | #endif |
22813 | break; |
22814 | break; |
22815 | case Arg::Index: |
22816 | break; |
22817 | default: |
22818 | break; |
22819 | } |
22820 | break; |
22821 | default: |
22822 | break; |
22823 | } |
22824 | break; |
22825 | default: |
22826 | break; |
22827 | } |
22828 | break; |
22829 | case Opcode::AtomicStrongCAS8: |
22830 | switch (argIndex) { |
22831 | case 0: |
22832 | OPGEN_RETURN(false); |
22833 | break; |
22834 | case 1: |
22835 | OPGEN_RETURN(false); |
22836 | break; |
22837 | case 2: |
22838 | switch (args.size()) { |
22839 | case 3: |
22840 | switch (args[0].kind()) { |
22841 | case Arg::Tmp: |
22842 | switch (args[1].kind()) { |
22843 | case Arg::Tmp: |
22844 | switch (Arg::Addr) { |
22845 | case Arg::Addr: |
22846 | case Arg::Stack: |
22847 | case Arg::CallArg: |
22848 | #if CPU(X86) || CPU(X86_64) |
22849 | OPGEN_RETURN(true); |
22850 | #endif |
22851 | break; |
22852 | break; |
22853 | case Arg::Index: |
22854 | break; |
22855 | default: |
22856 | break; |
22857 | } |
22858 | break; |
22859 | default: |
22860 | break; |
22861 | } |
22862 | break; |
22863 | default: |
22864 | break; |
22865 | } |
22866 | break; |
22867 | default: |
22868 | break; |
22869 | } |
22870 | break; |
22871 | case 3: |
22872 | switch (args.size()) { |
22873 | case 5: |
22874 | switch (args[0].kind()) { |
22875 | case Arg::StatusCond: |
22876 | switch (args[1].kind()) { |
22877 | case Arg::Tmp: |
22878 | switch (args[2].kind()) { |
22879 | case Arg::Tmp: |
22880 | switch (Arg::Addr) { |
22881 | case Arg::Addr: |
22882 | case Arg::Stack: |
22883 | case Arg::CallArg: |
22884 | switch (args[4].kind()) { |
22885 | case Arg::Tmp: |
22886 | #if CPU(X86) || CPU(X86_64) |
22887 | OPGEN_RETURN(true); |
22888 | #endif |
22889 | break; |
22890 | break; |
22891 | default: |
22892 | break; |
22893 | } |
22894 | break; |
22895 | case Arg::Index: |
22896 | break; |
22897 | default: |
22898 | break; |
22899 | } |
22900 | break; |
22901 | default: |
22902 | break; |
22903 | } |
22904 | break; |
22905 | default: |
22906 | break; |
22907 | } |
22908 | break; |
22909 | default: |
22910 | break; |
22911 | } |
22912 | break; |
22913 | default: |
22914 | break; |
22915 | } |
22916 | break; |
22917 | case 4: |
22918 | OPGEN_RETURN(false); |
22919 | break; |
22920 | default: |
22921 | break; |
22922 | } |
22923 | break; |
22924 | case Opcode::AtomicStrongCAS16: |
22925 | switch (argIndex) { |
22926 | case 0: |
22927 | OPGEN_RETURN(false); |
22928 | break; |
22929 | case 1: |
22930 | OPGEN_RETURN(false); |
22931 | break; |
22932 | case 2: |
22933 | switch (args.size()) { |
22934 | case 3: |
22935 | switch (args[0].kind()) { |
22936 | case Arg::Tmp: |
22937 | switch (args[1].kind()) { |
22938 | case Arg::Tmp: |
22939 | switch (Arg::Addr) { |
22940 | case Arg::Addr: |
22941 | case Arg::Stack: |
22942 | case Arg::CallArg: |
22943 | #if CPU(X86) || CPU(X86_64) |
22944 | OPGEN_RETURN(true); |
22945 | #endif |
22946 | break; |
22947 | break; |
22948 | case Arg::Index: |
22949 | break; |
22950 | default: |
22951 | break; |
22952 | } |
22953 | break; |
22954 | default: |
22955 | break; |
22956 | } |
22957 | break; |
22958 | default: |
22959 | break; |
22960 | } |
22961 | break; |
22962 | default: |
22963 | break; |
22964 | } |
22965 | break; |
22966 | case 3: |
22967 | switch (args.size()) { |
22968 | case 5: |
22969 | switch (args[0].kind()) { |
22970 | case Arg::StatusCond: |
22971 | switch (args[1].kind()) { |
22972 | case Arg::Tmp: |
22973 | switch (args[2].kind()) { |
22974 | case Arg::Tmp: |
22975 | switch (Arg::Addr) { |
22976 | case Arg::Addr: |
22977 | case Arg::Stack: |
22978 | case Arg::CallArg: |
22979 | switch (args[4].kind()) { |
22980 | case Arg::Tmp: |
22981 | #if CPU(X86) || CPU(X86_64) |
22982 | OPGEN_RETURN(true); |
22983 | #endif |
22984 | break; |
22985 | break; |
22986 | default: |
22987 | break; |
22988 | } |
22989 | break; |
22990 | case Arg::Index: |
22991 | break; |
22992 | default: |
22993 | break; |
22994 | } |
22995 | break; |
22996 | default: |
22997 | break; |
22998 | } |
22999 | break; |
23000 | default: |
23001 | break; |
23002 | } |
23003 | break; |
23004 | default: |
23005 | break; |
23006 | } |
23007 | break; |
23008 | default: |
23009 | break; |
23010 | } |
23011 | break; |
23012 | case 4: |
23013 | OPGEN_RETURN(false); |
23014 | break; |
23015 | default: |
23016 | break; |
23017 | } |
23018 | break; |
23019 | case Opcode::AtomicStrongCAS32: |
23020 | switch (argIndex) { |
23021 | case 0: |
23022 | OPGEN_RETURN(false); |
23023 | break; |
23024 | case 1: |
23025 | OPGEN_RETURN(false); |
23026 | break; |
23027 | case 2: |
23028 | switch (args.size()) { |
23029 | case 3: |
23030 | switch (args[0].kind()) { |
23031 | case Arg::Tmp: |
23032 | switch (args[1].kind()) { |
23033 | case Arg::Tmp: |
23034 | switch (Arg::Addr) { |
23035 | case Arg::Addr: |
23036 | case Arg::Stack: |
23037 | case Arg::CallArg: |
23038 | #if CPU(X86) || CPU(X86_64) |
23039 | OPGEN_RETURN(true); |
23040 | #endif |
23041 | break; |
23042 | break; |
23043 | case Arg::Index: |
23044 | break; |
23045 | default: |
23046 | break; |
23047 | } |
23048 | break; |
23049 | default: |
23050 | break; |
23051 | } |
23052 | break; |
23053 | default: |
23054 | break; |
23055 | } |
23056 | break; |
23057 | default: |
23058 | break; |
23059 | } |
23060 | break; |
23061 | case 3: |
23062 | switch (args.size()) { |
23063 | case 5: |
23064 | switch (args[0].kind()) { |
23065 | case Arg::StatusCond: |
23066 | switch (args[1].kind()) { |
23067 | case Arg::Tmp: |
23068 | switch (args[2].kind()) { |
23069 | case Arg::Tmp: |
23070 | switch (Arg::Addr) { |
23071 | case Arg::Addr: |
23072 | case Arg::Stack: |
23073 | case Arg::CallArg: |
23074 | switch (args[4].kind()) { |
23075 | case Arg::Tmp: |
23076 | #if CPU(X86) || CPU(X86_64) |
23077 | OPGEN_RETURN(true); |
23078 | #endif |
23079 | break; |
23080 | break; |
23081 | default: |
23082 | break; |
23083 | } |
23084 | break; |
23085 | case Arg::Index: |
23086 | break; |
23087 | default: |
23088 | break; |
23089 | } |
23090 | break; |
23091 | default: |
23092 | break; |
23093 | } |
23094 | break; |
23095 | default: |
23096 | break; |
23097 | } |
23098 | break; |
23099 | default: |
23100 | break; |
23101 | } |
23102 | break; |
23103 | default: |
23104 | break; |
23105 | } |
23106 | break; |
23107 | case 4: |
23108 | OPGEN_RETURN(false); |
23109 | break; |
23110 | default: |
23111 | break; |
23112 | } |
23113 | break; |
23114 | case Opcode::AtomicStrongCAS64: |
23115 | switch (argIndex) { |
23116 | case 0: |
23117 | OPGEN_RETURN(false); |
23118 | break; |
23119 | case 1: |
23120 | OPGEN_RETURN(false); |
23121 | break; |
23122 | case 2: |
23123 | switch (args.size()) { |
23124 | case 3: |
23125 | switch (args[0].kind()) { |
23126 | case Arg::Tmp: |
23127 | switch (args[1].kind()) { |
23128 | case Arg::Tmp: |
23129 | switch (Arg::Addr) { |
23130 | case Arg::Addr: |
23131 | case Arg::Stack: |
23132 | case Arg::CallArg: |
23133 | #if CPU(X86_64) |
23134 | OPGEN_RETURN(true); |
23135 | #endif |
23136 | break; |
23137 | break; |
23138 | case Arg::Index: |
23139 | break; |
23140 | default: |
23141 | break; |
23142 | } |
23143 | break; |
23144 | default: |
23145 | break; |
23146 | } |
23147 | break; |
23148 | default: |
23149 | break; |
23150 | } |
23151 | break; |
23152 | default: |
23153 | break; |
23154 | } |
23155 | break; |
23156 | case 3: |
23157 | switch (args.size()) { |
23158 | case 5: |
23159 | switch (args[0].kind()) { |
23160 | case Arg::StatusCond: |
23161 | switch (args[1].kind()) { |
23162 | case Arg::Tmp: |
23163 | switch (args[2].kind()) { |
23164 | case Arg::Tmp: |
23165 | switch (Arg::Addr) { |
23166 | case Arg::Addr: |
23167 | case Arg::Stack: |
23168 | case Arg::CallArg: |
23169 | switch (args[4].kind()) { |
23170 | case Arg::Tmp: |
23171 | #if CPU(X86_64) |
23172 | OPGEN_RETURN(true); |
23173 | #endif |
23174 | break; |
23175 | break; |
23176 | default: |
23177 | break; |
23178 | } |
23179 | break; |
23180 | case Arg::Index: |
23181 | break; |
23182 | default: |
23183 | break; |
23184 | } |
23185 | break; |
23186 | default: |
23187 | break; |
23188 | } |
23189 | break; |
23190 | default: |
23191 | break; |
23192 | } |
23193 | break; |
23194 | default: |
23195 | break; |
23196 | } |
23197 | break; |
23198 | default: |
23199 | break; |
23200 | } |
23201 | break; |
23202 | case 4: |
23203 | OPGEN_RETURN(false); |
23204 | break; |
23205 | default: |
23206 | break; |
23207 | } |
23208 | break; |
23209 | case Opcode::BranchAtomicStrongCAS8: |
23210 | switch (argIndex) { |
23211 | case 0: |
23212 | OPGEN_RETURN(false); |
23213 | break; |
23214 | case 1: |
23215 | OPGEN_RETURN(false); |
23216 | break; |
23217 | case 2: |
23218 | OPGEN_RETURN(false); |
23219 | break; |
23220 | case 3: |
23221 | switch (args[0].kind()) { |
23222 | case Arg::StatusCond: |
23223 | switch (args[1].kind()) { |
23224 | case Arg::Tmp: |
23225 | switch (args[2].kind()) { |
23226 | case Arg::Tmp: |
23227 | switch (Arg::Addr) { |
23228 | case Arg::Addr: |
23229 | case Arg::Stack: |
23230 | case Arg::CallArg: |
23231 | #if CPU(X86) || CPU(X86_64) |
23232 | OPGEN_RETURN(true); |
23233 | #endif |
23234 | break; |
23235 | break; |
23236 | case Arg::Index: |
23237 | break; |
23238 | default: |
23239 | break; |
23240 | } |
23241 | break; |
23242 | default: |
23243 | break; |
23244 | } |
23245 | break; |
23246 | default: |
23247 | break; |
23248 | } |
23249 | break; |
23250 | default: |
23251 | break; |
23252 | } |
23253 | break; |
23254 | default: |
23255 | break; |
23256 | } |
23257 | break; |
23258 | case Opcode::BranchAtomicStrongCAS16: |
23259 | switch (argIndex) { |
23260 | case 0: |
23261 | OPGEN_RETURN(false); |
23262 | break; |
23263 | case 1: |
23264 | OPGEN_RETURN(false); |
23265 | break; |
23266 | case 2: |
23267 | OPGEN_RETURN(false); |
23268 | break; |
23269 | case 3: |
23270 | switch (args[0].kind()) { |
23271 | case Arg::StatusCond: |
23272 | switch (args[1].kind()) { |
23273 | case Arg::Tmp: |
23274 | switch (args[2].kind()) { |
23275 | case Arg::Tmp: |
23276 | switch (Arg::Addr) { |
23277 | case Arg::Addr: |
23278 | case Arg::Stack: |
23279 | case Arg::CallArg: |
23280 | #if CPU(X86) || CPU(X86_64) |
23281 | OPGEN_RETURN(true); |
23282 | #endif |
23283 | break; |
23284 | break; |
23285 | case Arg::Index: |
23286 | break; |
23287 | default: |
23288 | break; |
23289 | } |
23290 | break; |
23291 | default: |
23292 | break; |
23293 | } |
23294 | break; |
23295 | default: |
23296 | break; |
23297 | } |
23298 | break; |
23299 | default: |
23300 | break; |
23301 | } |
23302 | break; |
23303 | default: |
23304 | break; |
23305 | } |
23306 | break; |
23307 | case Opcode::BranchAtomicStrongCAS32: |
23308 | switch (argIndex) { |
23309 | case 0: |
23310 | OPGEN_RETURN(false); |
23311 | break; |
23312 | case 1: |
23313 | OPGEN_RETURN(false); |
23314 | break; |
23315 | case 2: |
23316 | OPGEN_RETURN(false); |
23317 | break; |
23318 | case 3: |
23319 | switch (args[0].kind()) { |
23320 | case Arg::StatusCond: |
23321 | switch (args[1].kind()) { |
23322 | case Arg::Tmp: |
23323 | switch (args[2].kind()) { |
23324 | case Arg::Tmp: |
23325 | switch (Arg::Addr) { |
23326 | case Arg::Addr: |
23327 | case Arg::Stack: |
23328 | case Arg::CallArg: |
23329 | #if CPU(X86) || CPU(X86_64) |
23330 | OPGEN_RETURN(true); |
23331 | #endif |
23332 | break; |
23333 | break; |
23334 | case Arg::Index: |
23335 | break; |
23336 | default: |
23337 | break; |
23338 | } |
23339 | break; |
23340 | default: |
23341 | break; |
23342 | } |
23343 | break; |
23344 | default: |
23345 | break; |
23346 | } |
23347 | break; |
23348 | default: |
23349 | break; |
23350 | } |
23351 | break; |
23352 | default: |
23353 | break; |
23354 | } |
23355 | break; |
23356 | case Opcode::BranchAtomicStrongCAS64: |
23357 | switch (argIndex) { |
23358 | case 0: |
23359 | OPGEN_RETURN(false); |
23360 | break; |
23361 | case 1: |
23362 | OPGEN_RETURN(false); |
23363 | break; |
23364 | case 2: |
23365 | OPGEN_RETURN(false); |
23366 | break; |
23367 | case 3: |
23368 | switch (args[0].kind()) { |
23369 | case Arg::StatusCond: |
23370 | switch (args[1].kind()) { |
23371 | case Arg::Tmp: |
23372 | switch (args[2].kind()) { |
23373 | case Arg::Tmp: |
23374 | switch (Arg::Addr) { |
23375 | case Arg::Addr: |
23376 | case Arg::Stack: |
23377 | case Arg::CallArg: |
23378 | #if CPU(X86_64) |
23379 | OPGEN_RETURN(true); |
23380 | #endif |
23381 | break; |
23382 | break; |
23383 | case Arg::Index: |
23384 | break; |
23385 | default: |
23386 | break; |
23387 | } |
23388 | break; |
23389 | default: |
23390 | break; |
23391 | } |
23392 | break; |
23393 | default: |
23394 | break; |
23395 | } |
23396 | break; |
23397 | default: |
23398 | break; |
23399 | } |
23400 | break; |
23401 | default: |
23402 | break; |
23403 | } |
23404 | break; |
23405 | case Opcode::AtomicAdd8: |
23406 | switch (argIndex) { |
23407 | case 0: |
23408 | OPGEN_RETURN(false); |
23409 | break; |
23410 | case 1: |
23411 | switch (args[0].kind()) { |
23412 | case Arg::Imm: |
23413 | switch (Arg::Addr) { |
23414 | case Arg::Addr: |
23415 | case Arg::Stack: |
23416 | case Arg::CallArg: |
23417 | #if CPU(X86) || CPU(X86_64) |
23418 | OPGEN_RETURN(true); |
23419 | #endif |
23420 | break; |
23421 | break; |
23422 | case Arg::Index: |
23423 | break; |
23424 | default: |
23425 | break; |
23426 | } |
23427 | break; |
23428 | case Arg::Tmp: |
23429 | switch (Arg::Addr) { |
23430 | case Arg::Addr: |
23431 | case Arg::Stack: |
23432 | case Arg::CallArg: |
23433 | #if CPU(X86) || CPU(X86_64) |
23434 | OPGEN_RETURN(true); |
23435 | #endif |
23436 | break; |
23437 | break; |
23438 | case Arg::Index: |
23439 | break; |
23440 | default: |
23441 | break; |
23442 | } |
23443 | break; |
23444 | default: |
23445 | break; |
23446 | } |
23447 | break; |
23448 | default: |
23449 | break; |
23450 | } |
23451 | break; |
23452 | case Opcode::AtomicAdd16: |
23453 | switch (argIndex) { |
23454 | case 0: |
23455 | OPGEN_RETURN(false); |
23456 | break; |
23457 | case 1: |
23458 | switch (args[0].kind()) { |
23459 | case Arg::Imm: |
23460 | switch (Arg::Addr) { |
23461 | case Arg::Addr: |
23462 | case Arg::Stack: |
23463 | case Arg::CallArg: |
23464 | #if CPU(X86) || CPU(X86_64) |
23465 | OPGEN_RETURN(true); |
23466 | #endif |
23467 | break; |
23468 | break; |
23469 | case Arg::Index: |
23470 | break; |
23471 | default: |
23472 | break; |
23473 | } |
23474 | break; |
23475 | case Arg::Tmp: |
23476 | switch (Arg::Addr) { |
23477 | case Arg::Addr: |
23478 | case Arg::Stack: |
23479 | case Arg::CallArg: |
23480 | #if CPU(X86) || CPU(X86_64) |
23481 | OPGEN_RETURN(true); |
23482 | #endif |
23483 | break; |
23484 | break; |
23485 | case Arg::Index: |
23486 | break; |
23487 | default: |
23488 | break; |
23489 | } |
23490 | break; |
23491 | default: |
23492 | break; |
23493 | } |
23494 | break; |
23495 | default: |
23496 | break; |
23497 | } |
23498 | break; |
23499 | case Opcode::AtomicAdd32: |
23500 | switch (argIndex) { |
23501 | case 0: |
23502 | OPGEN_RETURN(false); |
23503 | break; |
23504 | case 1: |
23505 | switch (args[0].kind()) { |
23506 | case Arg::Imm: |
23507 | switch (Arg::Addr) { |
23508 | case Arg::Addr: |
23509 | case Arg::Stack: |
23510 | case Arg::CallArg: |
23511 | #if CPU(X86) || CPU(X86_64) |
23512 | OPGEN_RETURN(true); |
23513 | #endif |
23514 | break; |
23515 | break; |
23516 | case Arg::Index: |
23517 | break; |
23518 | default: |
23519 | break; |
23520 | } |
23521 | break; |
23522 | case Arg::Tmp: |
23523 | switch (Arg::Addr) { |
23524 | case Arg::Addr: |
23525 | case Arg::Stack: |
23526 | case Arg::CallArg: |
23527 | #if CPU(X86) || CPU(X86_64) |
23528 | OPGEN_RETURN(true); |
23529 | #endif |
23530 | break; |
23531 | break; |
23532 | case Arg::Index: |
23533 | break; |
23534 | default: |
23535 | break; |
23536 | } |
23537 | break; |
23538 | default: |
23539 | break; |
23540 | } |
23541 | break; |
23542 | default: |
23543 | break; |
23544 | } |
23545 | break; |
23546 | case Opcode::AtomicAdd64: |
23547 | switch (argIndex) { |
23548 | case 0: |
23549 | OPGEN_RETURN(false); |
23550 | break; |
23551 | case 1: |
23552 | switch (args[0].kind()) { |
23553 | case Arg::Imm: |
23554 | switch (Arg::Addr) { |
23555 | case Arg::Addr: |
23556 | case Arg::Stack: |
23557 | case Arg::CallArg: |
23558 | #if CPU(X86_64) |
23559 | OPGEN_RETURN(true); |
23560 | #endif |
23561 | break; |
23562 | break; |
23563 | case Arg::Index: |
23564 | break; |
23565 | default: |
23566 | break; |
23567 | } |
23568 | break; |
23569 | case Arg::Tmp: |
23570 | switch (Arg::Addr) { |
23571 | case Arg::Addr: |
23572 | case Arg::Stack: |
23573 | case Arg::CallArg: |
23574 | #if CPU(X86_64) |
23575 | OPGEN_RETURN(true); |
23576 | #endif |
23577 | break; |
23578 | break; |
23579 | case Arg::Index: |
23580 | break; |
23581 | default: |
23582 | break; |
23583 | } |
23584 | break; |
23585 | default: |
23586 | break; |
23587 | } |
23588 | break; |
23589 | default: |
23590 | break; |
23591 | } |
23592 | break; |
23593 | case Opcode::AtomicSub8: |
23594 | switch (argIndex) { |
23595 | case 0: |
23596 | OPGEN_RETURN(false); |
23597 | break; |
23598 | case 1: |
23599 | switch (args[0].kind()) { |
23600 | case Arg::Imm: |
23601 | switch (Arg::Addr) { |
23602 | case Arg::Addr: |
23603 | case Arg::Stack: |
23604 | case Arg::CallArg: |
23605 | #if CPU(X86) || CPU(X86_64) |
23606 | OPGEN_RETURN(true); |
23607 | #endif |
23608 | break; |
23609 | break; |
23610 | case Arg::Index: |
23611 | break; |
23612 | default: |
23613 | break; |
23614 | } |
23615 | break; |
23616 | case Arg::Tmp: |
23617 | switch (Arg::Addr) { |
23618 | case Arg::Addr: |
23619 | case Arg::Stack: |
23620 | case Arg::CallArg: |
23621 | #if CPU(X86) || CPU(X86_64) |
23622 | OPGEN_RETURN(true); |
23623 | #endif |
23624 | break; |
23625 | break; |
23626 | case Arg::Index: |
23627 | break; |
23628 | default: |
23629 | break; |
23630 | } |
23631 | break; |
23632 | default: |
23633 | break; |
23634 | } |
23635 | break; |
23636 | default: |
23637 | break; |
23638 | } |
23639 | break; |
23640 | case Opcode::AtomicSub16: |
23641 | switch (argIndex) { |
23642 | case 0: |
23643 | OPGEN_RETURN(false); |
23644 | break; |
23645 | case 1: |
23646 | switch (args[0].kind()) { |
23647 | case Arg::Imm: |
23648 | switch (Arg::Addr) { |
23649 | case Arg::Addr: |
23650 | case Arg::Stack: |
23651 | case Arg::CallArg: |
23652 | #if CPU(X86) || CPU(X86_64) |
23653 | OPGEN_RETURN(true); |
23654 | #endif |
23655 | break; |
23656 | break; |
23657 | case Arg::Index: |
23658 | break; |
23659 | default: |
23660 | break; |
23661 | } |
23662 | break; |
23663 | case Arg::Tmp: |
23664 | switch (Arg::Addr) { |
23665 | case Arg::Addr: |
23666 | case Arg::Stack: |
23667 | case Arg::CallArg: |
23668 | #if CPU(X86) || CPU(X86_64) |
23669 | OPGEN_RETURN(true); |
23670 | #endif |
23671 | break; |
23672 | break; |
23673 | case Arg::Index: |
23674 | break; |
23675 | default: |
23676 | break; |
23677 | } |
23678 | break; |
23679 | default: |
23680 | break; |
23681 | } |
23682 | break; |
23683 | default: |
23684 | break; |
23685 | } |
23686 | break; |
23687 | case Opcode::AtomicSub32: |
23688 | switch (argIndex) { |
23689 | case 0: |
23690 | OPGEN_RETURN(false); |
23691 | break; |
23692 | case 1: |
23693 | switch (args[0].kind()) { |
23694 | case Arg::Imm: |
23695 | switch (Arg::Addr) { |
23696 | case Arg::Addr: |
23697 | case Arg::Stack: |
23698 | case Arg::CallArg: |
23699 | #if CPU(X86) || CPU(X86_64) |
23700 | OPGEN_RETURN(true); |
23701 | #endif |
23702 | break; |
23703 | break; |
23704 | case Arg::Index: |
23705 | break; |
23706 | default: |
23707 | break; |
23708 | } |
23709 | break; |
23710 | case Arg::Tmp: |
23711 | switch (Arg::Addr) { |
23712 | case Arg::Addr: |
23713 | case Arg::Stack: |
23714 | case Arg::CallArg: |
23715 | #if CPU(X86) || CPU(X86_64) |
23716 | OPGEN_RETURN(true); |
23717 | #endif |
23718 | break; |
23719 | break; |
23720 | case Arg::Index: |
23721 | break; |
23722 | default: |
23723 | break; |
23724 | } |
23725 | break; |
23726 | default: |
23727 | break; |
23728 | } |
23729 | break; |
23730 | default: |
23731 | break; |
23732 | } |
23733 | break; |
23734 | case Opcode::AtomicSub64: |
23735 | switch (argIndex) { |
23736 | case 0: |
23737 | OPGEN_RETURN(false); |
23738 | break; |
23739 | case 1: |
23740 | switch (args[0].kind()) { |
23741 | case Arg::Imm: |
23742 | switch (Arg::Addr) { |
23743 | case Arg::Addr: |
23744 | case Arg::Stack: |
23745 | case Arg::CallArg: |
23746 | #if CPU(X86_64) |
23747 | OPGEN_RETURN(true); |
23748 | #endif |
23749 | break; |
23750 | break; |
23751 | case Arg::Index: |
23752 | break; |
23753 | default: |
23754 | break; |
23755 | } |
23756 | break; |
23757 | case Arg::Tmp: |
23758 | switch (Arg::Addr) { |
23759 | case Arg::Addr: |
23760 | case Arg::Stack: |
23761 | case Arg::CallArg: |
23762 | #if CPU(X86_64) |
23763 | OPGEN_RETURN(true); |
23764 | #endif |
23765 | break; |
23766 | break; |
23767 | case Arg::Index: |
23768 | break; |
23769 | default: |
23770 | break; |
23771 | } |
23772 | break; |
23773 | default: |
23774 | break; |
23775 | } |
23776 | break; |
23777 | default: |
23778 | break; |
23779 | } |
23780 | break; |
23781 | case Opcode::AtomicAnd8: |
23782 | switch (argIndex) { |
23783 | case 0: |
23784 | OPGEN_RETURN(false); |
23785 | break; |
23786 | case 1: |
23787 | switch (args[0].kind()) { |
23788 | case Arg::Imm: |
23789 | switch (Arg::Addr) { |
23790 | case Arg::Addr: |
23791 | case Arg::Stack: |
23792 | case Arg::CallArg: |
23793 | #if CPU(X86) || CPU(X86_64) |
23794 | OPGEN_RETURN(true); |
23795 | #endif |
23796 | break; |
23797 | break; |
23798 | case Arg::Index: |
23799 | break; |
23800 | default: |
23801 | break; |
23802 | } |
23803 | break; |
23804 | case Arg::Tmp: |
23805 | switch (Arg::Addr) { |
23806 | case Arg::Addr: |
23807 | case Arg::Stack: |
23808 | case Arg::CallArg: |
23809 | #if CPU(X86) || CPU(X86_64) |
23810 | OPGEN_RETURN(true); |
23811 | #endif |
23812 | break; |
23813 | break; |
23814 | case Arg::Index: |
23815 | break; |
23816 | default: |
23817 | break; |
23818 | } |
23819 | break; |
23820 | default: |
23821 | break; |
23822 | } |
23823 | break; |
23824 | default: |
23825 | break; |
23826 | } |
23827 | break; |
23828 | case Opcode::AtomicAnd16: |
23829 | switch (argIndex) { |
23830 | case 0: |
23831 | OPGEN_RETURN(false); |
23832 | break; |
23833 | case 1: |
23834 | switch (args[0].kind()) { |
23835 | case Arg::Imm: |
23836 | switch (Arg::Addr) { |
23837 | case Arg::Addr: |
23838 | case Arg::Stack: |
23839 | case Arg::CallArg: |
23840 | #if CPU(X86) || CPU(X86_64) |
23841 | OPGEN_RETURN(true); |
23842 | #endif |
23843 | break; |
23844 | break; |
23845 | case Arg::Index: |
23846 | break; |
23847 | default: |
23848 | break; |
23849 | } |
23850 | break; |
23851 | case Arg::Tmp: |
23852 | switch (Arg::Addr) { |
23853 | case Arg::Addr: |
23854 | case Arg::Stack: |
23855 | case Arg::CallArg: |
23856 | #if CPU(X86) || CPU(X86_64) |
23857 | OPGEN_RETURN(true); |
23858 | #endif |
23859 | break; |
23860 | break; |
23861 | case Arg::Index: |
23862 | break; |
23863 | default: |
23864 | break; |
23865 | } |
23866 | break; |
23867 | default: |
23868 | break; |
23869 | } |
23870 | break; |
23871 | default: |
23872 | break; |
23873 | } |
23874 | break; |
23875 | case Opcode::AtomicAnd32: |
23876 | switch (argIndex) { |
23877 | case 0: |
23878 | OPGEN_RETURN(false); |
23879 | break; |
23880 | case 1: |
23881 | switch (args[0].kind()) { |
23882 | case Arg::Imm: |
23883 | switch (Arg::Addr) { |
23884 | case Arg::Addr: |
23885 | case Arg::Stack: |
23886 | case Arg::CallArg: |
23887 | #if CPU(X86) || CPU(X86_64) |
23888 | OPGEN_RETURN(true); |
23889 | #endif |
23890 | break; |
23891 | break; |
23892 | case Arg::Index: |
23893 | break; |
23894 | default: |
23895 | break; |
23896 | } |
23897 | break; |
23898 | case Arg::Tmp: |
23899 | switch (Arg::Addr) { |
23900 | case Arg::Addr: |
23901 | case Arg::Stack: |
23902 | case Arg::CallArg: |
23903 | #if CPU(X86) || CPU(X86_64) |
23904 | OPGEN_RETURN(true); |
23905 | #endif |
23906 | break; |
23907 | break; |
23908 | case Arg::Index: |
23909 | break; |
23910 | default: |
23911 | break; |
23912 | } |
23913 | break; |
23914 | default: |
23915 | break; |
23916 | } |
23917 | break; |
23918 | default: |
23919 | break; |
23920 | } |
23921 | break; |
23922 | case Opcode::AtomicAnd64: |
23923 | switch (argIndex) { |
23924 | case 0: |
23925 | OPGEN_RETURN(false); |
23926 | break; |
23927 | case 1: |
23928 | switch (args[0].kind()) { |
23929 | case Arg::Imm: |
23930 | switch (Arg::Addr) { |
23931 | case Arg::Addr: |
23932 | case Arg::Stack: |
23933 | case Arg::CallArg: |
23934 | #if CPU(X86_64) |
23935 | OPGEN_RETURN(true); |
23936 | #endif |
23937 | break; |
23938 | break; |
23939 | case Arg::Index: |
23940 | break; |
23941 | default: |
23942 | break; |
23943 | } |
23944 | break; |
23945 | case Arg::Tmp: |
23946 | switch (Arg::Addr) { |
23947 | case Arg::Addr: |
23948 | case Arg::Stack: |
23949 | case Arg::CallArg: |
23950 | #if CPU(X86_64) |
23951 | OPGEN_RETURN(true); |
23952 | #endif |
23953 | break; |
23954 | break; |
23955 | case Arg::Index: |
23956 | break; |
23957 | default: |
23958 | break; |
23959 | } |
23960 | break; |
23961 | default: |
23962 | break; |
23963 | } |
23964 | break; |
23965 | default: |
23966 | break; |
23967 | } |
23968 | break; |
23969 | case Opcode::AtomicOr8: |
23970 | switch (argIndex) { |
23971 | case 0: |
23972 | OPGEN_RETURN(false); |
23973 | break; |
23974 | case 1: |
23975 | switch (args[0].kind()) { |
23976 | case Arg::Imm: |
23977 | switch (Arg::Addr) { |
23978 | case Arg::Addr: |
23979 | case Arg::Stack: |
23980 | case Arg::CallArg: |
23981 | #if CPU(X86) || CPU(X86_64) |
23982 | OPGEN_RETURN(true); |
23983 | #endif |
23984 | break; |
23985 | break; |
23986 | case Arg::Index: |
23987 | break; |
23988 | default: |
23989 | break; |
23990 | } |
23991 | break; |
23992 | case Arg::Tmp: |
23993 | switch (Arg::Addr) { |
23994 | case Arg::Addr: |
23995 | case Arg::Stack: |
23996 | case Arg::CallArg: |
23997 | #if CPU(X86) || CPU(X86_64) |
23998 | OPGEN_RETURN(true); |
23999 | #endif |
24000 | break; |
24001 | break; |
24002 | case Arg::Index: |
24003 | break; |
24004 | default: |
24005 | break; |
24006 | } |
24007 | break; |
24008 | default: |
24009 | break; |
24010 | } |
24011 | break; |
24012 | default: |
24013 | break; |
24014 | } |
24015 | break; |
24016 | case Opcode::AtomicOr16: |
24017 | switch (argIndex) { |
24018 | case 0: |
24019 | OPGEN_RETURN(false); |
24020 | break; |
24021 | case 1: |
24022 | switch (args[0].kind()) { |
24023 | case Arg::Imm: |
24024 | switch (Arg::Addr) { |
24025 | case Arg::Addr: |
24026 | case Arg::Stack: |
24027 | case Arg::CallArg: |
24028 | #if CPU(X86) || CPU(X86_64) |
24029 | OPGEN_RETURN(true); |
24030 | #endif |
24031 | break; |
24032 | break; |
24033 | case Arg::Index: |
24034 | break; |
24035 | default: |
24036 | break; |
24037 | } |
24038 | break; |
24039 | case Arg::Tmp: |
24040 | switch (Arg::Addr) { |
24041 | case Arg::Addr: |
24042 | case Arg::Stack: |
24043 | case Arg::CallArg: |
24044 | #if CPU(X86) || CPU(X86_64) |
24045 | OPGEN_RETURN(true); |
24046 | #endif |
24047 | break; |
24048 | break; |
24049 | case Arg::Index: |
24050 | break; |
24051 | default: |
24052 | break; |
24053 | } |
24054 | break; |
24055 | default: |
24056 | break; |
24057 | } |
24058 | break; |
24059 | default: |
24060 | break; |
24061 | } |
24062 | break; |
24063 | case Opcode::AtomicOr32: |
24064 | switch (argIndex) { |
24065 | case 0: |
24066 | OPGEN_RETURN(false); |
24067 | break; |
24068 | case 1: |
24069 | switch (args[0].kind()) { |
24070 | case Arg::Imm: |
24071 | switch (Arg::Addr) { |
24072 | case Arg::Addr: |
24073 | case Arg::Stack: |
24074 | case Arg::CallArg: |
24075 | #if CPU(X86) || CPU(X86_64) |
24076 | OPGEN_RETURN(true); |
24077 | #endif |
24078 | break; |
24079 | break; |
24080 | case Arg::Index: |
24081 | break; |
24082 | default: |
24083 | break; |
24084 | } |
24085 | break; |
24086 | case Arg::Tmp: |
24087 | switch (Arg::Addr) { |
24088 | case Arg::Addr: |
24089 | case Arg::Stack: |
24090 | case Arg::CallArg: |
24091 | #if CPU(X86) || CPU(X86_64) |
24092 | OPGEN_RETURN(true); |
24093 | #endif |
24094 | break; |
24095 | break; |
24096 | case Arg::Index: |
24097 | break; |
24098 | default: |
24099 | break; |
24100 | } |
24101 | break; |
24102 | default: |
24103 | break; |
24104 | } |
24105 | break; |
24106 | default: |
24107 | break; |
24108 | } |
24109 | break; |
24110 | case Opcode::AtomicOr64: |
24111 | switch (argIndex) { |
24112 | case 0: |
24113 | OPGEN_RETURN(false); |
24114 | break; |
24115 | case 1: |
24116 | switch (args[0].kind()) { |
24117 | case Arg::Imm: |
24118 | switch (Arg::Addr) { |
24119 | case Arg::Addr: |
24120 | case Arg::Stack: |
24121 | case Arg::CallArg: |
24122 | #if CPU(X86_64) |
24123 | OPGEN_RETURN(true); |
24124 | #endif |
24125 | break; |
24126 | break; |
24127 | case Arg::Index: |
24128 | break; |
24129 | default: |
24130 | break; |
24131 | } |
24132 | break; |
24133 | case Arg::Tmp: |
24134 | switch (Arg::Addr) { |
24135 | case Arg::Addr: |
24136 | case Arg::Stack: |
24137 | case Arg::CallArg: |
24138 | #if CPU(X86_64) |
24139 | OPGEN_RETURN(true); |
24140 | #endif |
24141 | break; |
24142 | break; |
24143 | case Arg::Index: |
24144 | break; |
24145 | default: |
24146 | break; |
24147 | } |
24148 | break; |
24149 | default: |
24150 | break; |
24151 | } |
24152 | break; |
24153 | default: |
24154 | break; |
24155 | } |
24156 | break; |
24157 | case Opcode::AtomicXor8: |
24158 | switch (argIndex) { |
24159 | case 0: |
24160 | OPGEN_RETURN(false); |
24161 | break; |
24162 | case 1: |
24163 | switch (args[0].kind()) { |
24164 | case Arg::Imm: |
24165 | switch (Arg::Addr) { |
24166 | case Arg::Addr: |
24167 | case Arg::Stack: |
24168 | case Arg::CallArg: |
24169 | #if CPU(X86) || CPU(X86_64) |
24170 | OPGEN_RETURN(true); |
24171 | #endif |
24172 | break; |
24173 | break; |
24174 | case Arg::Index: |
24175 | break; |
24176 | default: |
24177 | break; |
24178 | } |
24179 | break; |
24180 | case Arg::Tmp: |
24181 | switch (Arg::Addr) { |
24182 | case Arg::Addr: |
24183 | case Arg::Stack: |
24184 | case Arg::CallArg: |
24185 | #if CPU(X86) || CPU(X86_64) |
24186 | OPGEN_RETURN(true); |
24187 | #endif |
24188 | break; |
24189 | break; |
24190 | case Arg::Index: |
24191 | break; |
24192 | default: |
24193 | break; |
24194 | } |
24195 | break; |
24196 | default: |
24197 | break; |
24198 | } |
24199 | break; |
24200 | default: |
24201 | break; |
24202 | } |
24203 | break; |
24204 | case Opcode::AtomicXor16: |
24205 | switch (argIndex) { |
24206 | case 0: |
24207 | OPGEN_RETURN(false); |
24208 | break; |
24209 | case 1: |
24210 | switch (args[0].kind()) { |
24211 | case Arg::Imm: |
24212 | switch (Arg::Addr) { |
24213 | case Arg::Addr: |
24214 | case Arg::Stack: |
24215 | case Arg::CallArg: |
24216 | #if CPU(X86) || CPU(X86_64) |
24217 | OPGEN_RETURN(true); |
24218 | #endif |
24219 | break; |
24220 | break; |
24221 | case Arg::Index: |
24222 | break; |
24223 | default: |
24224 | break; |
24225 | } |
24226 | break; |
24227 | case Arg::Tmp: |
24228 | switch (Arg::Addr) { |
24229 | case Arg::Addr: |
24230 | case Arg::Stack: |
24231 | case Arg::CallArg: |
24232 | #if CPU(X86) || CPU(X86_64) |
24233 | OPGEN_RETURN(true); |
24234 | #endif |
24235 | break; |
24236 | break; |
24237 | case Arg::Index: |
24238 | break; |
24239 | default: |
24240 | break; |
24241 | } |
24242 | break; |
24243 | default: |
24244 | break; |
24245 | } |
24246 | break; |
24247 | default: |
24248 | break; |
24249 | } |
24250 | break; |
24251 | case Opcode::AtomicXor32: |
24252 | switch (argIndex) { |
24253 | case 0: |
24254 | OPGEN_RETURN(false); |
24255 | break; |
24256 | case 1: |
24257 | switch (args[0].kind()) { |
24258 | case Arg::Imm: |
24259 | switch (Arg::Addr) { |
24260 | case Arg::Addr: |
24261 | case Arg::Stack: |
24262 | case Arg::CallArg: |
24263 | #if CPU(X86) || CPU(X86_64) |
24264 | OPGEN_RETURN(true); |
24265 | #endif |
24266 | break; |
24267 | break; |
24268 | case Arg::Index: |
24269 | break; |
24270 | default: |
24271 | break; |
24272 | } |
24273 | break; |
24274 | case Arg::Tmp: |
24275 | switch (Arg::Addr) { |
24276 | case Arg::Addr: |
24277 | case Arg::Stack: |
24278 | case Arg::CallArg: |
24279 | #if CPU(X86) || CPU(X86_64) |
24280 | OPGEN_RETURN(true); |
24281 | #endif |
24282 | break; |
24283 | break; |
24284 | case Arg::Index: |
24285 | break; |
24286 | default: |
24287 | break; |
24288 | } |
24289 | break; |
24290 | default: |
24291 | break; |
24292 | } |
24293 | break; |
24294 | default: |
24295 | break; |
24296 | } |
24297 | break; |
24298 | case Opcode::AtomicXor64: |
24299 | switch (argIndex) { |
24300 | case 0: |
24301 | OPGEN_RETURN(false); |
24302 | break; |
24303 | case 1: |
24304 | switch (args[0].kind()) { |
24305 | case Arg::Imm: |
24306 | switch (Arg::Addr) { |
24307 | case Arg::Addr: |
24308 | case Arg::Stack: |
24309 | case Arg::CallArg: |
24310 | #if CPU(X86_64) |
24311 | OPGEN_RETURN(true); |
24312 | #endif |
24313 | break; |
24314 | break; |
24315 | case Arg::Index: |
24316 | break; |
24317 | default: |
24318 | break; |
24319 | } |
24320 | break; |
24321 | case Arg::Tmp: |
24322 | switch (Arg::Addr) { |
24323 | case Arg::Addr: |
24324 | case Arg::Stack: |
24325 | case Arg::CallArg: |
24326 | #if CPU(X86_64) |
24327 | OPGEN_RETURN(true); |
24328 | #endif |
24329 | break; |
24330 | break; |
24331 | case Arg::Index: |
24332 | break; |
24333 | default: |
24334 | break; |
24335 | } |
24336 | break; |
24337 | default: |
24338 | break; |
24339 | } |
24340 | break; |
24341 | default: |
24342 | break; |
24343 | } |
24344 | break; |
24345 | case Opcode::AtomicNeg8: |
24346 | switch (argIndex) { |
24347 | case 0: |
24348 | switch (Arg::Addr) { |
24349 | case Arg::Addr: |
24350 | case Arg::Stack: |
24351 | case Arg::CallArg: |
24352 | #if CPU(X86) || CPU(X86_64) |
24353 | OPGEN_RETURN(true); |
24354 | #endif |
24355 | break; |
24356 | break; |
24357 | case Arg::Index: |
24358 | break; |
24359 | default: |
24360 | break; |
24361 | } |
24362 | break; |
24363 | default: |
24364 | break; |
24365 | } |
24366 | break; |
24367 | case Opcode::AtomicNeg16: |
24368 | switch (argIndex) { |
24369 | case 0: |
24370 | switch (Arg::Addr) { |
24371 | case Arg::Addr: |
24372 | case Arg::Stack: |
24373 | case Arg::CallArg: |
24374 | #if CPU(X86) || CPU(X86_64) |
24375 | OPGEN_RETURN(true); |
24376 | #endif |
24377 | break; |
24378 | break; |
24379 | case Arg::Index: |
24380 | break; |
24381 | default: |
24382 | break; |
24383 | } |
24384 | break; |
24385 | default: |
24386 | break; |
24387 | } |
24388 | break; |
24389 | case Opcode::AtomicNeg32: |
24390 | switch (argIndex) { |
24391 | case 0: |
24392 | switch (Arg::Addr) { |
24393 | case Arg::Addr: |
24394 | case Arg::Stack: |
24395 | case Arg::CallArg: |
24396 | #if CPU(X86) || CPU(X86_64) |
24397 | OPGEN_RETURN(true); |
24398 | #endif |
24399 | break; |
24400 | break; |
24401 | case Arg::Index: |
24402 | break; |
24403 | default: |
24404 | break; |
24405 | } |
24406 | break; |
24407 | default: |
24408 | break; |
24409 | } |
24410 | break; |
24411 | case Opcode::AtomicNeg64: |
24412 | switch (argIndex) { |
24413 | case 0: |
24414 | switch (Arg::Addr) { |
24415 | case Arg::Addr: |
24416 | case Arg::Stack: |
24417 | case Arg::CallArg: |
24418 | #if CPU(X86_64) |
24419 | OPGEN_RETURN(true); |
24420 | #endif |
24421 | break; |
24422 | break; |
24423 | case Arg::Index: |
24424 | break; |
24425 | default: |
24426 | break; |
24427 | } |
24428 | break; |
24429 | default: |
24430 | break; |
24431 | } |
24432 | break; |
24433 | case Opcode::AtomicNot8: |
24434 | switch (argIndex) { |
24435 | case 0: |
24436 | switch (Arg::Addr) { |
24437 | case Arg::Addr: |
24438 | case Arg::Stack: |
24439 | case Arg::CallArg: |
24440 | #if CPU(X86) || CPU(X86_64) |
24441 | OPGEN_RETURN(true); |
24442 | #endif |
24443 | break; |
24444 | break; |
24445 | case Arg::Index: |
24446 | break; |
24447 | default: |
24448 | break; |
24449 | } |
24450 | break; |
24451 | default: |
24452 | break; |
24453 | } |
24454 | break; |
24455 | case Opcode::AtomicNot16: |
24456 | switch (argIndex) { |
24457 | case 0: |
24458 | switch (Arg::Addr) { |
24459 | case Arg::Addr: |
24460 | case Arg::Stack: |
24461 | case Arg::CallArg: |
24462 | #if CPU(X86) || CPU(X86_64) |
24463 | OPGEN_RETURN(true); |
24464 | #endif |
24465 | break; |
24466 | break; |
24467 | case Arg::Index: |
24468 | break; |
24469 | default: |
24470 | break; |
24471 | } |
24472 | break; |
24473 | default: |
24474 | break; |
24475 | } |
24476 | break; |
24477 | case Opcode::AtomicNot32: |
24478 | switch (argIndex) { |
24479 | case 0: |
24480 | switch (Arg::Addr) { |
24481 | case Arg::Addr: |
24482 | case Arg::Stack: |
24483 | case Arg::CallArg: |
24484 | #if CPU(X86) || CPU(X86_64) |
24485 | OPGEN_RETURN(true); |
24486 | #endif |
24487 | break; |
24488 | break; |
24489 | case Arg::Index: |
24490 | break; |
24491 | default: |
24492 | break; |
24493 | } |
24494 | break; |
24495 | default: |
24496 | break; |
24497 | } |
24498 | break; |
24499 | case Opcode::AtomicNot64: |
24500 | switch (argIndex) { |
24501 | case 0: |
24502 | switch (Arg::Addr) { |
24503 | case Arg::Addr: |
24504 | case Arg::Stack: |
24505 | case Arg::CallArg: |
24506 | #if CPU(X86_64) |
24507 | OPGEN_RETURN(true); |
24508 | #endif |
24509 | break; |
24510 | break; |
24511 | case Arg::Index: |
24512 | break; |
24513 | default: |
24514 | break; |
24515 | } |
24516 | break; |
24517 | default: |
24518 | break; |
24519 | } |
24520 | break; |
24521 | case Opcode::AtomicXchgAdd8: |
24522 | switch (argIndex) { |
24523 | case 0: |
24524 | OPGEN_RETURN(false); |
24525 | break; |
24526 | case 1: |
24527 | switch (args[0].kind()) { |
24528 | case Arg::Tmp: |
24529 | switch (Arg::Addr) { |
24530 | case Arg::Addr: |
24531 | case Arg::Stack: |
24532 | case Arg::CallArg: |
24533 | #if CPU(X86) || CPU(X86_64) |
24534 | OPGEN_RETURN(true); |
24535 | #endif |
24536 | break; |
24537 | break; |
24538 | case Arg::Index: |
24539 | break; |
24540 | default: |
24541 | break; |
24542 | } |
24543 | break; |
24544 | default: |
24545 | break; |
24546 | } |
24547 | break; |
24548 | default: |
24549 | break; |
24550 | } |
24551 | break; |
24552 | case Opcode::AtomicXchgAdd16: |
24553 | switch (argIndex) { |
24554 | case 0: |
24555 | OPGEN_RETURN(false); |
24556 | break; |
24557 | case 1: |
24558 | switch (args[0].kind()) { |
24559 | case Arg::Tmp: |
24560 | switch (Arg::Addr) { |
24561 | case Arg::Addr: |
24562 | case Arg::Stack: |
24563 | case Arg::CallArg: |
24564 | #if CPU(X86) || CPU(X86_64) |
24565 | OPGEN_RETURN(true); |
24566 | #endif |
24567 | break; |
24568 | break; |
24569 | case Arg::Index: |
24570 | break; |
24571 | default: |
24572 | break; |
24573 | } |
24574 | break; |
24575 | default: |
24576 | break; |
24577 | } |
24578 | break; |
24579 | default: |
24580 | break; |
24581 | } |
24582 | break; |
24583 | case Opcode::AtomicXchgAdd32: |
24584 | switch (argIndex) { |
24585 | case 0: |
24586 | OPGEN_RETURN(false); |
24587 | break; |
24588 | case 1: |
24589 | switch (args[0].kind()) { |
24590 | case Arg::Tmp: |
24591 | switch (Arg::Addr) { |
24592 | case Arg::Addr: |
24593 | case Arg::Stack: |
24594 | case Arg::CallArg: |
24595 | #if CPU(X86) || CPU(X86_64) |
24596 | OPGEN_RETURN(true); |
24597 | #endif |
24598 | break; |
24599 | break; |
24600 | case Arg::Index: |
24601 | break; |
24602 | default: |
24603 | break; |
24604 | } |
24605 | break; |
24606 | default: |
24607 | break; |
24608 | } |
24609 | break; |
24610 | default: |
24611 | break; |
24612 | } |
24613 | break; |
24614 | case Opcode::AtomicXchgAdd64: |
24615 | switch (argIndex) { |
24616 | case 0: |
24617 | OPGEN_RETURN(false); |
24618 | break; |
24619 | case 1: |
24620 | switch (args[0].kind()) { |
24621 | case Arg::Tmp: |
24622 | switch (Arg::Addr) { |
24623 | case Arg::Addr: |
24624 | case Arg::Stack: |
24625 | case Arg::CallArg: |
24626 | #if CPU(X86_64) |
24627 | OPGEN_RETURN(true); |
24628 | #endif |
24629 | break; |
24630 | break; |
24631 | case Arg::Index: |
24632 | break; |
24633 | default: |
24634 | break; |
24635 | } |
24636 | break; |
24637 | default: |
24638 | break; |
24639 | } |
24640 | break; |
24641 | default: |
24642 | break; |
24643 | } |
24644 | break; |
24645 | case Opcode::AtomicXchg8: |
24646 | switch (argIndex) { |
24647 | case 0: |
24648 | OPGEN_RETURN(false); |
24649 | break; |
24650 | case 1: |
24651 | switch (args[0].kind()) { |
24652 | case Arg::Tmp: |
24653 | switch (Arg::Addr) { |
24654 | case Arg::Addr: |
24655 | case Arg::Stack: |
24656 | case Arg::CallArg: |
24657 | #if CPU(X86) || CPU(X86_64) |
24658 | OPGEN_RETURN(true); |
24659 | #endif |
24660 | break; |
24661 | break; |
24662 | case Arg::Index: |
24663 | break; |
24664 | default: |
24665 | break; |
24666 | } |
24667 | break; |
24668 | default: |
24669 | break; |
24670 | } |
24671 | break; |
24672 | default: |
24673 | break; |
24674 | } |
24675 | break; |
24676 | case Opcode::AtomicXchg16: |
24677 | switch (argIndex) { |
24678 | case 0: |
24679 | OPGEN_RETURN(false); |
24680 | break; |
24681 | case 1: |
24682 | switch (args[0].kind()) { |
24683 | case Arg::Tmp: |
24684 | switch (Arg::Addr) { |
24685 | case Arg::Addr: |
24686 | case Arg::Stack: |
24687 | case Arg::CallArg: |
24688 | #if CPU(X86) || CPU(X86_64) |
24689 | OPGEN_RETURN(true); |
24690 | #endif |
24691 | break; |
24692 | break; |
24693 | case Arg::Index: |
24694 | break; |
24695 | default: |
24696 | break; |
24697 | } |
24698 | break; |
24699 | default: |
24700 | break; |
24701 | } |
24702 | break; |
24703 | default: |
24704 | break; |
24705 | } |
24706 | break; |
24707 | case Opcode::AtomicXchg32: |
24708 | switch (argIndex) { |
24709 | case 0: |
24710 | OPGEN_RETURN(false); |
24711 | break; |
24712 | case 1: |
24713 | switch (args[0].kind()) { |
24714 | case Arg::Tmp: |
24715 | switch (Arg::Addr) { |
24716 | case Arg::Addr: |
24717 | case Arg::Stack: |
24718 | case Arg::CallArg: |
24719 | #if CPU(X86) || CPU(X86_64) |
24720 | OPGEN_RETURN(true); |
24721 | #endif |
24722 | break; |
24723 | break; |
24724 | case Arg::Index: |
24725 | break; |
24726 | default: |
24727 | break; |
24728 | } |
24729 | break; |
24730 | default: |
24731 | break; |
24732 | } |
24733 | break; |
24734 | default: |
24735 | break; |
24736 | } |
24737 | break; |
24738 | case Opcode::AtomicXchg64: |
24739 | switch (argIndex) { |
24740 | case 0: |
24741 | OPGEN_RETURN(false); |
24742 | break; |
24743 | case 1: |
24744 | switch (args[0].kind()) { |
24745 | case Arg::Tmp: |
24746 | switch (Arg::Addr) { |
24747 | case Arg::Addr: |
24748 | case Arg::Stack: |
24749 | case Arg::CallArg: |
24750 | #if CPU(X86_64) |
24751 | OPGEN_RETURN(true); |
24752 | #endif |
24753 | break; |
24754 | break; |
24755 | case Arg::Index: |
24756 | break; |
24757 | default: |
24758 | break; |
24759 | } |
24760 | break; |
24761 | default: |
24762 | break; |
24763 | } |
24764 | break; |
24765 | default: |
24766 | break; |
24767 | } |
24768 | break; |
24769 | case Opcode::LoadLink8: |
24770 | switch (argIndex) { |
24771 | case 0: |
24772 | OPGEN_RETURN(false); |
24773 | break; |
24774 | case 1: |
24775 | OPGEN_RETURN(false); |
24776 | break; |
24777 | default: |
24778 | break; |
24779 | } |
24780 | break; |
24781 | case Opcode::LoadLinkAcq8: |
24782 | switch (argIndex) { |
24783 | case 0: |
24784 | OPGEN_RETURN(false); |
24785 | break; |
24786 | case 1: |
24787 | OPGEN_RETURN(false); |
24788 | break; |
24789 | default: |
24790 | break; |
24791 | } |
24792 | break; |
24793 | case Opcode::StoreCond8: |
24794 | switch (argIndex) { |
24795 | case 0: |
24796 | OPGEN_RETURN(false); |
24797 | break; |
24798 | case 1: |
24799 | OPGEN_RETURN(false); |
24800 | break; |
24801 | case 2: |
24802 | OPGEN_RETURN(false); |
24803 | break; |
24804 | default: |
24805 | break; |
24806 | } |
24807 | break; |
24808 | case Opcode::StoreCondRel8: |
24809 | switch (argIndex) { |
24810 | case 0: |
24811 | OPGEN_RETURN(false); |
24812 | break; |
24813 | case 1: |
24814 | OPGEN_RETURN(false); |
24815 | break; |
24816 | case 2: |
24817 | OPGEN_RETURN(false); |
24818 | break; |
24819 | default: |
24820 | break; |
24821 | } |
24822 | break; |
24823 | case Opcode::LoadLink16: |
24824 | switch (argIndex) { |
24825 | case 0: |
24826 | OPGEN_RETURN(false); |
24827 | break; |
24828 | case 1: |
24829 | OPGEN_RETURN(false); |
24830 | break; |
24831 | default: |
24832 | break; |
24833 | } |
24834 | break; |
24835 | case Opcode::LoadLinkAcq16: |
24836 | switch (argIndex) { |
24837 | case 0: |
24838 | OPGEN_RETURN(false); |
24839 | break; |
24840 | case 1: |
24841 | OPGEN_RETURN(false); |
24842 | break; |
24843 | default: |
24844 | break; |
24845 | } |
24846 | break; |
24847 | case Opcode::StoreCond16: |
24848 | switch (argIndex) { |
24849 | case 0: |
24850 | OPGEN_RETURN(false); |
24851 | break; |
24852 | case 1: |
24853 | OPGEN_RETURN(false); |
24854 | break; |
24855 | case 2: |
24856 | OPGEN_RETURN(false); |
24857 | break; |
24858 | default: |
24859 | break; |
24860 | } |
24861 | break; |
24862 | case Opcode::StoreCondRel16: |
24863 | switch (argIndex) { |
24864 | case 0: |
24865 | OPGEN_RETURN(false); |
24866 | break; |
24867 | case 1: |
24868 | OPGEN_RETURN(false); |
24869 | break; |
24870 | case 2: |
24871 | OPGEN_RETURN(false); |
24872 | break; |
24873 | default: |
24874 | break; |
24875 | } |
24876 | break; |
24877 | case Opcode::LoadLink32: |
24878 | switch (argIndex) { |
24879 | case 0: |
24880 | OPGEN_RETURN(false); |
24881 | break; |
24882 | case 1: |
24883 | OPGEN_RETURN(false); |
24884 | break; |
24885 | default: |
24886 | break; |
24887 | } |
24888 | break; |
24889 | case Opcode::LoadLinkAcq32: |
24890 | switch (argIndex) { |
24891 | case 0: |
24892 | OPGEN_RETURN(false); |
24893 | break; |
24894 | case 1: |
24895 | OPGEN_RETURN(false); |
24896 | break; |
24897 | default: |
24898 | break; |
24899 | } |
24900 | break; |
24901 | case Opcode::StoreCond32: |
24902 | switch (argIndex) { |
24903 | case 0: |
24904 | OPGEN_RETURN(false); |
24905 | break; |
24906 | case 1: |
24907 | OPGEN_RETURN(false); |
24908 | break; |
24909 | case 2: |
24910 | OPGEN_RETURN(false); |
24911 | break; |
24912 | default: |
24913 | break; |
24914 | } |
24915 | break; |
24916 | case Opcode::StoreCondRel32: |
24917 | switch (argIndex) { |
24918 | case 0: |
24919 | OPGEN_RETURN(false); |
24920 | break; |
24921 | case 1: |
24922 | OPGEN_RETURN(false); |
24923 | break; |
24924 | case 2: |
24925 | OPGEN_RETURN(false); |
24926 | break; |
24927 | default: |
24928 | break; |
24929 | } |
24930 | break; |
24931 | case Opcode::LoadLink64: |
24932 | switch (argIndex) { |
24933 | case 0: |
24934 | OPGEN_RETURN(false); |
24935 | break; |
24936 | case 1: |
24937 | OPGEN_RETURN(false); |
24938 | break; |
24939 | default: |
24940 | break; |
24941 | } |
24942 | break; |
24943 | case Opcode::LoadLinkAcq64: |
24944 | switch (argIndex) { |
24945 | case 0: |
24946 | OPGEN_RETURN(false); |
24947 | break; |
24948 | case 1: |
24949 | OPGEN_RETURN(false); |
24950 | break; |
24951 | default: |
24952 | break; |
24953 | } |
24954 | break; |
24955 | case Opcode::StoreCond64: |
24956 | switch (argIndex) { |
24957 | case 0: |
24958 | OPGEN_RETURN(false); |
24959 | break; |
24960 | case 1: |
24961 | OPGEN_RETURN(false); |
24962 | break; |
24963 | case 2: |
24964 | OPGEN_RETURN(false); |
24965 | break; |
24966 | default: |
24967 | break; |
24968 | } |
24969 | break; |
24970 | case Opcode::StoreCondRel64: |
24971 | switch (argIndex) { |
24972 | case 0: |
24973 | OPGEN_RETURN(false); |
24974 | break; |
24975 | case 1: |
24976 | OPGEN_RETURN(false); |
24977 | break; |
24978 | case 2: |
24979 | OPGEN_RETURN(false); |
24980 | break; |
24981 | default: |
24982 | break; |
24983 | } |
24984 | break; |
24985 | case Opcode::Depend32: |
24986 | switch (argIndex) { |
24987 | case 0: |
24988 | OPGEN_RETURN(false); |
24989 | break; |
24990 | case 1: |
24991 | OPGEN_RETURN(false); |
24992 | break; |
24993 | default: |
24994 | break; |
24995 | } |
24996 | break; |
24997 | case Opcode::Depend64: |
24998 | switch (argIndex) { |
24999 | case 0: |
25000 | OPGEN_RETURN(false); |
25001 | break; |
25002 | case 1: |
25003 | OPGEN_RETURN(false); |
25004 | break; |
25005 | default: |
25006 | break; |
25007 | } |
25008 | break; |
25009 | case Opcode::Compare32: |
25010 | switch (argIndex) { |
25011 | case 0: |
25012 | OPGEN_RETURN(false); |
25013 | break; |
25014 | case 1: |
25015 | OPGEN_RETURN(false); |
25016 | break; |
25017 | case 2: |
25018 | OPGEN_RETURN(false); |
25019 | break; |
25020 | case 3: |
25021 | OPGEN_RETURN(false); |
25022 | break; |
25023 | default: |
25024 | break; |
25025 | } |
25026 | break; |
25027 | case Opcode::Compare64: |
25028 | switch (argIndex) { |
25029 | case 0: |
25030 | OPGEN_RETURN(false); |
25031 | break; |
25032 | case 1: |
25033 | OPGEN_RETURN(false); |
25034 | break; |
25035 | case 2: |
25036 | OPGEN_RETURN(false); |
25037 | break; |
25038 | case 3: |
25039 | OPGEN_RETURN(false); |
25040 | break; |
25041 | default: |
25042 | break; |
25043 | } |
25044 | break; |
25045 | case Opcode::Test32: |
25046 | switch (argIndex) { |
25047 | case 0: |
25048 | OPGEN_RETURN(false); |
25049 | break; |
25050 | case 1: |
25051 | switch (args[0].kind()) { |
25052 | case Arg::ResCond: |
25053 | switch (Arg::Addr) { |
25054 | case Arg::Addr: |
25055 | case Arg::Stack: |
25056 | case Arg::CallArg: |
25057 | switch (args[2].kind()) { |
25058 | case Arg::Imm: |
25059 | switch (args[3].kind()) { |
25060 | case Arg::Tmp: |
25061 | #if CPU(X86) || CPU(X86_64) |
25062 | OPGEN_RETURN(true); |
25063 | #endif |
25064 | break; |
25065 | break; |
25066 | default: |
25067 | break; |
25068 | } |
25069 | break; |
25070 | default: |
25071 | break; |
25072 | } |
25073 | break; |
25074 | case Arg::Tmp: |
25075 | break; |
25076 | default: |
25077 | break; |
25078 | } |
25079 | break; |
25080 | default: |
25081 | break; |
25082 | } |
25083 | break; |
25084 | case 2: |
25085 | OPGEN_RETURN(false); |
25086 | break; |
25087 | case 3: |
25088 | OPGEN_RETURN(false); |
25089 | break; |
25090 | default: |
25091 | break; |
25092 | } |
25093 | break; |
25094 | case Opcode::Test64: |
25095 | switch (argIndex) { |
25096 | case 0: |
25097 | OPGEN_RETURN(false); |
25098 | break; |
25099 | case 1: |
25100 | OPGEN_RETURN(false); |
25101 | break; |
25102 | case 2: |
25103 | OPGEN_RETURN(false); |
25104 | break; |
25105 | case 3: |
25106 | OPGEN_RETURN(false); |
25107 | break; |
25108 | default: |
25109 | break; |
25110 | } |
25111 | break; |
25112 | case Opcode::CompareDouble: |
25113 | switch (argIndex) { |
25114 | case 0: |
25115 | OPGEN_RETURN(false); |
25116 | break; |
25117 | case 1: |
25118 | OPGEN_RETURN(false); |
25119 | break; |
25120 | case 2: |
25121 | OPGEN_RETURN(false); |
25122 | break; |
25123 | case 3: |
25124 | OPGEN_RETURN(false); |
25125 | break; |
25126 | default: |
25127 | break; |
25128 | } |
25129 | break; |
25130 | case Opcode::CompareFloat: |
25131 | switch (argIndex) { |
25132 | case 0: |
25133 | OPGEN_RETURN(false); |
25134 | break; |
25135 | case 1: |
25136 | OPGEN_RETURN(false); |
25137 | break; |
25138 | case 2: |
25139 | OPGEN_RETURN(false); |
25140 | break; |
25141 | case 3: |
25142 | OPGEN_RETURN(false); |
25143 | break; |
25144 | default: |
25145 | break; |
25146 | } |
25147 | break; |
25148 | case Opcode::Branch8: |
25149 | switch (argIndex) { |
25150 | case 0: |
25151 | OPGEN_RETURN(false); |
25152 | break; |
25153 | case 1: |
25154 | switch (args[0].kind()) { |
25155 | case Arg::RelCond: |
25156 | switch (Arg::Addr) { |
25157 | case Arg::Addr: |
25158 | case Arg::Stack: |
25159 | case Arg::CallArg: |
25160 | switch (args[2].kind()) { |
25161 | case Arg::Imm: |
25162 | #if CPU(X86) || CPU(X86_64) |
25163 | OPGEN_RETURN(true); |
25164 | #endif |
25165 | break; |
25166 | break; |
25167 | default: |
25168 | break; |
25169 | } |
25170 | break; |
25171 | case Arg::Index: |
25172 | break; |
25173 | default: |
25174 | break; |
25175 | } |
25176 | break; |
25177 | default: |
25178 | break; |
25179 | } |
25180 | break; |
25181 | case 2: |
25182 | OPGEN_RETURN(false); |
25183 | break; |
25184 | default: |
25185 | break; |
25186 | } |
25187 | break; |
25188 | case Opcode::Branch32: |
25189 | switch (argIndex) { |
25190 | case 0: |
25191 | OPGEN_RETURN(false); |
25192 | break; |
25193 | case 1: |
25194 | switch (args[0].kind()) { |
25195 | case Arg::RelCond: |
25196 | switch (Arg::Addr) { |
25197 | case Arg::Addr: |
25198 | case Arg::Stack: |
25199 | case Arg::CallArg: |
25200 | switch (args[2].kind()) { |
25201 | case Arg::Imm: |
25202 | #if CPU(X86) || CPU(X86_64) |
25203 | OPGEN_RETURN(true); |
25204 | #endif |
25205 | break; |
25206 | break; |
25207 | case Arg::Tmp: |
25208 | #if CPU(X86) || CPU(X86_64) |
25209 | OPGEN_RETURN(true); |
25210 | #endif |
25211 | break; |
25212 | break; |
25213 | default: |
25214 | break; |
25215 | } |
25216 | break; |
25217 | case Arg::Tmp: |
25218 | break; |
25219 | case Arg::Index: |
25220 | break; |
25221 | default: |
25222 | break; |
25223 | } |
25224 | break; |
25225 | default: |
25226 | break; |
25227 | } |
25228 | break; |
25229 | case 2: |
25230 | switch (args[0].kind()) { |
25231 | case Arg::RelCond: |
25232 | switch (args[1].kind()) { |
25233 | case Arg::Addr: |
25234 | case Arg::Stack: |
25235 | case Arg::CallArg: |
25236 | break; |
25237 | case Arg::Tmp: |
25238 | switch (Arg::Addr) { |
25239 | case Arg::Tmp: |
25240 | break; |
25241 | case Arg::Imm: |
25242 | break; |
25243 | case Arg::Addr: |
25244 | case Arg::Stack: |
25245 | case Arg::CallArg: |
25246 | #if CPU(X86) || CPU(X86_64) |
25247 | OPGEN_RETURN(true); |
25248 | #endif |
25249 | break; |
25250 | break; |
25251 | default: |
25252 | break; |
25253 | } |
25254 | break; |
25255 | case Arg::Index: |
25256 | break; |
25257 | default: |
25258 | break; |
25259 | } |
25260 | break; |
25261 | default: |
25262 | break; |
25263 | } |
25264 | break; |
25265 | default: |
25266 | break; |
25267 | } |
25268 | break; |
25269 | case Opcode::Branch64: |
25270 | switch (argIndex) { |
25271 | case 0: |
25272 | OPGEN_RETURN(false); |
25273 | break; |
25274 | case 1: |
25275 | switch (args[0].kind()) { |
25276 | case Arg::RelCond: |
25277 | switch (Arg::Addr) { |
25278 | case Arg::Tmp: |
25279 | break; |
25280 | case Arg::Addr: |
25281 | case Arg::Stack: |
25282 | case Arg::CallArg: |
25283 | switch (args[2].kind()) { |
25284 | case Arg::Tmp: |
25285 | #if CPU(X86_64) |
25286 | OPGEN_RETURN(true); |
25287 | #endif |
25288 | break; |
25289 | break; |
25290 | case Arg::Imm: |
25291 | #if CPU(X86_64) |
25292 | OPGEN_RETURN(true); |
25293 | #endif |
25294 | break; |
25295 | break; |
25296 | default: |
25297 | break; |
25298 | } |
25299 | break; |
25300 | case Arg::Index: |
25301 | break; |
25302 | default: |
25303 | break; |
25304 | } |
25305 | break; |
25306 | default: |
25307 | break; |
25308 | } |
25309 | break; |
25310 | case 2: |
25311 | switch (args[0].kind()) { |
25312 | case Arg::RelCond: |
25313 | switch (args[1].kind()) { |
25314 | case Arg::Tmp: |
25315 | switch (Arg::Addr) { |
25316 | case Arg::Tmp: |
25317 | break; |
25318 | case Arg::Imm: |
25319 | break; |
25320 | case Arg::Addr: |
25321 | case Arg::Stack: |
25322 | case Arg::CallArg: |
25323 | #if CPU(X86_64) |
25324 | OPGEN_RETURN(true); |
25325 | #endif |
25326 | break; |
25327 | break; |
25328 | default: |
25329 | break; |
25330 | } |
25331 | break; |
25332 | case Arg::Addr: |
25333 | case Arg::Stack: |
25334 | case Arg::CallArg: |
25335 | break; |
25336 | case Arg::Index: |
25337 | break; |
25338 | default: |
25339 | break; |
25340 | } |
25341 | break; |
25342 | default: |
25343 | break; |
25344 | } |
25345 | break; |
25346 | default: |
25347 | break; |
25348 | } |
25349 | break; |
25350 | case Opcode::BranchTest8: |
25351 | switch (argIndex) { |
25352 | case 0: |
25353 | OPGEN_RETURN(false); |
25354 | break; |
25355 | case 1: |
25356 | switch (args[0].kind()) { |
25357 | case Arg::ResCond: |
25358 | switch (Arg::Addr) { |
25359 | case Arg::Addr: |
25360 | case Arg::Stack: |
25361 | case Arg::CallArg: |
25362 | switch (args[2].kind()) { |
25363 | case Arg::BitImm: |
25364 | #if CPU(X86) || CPU(X86_64) |
25365 | OPGEN_RETURN(true); |
25366 | #endif |
25367 | break; |
25368 | break; |
25369 | default: |
25370 | break; |
25371 | } |
25372 | break; |
25373 | case Arg::Index: |
25374 | break; |
25375 | default: |
25376 | break; |
25377 | } |
25378 | break; |
25379 | default: |
25380 | break; |
25381 | } |
25382 | break; |
25383 | case 2: |
25384 | OPGEN_RETURN(false); |
25385 | break; |
25386 | default: |
25387 | break; |
25388 | } |
25389 | break; |
25390 | case Opcode::BranchTest32: |
25391 | switch (argIndex) { |
25392 | case 0: |
25393 | OPGEN_RETURN(false); |
25394 | break; |
25395 | case 1: |
25396 | switch (args[0].kind()) { |
25397 | case Arg::ResCond: |
25398 | switch (Arg::Addr) { |
25399 | case Arg::Tmp: |
25400 | break; |
25401 | case Arg::Addr: |
25402 | case Arg::Stack: |
25403 | case Arg::CallArg: |
25404 | switch (args[2].kind()) { |
25405 | case Arg::BitImm: |
25406 | #if CPU(X86) || CPU(X86_64) |
25407 | OPGEN_RETURN(true); |
25408 | #endif |
25409 | break; |
25410 | break; |
25411 | default: |
25412 | break; |
25413 | } |
25414 | break; |
25415 | case Arg::Index: |
25416 | break; |
25417 | default: |
25418 | break; |
25419 | } |
25420 | break; |
25421 | default: |
25422 | break; |
25423 | } |
25424 | break; |
25425 | case 2: |
25426 | OPGEN_RETURN(false); |
25427 | break; |
25428 | default: |
25429 | break; |
25430 | } |
25431 | break; |
25432 | case Opcode::BranchTest64: |
25433 | switch (argIndex) { |
25434 | case 0: |
25435 | OPGEN_RETURN(false); |
25436 | break; |
25437 | case 1: |
25438 | switch (args[0].kind()) { |
25439 | case Arg::ResCond: |
25440 | switch (Arg::Addr) { |
25441 | case Arg::Tmp: |
25442 | break; |
25443 | case Arg::Addr: |
25444 | case Arg::Stack: |
25445 | case Arg::CallArg: |
25446 | switch (args[2].kind()) { |
25447 | case Arg::BitImm: |
25448 | #if CPU(X86_64) |
25449 | OPGEN_RETURN(true); |
25450 | #endif |
25451 | break; |
25452 | break; |
25453 | case Arg::Tmp: |
25454 | #if CPU(X86_64) |
25455 | OPGEN_RETURN(true); |
25456 | #endif |
25457 | break; |
25458 | break; |
25459 | default: |
25460 | break; |
25461 | } |
25462 | break; |
25463 | case Arg::Index: |
25464 | break; |
25465 | default: |
25466 | break; |
25467 | } |
25468 | break; |
25469 | default: |
25470 | break; |
25471 | } |
25472 | break; |
25473 | case 2: |
25474 | OPGEN_RETURN(false); |
25475 | break; |
25476 | default: |
25477 | break; |
25478 | } |
25479 | break; |
25480 | case Opcode::BranchDouble: |
25481 | switch (argIndex) { |
25482 | case 0: |
25483 | OPGEN_RETURN(false); |
25484 | break; |
25485 | case 1: |
25486 | OPGEN_RETURN(false); |
25487 | break; |
25488 | case 2: |
25489 | OPGEN_RETURN(false); |
25490 | break; |
25491 | default: |
25492 | break; |
25493 | } |
25494 | break; |
25495 | case Opcode::BranchFloat: |
25496 | switch (argIndex) { |
25497 | case 0: |
25498 | OPGEN_RETURN(false); |
25499 | break; |
25500 | case 1: |
25501 | OPGEN_RETURN(false); |
25502 | break; |
25503 | case 2: |
25504 | OPGEN_RETURN(false); |
25505 | break; |
25506 | default: |
25507 | break; |
25508 | } |
25509 | break; |
25510 | case Opcode::BranchAdd32: |
25511 | switch (argIndex) { |
25512 | case 0: |
25513 | OPGEN_RETURN(false); |
25514 | break; |
25515 | case 1: |
25516 | switch (args.size()) { |
25517 | case 4: |
25518 | switch (args[0].kind()) { |
25519 | case Arg::ResCond: |
25520 | switch (Arg::Addr) { |
25521 | case Arg::Tmp: |
25522 | break; |
25523 | case Arg::Addr: |
25524 | case Arg::Stack: |
25525 | case Arg::CallArg: |
25526 | switch (args[2].kind()) { |
25527 | case Arg::Tmp: |
25528 | switch (args[3].kind()) { |
25529 | case Arg::Tmp: |
25530 | #if CPU(X86) || CPU(X86_64) |
25531 | OPGEN_RETURN(true); |
25532 | #endif |
25533 | break; |
25534 | break; |
25535 | default: |
25536 | break; |
25537 | } |
25538 | break; |
25539 | default: |
25540 | break; |
25541 | } |
25542 | break; |
25543 | default: |
25544 | break; |
25545 | } |
25546 | break; |
25547 | default: |
25548 | break; |
25549 | } |
25550 | break; |
25551 | case 3: |
25552 | switch (args[0].kind()) { |
25553 | case Arg::ResCond: |
25554 | switch (Arg::Addr) { |
25555 | case Arg::Tmp: |
25556 | break; |
25557 | case Arg::Imm: |
25558 | break; |
25559 | case Arg::Addr: |
25560 | case Arg::Stack: |
25561 | case Arg::CallArg: |
25562 | switch (args[2].kind()) { |
25563 | case Arg::Tmp: |
25564 | #if CPU(X86) || CPU(X86_64) |
25565 | OPGEN_RETURN(true); |
25566 | #endif |
25567 | break; |
25568 | break; |
25569 | default: |
25570 | break; |
25571 | } |
25572 | break; |
25573 | default: |
25574 | break; |
25575 | } |
25576 | break; |
25577 | default: |
25578 | break; |
25579 | } |
25580 | break; |
25581 | default: |
25582 | break; |
25583 | } |
25584 | break; |
25585 | case 2: |
25586 | switch (args.size()) { |
25587 | case 4: |
25588 | switch (args[0].kind()) { |
25589 | case Arg::ResCond: |
25590 | switch (args[1].kind()) { |
25591 | case Arg::Tmp: |
25592 | switch (Arg::Addr) { |
25593 | case Arg::Tmp: |
25594 | break; |
25595 | case Arg::Addr: |
25596 | case Arg::Stack: |
25597 | case Arg::CallArg: |
25598 | switch (args[3].kind()) { |
25599 | case Arg::Tmp: |
25600 | #if CPU(X86) || CPU(X86_64) |
25601 | OPGEN_RETURN(true); |
25602 | #endif |
25603 | break; |
25604 | break; |
25605 | default: |
25606 | break; |
25607 | } |
25608 | break; |
25609 | default: |
25610 | break; |
25611 | } |
25612 | break; |
25613 | case Arg::Addr: |
25614 | case Arg::Stack: |
25615 | case Arg::CallArg: |
25616 | break; |
25617 | default: |
25618 | break; |
25619 | } |
25620 | break; |
25621 | default: |
25622 | break; |
25623 | } |
25624 | break; |
25625 | case 3: |
25626 | switch (args[0].kind()) { |
25627 | case Arg::ResCond: |
25628 | switch (args[1].kind()) { |
25629 | case Arg::Tmp: |
25630 | switch (Arg::Addr) { |
25631 | case Arg::Tmp: |
25632 | break; |
25633 | case Arg::Addr: |
25634 | case Arg::Stack: |
25635 | case Arg::CallArg: |
25636 | #if CPU(X86) || CPU(X86_64) |
25637 | OPGEN_RETURN(true); |
25638 | #endif |
25639 | break; |
25640 | break; |
25641 | default: |
25642 | break; |
25643 | } |
25644 | break; |
25645 | case Arg::Imm: |
25646 | switch (Arg::Addr) { |
25647 | case Arg::Tmp: |
25648 | break; |
25649 | case Arg::Addr: |
25650 | case Arg::Stack: |
25651 | case Arg::CallArg: |
25652 | #if CPU(X86) || CPU(X86_64) |
25653 | OPGEN_RETURN(true); |
25654 | #endif |
25655 | break; |
25656 | break; |
25657 | default: |
25658 | break; |
25659 | } |
25660 | break; |
25661 | case Arg::Addr: |
25662 | case Arg::Stack: |
25663 | case Arg::CallArg: |
25664 | break; |
25665 | default: |
25666 | break; |
25667 | } |
25668 | break; |
25669 | default: |
25670 | break; |
25671 | } |
25672 | break; |
25673 | default: |
25674 | break; |
25675 | } |
25676 | break; |
25677 | case 3: |
25678 | OPGEN_RETURN(false); |
25679 | break; |
25680 | default: |
25681 | break; |
25682 | } |
25683 | break; |
25684 | case Opcode::BranchAdd64: |
25685 | switch (argIndex) { |
25686 | case 0: |
25687 | OPGEN_RETURN(false); |
25688 | break; |
25689 | case 1: |
25690 | switch (args.size()) { |
25691 | case 4: |
25692 | switch (args[0].kind()) { |
25693 | case Arg::ResCond: |
25694 | switch (Arg::Addr) { |
25695 | case Arg::Tmp: |
25696 | break; |
25697 | case Arg::Addr: |
25698 | case Arg::Stack: |
25699 | case Arg::CallArg: |
25700 | switch (args[2].kind()) { |
25701 | case Arg::Tmp: |
25702 | switch (args[3].kind()) { |
25703 | case Arg::Tmp: |
25704 | #if CPU(X86) || CPU(X86_64) |
25705 | OPGEN_RETURN(true); |
25706 | #endif |
25707 | break; |
25708 | break; |
25709 | default: |
25710 | break; |
25711 | } |
25712 | break; |
25713 | default: |
25714 | break; |
25715 | } |
25716 | break; |
25717 | default: |
25718 | break; |
25719 | } |
25720 | break; |
25721 | default: |
25722 | break; |
25723 | } |
25724 | break; |
25725 | case 3: |
25726 | switch (args[0].kind()) { |
25727 | case Arg::ResCond: |
25728 | switch (Arg::Addr) { |
25729 | case Arg::Imm: |
25730 | break; |
25731 | case Arg::Tmp: |
25732 | break; |
25733 | case Arg::Addr: |
25734 | case Arg::Stack: |
25735 | case Arg::CallArg: |
25736 | switch (args[2].kind()) { |
25737 | case Arg::Tmp: |
25738 | #if CPU(X86_64) |
25739 | OPGEN_RETURN(true); |
25740 | #endif |
25741 | break; |
25742 | break; |
25743 | default: |
25744 | break; |
25745 | } |
25746 | break; |
25747 | default: |
25748 | break; |
25749 | } |
25750 | break; |
25751 | default: |
25752 | break; |
25753 | } |
25754 | break; |
25755 | default: |
25756 | break; |
25757 | } |
25758 | break; |
25759 | case 2: |
25760 | switch (args.size()) { |
25761 | case 4: |
25762 | switch (args[0].kind()) { |
25763 | case Arg::ResCond: |
25764 | switch (args[1].kind()) { |
25765 | case Arg::Tmp: |
25766 | switch (Arg::Addr) { |
25767 | case Arg::Tmp: |
25768 | break; |
25769 | case Arg::Addr: |
25770 | case Arg::Stack: |
25771 | case Arg::CallArg: |
25772 | switch (args[3].kind()) { |
25773 | case Arg::Tmp: |
25774 | #if CPU(X86) || CPU(X86_64) |
25775 | OPGEN_RETURN(true); |
25776 | #endif |
25777 | break; |
25778 | break; |
25779 | default: |
25780 | break; |
25781 | } |
25782 | break; |
25783 | default: |
25784 | break; |
25785 | } |
25786 | break; |
25787 | case Arg::Addr: |
25788 | case Arg::Stack: |
25789 | case Arg::CallArg: |
25790 | break; |
25791 | default: |
25792 | break; |
25793 | } |
25794 | break; |
25795 | default: |
25796 | break; |
25797 | } |
25798 | break; |
25799 | default: |
25800 | break; |
25801 | } |
25802 | break; |
25803 | case 3: |
25804 | OPGEN_RETURN(false); |
25805 | break; |
25806 | default: |
25807 | break; |
25808 | } |
25809 | break; |
25810 | case Opcode::BranchMul32: |
25811 | switch (argIndex) { |
25812 | case 0: |
25813 | OPGEN_RETURN(false); |
25814 | break; |
25815 | case 1: |
25816 | switch (args.size()) { |
25817 | case 3: |
25818 | switch (args[0].kind()) { |
25819 | case Arg::ResCond: |
25820 | switch (Arg::Addr) { |
25821 | case Arg::Tmp: |
25822 | break; |
25823 | case Arg::Addr: |
25824 | case Arg::Stack: |
25825 | case Arg::CallArg: |
25826 | switch (args[2].kind()) { |
25827 | case Arg::Tmp: |
25828 | #if CPU(X86) || CPU(X86_64) |
25829 | OPGEN_RETURN(true); |
25830 | #endif |
25831 | break; |
25832 | break; |
25833 | default: |
25834 | break; |
25835 | } |
25836 | break; |
25837 | default: |
25838 | break; |
25839 | } |
25840 | break; |
25841 | default: |
25842 | break; |
25843 | } |
25844 | break; |
25845 | default: |
25846 | break; |
25847 | } |
25848 | break; |
25849 | case 2: |
25850 | OPGEN_RETURN(false); |
25851 | break; |
25852 | case 3: |
25853 | OPGEN_RETURN(false); |
25854 | break; |
25855 | case 4: |
25856 | OPGEN_RETURN(false); |
25857 | break; |
25858 | case 5: |
25859 | OPGEN_RETURN(false); |
25860 | break; |
25861 | default: |
25862 | break; |
25863 | } |
25864 | break; |
25865 | case Opcode::BranchMul64: |
25866 | switch (argIndex) { |
25867 | case 0: |
25868 | OPGEN_RETURN(false); |
25869 | break; |
25870 | case 1: |
25871 | OPGEN_RETURN(false); |
25872 | break; |
25873 | case 2: |
25874 | OPGEN_RETURN(false); |
25875 | break; |
25876 | case 3: |
25877 | OPGEN_RETURN(false); |
25878 | break; |
25879 | case 4: |
25880 | OPGEN_RETURN(false); |
25881 | break; |
25882 | case 5: |
25883 | OPGEN_RETURN(false); |
25884 | break; |
25885 | default: |
25886 | break; |
25887 | } |
25888 | break; |
25889 | case Opcode::BranchSub32: |
25890 | switch (argIndex) { |
25891 | case 0: |
25892 | OPGEN_RETURN(false); |
25893 | break; |
25894 | case 1: |
25895 | switch (args[0].kind()) { |
25896 | case Arg::ResCond: |
25897 | switch (Arg::Addr) { |
25898 | case Arg::Tmp: |
25899 | break; |
25900 | case Arg::Imm: |
25901 | break; |
25902 | case Arg::Addr: |
25903 | case Arg::Stack: |
25904 | case Arg::CallArg: |
25905 | switch (args[2].kind()) { |
25906 | case Arg::Tmp: |
25907 | #if CPU(X86) || CPU(X86_64) |
25908 | OPGEN_RETURN(true); |
25909 | #endif |
25910 | break; |
25911 | break; |
25912 | default: |
25913 | break; |
25914 | } |
25915 | break; |
25916 | default: |
25917 | break; |
25918 | } |
25919 | break; |
25920 | default: |
25921 | break; |
25922 | } |
25923 | break; |
25924 | case 2: |
25925 | switch (args[0].kind()) { |
25926 | case Arg::ResCond: |
25927 | switch (args[1].kind()) { |
25928 | case Arg::Tmp: |
25929 | switch (Arg::Addr) { |
25930 | case Arg::Tmp: |
25931 | break; |
25932 | case Arg::Addr: |
25933 | case Arg::Stack: |
25934 | case Arg::CallArg: |
25935 | #if CPU(X86) || CPU(X86_64) |
25936 | OPGEN_RETURN(true); |
25937 | #endif |
25938 | break; |
25939 | break; |
25940 | default: |
25941 | break; |
25942 | } |
25943 | break; |
25944 | case Arg::Imm: |
25945 | switch (Arg::Addr) { |
25946 | case Arg::Tmp: |
25947 | break; |
25948 | case Arg::Addr: |
25949 | case Arg::Stack: |
25950 | case Arg::CallArg: |
25951 | #if CPU(X86) || CPU(X86_64) |
25952 | OPGEN_RETURN(true); |
25953 | #endif |
25954 | break; |
25955 | break; |
25956 | default: |
25957 | break; |
25958 | } |
25959 | break; |
25960 | case Arg::Addr: |
25961 | case Arg::Stack: |
25962 | case Arg::CallArg: |
25963 | break; |
25964 | default: |
25965 | break; |
25966 | } |
25967 | break; |
25968 | default: |
25969 | break; |
25970 | } |
25971 | break; |
25972 | default: |
25973 | break; |
25974 | } |
25975 | break; |
25976 | case Opcode::BranchSub64: |
25977 | switch (argIndex) { |
25978 | case 0: |
25979 | OPGEN_RETURN(false); |
25980 | break; |
25981 | case 1: |
25982 | OPGEN_RETURN(false); |
25983 | break; |
25984 | case 2: |
25985 | OPGEN_RETURN(false); |
25986 | break; |
25987 | default: |
25988 | break; |
25989 | } |
25990 | break; |
25991 | case Opcode::BranchNeg32: |
25992 | switch (argIndex) { |
25993 | case 0: |
25994 | OPGEN_RETURN(false); |
25995 | break; |
25996 | case 1: |
25997 | OPGEN_RETURN(false); |
25998 | break; |
25999 | default: |
26000 | break; |
26001 | } |
26002 | break; |
26003 | case Opcode::BranchNeg64: |
26004 | switch (argIndex) { |
26005 | case 0: |
26006 | OPGEN_RETURN(false); |
26007 | break; |
26008 | case 1: |
26009 | OPGEN_RETURN(false); |
26010 | break; |
26011 | default: |
26012 | break; |
26013 | } |
26014 | break; |
26015 | case Opcode::MoveConditionally32: |
26016 | switch (argIndex) { |
26017 | case 0: |
26018 | OPGEN_RETURN(false); |
26019 | break; |
26020 | case 1: |
26021 | OPGEN_RETURN(false); |
26022 | break; |
26023 | case 2: |
26024 | OPGEN_RETURN(false); |
26025 | break; |
26026 | case 3: |
26027 | OPGEN_RETURN(false); |
26028 | break; |
26029 | case 4: |
26030 | OPGEN_RETURN(false); |
26031 | break; |
26032 | case 5: |
26033 | OPGEN_RETURN(false); |
26034 | break; |
26035 | default: |
26036 | break; |
26037 | } |
26038 | break; |
26039 | case Opcode::MoveConditionally64: |
26040 | switch (argIndex) { |
26041 | case 0: |
26042 | OPGEN_RETURN(false); |
26043 | break; |
26044 | case 1: |
26045 | OPGEN_RETURN(false); |
26046 | break; |
26047 | case 2: |
26048 | OPGEN_RETURN(false); |
26049 | break; |
26050 | case 3: |
26051 | OPGEN_RETURN(false); |
26052 | break; |
26053 | case 4: |
26054 | OPGEN_RETURN(false); |
26055 | break; |
26056 | case 5: |
26057 | OPGEN_RETURN(false); |
26058 | break; |
26059 | default: |
26060 | break; |
26061 | } |
26062 | break; |
26063 | case Opcode::MoveConditionallyTest32: |
26064 | switch (argIndex) { |
26065 | case 0: |
26066 | OPGEN_RETURN(false); |
26067 | break; |
26068 | case 1: |
26069 | OPGEN_RETURN(false); |
26070 | break; |
26071 | case 2: |
26072 | OPGEN_RETURN(false); |
26073 | break; |
26074 | case 3: |
26075 | OPGEN_RETURN(false); |
26076 | break; |
26077 | case 4: |
26078 | OPGEN_RETURN(false); |
26079 | break; |
26080 | case 5: |
26081 | OPGEN_RETURN(false); |
26082 | break; |
26083 | default: |
26084 | break; |
26085 | } |
26086 | break; |
26087 | case Opcode::MoveConditionallyTest64: |
26088 | switch (argIndex) { |
26089 | case 0: |
26090 | OPGEN_RETURN(false); |
26091 | break; |
26092 | case 1: |
26093 | OPGEN_RETURN(false); |
26094 | break; |
26095 | case 2: |
26096 | OPGEN_RETURN(false); |
26097 | break; |
26098 | case 3: |
26099 | OPGEN_RETURN(false); |
26100 | break; |
26101 | case 4: |
26102 | OPGEN_RETURN(false); |
26103 | break; |
26104 | case 5: |
26105 | OPGEN_RETURN(false); |
26106 | break; |
26107 | default: |
26108 | break; |
26109 | } |
26110 | break; |
26111 | case Opcode::MoveConditionallyDouble: |
26112 | switch (argIndex) { |
26113 | case 0: |
26114 | OPGEN_RETURN(false); |
26115 | break; |
26116 | case 1: |
26117 | OPGEN_RETURN(false); |
26118 | break; |
26119 | case 2: |
26120 | OPGEN_RETURN(false); |
26121 | break; |
26122 | case 3: |
26123 | OPGEN_RETURN(false); |
26124 | break; |
26125 | case 4: |
26126 | OPGEN_RETURN(false); |
26127 | break; |
26128 | case 5: |
26129 | OPGEN_RETURN(false); |
26130 | break; |
26131 | default: |
26132 | break; |
26133 | } |
26134 | break; |
26135 | case Opcode::MoveConditionallyFloat: |
26136 | switch (argIndex) { |
26137 | case 0: |
26138 | OPGEN_RETURN(false); |
26139 | break; |
26140 | case 1: |
26141 | OPGEN_RETURN(false); |
26142 | break; |
26143 | case 2: |
26144 | OPGEN_RETURN(false); |
26145 | break; |
26146 | case 3: |
26147 | OPGEN_RETURN(false); |
26148 | break; |
26149 | case 4: |
26150 | OPGEN_RETURN(false); |
26151 | break; |
26152 | case 5: |
26153 | OPGEN_RETURN(false); |
26154 | break; |
26155 | default: |
26156 | break; |
26157 | } |
26158 | break; |
26159 | case Opcode::MoveDoubleConditionally32: |
26160 | switch (argIndex) { |
26161 | case 0: |
26162 | OPGEN_RETURN(false); |
26163 | break; |
26164 | case 1: |
26165 | switch (args[0].kind()) { |
26166 | case Arg::RelCond: |
26167 | switch (Arg::Addr) { |
26168 | case Arg::Tmp: |
26169 | break; |
26170 | case Arg::Addr: |
26171 | case Arg::Stack: |
26172 | case Arg::CallArg: |
26173 | switch (args[2].kind()) { |
26174 | case Arg::Imm: |
26175 | switch (args[3].kind()) { |
26176 | case Arg::Tmp: |
26177 | switch (args[4].kind()) { |
26178 | case Arg::Tmp: |
26179 | switch (args[5].kind()) { |
26180 | case Arg::Tmp: |
26181 | #if CPU(X86) || CPU(X86_64) |
26182 | OPGEN_RETURN(true); |
26183 | #endif |
26184 | break; |
26185 | break; |
26186 | default: |
26187 | break; |
26188 | } |
26189 | break; |
26190 | default: |
26191 | break; |
26192 | } |
26193 | break; |
26194 | default: |
26195 | break; |
26196 | } |
26197 | break; |
26198 | case Arg::Tmp: |
26199 | switch (args[3].kind()) { |
26200 | case Arg::Tmp: |
26201 | switch (args[4].kind()) { |
26202 | case Arg::Tmp: |
26203 | switch (args[5].kind()) { |
26204 | case Arg::Tmp: |
26205 | #if CPU(X86) || CPU(X86_64) |
26206 | OPGEN_RETURN(true); |
26207 | #endif |
26208 | break; |
26209 | break; |
26210 | default: |
26211 | break; |
26212 | } |
26213 | break; |
26214 | default: |
26215 | break; |
26216 | } |
26217 | break; |
26218 | default: |
26219 | break; |
26220 | } |
26221 | break; |
26222 | default: |
26223 | break; |
26224 | } |
26225 | break; |
26226 | case Arg::Index: |
26227 | break; |
26228 | default: |
26229 | break; |
26230 | } |
26231 | break; |
26232 | default: |
26233 | break; |
26234 | } |
26235 | break; |
26236 | case 2: |
26237 | switch (args[0].kind()) { |
26238 | case Arg::RelCond: |
26239 | switch (args[1].kind()) { |
26240 | case Arg::Tmp: |
26241 | switch (Arg::Addr) { |
26242 | case Arg::Tmp: |
26243 | break; |
26244 | case Arg::Imm: |
26245 | break; |
26246 | case Arg::Addr: |
26247 | case Arg::Stack: |
26248 | case Arg::CallArg: |
26249 | switch (args[3].kind()) { |
26250 | case Arg::Tmp: |
26251 | switch (args[4].kind()) { |
26252 | case Arg::Tmp: |
26253 | switch (args[5].kind()) { |
26254 | case Arg::Tmp: |
26255 | #if CPU(X86) || CPU(X86_64) |
26256 | OPGEN_RETURN(true); |
26257 | #endif |
26258 | break; |
26259 | break; |
26260 | default: |
26261 | break; |
26262 | } |
26263 | break; |
26264 | default: |
26265 | break; |
26266 | } |
26267 | break; |
26268 | default: |
26269 | break; |
26270 | } |
26271 | break; |
26272 | default: |
26273 | break; |
26274 | } |
26275 | break; |
26276 | case Arg::Addr: |
26277 | case Arg::Stack: |
26278 | case Arg::CallArg: |
26279 | break; |
26280 | case Arg::Index: |
26281 | break; |
26282 | default: |
26283 | break; |
26284 | } |
26285 | break; |
26286 | default: |
26287 | break; |
26288 | } |
26289 | break; |
26290 | case 3: |
26291 | OPGEN_RETURN(false); |
26292 | break; |
26293 | case 4: |
26294 | OPGEN_RETURN(false); |
26295 | break; |
26296 | case 5: |
26297 | OPGEN_RETURN(false); |
26298 | break; |
26299 | default: |
26300 | break; |
26301 | } |
26302 | break; |
26303 | case Opcode::MoveDoubleConditionally64: |
26304 | switch (argIndex) { |
26305 | case 0: |
26306 | OPGEN_RETURN(false); |
26307 | break; |
26308 | case 1: |
26309 | switch (args[0].kind()) { |
26310 | case Arg::RelCond: |
26311 | switch (Arg::Addr) { |
26312 | case Arg::Tmp: |
26313 | break; |
26314 | case Arg::Addr: |
26315 | case Arg::Stack: |
26316 | case Arg::CallArg: |
26317 | switch (args[2].kind()) { |
26318 | case Arg::Tmp: |
26319 | switch (args[3].kind()) { |
26320 | case Arg::Tmp: |
26321 | switch (args[4].kind()) { |
26322 | case Arg::Tmp: |
26323 | switch (args[5].kind()) { |
26324 | case Arg::Tmp: |
26325 | #if CPU(X86_64) |
26326 | OPGEN_RETURN(true); |
26327 | #endif |
26328 | break; |
26329 | break; |
26330 | default: |
26331 | break; |
26332 | } |
26333 | break; |
26334 | default: |
26335 | break; |
26336 | } |
26337 | break; |
26338 | default: |
26339 | break; |
26340 | } |
26341 | break; |
26342 | case Arg::Imm: |
26343 | switch (args[3].kind()) { |
26344 | case Arg::Tmp: |
26345 | switch (args[4].kind()) { |
26346 | case Arg::Tmp: |
26347 | switch (args[5].kind()) { |
26348 | case Arg::Tmp: |
26349 | #if CPU(X86_64) |
26350 | OPGEN_RETURN(true); |
26351 | #endif |
26352 | break; |
26353 | break; |
26354 | default: |
26355 | break; |
26356 | } |
26357 | break; |
26358 | default: |
26359 | break; |
26360 | } |
26361 | break; |
26362 | default: |
26363 | break; |
26364 | } |
26365 | break; |
26366 | default: |
26367 | break; |
26368 | } |
26369 | break; |
26370 | case Arg::Index: |
26371 | break; |
26372 | default: |
26373 | break; |
26374 | } |
26375 | break; |
26376 | default: |
26377 | break; |
26378 | } |
26379 | break; |
26380 | case 2: |
26381 | switch (args[0].kind()) { |
26382 | case Arg::RelCond: |
26383 | switch (args[1].kind()) { |
26384 | case Arg::Tmp: |
26385 | switch (Arg::Addr) { |
26386 | case Arg::Tmp: |
26387 | break; |
26388 | case Arg::Imm: |
26389 | break; |
26390 | case Arg::Addr: |
26391 | case Arg::Stack: |
26392 | case Arg::CallArg: |
26393 | switch (args[3].kind()) { |
26394 | case Arg::Tmp: |
26395 | switch (args[4].kind()) { |
26396 | case Arg::Tmp: |
26397 | switch (args[5].kind()) { |
26398 | case Arg::Tmp: |
26399 | #if CPU(X86_64) |
26400 | OPGEN_RETURN(true); |
26401 | #endif |
26402 | break; |
26403 | break; |
26404 | default: |
26405 | break; |
26406 | } |
26407 | break; |
26408 | default: |
26409 | break; |
26410 | } |
26411 | break; |
26412 | default: |
26413 | break; |
26414 | } |
26415 | break; |
26416 | default: |
26417 | break; |
26418 | } |
26419 | break; |
26420 | case Arg::Addr: |
26421 | case Arg::Stack: |
26422 | case Arg::CallArg: |
26423 | break; |
26424 | case Arg::Index: |
26425 | break; |
26426 | default: |
26427 | break; |
26428 | } |
26429 | break; |
26430 | default: |
26431 | break; |
26432 | } |
26433 | break; |
26434 | case 3: |
26435 | OPGEN_RETURN(false); |
26436 | break; |
26437 | case 4: |
26438 | OPGEN_RETURN(false); |
26439 | break; |
26440 | case 5: |
26441 | OPGEN_RETURN(false); |
26442 | break; |
26443 | default: |
26444 | break; |
26445 | } |
26446 | break; |
26447 | case Opcode::MoveDoubleConditionallyTest32: |
26448 | switch (argIndex) { |
26449 | case 0: |
26450 | OPGEN_RETURN(false); |
26451 | break; |
26452 | case 1: |
26453 | switch (args[0].kind()) { |
26454 | case Arg::ResCond: |
26455 | switch (Arg::Addr) { |
26456 | case Arg::Tmp: |
26457 | break; |
26458 | case Arg::Addr: |
26459 | case Arg::Stack: |
26460 | case Arg::CallArg: |
26461 | switch (args[2].kind()) { |
26462 | case Arg::Imm: |
26463 | switch (args[3].kind()) { |
26464 | case Arg::Tmp: |
26465 | switch (args[4].kind()) { |
26466 | case Arg::Tmp: |
26467 | switch (args[5].kind()) { |
26468 | case Arg::Tmp: |
26469 | #if CPU(X86) || CPU(X86_64) |
26470 | OPGEN_RETURN(true); |
26471 | #endif |
26472 | break; |
26473 | break; |
26474 | default: |
26475 | break; |
26476 | } |
26477 | break; |
26478 | default: |
26479 | break; |
26480 | } |
26481 | break; |
26482 | default: |
26483 | break; |
26484 | } |
26485 | break; |
26486 | default: |
26487 | break; |
26488 | } |
26489 | break; |
26490 | case Arg::Index: |
26491 | break; |
26492 | default: |
26493 | break; |
26494 | } |
26495 | break; |
26496 | default: |
26497 | break; |
26498 | } |
26499 | break; |
26500 | case 2: |
26501 | OPGEN_RETURN(false); |
26502 | break; |
26503 | case 3: |
26504 | OPGEN_RETURN(false); |
26505 | break; |
26506 | case 4: |
26507 | OPGEN_RETURN(false); |
26508 | break; |
26509 | case 5: |
26510 | OPGEN_RETURN(false); |
26511 | break; |
26512 | default: |
26513 | break; |
26514 | } |
26515 | break; |
26516 | case Opcode::MoveDoubleConditionallyTest64: |
26517 | switch (argIndex) { |
26518 | case 0: |
26519 | OPGEN_RETURN(false); |
26520 | break; |
26521 | case 1: |
26522 | switch (args[0].kind()) { |
26523 | case Arg::ResCond: |
26524 | switch (Arg::Addr) { |
26525 | case Arg::Tmp: |
26526 | break; |
26527 | case Arg::Addr: |
26528 | case Arg::Stack: |
26529 | case Arg::CallArg: |
26530 | switch (args[2].kind()) { |
26531 | case Arg::Imm: |
26532 | switch (args[3].kind()) { |
26533 | case Arg::Tmp: |
26534 | switch (args[4].kind()) { |
26535 | case Arg::Tmp: |
26536 | switch (args[5].kind()) { |
26537 | case Arg::Tmp: |
26538 | #if CPU(X86_64) |
26539 | OPGEN_RETURN(true); |
26540 | #endif |
26541 | break; |
26542 | break; |
26543 | default: |
26544 | break; |
26545 | } |
26546 | break; |
26547 | default: |
26548 | break; |
26549 | } |
26550 | break; |
26551 | default: |
26552 | break; |
26553 | } |
26554 | break; |
26555 | case Arg::Tmp: |
26556 | switch (args[3].kind()) { |
26557 | case Arg::Tmp: |
26558 | switch (args[4].kind()) { |
26559 | case Arg::Tmp: |
26560 | switch (args[5].kind()) { |
26561 | case Arg::Tmp: |
26562 | #if CPU(X86_64) |
26563 | OPGEN_RETURN(true); |
26564 | #endif |
26565 | break; |
26566 | break; |
26567 | default: |
26568 | break; |
26569 | } |
26570 | break; |
26571 | default: |
26572 | break; |
26573 | } |
26574 | break; |
26575 | default: |
26576 | break; |
26577 | } |
26578 | break; |
26579 | default: |
26580 | break; |
26581 | } |
26582 | break; |
26583 | case Arg::Index: |
26584 | break; |
26585 | default: |
26586 | break; |
26587 | } |
26588 | break; |
26589 | default: |
26590 | break; |
26591 | } |
26592 | break; |
26593 | case 2: |
26594 | OPGEN_RETURN(false); |
26595 | break; |
26596 | case 3: |
26597 | OPGEN_RETURN(false); |
26598 | break; |
26599 | case 4: |
26600 | OPGEN_RETURN(false); |
26601 | break; |
26602 | case 5: |
26603 | OPGEN_RETURN(false); |
26604 | break; |
26605 | default: |
26606 | break; |
26607 | } |
26608 | break; |
26609 | case Opcode::MoveDoubleConditionallyDouble: |
26610 | switch (argIndex) { |
26611 | case 0: |
26612 | OPGEN_RETURN(false); |
26613 | break; |
26614 | case 1: |
26615 | OPGEN_RETURN(false); |
26616 | break; |
26617 | case 2: |
26618 | OPGEN_RETURN(false); |
26619 | break; |
26620 | case 3: |
26621 | OPGEN_RETURN(false); |
26622 | break; |
26623 | case 4: |
26624 | OPGEN_RETURN(false); |
26625 | break; |
26626 | case 5: |
26627 | OPGEN_RETURN(false); |
26628 | break; |
26629 | default: |
26630 | break; |
26631 | } |
26632 | break; |
26633 | case Opcode::MoveDoubleConditionallyFloat: |
26634 | switch (argIndex) { |
26635 | case 0: |
26636 | OPGEN_RETURN(false); |
26637 | break; |
26638 | case 1: |
26639 | OPGEN_RETURN(false); |
26640 | break; |
26641 | case 2: |
26642 | OPGEN_RETURN(false); |
26643 | break; |
26644 | case 3: |
26645 | OPGEN_RETURN(false); |
26646 | break; |
26647 | case 4: |
26648 | OPGEN_RETURN(false); |
26649 | break; |
26650 | case 5: |
26651 | OPGEN_RETURN(false); |
26652 | break; |
26653 | default: |
26654 | break; |
26655 | } |
26656 | break; |
26657 | case Opcode::MemoryFence: |
26658 | switch (argIndex) { |
26659 | default: |
26660 | break; |
26661 | } |
26662 | break; |
26663 | case Opcode::StoreFence: |
26664 | switch (argIndex) { |
26665 | default: |
26666 | break; |
26667 | } |
26668 | break; |
26669 | case Opcode::LoadFence: |
26670 | switch (argIndex) { |
26671 | default: |
26672 | break; |
26673 | } |
26674 | break; |
26675 | case Opcode::Jump: |
26676 | switch (argIndex) { |
26677 | default: |
26678 | break; |
26679 | } |
26680 | break; |
26681 | case Opcode::RetVoid: |
26682 | switch (argIndex) { |
26683 | default: |
26684 | break; |
26685 | } |
26686 | break; |
26687 | case Opcode::Ret32: |
26688 | switch (argIndex) { |
26689 | case 0: |
26690 | OPGEN_RETURN(false); |
26691 | break; |
26692 | default: |
26693 | break; |
26694 | } |
26695 | break; |
26696 | case Opcode::Ret64: |
26697 | switch (argIndex) { |
26698 | case 0: |
26699 | OPGEN_RETURN(false); |
26700 | break; |
26701 | default: |
26702 | break; |
26703 | } |
26704 | break; |
26705 | case Opcode::RetFloat: |
26706 | switch (argIndex) { |
26707 | case 0: |
26708 | OPGEN_RETURN(false); |
26709 | break; |
26710 | default: |
26711 | break; |
26712 | } |
26713 | break; |
26714 | case Opcode::RetDouble: |
26715 | switch (argIndex) { |
26716 | case 0: |
26717 | OPGEN_RETURN(false); |
26718 | break; |
26719 | default: |
26720 | break; |
26721 | } |
26722 | break; |
26723 | case Opcode::Oops: |
26724 | switch (argIndex) { |
26725 | default: |
26726 | break; |
26727 | } |
26728 | break; |
26729 | case Opcode::EntrySwitch: |
26730 | OPGEN_RETURN(EntrySwitchCustom::admitsStack(*this, argIndex)); |
26731 | break; |
26732 | case Opcode::Shuffle: |
26733 | OPGEN_RETURN(ShuffleCustom::admitsStack(*this, argIndex)); |
26734 | break; |
26735 | case Opcode::Patch: |
26736 | OPGEN_RETURN(PatchCustom::admitsStack(*this, argIndex)); |
26737 | break; |
26738 | case Opcode::CCall: |
26739 | OPGEN_RETURN(CCallCustom::admitsStack(*this, argIndex)); |
26740 | break; |
26741 | case Opcode::ColdCCall: |
26742 | OPGEN_RETURN(ColdCCallCustom::admitsStack(*this, argIndex)); |
26743 | break; |
26744 | case Opcode::WasmBoundsCheck: |
26745 | OPGEN_RETURN(WasmBoundsCheckCustom::admitsStack(*this, argIndex)); |
26746 | break; |
26747 | default: |
26748 | break; |
26749 | } |
26750 | return false; |
26751 | } |
26752 | bool Inst::admitsExtendedOffsetAddr(unsigned argIndex) |
26753 | { |
26754 | switch (kind.opcode) { |
26755 | case Opcode::EntrySwitch: |
26756 | OPGEN_RETURN(EntrySwitchCustom::admitsExtendedOffsetAddr(*this, argIndex)); |
26757 | break; |
26758 | case Opcode::Shuffle: |
26759 | OPGEN_RETURN(ShuffleCustom::admitsExtendedOffsetAddr(*this, argIndex)); |
26760 | break; |
26761 | case Opcode::Patch: |
26762 | OPGEN_RETURN(PatchCustom::admitsExtendedOffsetAddr(*this, argIndex)); |
26763 | break; |
26764 | case Opcode::CCall: |
26765 | OPGEN_RETURN(CCallCustom::admitsExtendedOffsetAddr(*this, argIndex)); |
26766 | break; |
26767 | case Opcode::ColdCCall: |
26768 | OPGEN_RETURN(ColdCCallCustom::admitsExtendedOffsetAddr(*this, argIndex)); |
26769 | break; |
26770 | case Opcode::WasmBoundsCheck: |
26771 | OPGEN_RETURN(WasmBoundsCheckCustom::admitsExtendedOffsetAddr(*this, argIndex)); |
26772 | break; |
26773 | default: |
26774 | break; |
26775 | } |
26776 | return false; |
26777 | } |
26778 | bool Inst::isTerminal() |
26779 | { |
26780 | switch (kind.opcode) { |
26781 | case Opcode::BranchAtomicStrongCAS8: |
26782 | case Opcode::BranchAtomicStrongCAS16: |
26783 | case Opcode::BranchAtomicStrongCAS32: |
26784 | case Opcode::BranchAtomicStrongCAS64: |
26785 | case Opcode::Branch8: |
26786 | case Opcode::Branch32: |
26787 | case Opcode::Branch64: |
26788 | case Opcode::BranchTest8: |
26789 | case Opcode::BranchTest32: |
26790 | case Opcode::BranchTest64: |
26791 | case Opcode::BranchDouble: |
26792 | case Opcode::BranchFloat: |
26793 | case Opcode::BranchAdd32: |
26794 | case Opcode::BranchAdd64: |
26795 | case Opcode::BranchMul32: |
26796 | case Opcode::BranchMul64: |
26797 | case Opcode::BranchSub32: |
26798 | case Opcode::BranchSub64: |
26799 | case Opcode::BranchNeg32: |
26800 | case Opcode::BranchNeg64: |
26801 | case Opcode::Jump: |
26802 | case Opcode::RetVoid: |
26803 | case Opcode::Ret32: |
26804 | case Opcode::Ret64: |
26805 | case Opcode::RetFloat: |
26806 | case Opcode::RetDouble: |
26807 | case Opcode::Oops: |
26808 | return true; |
26809 | case Opcode::EntrySwitch: |
26810 | return EntrySwitchCustom::isTerminal(*this); |
26811 | case Opcode::Shuffle: |
26812 | return ShuffleCustom::isTerminal(*this); |
26813 | case Opcode::Patch: |
26814 | return PatchCustom::isTerminal(*this); |
26815 | case Opcode::CCall: |
26816 | return CCallCustom::isTerminal(*this); |
26817 | case Opcode::ColdCCall: |
26818 | return ColdCCallCustom::isTerminal(*this); |
26819 | case Opcode::WasmBoundsCheck: |
26820 | return WasmBoundsCheckCustom::isTerminal(*this); |
26821 | default: |
26822 | return false; |
26823 | } |
26824 | } |
26825 | bool Inst::hasNonArgNonControlEffects() |
26826 | { |
26827 | if (kind.effects) |
26828 | return true; |
26829 | switch (kind.opcode) { |
26830 | case Opcode::LoadAcq8: |
26831 | case Opcode::StoreRel8: |
26832 | case Opcode::LoadAcq8SignedExtendTo32: |
26833 | case Opcode::LoadAcq16: |
26834 | case Opcode::LoadAcq16SignedExtendTo32: |
26835 | case Opcode::StoreRel16: |
26836 | case Opcode::LoadAcq32: |
26837 | case Opcode::StoreRel32: |
26838 | case Opcode::LoadAcq64: |
26839 | case Opcode::StoreRel64: |
26840 | case Opcode::Xchg8: |
26841 | case Opcode::Xchg16: |
26842 | case Opcode::Xchg32: |
26843 | case Opcode::Xchg64: |
26844 | case Opcode::AtomicStrongCAS8: |
26845 | case Opcode::AtomicStrongCAS16: |
26846 | case Opcode::AtomicStrongCAS32: |
26847 | case Opcode::AtomicStrongCAS64: |
26848 | case Opcode::BranchAtomicStrongCAS8: |
26849 | case Opcode::BranchAtomicStrongCAS16: |
26850 | case Opcode::BranchAtomicStrongCAS32: |
26851 | case Opcode::BranchAtomicStrongCAS64: |
26852 | case Opcode::AtomicAdd8: |
26853 | case Opcode::AtomicAdd16: |
26854 | case Opcode::AtomicAdd32: |
26855 | case Opcode::AtomicAdd64: |
26856 | case Opcode::AtomicSub8: |
26857 | case Opcode::AtomicSub16: |
26858 | case Opcode::AtomicSub32: |
26859 | case Opcode::AtomicSub64: |
26860 | case Opcode::AtomicAnd8: |
26861 | case Opcode::AtomicAnd16: |
26862 | case Opcode::AtomicAnd32: |
26863 | case Opcode::AtomicAnd64: |
26864 | case Opcode::AtomicOr8: |
26865 | case Opcode::AtomicOr16: |
26866 | case Opcode::AtomicOr32: |
26867 | case Opcode::AtomicOr64: |
26868 | case Opcode::AtomicXor8: |
26869 | case Opcode::AtomicXor16: |
26870 | case Opcode::AtomicXor32: |
26871 | case Opcode::AtomicXor64: |
26872 | case Opcode::AtomicNeg8: |
26873 | case Opcode::AtomicNeg16: |
26874 | case Opcode::AtomicNeg32: |
26875 | case Opcode::AtomicNeg64: |
26876 | case Opcode::AtomicNot8: |
26877 | case Opcode::AtomicNot16: |
26878 | case Opcode::AtomicNot32: |
26879 | case Opcode::AtomicNot64: |
26880 | case Opcode::AtomicXchgAdd8: |
26881 | case Opcode::AtomicXchgAdd16: |
26882 | case Opcode::AtomicXchgAdd32: |
26883 | case Opcode::AtomicXchgAdd64: |
26884 | case Opcode::AtomicXchg8: |
26885 | case Opcode::AtomicXchg16: |
26886 | case Opcode::AtomicXchg32: |
26887 | case Opcode::AtomicXchg64: |
26888 | case Opcode::LoadLink8: |
26889 | case Opcode::LoadLinkAcq8: |
26890 | case Opcode::StoreCond8: |
26891 | case Opcode::StoreCondRel8: |
26892 | case Opcode::LoadLink16: |
26893 | case Opcode::LoadLinkAcq16: |
26894 | case Opcode::StoreCond16: |
26895 | case Opcode::StoreCondRel16: |
26896 | case Opcode::LoadLink32: |
26897 | case Opcode::LoadLinkAcq32: |
26898 | case Opcode::StoreCond32: |
26899 | case Opcode::StoreCondRel32: |
26900 | case Opcode::LoadLink64: |
26901 | case Opcode::LoadLinkAcq64: |
26902 | case Opcode::StoreCond64: |
26903 | case Opcode::StoreCondRel64: |
26904 | case Opcode::MemoryFence: |
26905 | case Opcode::StoreFence: |
26906 | case Opcode::LoadFence: |
26907 | return true; |
26908 | case Opcode::EntrySwitch: |
26909 | return EntrySwitchCustom::hasNonArgNonControlEffects(*this); |
26910 | case Opcode::Shuffle: |
26911 | return ShuffleCustom::hasNonArgNonControlEffects(*this); |
26912 | case Opcode::Patch: |
26913 | return PatchCustom::hasNonArgNonControlEffects(*this); |
26914 | case Opcode::CCall: |
26915 | return CCallCustom::hasNonArgNonControlEffects(*this); |
26916 | case Opcode::ColdCCall: |
26917 | return ColdCCallCustom::hasNonArgNonControlEffects(*this); |
26918 | case Opcode::WasmBoundsCheck: |
26919 | return WasmBoundsCheckCustom::hasNonArgNonControlEffects(*this); |
26920 | default: |
26921 | return false; |
26922 | } |
26923 | } |
26924 | bool Inst::hasNonArgEffects() |
26925 | { |
26926 | if (kind.effects) |
26927 | return true; |
26928 | switch (kind.opcode) { |
26929 | case Opcode::LoadAcq8: |
26930 | case Opcode::StoreRel8: |
26931 | case Opcode::LoadAcq8SignedExtendTo32: |
26932 | case Opcode::LoadAcq16: |
26933 | case Opcode::LoadAcq16SignedExtendTo32: |
26934 | case Opcode::StoreRel16: |
26935 | case Opcode::LoadAcq32: |
26936 | case Opcode::StoreRel32: |
26937 | case Opcode::LoadAcq64: |
26938 | case Opcode::StoreRel64: |
26939 | case Opcode::Xchg8: |
26940 | case Opcode::Xchg16: |
26941 | case Opcode::Xchg32: |
26942 | case Opcode::Xchg64: |
26943 | case Opcode::AtomicStrongCAS8: |
26944 | case Opcode::AtomicStrongCAS16: |
26945 | case Opcode::AtomicStrongCAS32: |
26946 | case Opcode::AtomicStrongCAS64: |
26947 | case Opcode::BranchAtomicStrongCAS8: |
26948 | case Opcode::BranchAtomicStrongCAS16: |
26949 | case Opcode::BranchAtomicStrongCAS32: |
26950 | case Opcode::BranchAtomicStrongCAS64: |
26951 | case Opcode::AtomicAdd8: |
26952 | case Opcode::AtomicAdd16: |
26953 | case Opcode::AtomicAdd32: |
26954 | case Opcode::AtomicAdd64: |
26955 | case Opcode::AtomicSub8: |
26956 | case Opcode::AtomicSub16: |
26957 | case Opcode::AtomicSub32: |
26958 | case Opcode::AtomicSub64: |
26959 | case Opcode::AtomicAnd8: |
26960 | case Opcode::AtomicAnd16: |
26961 | case Opcode::AtomicAnd32: |
26962 | case Opcode::AtomicAnd64: |
26963 | case Opcode::AtomicOr8: |
26964 | case Opcode::AtomicOr16: |
26965 | case Opcode::AtomicOr32: |
26966 | case Opcode::AtomicOr64: |
26967 | case Opcode::AtomicXor8: |
26968 | case Opcode::AtomicXor16: |
26969 | case Opcode::AtomicXor32: |
26970 | case Opcode::AtomicXor64: |
26971 | case Opcode::AtomicNeg8: |
26972 | case Opcode::AtomicNeg16: |
26973 | case Opcode::AtomicNeg32: |
26974 | case Opcode::AtomicNeg64: |
26975 | case Opcode::AtomicNot8: |
26976 | case Opcode::AtomicNot16: |
26977 | case Opcode::AtomicNot32: |
26978 | case Opcode::AtomicNot64: |
26979 | case Opcode::AtomicXchgAdd8: |
26980 | case Opcode::AtomicXchgAdd16: |
26981 | case Opcode::AtomicXchgAdd32: |
26982 | case Opcode::AtomicXchgAdd64: |
26983 | case Opcode::AtomicXchg8: |
26984 | case Opcode::AtomicXchg16: |
26985 | case Opcode::AtomicXchg32: |
26986 | case Opcode::AtomicXchg64: |
26987 | case Opcode::LoadLink8: |
26988 | case Opcode::LoadLinkAcq8: |
26989 | case Opcode::StoreCond8: |
26990 | case Opcode::StoreCondRel8: |
26991 | case Opcode::LoadLink16: |
26992 | case Opcode::LoadLinkAcq16: |
26993 | case Opcode::StoreCond16: |
26994 | case Opcode::StoreCondRel16: |
26995 | case Opcode::LoadLink32: |
26996 | case Opcode::LoadLinkAcq32: |
26997 | case Opcode::StoreCond32: |
26998 | case Opcode::StoreCondRel32: |
26999 | case Opcode::LoadLink64: |
27000 | case Opcode::LoadLinkAcq64: |
27001 | case Opcode::StoreCond64: |
27002 | case Opcode::StoreCondRel64: |
27003 | case Opcode::Branch8: |
27004 | case Opcode::Branch32: |
27005 | case Opcode::Branch64: |
27006 | case Opcode::BranchTest8: |
27007 | case Opcode::BranchTest32: |
27008 | case Opcode::BranchTest64: |
27009 | case Opcode::BranchDouble: |
27010 | case Opcode::BranchFloat: |
27011 | case Opcode::BranchAdd32: |
27012 | case Opcode::BranchAdd64: |
27013 | case Opcode::BranchMul32: |
27014 | case Opcode::BranchMul64: |
27015 | case Opcode::BranchSub32: |
27016 | case Opcode::BranchSub64: |
27017 | case Opcode::BranchNeg32: |
27018 | case Opcode::BranchNeg64: |
27019 | case Opcode::MemoryFence: |
27020 | case Opcode::StoreFence: |
27021 | case Opcode::LoadFence: |
27022 | case Opcode::Jump: |
27023 | case Opcode::RetVoid: |
27024 | case Opcode::Ret32: |
27025 | case Opcode::Ret64: |
27026 | case Opcode::RetFloat: |
27027 | case Opcode::RetDouble: |
27028 | case Opcode::Oops: |
27029 | return true; |
27030 | case Opcode::EntrySwitch: |
27031 | return EntrySwitchCustom::hasNonArgEffects(*this); |
27032 | case Opcode::Shuffle: |
27033 | return ShuffleCustom::hasNonArgEffects(*this); |
27034 | case Opcode::Patch: |
27035 | return PatchCustom::hasNonArgEffects(*this); |
27036 | case Opcode::CCall: |
27037 | return CCallCustom::hasNonArgEffects(*this); |
27038 | case Opcode::ColdCCall: |
27039 | return ColdCCallCustom::hasNonArgEffects(*this); |
27040 | case Opcode::WasmBoundsCheck: |
27041 | return WasmBoundsCheckCustom::hasNonArgEffects(*this); |
27042 | default: |
27043 | return false; |
27044 | } |
27045 | } |
27046 | CCallHelpers::Jump Inst::generate(CCallHelpers& jit, GenerationContext& context) |
27047 | { |
27048 | UNUSED_PARAM(jit); |
27049 | UNUSED_PARAM(context); |
27050 | CCallHelpers::Jump result; |
27051 | switch (this->kind.opcode) { |
27052 | case Opcode::Nop: |
27053 | jit.nop(); |
27054 | OPGEN_RETURN(result); |
27055 | break; |
27056 | break; |
27057 | case Opcode::Add32: |
27058 | switch (this->args.size()) { |
27059 | case 3: |
27060 | switch (this->args[0].kind()) { |
27061 | case Arg::Imm: |
27062 | jit.add32(args[0].asTrustedImm32(), args[1].gpr(), args[2].gpr()); |
27063 | OPGEN_RETURN(result); |
27064 | break; |
27065 | break; |
27066 | case Arg::Tmp: |
27067 | jit.add32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27068 | OPGEN_RETURN(result); |
27069 | break; |
27070 | break; |
27071 | default: |
27072 | break; |
27073 | } |
27074 | break; |
27075 | case 2: |
27076 | switch (this->args[0].kind()) { |
27077 | case Arg::Tmp: |
27078 | switch (this->args[1].kind()) { |
27079 | case Arg::Tmp: |
27080 | jit.add32(args[0].gpr(), args[1].gpr()); |
27081 | OPGEN_RETURN(result); |
27082 | break; |
27083 | break; |
27084 | case Arg::Addr: |
27085 | case Arg::Stack: |
27086 | case Arg::CallArg: |
27087 | #if CPU(X86) || CPU(X86_64) |
27088 | jit.add32(args[0].gpr(), args[1].asAddress()); |
27089 | OPGEN_RETURN(result); |
27090 | #endif |
27091 | break; |
27092 | break; |
27093 | case Arg::Index: |
27094 | #if CPU(X86) || CPU(X86_64) |
27095 | jit.add32(args[0].gpr(), args[1].asBaseIndex()); |
27096 | OPGEN_RETURN(result); |
27097 | #endif |
27098 | break; |
27099 | break; |
27100 | default: |
27101 | break; |
27102 | } |
27103 | break; |
27104 | case Arg::Imm: |
27105 | switch (this->args[1].kind()) { |
27106 | case Arg::Addr: |
27107 | case Arg::Stack: |
27108 | case Arg::CallArg: |
27109 | #if CPU(X86) || CPU(X86_64) |
27110 | jit.add32(args[0].asTrustedImm32(), args[1].asAddress()); |
27111 | OPGEN_RETURN(result); |
27112 | #endif |
27113 | break; |
27114 | break; |
27115 | case Arg::Index: |
27116 | #if CPU(X86) || CPU(X86_64) |
27117 | jit.add32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
27118 | OPGEN_RETURN(result); |
27119 | #endif |
27120 | break; |
27121 | break; |
27122 | case Arg::Tmp: |
27123 | jit.add32(args[0].asTrustedImm32(), args[1].gpr()); |
27124 | OPGEN_RETURN(result); |
27125 | break; |
27126 | break; |
27127 | default: |
27128 | break; |
27129 | } |
27130 | break; |
27131 | case Arg::Addr: |
27132 | case Arg::Stack: |
27133 | case Arg::CallArg: |
27134 | #if CPU(X86) || CPU(X86_64) |
27135 | jit.add32(args[0].asAddress(), args[1].gpr()); |
27136 | OPGEN_RETURN(result); |
27137 | #endif |
27138 | break; |
27139 | break; |
27140 | case Arg::Index: |
27141 | #if CPU(X86) || CPU(X86_64) |
27142 | jit.add32(args[0].asBaseIndex(), args[1].gpr()); |
27143 | OPGEN_RETURN(result); |
27144 | #endif |
27145 | break; |
27146 | break; |
27147 | default: |
27148 | break; |
27149 | } |
27150 | break; |
27151 | default: |
27152 | break; |
27153 | } |
27154 | break; |
27155 | case Opcode::Add8: |
27156 | switch (this->args[0].kind()) { |
27157 | case Arg::Imm: |
27158 | switch (this->args[1].kind()) { |
27159 | case Arg::Addr: |
27160 | case Arg::Stack: |
27161 | case Arg::CallArg: |
27162 | #if CPU(X86) || CPU(X86_64) |
27163 | jit.add8(args[0].asTrustedImm32(), args[1].asAddress()); |
27164 | OPGEN_RETURN(result); |
27165 | #endif |
27166 | break; |
27167 | break; |
27168 | case Arg::Index: |
27169 | #if CPU(X86) || CPU(X86_64) |
27170 | jit.add8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
27171 | OPGEN_RETURN(result); |
27172 | #endif |
27173 | break; |
27174 | break; |
27175 | default: |
27176 | break; |
27177 | } |
27178 | break; |
27179 | case Arg::Tmp: |
27180 | switch (this->args[1].kind()) { |
27181 | case Arg::Addr: |
27182 | case Arg::Stack: |
27183 | case Arg::CallArg: |
27184 | #if CPU(X86) || CPU(X86_64) |
27185 | jit.add8(args[0].gpr(), args[1].asAddress()); |
27186 | OPGEN_RETURN(result); |
27187 | #endif |
27188 | break; |
27189 | break; |
27190 | case Arg::Index: |
27191 | #if CPU(X86) || CPU(X86_64) |
27192 | jit.add8(args[0].gpr(), args[1].asBaseIndex()); |
27193 | OPGEN_RETURN(result); |
27194 | #endif |
27195 | break; |
27196 | break; |
27197 | default: |
27198 | break; |
27199 | } |
27200 | break; |
27201 | default: |
27202 | break; |
27203 | } |
27204 | break; |
27205 | case Opcode::Add16: |
27206 | switch (this->args[0].kind()) { |
27207 | case Arg::Imm: |
27208 | switch (this->args[1].kind()) { |
27209 | case Arg::Addr: |
27210 | case Arg::Stack: |
27211 | case Arg::CallArg: |
27212 | #if CPU(X86) || CPU(X86_64) |
27213 | jit.add16(args[0].asTrustedImm32(), args[1].asAddress()); |
27214 | OPGEN_RETURN(result); |
27215 | #endif |
27216 | break; |
27217 | break; |
27218 | case Arg::Index: |
27219 | #if CPU(X86) || CPU(X86_64) |
27220 | jit.add16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
27221 | OPGEN_RETURN(result); |
27222 | #endif |
27223 | break; |
27224 | break; |
27225 | default: |
27226 | break; |
27227 | } |
27228 | break; |
27229 | case Arg::Tmp: |
27230 | switch (this->args[1].kind()) { |
27231 | case Arg::Addr: |
27232 | case Arg::Stack: |
27233 | case Arg::CallArg: |
27234 | #if CPU(X86) || CPU(X86_64) |
27235 | jit.add16(args[0].gpr(), args[1].asAddress()); |
27236 | OPGEN_RETURN(result); |
27237 | #endif |
27238 | break; |
27239 | break; |
27240 | case Arg::Index: |
27241 | #if CPU(X86) || CPU(X86_64) |
27242 | jit.add16(args[0].gpr(), args[1].asBaseIndex()); |
27243 | OPGEN_RETURN(result); |
27244 | #endif |
27245 | break; |
27246 | break; |
27247 | default: |
27248 | break; |
27249 | } |
27250 | break; |
27251 | default: |
27252 | break; |
27253 | } |
27254 | break; |
27255 | case Opcode::Add64: |
27256 | switch (this->args.size()) { |
27257 | case 2: |
27258 | switch (this->args[0].kind()) { |
27259 | case Arg::Tmp: |
27260 | switch (this->args[1].kind()) { |
27261 | case Arg::Tmp: |
27262 | #if CPU(X86_64) || CPU(ARM64) |
27263 | jit.add64(args[0].gpr(), args[1].gpr()); |
27264 | OPGEN_RETURN(result); |
27265 | #endif |
27266 | break; |
27267 | break; |
27268 | case Arg::Addr: |
27269 | case Arg::Stack: |
27270 | case Arg::CallArg: |
27271 | #if CPU(X86_64) |
27272 | jit.add64(args[0].gpr(), args[1].asAddress()); |
27273 | OPGEN_RETURN(result); |
27274 | #endif |
27275 | break; |
27276 | break; |
27277 | case Arg::Index: |
27278 | #if CPU(X86_64) |
27279 | jit.add64(args[0].gpr(), args[1].asBaseIndex()); |
27280 | OPGEN_RETURN(result); |
27281 | #endif |
27282 | break; |
27283 | break; |
27284 | default: |
27285 | break; |
27286 | } |
27287 | break; |
27288 | case Arg::Imm: |
27289 | switch (this->args[1].kind()) { |
27290 | case Arg::Addr: |
27291 | case Arg::Stack: |
27292 | case Arg::CallArg: |
27293 | #if CPU(X86_64) |
27294 | jit.add64(args[0].asTrustedImm32(), args[1].asAddress()); |
27295 | OPGEN_RETURN(result); |
27296 | #endif |
27297 | break; |
27298 | break; |
27299 | case Arg::Index: |
27300 | #if CPU(X86_64) |
27301 | jit.add64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
27302 | OPGEN_RETURN(result); |
27303 | #endif |
27304 | break; |
27305 | break; |
27306 | case Arg::Tmp: |
27307 | #if CPU(X86_64) || CPU(ARM64) |
27308 | jit.add64(args[0].asTrustedImm32(), args[1].gpr()); |
27309 | OPGEN_RETURN(result); |
27310 | #endif |
27311 | break; |
27312 | break; |
27313 | default: |
27314 | break; |
27315 | } |
27316 | break; |
27317 | case Arg::Addr: |
27318 | case Arg::Stack: |
27319 | case Arg::CallArg: |
27320 | #if CPU(X86_64) |
27321 | jit.add64(args[0].asAddress(), args[1].gpr()); |
27322 | OPGEN_RETURN(result); |
27323 | #endif |
27324 | break; |
27325 | break; |
27326 | case Arg::Index: |
27327 | #if CPU(X86_64) |
27328 | jit.add64(args[0].asBaseIndex(), args[1].gpr()); |
27329 | OPGEN_RETURN(result); |
27330 | #endif |
27331 | break; |
27332 | break; |
27333 | default: |
27334 | break; |
27335 | } |
27336 | break; |
27337 | case 3: |
27338 | switch (this->args[0].kind()) { |
27339 | case Arg::Imm: |
27340 | #if CPU(X86_64) || CPU(ARM64) |
27341 | jit.add64(args[0].asTrustedImm32(), args[1].gpr(), args[2].gpr()); |
27342 | OPGEN_RETURN(result); |
27343 | #endif |
27344 | break; |
27345 | break; |
27346 | case Arg::Tmp: |
27347 | #if CPU(X86_64) || CPU(ARM64) |
27348 | jit.add64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27349 | OPGEN_RETURN(result); |
27350 | #endif |
27351 | break; |
27352 | break; |
27353 | default: |
27354 | break; |
27355 | } |
27356 | break; |
27357 | default: |
27358 | break; |
27359 | } |
27360 | break; |
27361 | case Opcode::AddDouble: |
27362 | switch (this->args.size()) { |
27363 | case 3: |
27364 | switch (this->args[0].kind()) { |
27365 | case Arg::Tmp: |
27366 | switch (this->args[1].kind()) { |
27367 | case Arg::Tmp: |
27368 | jit.addDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
27369 | OPGEN_RETURN(result); |
27370 | break; |
27371 | break; |
27372 | case Arg::Addr: |
27373 | case Arg::Stack: |
27374 | case Arg::CallArg: |
27375 | #if CPU(X86) || CPU(X86_64) |
27376 | jit.addDouble(args[0].fpr(), args[1].asAddress(), args[2].fpr()); |
27377 | OPGEN_RETURN(result); |
27378 | #endif |
27379 | break; |
27380 | break; |
27381 | default: |
27382 | break; |
27383 | } |
27384 | break; |
27385 | case Arg::Addr: |
27386 | case Arg::Stack: |
27387 | case Arg::CallArg: |
27388 | #if CPU(X86) || CPU(X86_64) |
27389 | jit.addDouble(args[0].asAddress(), args[1].fpr(), args[2].fpr()); |
27390 | OPGEN_RETURN(result); |
27391 | #endif |
27392 | break; |
27393 | break; |
27394 | case Arg::Index: |
27395 | #if CPU(X86) || CPU(X86_64) |
27396 | jit.addDouble(args[0].asBaseIndex(), args[1].fpr(), args[2].fpr()); |
27397 | OPGEN_RETURN(result); |
27398 | #endif |
27399 | break; |
27400 | break; |
27401 | default: |
27402 | break; |
27403 | } |
27404 | break; |
27405 | case 2: |
27406 | switch (this->args[0].kind()) { |
27407 | case Arg::Tmp: |
27408 | #if CPU(X86) || CPU(X86_64) |
27409 | jit.addDouble(args[0].fpr(), args[1].fpr()); |
27410 | OPGEN_RETURN(result); |
27411 | #endif |
27412 | break; |
27413 | break; |
27414 | case Arg::Addr: |
27415 | case Arg::Stack: |
27416 | case Arg::CallArg: |
27417 | #if CPU(X86) || CPU(X86_64) |
27418 | jit.addDouble(args[0].asAddress(), args[1].fpr()); |
27419 | OPGEN_RETURN(result); |
27420 | #endif |
27421 | break; |
27422 | break; |
27423 | default: |
27424 | break; |
27425 | } |
27426 | break; |
27427 | default: |
27428 | break; |
27429 | } |
27430 | break; |
27431 | case Opcode::AddFloat: |
27432 | switch (this->args.size()) { |
27433 | case 3: |
27434 | switch (this->args[0].kind()) { |
27435 | case Arg::Tmp: |
27436 | switch (this->args[1].kind()) { |
27437 | case Arg::Tmp: |
27438 | jit.addFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
27439 | OPGEN_RETURN(result); |
27440 | break; |
27441 | break; |
27442 | case Arg::Addr: |
27443 | case Arg::Stack: |
27444 | case Arg::CallArg: |
27445 | #if CPU(X86) || CPU(X86_64) |
27446 | jit.addFloat(args[0].fpr(), args[1].asAddress(), args[2].fpr()); |
27447 | OPGEN_RETURN(result); |
27448 | #endif |
27449 | break; |
27450 | break; |
27451 | default: |
27452 | break; |
27453 | } |
27454 | break; |
27455 | case Arg::Addr: |
27456 | case Arg::Stack: |
27457 | case Arg::CallArg: |
27458 | #if CPU(X86) || CPU(X86_64) |
27459 | jit.addFloat(args[0].asAddress(), args[1].fpr(), args[2].fpr()); |
27460 | OPGEN_RETURN(result); |
27461 | #endif |
27462 | break; |
27463 | break; |
27464 | case Arg::Index: |
27465 | #if CPU(X86) || CPU(X86_64) |
27466 | jit.addFloat(args[0].asBaseIndex(), args[1].fpr(), args[2].fpr()); |
27467 | OPGEN_RETURN(result); |
27468 | #endif |
27469 | break; |
27470 | break; |
27471 | default: |
27472 | break; |
27473 | } |
27474 | break; |
27475 | case 2: |
27476 | switch (this->args[0].kind()) { |
27477 | case Arg::Tmp: |
27478 | #if CPU(X86) || CPU(X86_64) |
27479 | jit.addFloat(args[0].fpr(), args[1].fpr()); |
27480 | OPGEN_RETURN(result); |
27481 | #endif |
27482 | break; |
27483 | break; |
27484 | case Arg::Addr: |
27485 | case Arg::Stack: |
27486 | case Arg::CallArg: |
27487 | #if CPU(X86) || CPU(X86_64) |
27488 | jit.addFloat(args[0].asAddress(), args[1].fpr()); |
27489 | OPGEN_RETURN(result); |
27490 | #endif |
27491 | break; |
27492 | break; |
27493 | default: |
27494 | break; |
27495 | } |
27496 | break; |
27497 | default: |
27498 | break; |
27499 | } |
27500 | break; |
27501 | case Opcode::Sub32: |
27502 | switch (this->args.size()) { |
27503 | case 2: |
27504 | switch (this->args[0].kind()) { |
27505 | case Arg::Tmp: |
27506 | switch (this->args[1].kind()) { |
27507 | case Arg::Tmp: |
27508 | jit.sub32(args[0].gpr(), args[1].gpr()); |
27509 | OPGEN_RETURN(result); |
27510 | break; |
27511 | break; |
27512 | case Arg::Addr: |
27513 | case Arg::Stack: |
27514 | case Arg::CallArg: |
27515 | #if CPU(X86) || CPU(X86_64) |
27516 | jit.sub32(args[0].gpr(), args[1].asAddress()); |
27517 | OPGEN_RETURN(result); |
27518 | #endif |
27519 | break; |
27520 | break; |
27521 | case Arg::Index: |
27522 | #if CPU(X86) || CPU(X86_64) |
27523 | jit.sub32(args[0].gpr(), args[1].asBaseIndex()); |
27524 | OPGEN_RETURN(result); |
27525 | #endif |
27526 | break; |
27527 | break; |
27528 | default: |
27529 | break; |
27530 | } |
27531 | break; |
27532 | case Arg::Imm: |
27533 | switch (this->args[1].kind()) { |
27534 | case Arg::Addr: |
27535 | case Arg::Stack: |
27536 | case Arg::CallArg: |
27537 | #if CPU(X86) || CPU(X86_64) |
27538 | jit.sub32(args[0].asTrustedImm32(), args[1].asAddress()); |
27539 | OPGEN_RETURN(result); |
27540 | #endif |
27541 | break; |
27542 | break; |
27543 | case Arg::Index: |
27544 | #if CPU(X86) || CPU(X86_64) |
27545 | jit.sub32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
27546 | OPGEN_RETURN(result); |
27547 | #endif |
27548 | break; |
27549 | break; |
27550 | case Arg::Tmp: |
27551 | jit.sub32(args[0].asTrustedImm32(), args[1].gpr()); |
27552 | OPGEN_RETURN(result); |
27553 | break; |
27554 | break; |
27555 | default: |
27556 | break; |
27557 | } |
27558 | break; |
27559 | case Arg::Addr: |
27560 | case Arg::Stack: |
27561 | case Arg::CallArg: |
27562 | #if CPU(X86) || CPU(X86_64) |
27563 | jit.sub32(args[0].asAddress(), args[1].gpr()); |
27564 | OPGEN_RETURN(result); |
27565 | #endif |
27566 | break; |
27567 | break; |
27568 | case Arg::Index: |
27569 | #if CPU(X86) || CPU(X86_64) |
27570 | jit.sub32(args[0].asBaseIndex(), args[1].gpr()); |
27571 | OPGEN_RETURN(result); |
27572 | #endif |
27573 | break; |
27574 | break; |
27575 | default: |
27576 | break; |
27577 | } |
27578 | break; |
27579 | case 3: |
27580 | #if CPU(ARM64) |
27581 | jit.sub32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27582 | OPGEN_RETURN(result); |
27583 | #endif |
27584 | break; |
27585 | break; |
27586 | default: |
27587 | break; |
27588 | } |
27589 | break; |
27590 | case Opcode::Sub64: |
27591 | switch (this->args.size()) { |
27592 | case 2: |
27593 | switch (this->args[0].kind()) { |
27594 | case Arg::Tmp: |
27595 | switch (this->args[1].kind()) { |
27596 | case Arg::Tmp: |
27597 | #if CPU(X86_64) || CPU(ARM64) |
27598 | jit.sub64(args[0].gpr(), args[1].gpr()); |
27599 | OPGEN_RETURN(result); |
27600 | #endif |
27601 | break; |
27602 | break; |
27603 | case Arg::Addr: |
27604 | case Arg::Stack: |
27605 | case Arg::CallArg: |
27606 | #if CPU(X86_64) |
27607 | jit.sub64(args[0].gpr(), args[1].asAddress()); |
27608 | OPGEN_RETURN(result); |
27609 | #endif |
27610 | break; |
27611 | break; |
27612 | case Arg::Index: |
27613 | #if CPU(X86_64) |
27614 | jit.sub64(args[0].gpr(), args[1].asBaseIndex()); |
27615 | OPGEN_RETURN(result); |
27616 | #endif |
27617 | break; |
27618 | break; |
27619 | default: |
27620 | break; |
27621 | } |
27622 | break; |
27623 | case Arg::Imm: |
27624 | switch (this->args[1].kind()) { |
27625 | case Arg::Addr: |
27626 | case Arg::Stack: |
27627 | case Arg::CallArg: |
27628 | #if CPU(X86_64) |
27629 | jit.sub64(args[0].asTrustedImm32(), args[1].asAddress()); |
27630 | OPGEN_RETURN(result); |
27631 | #endif |
27632 | break; |
27633 | break; |
27634 | case Arg::Index: |
27635 | #if CPU(X86_64) |
27636 | jit.sub64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
27637 | OPGEN_RETURN(result); |
27638 | #endif |
27639 | break; |
27640 | break; |
27641 | case Arg::Tmp: |
27642 | #if CPU(X86_64) || CPU(ARM64) |
27643 | jit.sub64(args[0].asTrustedImm32(), args[1].gpr()); |
27644 | OPGEN_RETURN(result); |
27645 | #endif |
27646 | break; |
27647 | break; |
27648 | default: |
27649 | break; |
27650 | } |
27651 | break; |
27652 | case Arg::Addr: |
27653 | case Arg::Stack: |
27654 | case Arg::CallArg: |
27655 | #if CPU(X86_64) |
27656 | jit.sub64(args[0].asAddress(), args[1].gpr()); |
27657 | OPGEN_RETURN(result); |
27658 | #endif |
27659 | break; |
27660 | break; |
27661 | case Arg::Index: |
27662 | #if CPU(X86_64) |
27663 | jit.sub64(args[0].asBaseIndex(), args[1].gpr()); |
27664 | OPGEN_RETURN(result); |
27665 | #endif |
27666 | break; |
27667 | break; |
27668 | default: |
27669 | break; |
27670 | } |
27671 | break; |
27672 | case 3: |
27673 | #if CPU(ARM64) |
27674 | jit.sub64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27675 | OPGEN_RETURN(result); |
27676 | #endif |
27677 | break; |
27678 | break; |
27679 | default: |
27680 | break; |
27681 | } |
27682 | break; |
27683 | case Opcode::SubDouble: |
27684 | switch (this->args.size()) { |
27685 | case 3: |
27686 | switch (this->args[1].kind()) { |
27687 | case Arg::Tmp: |
27688 | #if CPU(ARM64) |
27689 | jit.subDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
27690 | OPGEN_RETURN(result); |
27691 | #endif |
27692 | break; |
27693 | break; |
27694 | case Arg::Addr: |
27695 | case Arg::Stack: |
27696 | case Arg::CallArg: |
27697 | #if CPU(X86) || CPU(X86_64) |
27698 | jit.subDouble(args[0].fpr(), args[1].asAddress(), args[2].fpr()); |
27699 | OPGEN_RETURN(result); |
27700 | #endif |
27701 | break; |
27702 | break; |
27703 | case Arg::Index: |
27704 | #if CPU(X86) || CPU(X86_64) |
27705 | jit.subDouble(args[0].fpr(), args[1].asBaseIndex(), args[2].fpr()); |
27706 | OPGEN_RETURN(result); |
27707 | #endif |
27708 | break; |
27709 | break; |
27710 | default: |
27711 | break; |
27712 | } |
27713 | break; |
27714 | case 2: |
27715 | switch (this->args[0].kind()) { |
27716 | case Arg::Tmp: |
27717 | #if CPU(X86) || CPU(X86_64) |
27718 | jit.subDouble(args[0].fpr(), args[1].fpr()); |
27719 | OPGEN_RETURN(result); |
27720 | #endif |
27721 | break; |
27722 | break; |
27723 | case Arg::Addr: |
27724 | case Arg::Stack: |
27725 | case Arg::CallArg: |
27726 | #if CPU(X86) || CPU(X86_64) |
27727 | jit.subDouble(args[0].asAddress(), args[1].fpr()); |
27728 | OPGEN_RETURN(result); |
27729 | #endif |
27730 | break; |
27731 | break; |
27732 | default: |
27733 | break; |
27734 | } |
27735 | break; |
27736 | default: |
27737 | break; |
27738 | } |
27739 | break; |
27740 | case Opcode::SubFloat: |
27741 | switch (this->args.size()) { |
27742 | case 3: |
27743 | switch (this->args[1].kind()) { |
27744 | case Arg::Tmp: |
27745 | #if CPU(ARM64) |
27746 | jit.subFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
27747 | OPGEN_RETURN(result); |
27748 | #endif |
27749 | break; |
27750 | break; |
27751 | case Arg::Addr: |
27752 | case Arg::Stack: |
27753 | case Arg::CallArg: |
27754 | #if CPU(X86) || CPU(X86_64) |
27755 | jit.subFloat(args[0].fpr(), args[1].asAddress(), args[2].fpr()); |
27756 | OPGEN_RETURN(result); |
27757 | #endif |
27758 | break; |
27759 | break; |
27760 | case Arg::Index: |
27761 | #if CPU(X86) || CPU(X86_64) |
27762 | jit.subFloat(args[0].fpr(), args[1].asBaseIndex(), args[2].fpr()); |
27763 | OPGEN_RETURN(result); |
27764 | #endif |
27765 | break; |
27766 | break; |
27767 | default: |
27768 | break; |
27769 | } |
27770 | break; |
27771 | case 2: |
27772 | switch (this->args[0].kind()) { |
27773 | case Arg::Tmp: |
27774 | #if CPU(X86) || CPU(X86_64) |
27775 | jit.subFloat(args[0].fpr(), args[1].fpr()); |
27776 | OPGEN_RETURN(result); |
27777 | #endif |
27778 | break; |
27779 | break; |
27780 | case Arg::Addr: |
27781 | case Arg::Stack: |
27782 | case Arg::CallArg: |
27783 | #if CPU(X86) || CPU(X86_64) |
27784 | jit.subFloat(args[0].asAddress(), args[1].fpr()); |
27785 | OPGEN_RETURN(result); |
27786 | #endif |
27787 | break; |
27788 | break; |
27789 | default: |
27790 | break; |
27791 | } |
27792 | break; |
27793 | default: |
27794 | break; |
27795 | } |
27796 | break; |
27797 | case Opcode::Neg32: |
27798 | switch (this->args[0].kind()) { |
27799 | case Arg::Tmp: |
27800 | jit.neg32(args[0].gpr()); |
27801 | OPGEN_RETURN(result); |
27802 | break; |
27803 | break; |
27804 | case Arg::Addr: |
27805 | case Arg::Stack: |
27806 | case Arg::CallArg: |
27807 | #if CPU(X86) || CPU(X86_64) |
27808 | jit.neg32(args[0].asAddress()); |
27809 | OPGEN_RETURN(result); |
27810 | #endif |
27811 | break; |
27812 | break; |
27813 | case Arg::Index: |
27814 | #if CPU(X86) || CPU(X86_64) |
27815 | jit.neg32(args[0].asBaseIndex()); |
27816 | OPGEN_RETURN(result); |
27817 | #endif |
27818 | break; |
27819 | break; |
27820 | default: |
27821 | break; |
27822 | } |
27823 | break; |
27824 | case Opcode::Neg64: |
27825 | switch (this->args[0].kind()) { |
27826 | case Arg::Tmp: |
27827 | #if CPU(X86_64) || CPU(ARM64) |
27828 | jit.neg64(args[0].gpr()); |
27829 | OPGEN_RETURN(result); |
27830 | #endif |
27831 | break; |
27832 | break; |
27833 | case Arg::Addr: |
27834 | case Arg::Stack: |
27835 | case Arg::CallArg: |
27836 | #if CPU(X86_64) |
27837 | jit.neg64(args[0].asAddress()); |
27838 | OPGEN_RETURN(result); |
27839 | #endif |
27840 | break; |
27841 | break; |
27842 | case Arg::Index: |
27843 | #if CPU(X86_64) |
27844 | jit.neg64(args[0].asBaseIndex()); |
27845 | OPGEN_RETURN(result); |
27846 | #endif |
27847 | break; |
27848 | break; |
27849 | default: |
27850 | break; |
27851 | } |
27852 | break; |
27853 | case Opcode::NegateDouble: |
27854 | #if CPU(ARM64) |
27855 | jit.negateDouble(args[0].fpr(), args[1].fpr()); |
27856 | OPGEN_RETURN(result); |
27857 | #endif |
27858 | break; |
27859 | break; |
27860 | case Opcode::NegateFloat: |
27861 | #if CPU(ARM64) |
27862 | jit.negateFloat(args[0].fpr(), args[1].fpr()); |
27863 | OPGEN_RETURN(result); |
27864 | #endif |
27865 | break; |
27866 | break; |
27867 | case Opcode::Mul32: |
27868 | switch (this->args.size()) { |
27869 | case 2: |
27870 | switch (this->args[0].kind()) { |
27871 | case Arg::Tmp: |
27872 | jit.mul32(args[0].gpr(), args[1].gpr()); |
27873 | OPGEN_RETURN(result); |
27874 | break; |
27875 | break; |
27876 | case Arg::Addr: |
27877 | case Arg::Stack: |
27878 | case Arg::CallArg: |
27879 | #if CPU(X86) || CPU(X86_64) |
27880 | jit.mul32(args[0].asAddress(), args[1].gpr()); |
27881 | OPGEN_RETURN(result); |
27882 | #endif |
27883 | break; |
27884 | break; |
27885 | default: |
27886 | break; |
27887 | } |
27888 | break; |
27889 | case 3: |
27890 | switch (this->args[0].kind()) { |
27891 | case Arg::Tmp: |
27892 | switch (this->args[1].kind()) { |
27893 | case Arg::Tmp: |
27894 | jit.mul32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27895 | OPGEN_RETURN(result); |
27896 | break; |
27897 | break; |
27898 | case Arg::Addr: |
27899 | case Arg::Stack: |
27900 | case Arg::CallArg: |
27901 | #if CPU(X86) || CPU(X86_64) |
27902 | jit.mul32(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
27903 | OPGEN_RETURN(result); |
27904 | #endif |
27905 | break; |
27906 | break; |
27907 | default: |
27908 | break; |
27909 | } |
27910 | break; |
27911 | case Arg::Addr: |
27912 | case Arg::Stack: |
27913 | case Arg::CallArg: |
27914 | #if CPU(X86) || CPU(X86_64) |
27915 | jit.mul32(args[0].asAddress(), args[1].gpr(), args[2].gpr()); |
27916 | OPGEN_RETURN(result); |
27917 | #endif |
27918 | break; |
27919 | break; |
27920 | case Arg::Imm: |
27921 | #if CPU(X86) || CPU(X86_64) |
27922 | jit.mul32(args[0].asTrustedImm32(), args[1].gpr(), args[2].gpr()); |
27923 | OPGEN_RETURN(result); |
27924 | #endif |
27925 | break; |
27926 | break; |
27927 | default: |
27928 | break; |
27929 | } |
27930 | break; |
27931 | default: |
27932 | break; |
27933 | } |
27934 | break; |
27935 | case Opcode::Mul64: |
27936 | switch (this->args.size()) { |
27937 | case 2: |
27938 | #if CPU(X86_64) || CPU(ARM64) |
27939 | jit.mul64(args[0].gpr(), args[1].gpr()); |
27940 | OPGEN_RETURN(result); |
27941 | #endif |
27942 | break; |
27943 | break; |
27944 | case 3: |
27945 | jit.mul64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27946 | OPGEN_RETURN(result); |
27947 | break; |
27948 | break; |
27949 | default: |
27950 | break; |
27951 | } |
27952 | break; |
27953 | case Opcode::MultiplyAdd32: |
27954 | #if CPU(ARM64) |
27955 | jit.multiplyAdd32(args[0].gpr(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
27956 | OPGEN_RETURN(result); |
27957 | #endif |
27958 | break; |
27959 | break; |
27960 | case Opcode::MultiplyAdd64: |
27961 | #if CPU(ARM64) |
27962 | jit.multiplyAdd64(args[0].gpr(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
27963 | OPGEN_RETURN(result); |
27964 | #endif |
27965 | break; |
27966 | break; |
27967 | case Opcode::MultiplySub32: |
27968 | #if CPU(ARM64) |
27969 | jit.multiplySub32(args[0].gpr(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
27970 | OPGEN_RETURN(result); |
27971 | #endif |
27972 | break; |
27973 | break; |
27974 | case Opcode::MultiplySub64: |
27975 | #if CPU(ARM64) |
27976 | jit.multiplySub64(args[0].gpr(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
27977 | OPGEN_RETURN(result); |
27978 | #endif |
27979 | break; |
27980 | break; |
27981 | case Opcode::MultiplyNeg32: |
27982 | #if CPU(ARM64) |
27983 | jit.multiplyNeg32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27984 | OPGEN_RETURN(result); |
27985 | #endif |
27986 | break; |
27987 | break; |
27988 | case Opcode::MultiplyNeg64: |
27989 | #if CPU(ARM64) |
27990 | jit.multiplyNeg64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27991 | OPGEN_RETURN(result); |
27992 | #endif |
27993 | break; |
27994 | break; |
27995 | case Opcode::Div32: |
27996 | #if CPU(ARM64) |
27997 | jit.div32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
27998 | OPGEN_RETURN(result); |
27999 | #endif |
28000 | break; |
28001 | break; |
28002 | case Opcode::UDiv32: |
28003 | #if CPU(ARM64) |
28004 | jit.uDiv32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28005 | OPGEN_RETURN(result); |
28006 | #endif |
28007 | break; |
28008 | break; |
28009 | case Opcode::Div64: |
28010 | #if CPU(ARM64) |
28011 | jit.div64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28012 | OPGEN_RETURN(result); |
28013 | #endif |
28014 | break; |
28015 | break; |
28016 | case Opcode::UDiv64: |
28017 | #if CPU(ARM64) |
28018 | jit.uDiv64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28019 | OPGEN_RETURN(result); |
28020 | #endif |
28021 | break; |
28022 | break; |
28023 | case Opcode::MulDouble: |
28024 | switch (this->args.size()) { |
28025 | case 3: |
28026 | switch (this->args[0].kind()) { |
28027 | case Arg::Tmp: |
28028 | switch (this->args[1].kind()) { |
28029 | case Arg::Tmp: |
28030 | jit.mulDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28031 | OPGEN_RETURN(result); |
28032 | break; |
28033 | break; |
28034 | case Arg::Addr: |
28035 | case Arg::Stack: |
28036 | case Arg::CallArg: |
28037 | #if CPU(X86) || CPU(X86_64) |
28038 | jit.mulDouble(args[0].fpr(), args[1].asAddress(), args[2].fpr()); |
28039 | OPGEN_RETURN(result); |
28040 | #endif |
28041 | break; |
28042 | break; |
28043 | default: |
28044 | break; |
28045 | } |
28046 | break; |
28047 | case Arg::Addr: |
28048 | case Arg::Stack: |
28049 | case Arg::CallArg: |
28050 | #if CPU(X86) || CPU(X86_64) |
28051 | jit.mulDouble(args[0].asAddress(), args[1].fpr(), args[2].fpr()); |
28052 | OPGEN_RETURN(result); |
28053 | #endif |
28054 | break; |
28055 | break; |
28056 | case Arg::Index: |
28057 | #if CPU(X86) || CPU(X86_64) |
28058 | jit.mulDouble(args[0].asBaseIndex(), args[1].fpr(), args[2].fpr()); |
28059 | OPGEN_RETURN(result); |
28060 | #endif |
28061 | break; |
28062 | break; |
28063 | default: |
28064 | break; |
28065 | } |
28066 | break; |
28067 | case 2: |
28068 | switch (this->args[0].kind()) { |
28069 | case Arg::Tmp: |
28070 | #if CPU(X86) || CPU(X86_64) |
28071 | jit.mulDouble(args[0].fpr(), args[1].fpr()); |
28072 | OPGEN_RETURN(result); |
28073 | #endif |
28074 | break; |
28075 | break; |
28076 | case Arg::Addr: |
28077 | case Arg::Stack: |
28078 | case Arg::CallArg: |
28079 | #if CPU(X86) || CPU(X86_64) |
28080 | jit.mulDouble(args[0].asAddress(), args[1].fpr()); |
28081 | OPGEN_RETURN(result); |
28082 | #endif |
28083 | break; |
28084 | break; |
28085 | default: |
28086 | break; |
28087 | } |
28088 | break; |
28089 | default: |
28090 | break; |
28091 | } |
28092 | break; |
28093 | case Opcode::MulFloat: |
28094 | switch (this->args.size()) { |
28095 | case 3: |
28096 | switch (this->args[0].kind()) { |
28097 | case Arg::Tmp: |
28098 | switch (this->args[1].kind()) { |
28099 | case Arg::Tmp: |
28100 | jit.mulFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28101 | OPGEN_RETURN(result); |
28102 | break; |
28103 | break; |
28104 | case Arg::Addr: |
28105 | case Arg::Stack: |
28106 | case Arg::CallArg: |
28107 | #if CPU(X86) || CPU(X86_64) |
28108 | jit.mulFloat(args[0].fpr(), args[1].asAddress(), args[2].fpr()); |
28109 | OPGEN_RETURN(result); |
28110 | #endif |
28111 | break; |
28112 | break; |
28113 | default: |
28114 | break; |
28115 | } |
28116 | break; |
28117 | case Arg::Addr: |
28118 | case Arg::Stack: |
28119 | case Arg::CallArg: |
28120 | #if CPU(X86) || CPU(X86_64) |
28121 | jit.mulFloat(args[0].asAddress(), args[1].fpr(), args[2].fpr()); |
28122 | OPGEN_RETURN(result); |
28123 | #endif |
28124 | break; |
28125 | break; |
28126 | case Arg::Index: |
28127 | #if CPU(X86) || CPU(X86_64) |
28128 | jit.mulFloat(args[0].asBaseIndex(), args[1].fpr(), args[2].fpr()); |
28129 | OPGEN_RETURN(result); |
28130 | #endif |
28131 | break; |
28132 | break; |
28133 | default: |
28134 | break; |
28135 | } |
28136 | break; |
28137 | case 2: |
28138 | switch (this->args[0].kind()) { |
28139 | case Arg::Tmp: |
28140 | #if CPU(X86) || CPU(X86_64) |
28141 | jit.mulFloat(args[0].fpr(), args[1].fpr()); |
28142 | OPGEN_RETURN(result); |
28143 | #endif |
28144 | break; |
28145 | break; |
28146 | case Arg::Addr: |
28147 | case Arg::Stack: |
28148 | case Arg::CallArg: |
28149 | #if CPU(X86) || CPU(X86_64) |
28150 | jit.mulFloat(args[0].asAddress(), args[1].fpr()); |
28151 | OPGEN_RETURN(result); |
28152 | #endif |
28153 | break; |
28154 | break; |
28155 | default: |
28156 | break; |
28157 | } |
28158 | break; |
28159 | default: |
28160 | break; |
28161 | } |
28162 | break; |
28163 | case Opcode::DivDouble: |
28164 | switch (this->args.size()) { |
28165 | case 3: |
28166 | #if CPU(ARM64) |
28167 | jit.divDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28168 | OPGEN_RETURN(result); |
28169 | #endif |
28170 | break; |
28171 | break; |
28172 | case 2: |
28173 | switch (this->args[0].kind()) { |
28174 | case Arg::Tmp: |
28175 | #if CPU(X86) || CPU(X86_64) |
28176 | jit.divDouble(args[0].fpr(), args[1].fpr()); |
28177 | OPGEN_RETURN(result); |
28178 | #endif |
28179 | break; |
28180 | break; |
28181 | case Arg::Addr: |
28182 | case Arg::Stack: |
28183 | case Arg::CallArg: |
28184 | #if CPU(X86) || CPU(X86_64) |
28185 | jit.divDouble(args[0].asAddress(), args[1].fpr()); |
28186 | OPGEN_RETURN(result); |
28187 | #endif |
28188 | break; |
28189 | break; |
28190 | default: |
28191 | break; |
28192 | } |
28193 | break; |
28194 | default: |
28195 | break; |
28196 | } |
28197 | break; |
28198 | case Opcode::DivFloat: |
28199 | switch (this->args.size()) { |
28200 | case 3: |
28201 | #if CPU(ARM64) |
28202 | jit.divFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28203 | OPGEN_RETURN(result); |
28204 | #endif |
28205 | break; |
28206 | break; |
28207 | case 2: |
28208 | switch (this->args[0].kind()) { |
28209 | case Arg::Tmp: |
28210 | #if CPU(X86) || CPU(X86_64) |
28211 | jit.divFloat(args[0].fpr(), args[1].fpr()); |
28212 | OPGEN_RETURN(result); |
28213 | #endif |
28214 | break; |
28215 | break; |
28216 | case Arg::Addr: |
28217 | case Arg::Stack: |
28218 | case Arg::CallArg: |
28219 | #if CPU(X86) || CPU(X86_64) |
28220 | jit.divFloat(args[0].asAddress(), args[1].fpr()); |
28221 | OPGEN_RETURN(result); |
28222 | #endif |
28223 | break; |
28224 | break; |
28225 | default: |
28226 | break; |
28227 | } |
28228 | break; |
28229 | default: |
28230 | break; |
28231 | } |
28232 | break; |
28233 | case Opcode::X86ConvertToDoubleWord32: |
28234 | #if CPU(X86) || CPU(X86_64) |
28235 | jit.x86ConvertToDoubleWord32(args[0].gpr(), args[1].gpr()); |
28236 | OPGEN_RETURN(result); |
28237 | #endif |
28238 | break; |
28239 | break; |
28240 | case Opcode::X86ConvertToQuadWord64: |
28241 | #if CPU(X86_64) |
28242 | jit.x86ConvertToQuadWord64(args[0].gpr(), args[1].gpr()); |
28243 | OPGEN_RETURN(result); |
28244 | #endif |
28245 | break; |
28246 | break; |
28247 | case Opcode::X86Div32: |
28248 | #if CPU(X86) || CPU(X86_64) |
28249 | jit.x86Div32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28250 | OPGEN_RETURN(result); |
28251 | #endif |
28252 | break; |
28253 | break; |
28254 | case Opcode::X86UDiv32: |
28255 | #if CPU(X86) || CPU(X86_64) |
28256 | jit.x86UDiv32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28257 | OPGEN_RETURN(result); |
28258 | #endif |
28259 | break; |
28260 | break; |
28261 | case Opcode::X86Div64: |
28262 | #if CPU(X86_64) |
28263 | jit.x86Div64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28264 | OPGEN_RETURN(result); |
28265 | #endif |
28266 | break; |
28267 | break; |
28268 | case Opcode::X86UDiv64: |
28269 | #if CPU(X86_64) |
28270 | jit.x86UDiv64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28271 | OPGEN_RETURN(result); |
28272 | #endif |
28273 | break; |
28274 | break; |
28275 | case Opcode::Lea32: |
28276 | switch (this->args[0].kind()) { |
28277 | case Arg::Addr: |
28278 | case Arg::Stack: |
28279 | case Arg::CallArg: |
28280 | jit.lea32(args[0].asAddress(), args[1].gpr()); |
28281 | OPGEN_RETURN(result); |
28282 | break; |
28283 | break; |
28284 | case Arg::Index: |
28285 | #if CPU(X86) || CPU(X86_64) |
28286 | jit.x86Lea32(args[0].asBaseIndex(), args[1].gpr()); |
28287 | OPGEN_RETURN(result); |
28288 | #endif |
28289 | break; |
28290 | break; |
28291 | default: |
28292 | break; |
28293 | } |
28294 | break; |
28295 | case Opcode::Lea64: |
28296 | switch (this->args[0].kind()) { |
28297 | case Arg::Addr: |
28298 | case Arg::Stack: |
28299 | case Arg::CallArg: |
28300 | jit.lea64(args[0].asAddress(), args[1].gpr()); |
28301 | OPGEN_RETURN(result); |
28302 | break; |
28303 | break; |
28304 | case Arg::Index: |
28305 | #if CPU(X86) || CPU(X86_64) |
28306 | jit.x86Lea64(args[0].asBaseIndex(), args[1].gpr()); |
28307 | OPGEN_RETURN(result); |
28308 | #endif |
28309 | break; |
28310 | break; |
28311 | default: |
28312 | break; |
28313 | } |
28314 | break; |
28315 | case Opcode::And32: |
28316 | switch (this->args.size()) { |
28317 | case 3: |
28318 | switch (this->args[0].kind()) { |
28319 | case Arg::Tmp: |
28320 | switch (this->args[1].kind()) { |
28321 | case Arg::Tmp: |
28322 | jit.and32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28323 | OPGEN_RETURN(result); |
28324 | break; |
28325 | break; |
28326 | case Arg::Addr: |
28327 | case Arg::Stack: |
28328 | case Arg::CallArg: |
28329 | #if CPU(X86) || CPU(X86_64) |
28330 | jit.and32(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
28331 | OPGEN_RETURN(result); |
28332 | #endif |
28333 | break; |
28334 | break; |
28335 | default: |
28336 | break; |
28337 | } |
28338 | break; |
28339 | case Arg::BitImm: |
28340 | #if CPU(ARM64) |
28341 | jit.and32(args[0].asTrustedImm32(), args[1].gpr(), args[2].gpr()); |
28342 | OPGEN_RETURN(result); |
28343 | #endif |
28344 | break; |
28345 | break; |
28346 | case Arg::Addr: |
28347 | case Arg::Stack: |
28348 | case Arg::CallArg: |
28349 | #if CPU(X86) || CPU(X86_64) |
28350 | jit.and32(args[0].asAddress(), args[1].gpr(), args[2].gpr()); |
28351 | OPGEN_RETURN(result); |
28352 | #endif |
28353 | break; |
28354 | break; |
28355 | default: |
28356 | break; |
28357 | } |
28358 | break; |
28359 | case 2: |
28360 | switch (this->args[0].kind()) { |
28361 | case Arg::Tmp: |
28362 | switch (this->args[1].kind()) { |
28363 | case Arg::Tmp: |
28364 | jit.and32(args[0].gpr(), args[1].gpr()); |
28365 | OPGEN_RETURN(result); |
28366 | break; |
28367 | break; |
28368 | case Arg::Addr: |
28369 | case Arg::Stack: |
28370 | case Arg::CallArg: |
28371 | #if CPU(X86) || CPU(X86_64) |
28372 | jit.and32(args[0].gpr(), args[1].asAddress()); |
28373 | OPGEN_RETURN(result); |
28374 | #endif |
28375 | break; |
28376 | break; |
28377 | case Arg::Index: |
28378 | #if CPU(X86) || CPU(X86_64) |
28379 | jit.and32(args[0].gpr(), args[1].asBaseIndex()); |
28380 | OPGEN_RETURN(result); |
28381 | #endif |
28382 | break; |
28383 | break; |
28384 | default: |
28385 | break; |
28386 | } |
28387 | break; |
28388 | case Arg::Imm: |
28389 | switch (this->args[1].kind()) { |
28390 | case Arg::Tmp: |
28391 | #if CPU(X86) || CPU(X86_64) |
28392 | jit.and32(args[0].asTrustedImm32(), args[1].gpr()); |
28393 | OPGEN_RETURN(result); |
28394 | #endif |
28395 | break; |
28396 | break; |
28397 | case Arg::Addr: |
28398 | case Arg::Stack: |
28399 | case Arg::CallArg: |
28400 | #if CPU(X86) || CPU(X86_64) |
28401 | jit.and32(args[0].asTrustedImm32(), args[1].asAddress()); |
28402 | OPGEN_RETURN(result); |
28403 | #endif |
28404 | break; |
28405 | break; |
28406 | case Arg::Index: |
28407 | #if CPU(X86) || CPU(X86_64) |
28408 | jit.and32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
28409 | OPGEN_RETURN(result); |
28410 | #endif |
28411 | break; |
28412 | break; |
28413 | default: |
28414 | break; |
28415 | } |
28416 | break; |
28417 | case Arg::Addr: |
28418 | case Arg::Stack: |
28419 | case Arg::CallArg: |
28420 | #if CPU(X86) || CPU(X86_64) |
28421 | jit.and32(args[0].asAddress(), args[1].gpr()); |
28422 | OPGEN_RETURN(result); |
28423 | #endif |
28424 | break; |
28425 | break; |
28426 | case Arg::Index: |
28427 | #if CPU(X86) || CPU(X86_64) |
28428 | jit.and32(args[0].asBaseIndex(), args[1].gpr()); |
28429 | OPGEN_RETURN(result); |
28430 | #endif |
28431 | break; |
28432 | break; |
28433 | default: |
28434 | break; |
28435 | } |
28436 | break; |
28437 | default: |
28438 | break; |
28439 | } |
28440 | break; |
28441 | case Opcode::And64: |
28442 | switch (this->args.size()) { |
28443 | case 3: |
28444 | switch (this->args[0].kind()) { |
28445 | case Arg::Tmp: |
28446 | #if CPU(X86_64) || CPU(ARM64) |
28447 | jit.and64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28448 | OPGEN_RETURN(result); |
28449 | #endif |
28450 | break; |
28451 | break; |
28452 | #if USE(JSVALUE64) |
28453 | case Arg::BitImm64: |
28454 | #if CPU(ARM64) |
28455 | jit.and64(args[0].asTrustedImm64(), args[1].gpr(), args[2].gpr()); |
28456 | OPGEN_RETURN(result); |
28457 | #endif |
28458 | break; |
28459 | break; |
28460 | #endif // USE(JSVALUE64) |
28461 | default: |
28462 | break; |
28463 | } |
28464 | break; |
28465 | case 2: |
28466 | switch (this->args[0].kind()) { |
28467 | case Arg::Tmp: |
28468 | switch (this->args[1].kind()) { |
28469 | case Arg::Tmp: |
28470 | #if CPU(X86_64) |
28471 | jit.and64(args[0].gpr(), args[1].gpr()); |
28472 | OPGEN_RETURN(result); |
28473 | #endif |
28474 | break; |
28475 | break; |
28476 | case Arg::Addr: |
28477 | case Arg::Stack: |
28478 | case Arg::CallArg: |
28479 | #if CPU(X86_64) |
28480 | jit.and64(args[0].gpr(), args[1].asAddress()); |
28481 | OPGEN_RETURN(result); |
28482 | #endif |
28483 | break; |
28484 | break; |
28485 | case Arg::Index: |
28486 | #if CPU(X86_64) |
28487 | jit.and64(args[0].gpr(), args[1].asBaseIndex()); |
28488 | OPGEN_RETURN(result); |
28489 | #endif |
28490 | break; |
28491 | break; |
28492 | default: |
28493 | break; |
28494 | } |
28495 | break; |
28496 | case Arg::Imm: |
28497 | switch (this->args[1].kind()) { |
28498 | case Arg::Tmp: |
28499 | #if CPU(X86_64) |
28500 | jit.and64(args[0].asTrustedImm32(), args[1].gpr()); |
28501 | OPGEN_RETURN(result); |
28502 | #endif |
28503 | break; |
28504 | break; |
28505 | case Arg::Addr: |
28506 | case Arg::Stack: |
28507 | case Arg::CallArg: |
28508 | #if CPU(X86_64) |
28509 | jit.and64(args[0].asTrustedImm32(), args[1].asAddress()); |
28510 | OPGEN_RETURN(result); |
28511 | #endif |
28512 | break; |
28513 | break; |
28514 | case Arg::Index: |
28515 | #if CPU(X86_64) |
28516 | jit.and64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
28517 | OPGEN_RETURN(result); |
28518 | #endif |
28519 | break; |
28520 | break; |
28521 | default: |
28522 | break; |
28523 | } |
28524 | break; |
28525 | case Arg::Addr: |
28526 | case Arg::Stack: |
28527 | case Arg::CallArg: |
28528 | #if CPU(X86_64) |
28529 | jit.and64(args[0].asAddress(), args[1].gpr()); |
28530 | OPGEN_RETURN(result); |
28531 | #endif |
28532 | break; |
28533 | break; |
28534 | case Arg::Index: |
28535 | #if CPU(X86_64) |
28536 | jit.and64(args[0].asBaseIndex(), args[1].gpr()); |
28537 | OPGEN_RETURN(result); |
28538 | #endif |
28539 | break; |
28540 | break; |
28541 | default: |
28542 | break; |
28543 | } |
28544 | break; |
28545 | default: |
28546 | break; |
28547 | } |
28548 | break; |
28549 | case Opcode::AndDouble: |
28550 | switch (this->args.size()) { |
28551 | case 3: |
28552 | jit.andDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28553 | OPGEN_RETURN(result); |
28554 | break; |
28555 | break; |
28556 | case 2: |
28557 | #if CPU(X86) || CPU(X86_64) |
28558 | jit.andDouble(args[0].fpr(), args[1].fpr()); |
28559 | OPGEN_RETURN(result); |
28560 | #endif |
28561 | break; |
28562 | break; |
28563 | default: |
28564 | break; |
28565 | } |
28566 | break; |
28567 | case Opcode::AndFloat: |
28568 | switch (this->args.size()) { |
28569 | case 3: |
28570 | jit.andFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28571 | OPGEN_RETURN(result); |
28572 | break; |
28573 | break; |
28574 | case 2: |
28575 | #if CPU(X86) || CPU(X86_64) |
28576 | jit.andFloat(args[0].fpr(), args[1].fpr()); |
28577 | OPGEN_RETURN(result); |
28578 | #endif |
28579 | break; |
28580 | break; |
28581 | default: |
28582 | break; |
28583 | } |
28584 | break; |
28585 | case Opcode::OrDouble: |
28586 | switch (this->args.size()) { |
28587 | case 3: |
28588 | jit.orDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28589 | OPGEN_RETURN(result); |
28590 | break; |
28591 | break; |
28592 | case 2: |
28593 | #if CPU(X86) || CPU(X86_64) |
28594 | jit.orDouble(args[0].fpr(), args[1].fpr()); |
28595 | OPGEN_RETURN(result); |
28596 | #endif |
28597 | break; |
28598 | break; |
28599 | default: |
28600 | break; |
28601 | } |
28602 | break; |
28603 | case Opcode::OrFloat: |
28604 | switch (this->args.size()) { |
28605 | case 3: |
28606 | jit.orFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28607 | OPGEN_RETURN(result); |
28608 | break; |
28609 | break; |
28610 | case 2: |
28611 | #if CPU(X86) || CPU(X86_64) |
28612 | jit.orFloat(args[0].fpr(), args[1].fpr()); |
28613 | OPGEN_RETURN(result); |
28614 | #endif |
28615 | break; |
28616 | break; |
28617 | default: |
28618 | break; |
28619 | } |
28620 | break; |
28621 | case Opcode::XorDouble: |
28622 | switch (this->args.size()) { |
28623 | case 3: |
28624 | #if CPU(X86) || CPU(X86_64) |
28625 | jit.xorDouble(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28626 | OPGEN_RETURN(result); |
28627 | #endif |
28628 | break; |
28629 | break; |
28630 | case 2: |
28631 | #if CPU(X86) || CPU(X86_64) |
28632 | jit.xorDouble(args[0].fpr(), args[1].fpr()); |
28633 | OPGEN_RETURN(result); |
28634 | #endif |
28635 | break; |
28636 | break; |
28637 | default: |
28638 | break; |
28639 | } |
28640 | break; |
28641 | case Opcode::XorFloat: |
28642 | switch (this->args.size()) { |
28643 | case 3: |
28644 | #if CPU(X86) || CPU(X86_64) |
28645 | jit.xorFloat(args[0].fpr(), args[1].fpr(), args[2].fpr()); |
28646 | OPGEN_RETURN(result); |
28647 | #endif |
28648 | break; |
28649 | break; |
28650 | case 2: |
28651 | #if CPU(X86) || CPU(X86_64) |
28652 | jit.xorFloat(args[0].fpr(), args[1].fpr()); |
28653 | OPGEN_RETURN(result); |
28654 | #endif |
28655 | break; |
28656 | break; |
28657 | default: |
28658 | break; |
28659 | } |
28660 | break; |
28661 | case Opcode::Lshift32: |
28662 | switch (this->args.size()) { |
28663 | case 3: |
28664 | switch (this->args[1].kind()) { |
28665 | case Arg::Tmp: |
28666 | #if CPU(ARM64) |
28667 | jit.lshift32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28668 | OPGEN_RETURN(result); |
28669 | #endif |
28670 | break; |
28671 | break; |
28672 | case Arg::Imm: |
28673 | #if CPU(ARM64) |
28674 | jit.lshift32(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28675 | OPGEN_RETURN(result); |
28676 | #endif |
28677 | break; |
28678 | break; |
28679 | default: |
28680 | break; |
28681 | } |
28682 | break; |
28683 | case 2: |
28684 | switch (this->args[0].kind()) { |
28685 | case Arg::Tmp: |
28686 | #if CPU(X86) || CPU(X86_64) |
28687 | jit.lshift32(args[0].gpr(), args[1].gpr()); |
28688 | OPGEN_RETURN(result); |
28689 | #endif |
28690 | break; |
28691 | break; |
28692 | case Arg::Imm: |
28693 | #if CPU(X86) || CPU(X86_64) |
28694 | jit.lshift32(args[0].asTrustedImm32(), args[1].gpr()); |
28695 | OPGEN_RETURN(result); |
28696 | #endif |
28697 | break; |
28698 | break; |
28699 | default: |
28700 | break; |
28701 | } |
28702 | break; |
28703 | default: |
28704 | break; |
28705 | } |
28706 | break; |
28707 | case Opcode::Lshift64: |
28708 | switch (this->args.size()) { |
28709 | case 3: |
28710 | switch (this->args[1].kind()) { |
28711 | case Arg::Tmp: |
28712 | #if CPU(ARM64) |
28713 | jit.lshift64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28714 | OPGEN_RETURN(result); |
28715 | #endif |
28716 | break; |
28717 | break; |
28718 | case Arg::Imm: |
28719 | #if CPU(ARM64) |
28720 | jit.lshift64(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28721 | OPGEN_RETURN(result); |
28722 | #endif |
28723 | break; |
28724 | break; |
28725 | default: |
28726 | break; |
28727 | } |
28728 | break; |
28729 | case 2: |
28730 | switch (this->args[0].kind()) { |
28731 | case Arg::Tmp: |
28732 | #if CPU(X86_64) |
28733 | jit.lshift64(args[0].gpr(), args[1].gpr()); |
28734 | OPGEN_RETURN(result); |
28735 | #endif |
28736 | break; |
28737 | break; |
28738 | case Arg::Imm: |
28739 | #if CPU(X86_64) |
28740 | jit.lshift64(args[0].asTrustedImm32(), args[1].gpr()); |
28741 | OPGEN_RETURN(result); |
28742 | #endif |
28743 | break; |
28744 | break; |
28745 | default: |
28746 | break; |
28747 | } |
28748 | break; |
28749 | default: |
28750 | break; |
28751 | } |
28752 | break; |
28753 | case Opcode::Rshift32: |
28754 | switch (this->args.size()) { |
28755 | case 3: |
28756 | switch (this->args[1].kind()) { |
28757 | case Arg::Tmp: |
28758 | #if CPU(ARM64) |
28759 | jit.rshift32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28760 | OPGEN_RETURN(result); |
28761 | #endif |
28762 | break; |
28763 | break; |
28764 | case Arg::Imm: |
28765 | #if CPU(ARM64) |
28766 | jit.rshift32(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28767 | OPGEN_RETURN(result); |
28768 | #endif |
28769 | break; |
28770 | break; |
28771 | default: |
28772 | break; |
28773 | } |
28774 | break; |
28775 | case 2: |
28776 | switch (this->args[0].kind()) { |
28777 | case Arg::Tmp: |
28778 | #if CPU(X86) || CPU(X86_64) |
28779 | jit.rshift32(args[0].gpr(), args[1].gpr()); |
28780 | OPGEN_RETURN(result); |
28781 | #endif |
28782 | break; |
28783 | break; |
28784 | case Arg::Imm: |
28785 | #if CPU(X86) || CPU(X86_64) |
28786 | jit.rshift32(args[0].asTrustedImm32(), args[1].gpr()); |
28787 | OPGEN_RETURN(result); |
28788 | #endif |
28789 | break; |
28790 | break; |
28791 | default: |
28792 | break; |
28793 | } |
28794 | break; |
28795 | default: |
28796 | break; |
28797 | } |
28798 | break; |
28799 | case Opcode::Rshift64: |
28800 | switch (this->args.size()) { |
28801 | case 3: |
28802 | switch (this->args[1].kind()) { |
28803 | case Arg::Tmp: |
28804 | #if CPU(ARM64) |
28805 | jit.rshift64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28806 | OPGEN_RETURN(result); |
28807 | #endif |
28808 | break; |
28809 | break; |
28810 | case Arg::Imm: |
28811 | #if CPU(ARM64) |
28812 | jit.rshift64(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28813 | OPGEN_RETURN(result); |
28814 | #endif |
28815 | break; |
28816 | break; |
28817 | default: |
28818 | break; |
28819 | } |
28820 | break; |
28821 | case 2: |
28822 | switch (this->args[0].kind()) { |
28823 | case Arg::Tmp: |
28824 | #if CPU(X86_64) |
28825 | jit.rshift64(args[0].gpr(), args[1].gpr()); |
28826 | OPGEN_RETURN(result); |
28827 | #endif |
28828 | break; |
28829 | break; |
28830 | case Arg::Imm: |
28831 | #if CPU(X86_64) |
28832 | jit.rshift64(args[0].asTrustedImm32(), args[1].gpr()); |
28833 | OPGEN_RETURN(result); |
28834 | #endif |
28835 | break; |
28836 | break; |
28837 | default: |
28838 | break; |
28839 | } |
28840 | break; |
28841 | default: |
28842 | break; |
28843 | } |
28844 | break; |
28845 | case Opcode::Urshift32: |
28846 | switch (this->args.size()) { |
28847 | case 3: |
28848 | switch (this->args[1].kind()) { |
28849 | case Arg::Tmp: |
28850 | #if CPU(ARM64) |
28851 | jit.urshift32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28852 | OPGEN_RETURN(result); |
28853 | #endif |
28854 | break; |
28855 | break; |
28856 | case Arg::Imm: |
28857 | #if CPU(ARM64) |
28858 | jit.urshift32(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28859 | OPGEN_RETURN(result); |
28860 | #endif |
28861 | break; |
28862 | break; |
28863 | default: |
28864 | break; |
28865 | } |
28866 | break; |
28867 | case 2: |
28868 | switch (this->args[0].kind()) { |
28869 | case Arg::Tmp: |
28870 | #if CPU(X86) || CPU(X86_64) |
28871 | jit.urshift32(args[0].gpr(), args[1].gpr()); |
28872 | OPGEN_RETURN(result); |
28873 | #endif |
28874 | break; |
28875 | break; |
28876 | case Arg::Imm: |
28877 | #if CPU(X86) || CPU(X86_64) |
28878 | jit.urshift32(args[0].asTrustedImm32(), args[1].gpr()); |
28879 | OPGEN_RETURN(result); |
28880 | #endif |
28881 | break; |
28882 | break; |
28883 | default: |
28884 | break; |
28885 | } |
28886 | break; |
28887 | default: |
28888 | break; |
28889 | } |
28890 | break; |
28891 | case Opcode::Urshift64: |
28892 | switch (this->args.size()) { |
28893 | case 3: |
28894 | switch (this->args[1].kind()) { |
28895 | case Arg::Tmp: |
28896 | #if CPU(ARM64) |
28897 | jit.urshift64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28898 | OPGEN_RETURN(result); |
28899 | #endif |
28900 | break; |
28901 | break; |
28902 | case Arg::Imm: |
28903 | #if CPU(ARM64) |
28904 | jit.urshift64(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28905 | OPGEN_RETURN(result); |
28906 | #endif |
28907 | break; |
28908 | break; |
28909 | default: |
28910 | break; |
28911 | } |
28912 | break; |
28913 | case 2: |
28914 | switch (this->args[0].kind()) { |
28915 | case Arg::Tmp: |
28916 | #if CPU(X86_64) |
28917 | jit.urshift64(args[0].gpr(), args[1].gpr()); |
28918 | OPGEN_RETURN(result); |
28919 | #endif |
28920 | break; |
28921 | break; |
28922 | case Arg::Imm: |
28923 | #if CPU(X86_64) |
28924 | jit.urshift64(args[0].asTrustedImm32(), args[1].gpr()); |
28925 | OPGEN_RETURN(result); |
28926 | #endif |
28927 | break; |
28928 | break; |
28929 | default: |
28930 | break; |
28931 | } |
28932 | break; |
28933 | default: |
28934 | break; |
28935 | } |
28936 | break; |
28937 | case Opcode::RotateRight32: |
28938 | switch (this->args.size()) { |
28939 | case 2: |
28940 | switch (this->args[0].kind()) { |
28941 | case Arg::Tmp: |
28942 | #if CPU(X86_64) |
28943 | jit.rotateRight32(args[0].gpr(), args[1].gpr()); |
28944 | OPGEN_RETURN(result); |
28945 | #endif |
28946 | break; |
28947 | break; |
28948 | case Arg::Imm: |
28949 | #if CPU(X86_64) |
28950 | jit.rotateRight32(args[0].asTrustedImm32(), args[1].gpr()); |
28951 | OPGEN_RETURN(result); |
28952 | #endif |
28953 | break; |
28954 | break; |
28955 | default: |
28956 | break; |
28957 | } |
28958 | break; |
28959 | case 3: |
28960 | switch (this->args[1].kind()) { |
28961 | case Arg::Tmp: |
28962 | #if CPU(ARM64) |
28963 | jit.rotateRight32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
28964 | OPGEN_RETURN(result); |
28965 | #endif |
28966 | break; |
28967 | break; |
28968 | case Arg::Imm: |
28969 | #if CPU(ARM64) |
28970 | jit.rotateRight32(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
28971 | OPGEN_RETURN(result); |
28972 | #endif |
28973 | break; |
28974 | break; |
28975 | default: |
28976 | break; |
28977 | } |
28978 | break; |
28979 | default: |
28980 | break; |
28981 | } |
28982 | break; |
28983 | case Opcode::RotateRight64: |
28984 | switch (this->args.size()) { |
28985 | case 2: |
28986 | switch (this->args[0].kind()) { |
28987 | case Arg::Tmp: |
28988 | #if CPU(X86_64) |
28989 | jit.rotateRight64(args[0].gpr(), args[1].gpr()); |
28990 | OPGEN_RETURN(result); |
28991 | #endif |
28992 | break; |
28993 | break; |
28994 | case Arg::Imm: |
28995 | #if CPU(X86_64) |
28996 | jit.rotateRight64(args[0].asTrustedImm32(), args[1].gpr()); |
28997 | OPGEN_RETURN(result); |
28998 | #endif |
28999 | break; |
29000 | break; |
29001 | default: |
29002 | break; |
29003 | } |
29004 | break; |
29005 | case 3: |
29006 | switch (this->args[1].kind()) { |
29007 | case Arg::Tmp: |
29008 | #if CPU(ARM64) |
29009 | jit.rotateRight64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
29010 | OPGEN_RETURN(result); |
29011 | #endif |
29012 | break; |
29013 | break; |
29014 | case Arg::Imm: |
29015 | #if CPU(ARM64) |
29016 | jit.rotateRight64(args[0].gpr(), args[1].asTrustedImm32(), args[2].gpr()); |
29017 | OPGEN_RETURN(result); |
29018 | #endif |
29019 | break; |
29020 | break; |
29021 | default: |
29022 | break; |
29023 | } |
29024 | break; |
29025 | default: |
29026 | break; |
29027 | } |
29028 | break; |
29029 | case Opcode::RotateLeft32: |
29030 | switch (this->args[0].kind()) { |
29031 | case Arg::Tmp: |
29032 | #if CPU(X86_64) |
29033 | jit.rotateLeft32(args[0].gpr(), args[1].gpr()); |
29034 | OPGEN_RETURN(result); |
29035 | #endif |
29036 | break; |
29037 | break; |
29038 | case Arg::Imm: |
29039 | #if CPU(X86_64) |
29040 | jit.rotateLeft32(args[0].asTrustedImm32(), args[1].gpr()); |
29041 | OPGEN_RETURN(result); |
29042 | #endif |
29043 | break; |
29044 | break; |
29045 | default: |
29046 | break; |
29047 | } |
29048 | break; |
29049 | case Opcode::RotateLeft64: |
29050 | switch (this->args[0].kind()) { |
29051 | case Arg::Tmp: |
29052 | #if CPU(X86_64) |
29053 | jit.rotateLeft64(args[0].gpr(), args[1].gpr()); |
29054 | OPGEN_RETURN(result); |
29055 | #endif |
29056 | break; |
29057 | break; |
29058 | case Arg::Imm: |
29059 | #if CPU(X86_64) |
29060 | jit.rotateLeft64(args[0].asTrustedImm32(), args[1].gpr()); |
29061 | OPGEN_RETURN(result); |
29062 | #endif |
29063 | break; |
29064 | break; |
29065 | default: |
29066 | break; |
29067 | } |
29068 | break; |
29069 | case Opcode::Or32: |
29070 | switch (this->args.size()) { |
29071 | case 3: |
29072 | switch (this->args[0].kind()) { |
29073 | case Arg::Tmp: |
29074 | switch (this->args[1].kind()) { |
29075 | case Arg::Tmp: |
29076 | jit.or32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
29077 | OPGEN_RETURN(result); |
29078 | break; |
29079 | break; |
29080 | case Arg::Addr: |
29081 | case Arg::Stack: |
29082 | case Arg::CallArg: |
29083 | #if CPU(X86) || CPU(X86_64) |
29084 | jit.or32(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
29085 | OPGEN_RETURN(result); |
29086 | #endif |
29087 | break; |
29088 | break; |
29089 | default: |
29090 | break; |
29091 | } |
29092 | break; |
29093 | case Arg::BitImm: |
29094 | #if CPU(ARM64) |
29095 | jit.or32(args[0].asTrustedImm32(), args[1].gpr(), args[2].gpr()); |
29096 | OPGEN_RETURN(result); |
29097 | #endif |
29098 | break; |
29099 | break; |
29100 | case Arg::Addr: |
29101 | case Arg::Stack: |
29102 | case Arg::CallArg: |
29103 | #if CPU(X86) || CPU(X86_64) |
29104 | jit.or32(args[0].asAddress(), args[1].gpr(), args[2].gpr()); |
29105 | OPGEN_RETURN(result); |
29106 | #endif |
29107 | break; |
29108 | break; |
29109 | default: |
29110 | break; |
29111 | } |
29112 | break; |
29113 | case 2: |
29114 | switch (this->args[0].kind()) { |
29115 | case Arg::Tmp: |
29116 | switch (this->args[1].kind()) { |
29117 | case Arg::Tmp: |
29118 | jit.or32(args[0].gpr(), args[1].gpr()); |
29119 | OPGEN_RETURN(result); |
29120 | break; |
29121 | break; |
29122 | case Arg::Addr: |
29123 | case Arg::Stack: |
29124 | case Arg::CallArg: |
29125 | #if CPU(X86) || CPU(X86_64) |
29126 | jit.or32(args[0].gpr(), args[1].asAddress()); |
29127 | OPGEN_RETURN(result); |
29128 | #endif |
29129 | break; |
29130 | break; |
29131 | case Arg::Index: |
29132 | #if CPU(X86) || CPU(X86_64) |
29133 | jit.or32(args[0].gpr(), args[1].asBaseIndex()); |
29134 | OPGEN_RETURN(result); |
29135 | #endif |
29136 | break; |
29137 | break; |
29138 | default: |
29139 | break; |
29140 | } |
29141 | break; |
29142 | case Arg::Imm: |
29143 | switch (this->args[1].kind()) { |
29144 | case Arg::Tmp: |
29145 | #if CPU(X86) || CPU(X86_64) |
29146 | jit.or32(args[0].asTrustedImm32(), args[1].gpr()); |
29147 | OPGEN_RETURN(result); |
29148 | #endif |
29149 | break; |
29150 | break; |
29151 | case Arg::Addr: |
29152 | case Arg::Stack: |
29153 | case Arg::CallArg: |
29154 | #if CPU(X86) || CPU(X86_64) |
29155 | jit.or32(args[0].asTrustedImm32(), args[1].asAddress()); |
29156 | OPGEN_RETURN(result); |
29157 | #endif |
29158 | break; |
29159 | break; |
29160 | case Arg::Index: |
29161 | #if CPU(X86) || CPU(X86_64) |
29162 | jit.or32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
29163 | OPGEN_RETURN(result); |
29164 | #endif |
29165 | break; |
29166 | break; |
29167 | default: |
29168 | break; |
29169 | } |
29170 | break; |
29171 | case Arg::Addr: |
29172 | case Arg::Stack: |
29173 | case Arg::CallArg: |
29174 | #if CPU(X86) || CPU(X86_64) |
29175 | jit.or32(args[0].asAddress(), args[1].gpr()); |
29176 | OPGEN_RETURN(result); |
29177 | #endif |
29178 | break; |
29179 | break; |
29180 | case Arg::Index: |
29181 | #if CPU(X86) || CPU(X86_64) |
29182 | jit.or32(args[0].asBaseIndex(), args[1].gpr()); |
29183 | OPGEN_RETURN(result); |
29184 | #endif |
29185 | break; |
29186 | break; |
29187 | default: |
29188 | break; |
29189 | } |
29190 | break; |
29191 | default: |
29192 | break; |
29193 | } |
29194 | break; |
29195 | case Opcode::Or64: |
29196 | switch (this->args.size()) { |
29197 | case 3: |
29198 | switch (this->args[0].kind()) { |
29199 | case Arg::Tmp: |
29200 | #if CPU(X86_64) || CPU(ARM64) |
29201 | jit.or64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
29202 | OPGEN_RETURN(result); |
29203 | #endif |
29204 | break; |
29205 | break; |
29206 | #if USE(JSVALUE64) |
29207 | case Arg::BitImm64: |
29208 | #if CPU(ARM64) |
29209 | jit.or64(args[0].asTrustedImm64(), args[1].gpr(), args[2].gpr()); |
29210 | OPGEN_RETURN(result); |
29211 | #endif |
29212 | break; |
29213 | break; |
29214 | #endif // USE(JSVALUE64) |
29215 | default: |
29216 | break; |
29217 | } |
29218 | break; |
29219 | case 2: |
29220 | switch (this->args[0].kind()) { |
29221 | case Arg::Tmp: |
29222 | switch (this->args[1].kind()) { |
29223 | case Arg::Tmp: |
29224 | #if CPU(X86_64) || CPU(ARM64) |
29225 | jit.or64(args[0].gpr(), args[1].gpr()); |
29226 | OPGEN_RETURN(result); |
29227 | #endif |
29228 | break; |
29229 | break; |
29230 | case Arg::Addr: |
29231 | case Arg::Stack: |
29232 | case Arg::CallArg: |
29233 | #if CPU(X86_64) |
29234 | jit.or64(args[0].gpr(), args[1].asAddress()); |
29235 | OPGEN_RETURN(result); |
29236 | #endif |
29237 | break; |
29238 | break; |
29239 | case Arg::Index: |
29240 | #if CPU(X86_64) |
29241 | jit.or64(args[0].gpr(), args[1].asBaseIndex()); |
29242 | OPGEN_RETURN(result); |
29243 | #endif |
29244 | break; |
29245 | break; |
29246 | default: |
29247 | break; |
29248 | } |
29249 | break; |
29250 | case Arg::Imm: |
29251 | switch (this->args[1].kind()) { |
29252 | case Arg::Tmp: |
29253 | #if CPU(X86_64) |
29254 | jit.or64(args[0].asTrustedImm32(), args[1].gpr()); |
29255 | OPGEN_RETURN(result); |
29256 | #endif |
29257 | break; |
29258 | break; |
29259 | case Arg::Addr: |
29260 | case Arg::Stack: |
29261 | case Arg::CallArg: |
29262 | #if CPU(X86_64) |
29263 | jit.or64(args[0].asTrustedImm32(), args[1].asAddress()); |
29264 | OPGEN_RETURN(result); |
29265 | #endif |
29266 | break; |
29267 | break; |
29268 | case Arg::Index: |
29269 | #if CPU(X86_64) |
29270 | jit.or64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
29271 | OPGEN_RETURN(result); |
29272 | #endif |
29273 | break; |
29274 | break; |
29275 | default: |
29276 | break; |
29277 | } |
29278 | break; |
29279 | case Arg::Addr: |
29280 | case Arg::Stack: |
29281 | case Arg::CallArg: |
29282 | #if CPU(X86_64) |
29283 | jit.or64(args[0].asAddress(), args[1].gpr()); |
29284 | OPGEN_RETURN(result); |
29285 | #endif |
29286 | break; |
29287 | break; |
29288 | case Arg::Index: |
29289 | #if CPU(X86_64) |
29290 | jit.or64(args[0].asBaseIndex(), args[1].gpr()); |
29291 | OPGEN_RETURN(result); |
29292 | #endif |
29293 | break; |
29294 | break; |
29295 | default: |
29296 | break; |
29297 | } |
29298 | break; |
29299 | default: |
29300 | break; |
29301 | } |
29302 | break; |
29303 | case Opcode::Xor32: |
29304 | switch (this->args.size()) { |
29305 | case 3: |
29306 | switch (this->args[0].kind()) { |
29307 | case Arg::Tmp: |
29308 | switch (this->args[1].kind()) { |
29309 | case Arg::Tmp: |
29310 | jit.xor32(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
29311 | OPGEN_RETURN(result); |
29312 | break; |
29313 | break; |
29314 | case Arg::Addr: |
29315 | case Arg::Stack: |
29316 | case Arg::CallArg: |
29317 | #if CPU(X86) || CPU(X86_64) |
29318 | jit.xor32(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
29319 | OPGEN_RETURN(result); |
29320 | #endif |
29321 | break; |
29322 | break; |
29323 | default: |
29324 | break; |
29325 | } |
29326 | break; |
29327 | case Arg::BitImm: |
29328 | #if CPU(ARM64) |
29329 | jit.xor32(args[0].asTrustedImm32(), args[1].gpr(), args[2].gpr()); |
29330 | OPGEN_RETURN(result); |
29331 | #endif |
29332 | break; |
29333 | break; |
29334 | case Arg::Addr: |
29335 | case Arg::Stack: |
29336 | case Arg::CallArg: |
29337 | #if CPU(X86) || CPU(X86_64) |
29338 | jit.xor32(args[0].asAddress(), args[1].gpr(), args[2].gpr()); |
29339 | OPGEN_RETURN(result); |
29340 | #endif |
29341 | break; |
29342 | break; |
29343 | default: |
29344 | break; |
29345 | } |
29346 | break; |
29347 | case 2: |
29348 | switch (this->args[0].kind()) { |
29349 | case Arg::Tmp: |
29350 | switch (this->args[1].kind()) { |
29351 | case Arg::Tmp: |
29352 | jit.xor32(args[0].gpr(), args[1].gpr()); |
29353 | OPGEN_RETURN(result); |
29354 | break; |
29355 | break; |
29356 | case Arg::Addr: |
29357 | case Arg::Stack: |
29358 | case Arg::CallArg: |
29359 | #if CPU(X86) || CPU(X86_64) |
29360 | jit.xor32(args[0].gpr(), args[1].asAddress()); |
29361 | OPGEN_RETURN(result); |
29362 | #endif |
29363 | break; |
29364 | break; |
29365 | case Arg::Index: |
29366 | #if CPU(X86) || CPU(X86_64) |
29367 | jit.xor32(args[0].gpr(), args[1].asBaseIndex()); |
29368 | OPGEN_RETURN(result); |
29369 | #endif |
29370 | break; |
29371 | break; |
29372 | default: |
29373 | break; |
29374 | } |
29375 | break; |
29376 | case Arg::Imm: |
29377 | switch (this->args[1].kind()) { |
29378 | case Arg::Tmp: |
29379 | #if CPU(X86) || CPU(X86_64) |
29380 | jit.xor32(args[0].asTrustedImm32(), args[1].gpr()); |
29381 | OPGEN_RETURN(result); |
29382 | #endif |
29383 | break; |
29384 | break; |
29385 | case Arg::Addr: |
29386 | case Arg::Stack: |
29387 | case Arg::CallArg: |
29388 | #if CPU(X86) || CPU(X86_64) |
29389 | jit.xor32(args[0].asTrustedImm32(), args[1].asAddress()); |
29390 | OPGEN_RETURN(result); |
29391 | #endif |
29392 | break; |
29393 | break; |
29394 | case Arg::Index: |
29395 | #if CPU(X86) || CPU(X86_64) |
29396 | jit.xor32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
29397 | OPGEN_RETURN(result); |
29398 | #endif |
29399 | break; |
29400 | break; |
29401 | default: |
29402 | break; |
29403 | } |
29404 | break; |
29405 | case Arg::Addr: |
29406 | case Arg::Stack: |
29407 | case Arg::CallArg: |
29408 | #if CPU(X86) || CPU(X86_64) |
29409 | jit.xor32(args[0].asAddress(), args[1].gpr()); |
29410 | OPGEN_RETURN(result); |
29411 | #endif |
29412 | break; |
29413 | break; |
29414 | case Arg::Index: |
29415 | #if CPU(X86) || CPU(X86_64) |
29416 | jit.xor32(args[0].asBaseIndex(), args[1].gpr()); |
29417 | OPGEN_RETURN(result); |
29418 | #endif |
29419 | break; |
29420 | break; |
29421 | default: |
29422 | break; |
29423 | } |
29424 | break; |
29425 | default: |
29426 | break; |
29427 | } |
29428 | break; |
29429 | case Opcode::Xor64: |
29430 | switch (this->args.size()) { |
29431 | case 3: |
29432 | switch (this->args[0].kind()) { |
29433 | case Arg::Tmp: |
29434 | #if CPU(X86_64) || CPU(ARM64) |
29435 | jit.xor64(args[0].gpr(), args[1].gpr(), args[2].gpr()); |
29436 | OPGEN_RETURN(result); |
29437 | #endif |
29438 | break; |
29439 | break; |
29440 | #if USE(JSVALUE64) |
29441 | case Arg::BitImm64: |
29442 | #if CPU(ARM64) |
29443 | jit.xor64(args[0].asTrustedImm64(), args[1].gpr(), args[2].gpr()); |
29444 | OPGEN_RETURN(result); |
29445 | #endif |
29446 | break; |
29447 | break; |
29448 | #endif // USE(JSVALUE64) |
29449 | default: |
29450 | break; |
29451 | } |
29452 | break; |
29453 | case 2: |
29454 | switch (this->args[0].kind()) { |
29455 | case Arg::Tmp: |
29456 | switch (this->args[1].kind()) { |
29457 | case Arg::Tmp: |
29458 | #if CPU(X86_64) || CPU(ARM64) |
29459 | jit.xor64(args[0].gpr(), args[1].gpr()); |
29460 | OPGEN_RETURN(result); |
29461 | #endif |
29462 | break; |
29463 | break; |
29464 | case Arg::Addr: |
29465 | case Arg::Stack: |
29466 | case Arg::CallArg: |
29467 | #if CPU(X86_64) |
29468 | jit.xor64(args[0].gpr(), args[1].asAddress()); |
29469 | OPGEN_RETURN(result); |
29470 | #endif |
29471 | break; |
29472 | break; |
29473 | case Arg::Index: |
29474 | #if CPU(X86_64) |
29475 | jit.xor64(args[0].gpr(), args[1].asBaseIndex()); |
29476 | OPGEN_RETURN(result); |
29477 | #endif |
29478 | break; |
29479 | break; |
29480 | default: |
29481 | break; |
29482 | } |
29483 | break; |
29484 | case Arg::Addr: |
29485 | case Arg::Stack: |
29486 | case Arg::CallArg: |
29487 | #if CPU(X86_64) |
29488 | jit.xor64(args[0].asAddress(), args[1].gpr()); |
29489 | OPGEN_RETURN(result); |
29490 | #endif |
29491 | break; |
29492 | break; |
29493 | case Arg::Index: |
29494 | #if CPU(X86_64) |
29495 | jit.xor64(args[0].asBaseIndex(), args[1].gpr()); |
29496 | OPGEN_RETURN(result); |
29497 | #endif |
29498 | break; |
29499 | break; |
29500 | case Arg::Imm: |
29501 | switch (this->args[1].kind()) { |
29502 | case Arg::Addr: |
29503 | case Arg::Stack: |
29504 | case Arg::CallArg: |
29505 | #if CPU(X86_64) |
29506 | jit.xor64(args[0].asTrustedImm32(), args[1].asAddress()); |
29507 | OPGEN_RETURN(result); |
29508 | #endif |
29509 | break; |
29510 | break; |
29511 | case Arg::Index: |
29512 | #if CPU(X86_64) |
29513 | jit.xor64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
29514 | OPGEN_RETURN(result); |
29515 | #endif |
29516 | break; |
29517 | break; |
29518 | case Arg::Tmp: |
29519 | #if CPU(X86_64) |
29520 | jit.xor64(args[0].asTrustedImm32(), args[1].gpr()); |
29521 | OPGEN_RETURN(result); |
29522 | #endif |
29523 | break; |
29524 | break; |
29525 | default: |
29526 | break; |
29527 | } |
29528 | break; |
29529 | default: |
29530 | break; |
29531 | } |
29532 | break; |
29533 | default: |
29534 | break; |
29535 | } |
29536 | break; |
29537 | case Opcode::Not32: |
29538 | switch (this->args.size()) { |
29539 | case 2: |
29540 | #if CPU(ARM64) |
29541 | jit.not32(args[0].gpr(), args[1].gpr()); |
29542 | OPGEN_RETURN(result); |
29543 | #endif |
29544 | break; |
29545 | break; |
29546 | case 1: |
29547 | switch (this->args[0].kind()) { |
29548 | case Arg::Tmp: |
29549 | #if CPU(X86) || CPU(X86_64) |
29550 | jit.not32(args[0].gpr()); |
29551 | OPGEN_RETURN(result); |
29552 | #endif |
29553 | break; |
29554 | break; |
29555 | case Arg::Addr: |
29556 | case Arg::Stack: |
29557 | case Arg::CallArg: |
29558 | #if CPU(X86) || CPU(X86_64) |
29559 | jit.not32(args[0].asAddress()); |
29560 | OPGEN_RETURN(result); |
29561 | #endif |
29562 | break; |
29563 | break; |
29564 | case Arg::Index: |
29565 | #if CPU(X86) || CPU(X86_64) |
29566 | jit.not32(args[0].asBaseIndex()); |
29567 | OPGEN_RETURN(result); |
29568 | #endif |
29569 | break; |
29570 | break; |
29571 | default: |
29572 | break; |
29573 | } |
29574 | break; |
29575 | default: |
29576 | break; |
29577 | } |
29578 | break; |
29579 | case Opcode::Not64: |
29580 | switch (this->args.size()) { |
29581 | case 2: |
29582 | #if CPU(ARM64) |
29583 | jit.not64(args[0].gpr(), args[1].gpr()); |
29584 | OPGEN_RETURN(result); |
29585 | #endif |
29586 | break; |
29587 | break; |
29588 | case 1: |
29589 | switch (this->args[0].kind()) { |
29590 | case Arg::Tmp: |
29591 | #if CPU(X86_64) |
29592 | jit.not64(args[0].gpr()); |
29593 | OPGEN_RETURN(result); |
29594 | #endif |
29595 | break; |
29596 | break; |
29597 | case Arg::Addr: |
29598 | case Arg::Stack: |
29599 | case Arg::CallArg: |
29600 | #if CPU(X86_64) |
29601 | jit.not64(args[0].asAddress()); |
29602 | OPGEN_RETURN(result); |
29603 | #endif |
29604 | break; |
29605 | break; |
29606 | case Arg::Index: |
29607 | #if CPU(X86_64) |
29608 | jit.not64(args[0].asBaseIndex()); |
29609 | OPGEN_RETURN(result); |
29610 | #endif |
29611 | break; |
29612 | break; |
29613 | default: |
29614 | break; |
29615 | } |
29616 | break; |
29617 | default: |
29618 | break; |
29619 | } |
29620 | break; |
29621 | case Opcode::AbsDouble: |
29622 | #if CPU(ARM64) |
29623 | jit.absDouble(args[0].fpr(), args[1].fpr()); |
29624 | OPGEN_RETURN(result); |
29625 | #endif |
29626 | break; |
29627 | break; |
29628 | case Opcode::AbsFloat: |
29629 | #if CPU(ARM64) |
29630 | jit.absFloat(args[0].fpr(), args[1].fpr()); |
29631 | OPGEN_RETURN(result); |
29632 | #endif |
29633 | break; |
29634 | break; |
29635 | case Opcode::CeilDouble: |
29636 | switch (this->args[0].kind()) { |
29637 | case Arg::Tmp: |
29638 | jit.ceilDouble(args[0].fpr(), args[1].fpr()); |
29639 | OPGEN_RETURN(result); |
29640 | break; |
29641 | break; |
29642 | case Arg::Addr: |
29643 | case Arg::Stack: |
29644 | case Arg::CallArg: |
29645 | #if CPU(X86) || CPU(X86_64) |
29646 | jit.ceilDouble(args[0].asAddress(), args[1].fpr()); |
29647 | OPGEN_RETURN(result); |
29648 | #endif |
29649 | break; |
29650 | break; |
29651 | default: |
29652 | break; |
29653 | } |
29654 | break; |
29655 | case Opcode::CeilFloat: |
29656 | switch (this->args[0].kind()) { |
29657 | case Arg::Tmp: |
29658 | jit.ceilFloat(args[0].fpr(), args[1].fpr()); |
29659 | OPGEN_RETURN(result); |
29660 | break; |
29661 | break; |
29662 | case Arg::Addr: |
29663 | case Arg::Stack: |
29664 | case Arg::CallArg: |
29665 | #if CPU(X86) || CPU(X86_64) |
29666 | jit.ceilFloat(args[0].asAddress(), args[1].fpr()); |
29667 | OPGEN_RETURN(result); |
29668 | #endif |
29669 | break; |
29670 | break; |
29671 | default: |
29672 | break; |
29673 | } |
29674 | break; |
29675 | case Opcode::FloorDouble: |
29676 | switch (this->args[0].kind()) { |
29677 | case Arg::Tmp: |
29678 | jit.floorDouble(args[0].fpr(), args[1].fpr()); |
29679 | OPGEN_RETURN(result); |
29680 | break; |
29681 | break; |
29682 | case Arg::Addr: |
29683 | case Arg::Stack: |
29684 | case Arg::CallArg: |
29685 | #if CPU(X86) || CPU(X86_64) |
29686 | jit.floorDouble(args[0].asAddress(), args[1].fpr()); |
29687 | OPGEN_RETURN(result); |
29688 | #endif |
29689 | break; |
29690 | break; |
29691 | default: |
29692 | break; |
29693 | } |
29694 | break; |
29695 | case Opcode::FloorFloat: |
29696 | switch (this->args[0].kind()) { |
29697 | case Arg::Tmp: |
29698 | jit.floorFloat(args[0].fpr(), args[1].fpr()); |
29699 | OPGEN_RETURN(result); |
29700 | break; |
29701 | break; |
29702 | case Arg::Addr: |
29703 | case Arg::Stack: |
29704 | case Arg::CallArg: |
29705 | #if CPU(X86) || CPU(X86_64) |
29706 | jit.floorFloat(args[0].asAddress(), args[1].fpr()); |
29707 | OPGEN_RETURN(result); |
29708 | #endif |
29709 | break; |
29710 | break; |
29711 | default: |
29712 | break; |
29713 | } |
29714 | break; |
29715 | case Opcode::SqrtDouble: |
29716 | switch (this->args[0].kind()) { |
29717 | case Arg::Tmp: |
29718 | jit.sqrtDouble(args[0].fpr(), args[1].fpr()); |
29719 | OPGEN_RETURN(result); |
29720 | break; |
29721 | break; |
29722 | case Arg::Addr: |
29723 | case Arg::Stack: |
29724 | case Arg::CallArg: |
29725 | #if CPU(X86) || CPU(X86_64) |
29726 | jit.sqrtDouble(args[0].asAddress(), args[1].fpr()); |
29727 | OPGEN_RETURN(result); |
29728 | #endif |
29729 | break; |
29730 | break; |
29731 | default: |
29732 | break; |
29733 | } |
29734 | break; |
29735 | case Opcode::SqrtFloat: |
29736 | switch (this->args[0].kind()) { |
29737 | case Arg::Tmp: |
29738 | jit.sqrtFloat(args[0].fpr(), args[1].fpr()); |
29739 | OPGEN_RETURN(result); |
29740 | break; |
29741 | break; |
29742 | case Arg::Addr: |
29743 | case Arg::Stack: |
29744 | case Arg::CallArg: |
29745 | #if CPU(X86) || CPU(X86_64) |
29746 | jit.sqrtFloat(args[0].asAddress(), args[1].fpr()); |
29747 | OPGEN_RETURN(result); |
29748 | #endif |
29749 | break; |
29750 | break; |
29751 | default: |
29752 | break; |
29753 | } |
29754 | break; |
29755 | case Opcode::ConvertInt32ToDouble: |
29756 | switch (this->args[0].kind()) { |
29757 | case Arg::Tmp: |
29758 | jit.convertInt32ToDouble(args[0].gpr(), args[1].fpr()); |
29759 | OPGEN_RETURN(result); |
29760 | break; |
29761 | break; |
29762 | case Arg::Addr: |
29763 | case Arg::Stack: |
29764 | case Arg::CallArg: |
29765 | #if CPU(X86) || CPU(X86_64) |
29766 | jit.convertInt32ToDouble(args[0].asAddress(), args[1].fpr()); |
29767 | OPGEN_RETURN(result); |
29768 | #endif |
29769 | break; |
29770 | break; |
29771 | default: |
29772 | break; |
29773 | } |
29774 | break; |
29775 | case Opcode::ConvertInt64ToDouble: |
29776 | switch (this->args[0].kind()) { |
29777 | case Arg::Tmp: |
29778 | #if CPU(X86_64) || CPU(ARM64) |
29779 | jit.convertInt64ToDouble(args[0].gpr(), args[1].fpr()); |
29780 | OPGEN_RETURN(result); |
29781 | #endif |
29782 | break; |
29783 | break; |
29784 | case Arg::Addr: |
29785 | case Arg::Stack: |
29786 | case Arg::CallArg: |
29787 | #if CPU(X86_64) |
29788 | jit.convertInt64ToDouble(args[0].asAddress(), args[1].fpr()); |
29789 | OPGEN_RETURN(result); |
29790 | #endif |
29791 | break; |
29792 | break; |
29793 | default: |
29794 | break; |
29795 | } |
29796 | break; |
29797 | case Opcode::ConvertInt32ToFloat: |
29798 | switch (this->args[0].kind()) { |
29799 | case Arg::Tmp: |
29800 | jit.convertInt32ToFloat(args[0].gpr(), args[1].fpr()); |
29801 | OPGEN_RETURN(result); |
29802 | break; |
29803 | break; |
29804 | case Arg::Addr: |
29805 | case Arg::Stack: |
29806 | case Arg::CallArg: |
29807 | #if CPU(X86) || CPU(X86_64) |
29808 | jit.convertInt32ToFloat(args[0].asAddress(), args[1].fpr()); |
29809 | OPGEN_RETURN(result); |
29810 | #endif |
29811 | break; |
29812 | break; |
29813 | default: |
29814 | break; |
29815 | } |
29816 | break; |
29817 | case Opcode::ConvertInt64ToFloat: |
29818 | switch (this->args[0].kind()) { |
29819 | case Arg::Tmp: |
29820 | #if CPU(X86_64) || CPU(ARM64) |
29821 | jit.convertInt64ToFloat(args[0].gpr(), args[1].fpr()); |
29822 | OPGEN_RETURN(result); |
29823 | #endif |
29824 | break; |
29825 | break; |
29826 | case Arg::Addr: |
29827 | case Arg::Stack: |
29828 | case Arg::CallArg: |
29829 | #if CPU(X86_64) |
29830 | jit.convertInt64ToFloat(args[0].asAddress(), args[1].fpr()); |
29831 | OPGEN_RETURN(result); |
29832 | #endif |
29833 | break; |
29834 | break; |
29835 | default: |
29836 | break; |
29837 | } |
29838 | break; |
29839 | case Opcode::CountLeadingZeros32: |
29840 | switch (this->args[0].kind()) { |
29841 | case Arg::Tmp: |
29842 | jit.countLeadingZeros32(args[0].gpr(), args[1].gpr()); |
29843 | OPGEN_RETURN(result); |
29844 | break; |
29845 | break; |
29846 | case Arg::Addr: |
29847 | case Arg::Stack: |
29848 | case Arg::CallArg: |
29849 | #if CPU(X86) || CPU(X86_64) |
29850 | jit.countLeadingZeros32(args[0].asAddress(), args[1].gpr()); |
29851 | OPGEN_RETURN(result); |
29852 | #endif |
29853 | break; |
29854 | break; |
29855 | default: |
29856 | break; |
29857 | } |
29858 | break; |
29859 | case Opcode::CountLeadingZeros64: |
29860 | switch (this->args[0].kind()) { |
29861 | case Arg::Tmp: |
29862 | #if CPU(X86_64) || CPU(ARM64) |
29863 | jit.countLeadingZeros64(args[0].gpr(), args[1].gpr()); |
29864 | OPGEN_RETURN(result); |
29865 | #endif |
29866 | break; |
29867 | break; |
29868 | case Arg::Addr: |
29869 | case Arg::Stack: |
29870 | case Arg::CallArg: |
29871 | #if CPU(X86_64) |
29872 | jit.countLeadingZeros64(args[0].asAddress(), args[1].gpr()); |
29873 | OPGEN_RETURN(result); |
29874 | #endif |
29875 | break; |
29876 | break; |
29877 | default: |
29878 | break; |
29879 | } |
29880 | break; |
29881 | case Opcode::ConvertDoubleToFloat: |
29882 | switch (this->args[0].kind()) { |
29883 | case Arg::Tmp: |
29884 | jit.convertDoubleToFloat(args[0].fpr(), args[1].fpr()); |
29885 | OPGEN_RETURN(result); |
29886 | break; |
29887 | break; |
29888 | case Arg::Addr: |
29889 | case Arg::Stack: |
29890 | case Arg::CallArg: |
29891 | #if CPU(X86) || CPU(X86_64) |
29892 | jit.convertDoubleToFloat(args[0].asAddress(), args[1].fpr()); |
29893 | OPGEN_RETURN(result); |
29894 | #endif |
29895 | break; |
29896 | break; |
29897 | default: |
29898 | break; |
29899 | } |
29900 | break; |
29901 | case Opcode::ConvertFloatToDouble: |
29902 | switch (this->args[0].kind()) { |
29903 | case Arg::Tmp: |
29904 | jit.convertFloatToDouble(args[0].fpr(), args[1].fpr()); |
29905 | OPGEN_RETURN(result); |
29906 | break; |
29907 | break; |
29908 | case Arg::Addr: |
29909 | case Arg::Stack: |
29910 | case Arg::CallArg: |
29911 | #if CPU(X86) || CPU(X86_64) |
29912 | jit.convertFloatToDouble(args[0].asAddress(), args[1].fpr()); |
29913 | OPGEN_RETURN(result); |
29914 | #endif |
29915 | break; |
29916 | break; |
29917 | default: |
29918 | break; |
29919 | } |
29920 | break; |
29921 | case Opcode::Move: |
29922 | switch (this->args.size()) { |
29923 | case 2: |
29924 | switch (this->args[0].kind()) { |
29925 | case Arg::Tmp: |
29926 | switch (this->args[1].kind()) { |
29927 | case Arg::Tmp: |
29928 | jit.move(args[0].gpr(), args[1].gpr()); |
29929 | OPGEN_RETURN(result); |
29930 | break; |
29931 | break; |
29932 | case Arg::Addr: |
29933 | case Arg::Stack: |
29934 | case Arg::CallArg: |
29935 | jit.storePtr(args[0].gpr(), args[1].asAddress()); |
29936 | OPGEN_RETURN(result); |
29937 | break; |
29938 | break; |
29939 | case Arg::Index: |
29940 | jit.storePtr(args[0].gpr(), args[1].asBaseIndex()); |
29941 | OPGEN_RETURN(result); |
29942 | break; |
29943 | break; |
29944 | default: |
29945 | break; |
29946 | } |
29947 | break; |
29948 | case Arg::Imm: |
29949 | switch (this->args[1].kind()) { |
29950 | case Arg::Tmp: |
29951 | jit.signExtend32ToPtr(args[0].asTrustedImm32(), args[1].gpr()); |
29952 | OPGEN_RETURN(result); |
29953 | break; |
29954 | break; |
29955 | case Arg::Addr: |
29956 | case Arg::Stack: |
29957 | case Arg::CallArg: |
29958 | #if CPU(X86) || CPU(X86_64) |
29959 | jit.storePtr(args[0].asTrustedImm32(), args[1].asAddress()); |
29960 | OPGEN_RETURN(result); |
29961 | #endif |
29962 | break; |
29963 | break; |
29964 | default: |
29965 | break; |
29966 | } |
29967 | break; |
29968 | #if USE(JSVALUE64) |
29969 | case Arg::BigImm: |
29970 | jit.move(args[0].asTrustedImm64(), args[1].gpr()); |
29971 | OPGEN_RETURN(result); |
29972 | break; |
29973 | break; |
29974 | #endif // USE(JSVALUE64) |
29975 | case Arg::Addr: |
29976 | case Arg::Stack: |
29977 | case Arg::CallArg: |
29978 | jit.loadPtr(args[0].asAddress(), args[1].gpr()); |
29979 | OPGEN_RETURN(result); |
29980 | break; |
29981 | break; |
29982 | case Arg::Index: |
29983 | jit.loadPtr(args[0].asBaseIndex(), args[1].gpr()); |
29984 | OPGEN_RETURN(result); |
29985 | break; |
29986 | break; |
29987 | default: |
29988 | break; |
29989 | } |
29990 | break; |
29991 | case 3: |
29992 | jit.move(args[0].asAddress(), args[1].asAddress(), args[2].gpr()); |
29993 | OPGEN_RETURN(result); |
29994 | break; |
29995 | break; |
29996 | default: |
29997 | break; |
29998 | } |
29999 | break; |
30000 | case Opcode::Swap32: |
30001 | switch (this->args[1].kind()) { |
30002 | case Arg::Tmp: |
30003 | #if CPU(X86) || CPU(X86_64) |
30004 | jit.swap32(args[0].gpr(), args[1].gpr()); |
30005 | OPGEN_RETURN(result); |
30006 | #endif |
30007 | break; |
30008 | break; |
30009 | case Arg::Addr: |
30010 | case Arg::Stack: |
30011 | case Arg::CallArg: |
30012 | #if CPU(X86) || CPU(X86_64) |
30013 | jit.swap32(args[0].gpr(), args[1].asAddress()); |
30014 | OPGEN_RETURN(result); |
30015 | #endif |
30016 | break; |
30017 | break; |
30018 | default: |
30019 | break; |
30020 | } |
30021 | break; |
30022 | case Opcode::Swap64: |
30023 | switch (this->args[1].kind()) { |
30024 | case Arg::Tmp: |
30025 | #if CPU(X86_64) |
30026 | jit.swap64(args[0].gpr(), args[1].gpr()); |
30027 | OPGEN_RETURN(result); |
30028 | #endif |
30029 | break; |
30030 | break; |
30031 | case Arg::Addr: |
30032 | case Arg::Stack: |
30033 | case Arg::CallArg: |
30034 | #if CPU(X86_64) |
30035 | jit.swap64(args[0].gpr(), args[1].asAddress()); |
30036 | OPGEN_RETURN(result); |
30037 | #endif |
30038 | break; |
30039 | break; |
30040 | default: |
30041 | break; |
30042 | } |
30043 | break; |
30044 | case Opcode::Move32: |
30045 | switch (this->args.size()) { |
30046 | case 2: |
30047 | switch (this->args[0].kind()) { |
30048 | case Arg::Tmp: |
30049 | switch (this->args[1].kind()) { |
30050 | case Arg::Tmp: |
30051 | jit.zeroExtend32ToPtr(args[0].gpr(), args[1].gpr()); |
30052 | OPGEN_RETURN(result); |
30053 | break; |
30054 | break; |
30055 | case Arg::Addr: |
30056 | case Arg::Stack: |
30057 | case Arg::CallArg: |
30058 | jit.store32(args[0].gpr(), args[1].asAddress()); |
30059 | OPGEN_RETURN(result); |
30060 | break; |
30061 | break; |
30062 | case Arg::Index: |
30063 | jit.store32(args[0].gpr(), args[1].asBaseIndex()); |
30064 | OPGEN_RETURN(result); |
30065 | break; |
30066 | break; |
30067 | default: |
30068 | break; |
30069 | } |
30070 | break; |
30071 | case Arg::Addr: |
30072 | case Arg::Stack: |
30073 | case Arg::CallArg: |
30074 | jit.load32(args[0].asAddress(), args[1].gpr()); |
30075 | OPGEN_RETURN(result); |
30076 | break; |
30077 | break; |
30078 | case Arg::Index: |
30079 | jit.load32(args[0].asBaseIndex(), args[1].gpr()); |
30080 | OPGEN_RETURN(result); |
30081 | break; |
30082 | break; |
30083 | case Arg::Imm: |
30084 | switch (this->args[1].kind()) { |
30085 | case Arg::Tmp: |
30086 | #if CPU(X86) || CPU(X86_64) |
30087 | jit.zeroExtend32ToPtr(args[0].asTrustedImm32(), args[1].gpr()); |
30088 | OPGEN_RETURN(result); |
30089 | #endif |
30090 | break; |
30091 | break; |
30092 | case Arg::Addr: |
30093 | case Arg::Stack: |
30094 | case Arg::CallArg: |
30095 | #if CPU(X86) || CPU(X86_64) |
30096 | jit.store32(args[0].asTrustedImm32(), args[1].asAddress()); |
30097 | OPGEN_RETURN(result); |
30098 | #endif |
30099 | break; |
30100 | break; |
30101 | case Arg::Index: |
30102 | #if CPU(X86) || CPU(X86_64) |
30103 | jit.store32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
30104 | OPGEN_RETURN(result); |
30105 | #endif |
30106 | break; |
30107 | break; |
30108 | default: |
30109 | break; |
30110 | } |
30111 | break; |
30112 | default: |
30113 | break; |
30114 | } |
30115 | break; |
30116 | case 3: |
30117 | jit.move32(args[0].asAddress(), args[1].asAddress(), args[2].gpr()); |
30118 | OPGEN_RETURN(result); |
30119 | break; |
30120 | break; |
30121 | default: |
30122 | break; |
30123 | } |
30124 | break; |
30125 | case Opcode::StoreZero32: |
30126 | switch (this->args[0].kind()) { |
30127 | case Arg::Addr: |
30128 | case Arg::Stack: |
30129 | case Arg::CallArg: |
30130 | jit.storeZero32(args[0].asAddress()); |
30131 | OPGEN_RETURN(result); |
30132 | break; |
30133 | break; |
30134 | case Arg::Index: |
30135 | jit.storeZero32(args[0].asBaseIndex()); |
30136 | OPGEN_RETURN(result); |
30137 | break; |
30138 | break; |
30139 | default: |
30140 | break; |
30141 | } |
30142 | break; |
30143 | case Opcode::StoreZero64: |
30144 | switch (this->args[0].kind()) { |
30145 | case Arg::Addr: |
30146 | case Arg::Stack: |
30147 | case Arg::CallArg: |
30148 | #if CPU(X86_64) || CPU(ARM64) |
30149 | jit.storeZero64(args[0].asAddress()); |
30150 | OPGEN_RETURN(result); |
30151 | #endif |
30152 | break; |
30153 | break; |
30154 | case Arg::Index: |
30155 | #if CPU(X86_64) || CPU(ARM64) |
30156 | jit.storeZero64(args[0].asBaseIndex()); |
30157 | OPGEN_RETURN(result); |
30158 | #endif |
30159 | break; |
30160 | break; |
30161 | default: |
30162 | break; |
30163 | } |
30164 | break; |
30165 | case Opcode::SignExtend32ToPtr: |
30166 | jit.signExtend32ToPtr(args[0].gpr(), args[1].gpr()); |
30167 | OPGEN_RETURN(result); |
30168 | break; |
30169 | break; |
30170 | case Opcode::ZeroExtend8To32: |
30171 | switch (this->args[0].kind()) { |
30172 | case Arg::Tmp: |
30173 | jit.zeroExtend8To32(args[0].gpr(), args[1].gpr()); |
30174 | OPGEN_RETURN(result); |
30175 | break; |
30176 | break; |
30177 | case Arg::Addr: |
30178 | case Arg::Stack: |
30179 | case Arg::CallArg: |
30180 | #if CPU(X86) || CPU(X86_64) |
30181 | jit.load8(args[0].asAddress(), args[1].gpr()); |
30182 | OPGEN_RETURN(result); |
30183 | #endif |
30184 | break; |
30185 | break; |
30186 | case Arg::Index: |
30187 | #if CPU(X86) || CPU(X86_64) |
30188 | jit.load8(args[0].asBaseIndex(), args[1].gpr()); |
30189 | OPGEN_RETURN(result); |
30190 | #endif |
30191 | break; |
30192 | break; |
30193 | default: |
30194 | break; |
30195 | } |
30196 | break; |
30197 | case Opcode::SignExtend8To32: |
30198 | switch (this->args[0].kind()) { |
30199 | case Arg::Tmp: |
30200 | jit.signExtend8To32(args[0].gpr(), args[1].gpr()); |
30201 | OPGEN_RETURN(result); |
30202 | break; |
30203 | break; |
30204 | case Arg::Addr: |
30205 | case Arg::Stack: |
30206 | case Arg::CallArg: |
30207 | #if CPU(X86) || CPU(X86_64) |
30208 | jit.load8SignedExtendTo32(args[0].asAddress(), args[1].gpr()); |
30209 | OPGEN_RETURN(result); |
30210 | #endif |
30211 | break; |
30212 | break; |
30213 | case Arg::Index: |
30214 | #if CPU(X86) || CPU(X86_64) |
30215 | jit.load8SignedExtendTo32(args[0].asBaseIndex(), args[1].gpr()); |
30216 | OPGEN_RETURN(result); |
30217 | #endif |
30218 | break; |
30219 | break; |
30220 | default: |
30221 | break; |
30222 | } |
30223 | break; |
30224 | case Opcode::ZeroExtend16To32: |
30225 | switch (this->args[0].kind()) { |
30226 | case Arg::Tmp: |
30227 | jit.zeroExtend16To32(args[0].gpr(), args[1].gpr()); |
30228 | OPGEN_RETURN(result); |
30229 | break; |
30230 | break; |
30231 | case Arg::Addr: |
30232 | case Arg::Stack: |
30233 | case Arg::CallArg: |
30234 | #if CPU(X86) || CPU(X86_64) |
30235 | jit.load16(args[0].asAddress(), args[1].gpr()); |
30236 | OPGEN_RETURN(result); |
30237 | #endif |
30238 | break; |
30239 | break; |
30240 | case Arg::Index: |
30241 | #if CPU(X86) || CPU(X86_64) |
30242 | jit.load16(args[0].asBaseIndex(), args[1].gpr()); |
30243 | OPGEN_RETURN(result); |
30244 | #endif |
30245 | break; |
30246 | break; |
30247 | default: |
30248 | break; |
30249 | } |
30250 | break; |
30251 | case Opcode::SignExtend16To32: |
30252 | switch (this->args[0].kind()) { |
30253 | case Arg::Tmp: |
30254 | jit.signExtend16To32(args[0].gpr(), args[1].gpr()); |
30255 | OPGEN_RETURN(result); |
30256 | break; |
30257 | break; |
30258 | case Arg::Addr: |
30259 | case Arg::Stack: |
30260 | case Arg::CallArg: |
30261 | #if CPU(X86) || CPU(X86_64) |
30262 | jit.load16SignedExtendTo32(args[0].asAddress(), args[1].gpr()); |
30263 | OPGEN_RETURN(result); |
30264 | #endif |
30265 | break; |
30266 | break; |
30267 | case Arg::Index: |
30268 | #if CPU(X86) || CPU(X86_64) |
30269 | jit.load16SignedExtendTo32(args[0].asBaseIndex(), args[1].gpr()); |
30270 | OPGEN_RETURN(result); |
30271 | #endif |
30272 | break; |
30273 | break; |
30274 | default: |
30275 | break; |
30276 | } |
30277 | break; |
30278 | case Opcode::MoveFloat: |
30279 | switch (this->args.size()) { |
30280 | case 2: |
30281 | switch (this->args[0].kind()) { |
30282 | case Arg::Tmp: |
30283 | switch (this->args[1].kind()) { |
30284 | case Arg::Tmp: |
30285 | jit.moveDouble(args[0].fpr(), args[1].fpr()); |
30286 | OPGEN_RETURN(result); |
30287 | break; |
30288 | break; |
30289 | case Arg::Addr: |
30290 | case Arg::Stack: |
30291 | case Arg::CallArg: |
30292 | jit.storeFloat(args[0].fpr(), args[1].asAddress()); |
30293 | OPGEN_RETURN(result); |
30294 | break; |
30295 | break; |
30296 | case Arg::Index: |
30297 | jit.storeFloat(args[0].fpr(), args[1].asBaseIndex()); |
30298 | OPGEN_RETURN(result); |
30299 | break; |
30300 | break; |
30301 | default: |
30302 | break; |
30303 | } |
30304 | break; |
30305 | case Arg::Addr: |
30306 | case Arg::Stack: |
30307 | case Arg::CallArg: |
30308 | jit.loadFloat(args[0].asAddress(), args[1].fpr()); |
30309 | OPGEN_RETURN(result); |
30310 | break; |
30311 | break; |
30312 | case Arg::Index: |
30313 | jit.loadFloat(args[0].asBaseIndex(), args[1].fpr()); |
30314 | OPGEN_RETURN(result); |
30315 | break; |
30316 | break; |
30317 | default: |
30318 | break; |
30319 | } |
30320 | break; |
30321 | case 3: |
30322 | jit.moveFloat(args[0].asAddress(), args[1].asAddress(), args[2].fpr()); |
30323 | OPGEN_RETURN(result); |
30324 | break; |
30325 | break; |
30326 | default: |
30327 | break; |
30328 | } |
30329 | break; |
30330 | case Opcode::MoveDouble: |
30331 | switch (this->args.size()) { |
30332 | case 2: |
30333 | switch (this->args[0].kind()) { |
30334 | case Arg::Tmp: |
30335 | switch (this->args[1].kind()) { |
30336 | case Arg::Tmp: |
30337 | jit.moveDouble(args[0].fpr(), args[1].fpr()); |
30338 | OPGEN_RETURN(result); |
30339 | break; |
30340 | break; |
30341 | case Arg::Addr: |
30342 | case Arg::Stack: |
30343 | case Arg::CallArg: |
30344 | jit.storeDouble(args[0].fpr(), args[1].asAddress()); |
30345 | OPGEN_RETURN(result); |
30346 | break; |
30347 | break; |
30348 | case Arg::Index: |
30349 | jit.storeDouble(args[0].fpr(), args[1].asBaseIndex()); |
30350 | OPGEN_RETURN(result); |
30351 | break; |
30352 | break; |
30353 | default: |
30354 | break; |
30355 | } |
30356 | break; |
30357 | case Arg::Addr: |
30358 | case Arg::Stack: |
30359 | case Arg::CallArg: |
30360 | jit.loadDouble(args[0].asAddress(), args[1].fpr()); |
30361 | OPGEN_RETURN(result); |
30362 | break; |
30363 | break; |
30364 | case Arg::Index: |
30365 | jit.loadDouble(args[0].asBaseIndex(), args[1].fpr()); |
30366 | OPGEN_RETURN(result); |
30367 | break; |
30368 | break; |
30369 | default: |
30370 | break; |
30371 | } |
30372 | break; |
30373 | case 3: |
30374 | jit.moveDouble(args[0].asAddress(), args[1].asAddress(), args[2].fpr()); |
30375 | OPGEN_RETURN(result); |
30376 | break; |
30377 | break; |
30378 | default: |
30379 | break; |
30380 | } |
30381 | break; |
30382 | case Opcode::MoveZeroToDouble: |
30383 | jit.moveZeroToDouble(args[0].fpr()); |
30384 | OPGEN_RETURN(result); |
30385 | break; |
30386 | break; |
30387 | case Opcode::Move64ToDouble: |
30388 | switch (this->args[0].kind()) { |
30389 | case Arg::Tmp: |
30390 | #if CPU(X86_64) || CPU(ARM64) |
30391 | jit.move64ToDouble(args[0].gpr(), args[1].fpr()); |
30392 | OPGEN_RETURN(result); |
30393 | #endif |
30394 | break; |
30395 | break; |
30396 | case Arg::Addr: |
30397 | case Arg::Stack: |
30398 | case Arg::CallArg: |
30399 | #if CPU(X86_64) |
30400 | jit.loadDouble(args[0].asAddress(), args[1].fpr()); |
30401 | OPGEN_RETURN(result); |
30402 | #endif |
30403 | break; |
30404 | break; |
30405 | case Arg::Index: |
30406 | #if CPU(X86_64) || CPU(ARM64) |
30407 | jit.loadDouble(args[0].asBaseIndex(), args[1].fpr()); |
30408 | OPGEN_RETURN(result); |
30409 | #endif |
30410 | break; |
30411 | break; |
30412 | default: |
30413 | break; |
30414 | } |
30415 | break; |
30416 | case Opcode::Move32ToFloat: |
30417 | switch (this->args[0].kind()) { |
30418 | case Arg::Tmp: |
30419 | jit.move32ToFloat(args[0].gpr(), args[1].fpr()); |
30420 | OPGEN_RETURN(result); |
30421 | break; |
30422 | break; |
30423 | case Arg::Addr: |
30424 | case Arg::Stack: |
30425 | case Arg::CallArg: |
30426 | #if CPU(X86) || CPU(X86_64) |
30427 | jit.loadFloat(args[0].asAddress(), args[1].fpr()); |
30428 | OPGEN_RETURN(result); |
30429 | #endif |
30430 | break; |
30431 | break; |
30432 | case Arg::Index: |
30433 | jit.loadFloat(args[0].asBaseIndex(), args[1].fpr()); |
30434 | OPGEN_RETURN(result); |
30435 | break; |
30436 | break; |
30437 | default: |
30438 | break; |
30439 | } |
30440 | break; |
30441 | case Opcode::MoveDoubleTo64: |
30442 | switch (this->args[0].kind()) { |
30443 | case Arg::Tmp: |
30444 | #if CPU(X86_64) || CPU(ARM64) |
30445 | jit.moveDoubleTo64(args[0].fpr(), args[1].gpr()); |
30446 | OPGEN_RETURN(result); |
30447 | #endif |
30448 | break; |
30449 | break; |
30450 | case Arg::Addr: |
30451 | case Arg::Stack: |
30452 | case Arg::CallArg: |
30453 | #if CPU(X86_64) || CPU(ARM64) |
30454 | jit.load64(args[0].asAddress(), args[1].gpr()); |
30455 | OPGEN_RETURN(result); |
30456 | #endif |
30457 | break; |
30458 | break; |
30459 | case Arg::Index: |
30460 | #if CPU(X86_64) || CPU(ARM64) |
30461 | jit.load64(args[0].asBaseIndex(), args[1].gpr()); |
30462 | OPGEN_RETURN(result); |
30463 | #endif |
30464 | break; |
30465 | break; |
30466 | default: |
30467 | break; |
30468 | } |
30469 | break; |
30470 | case Opcode::MoveFloatTo32: |
30471 | switch (this->args[0].kind()) { |
30472 | case Arg::Tmp: |
30473 | jit.moveFloatTo32(args[0].fpr(), args[1].gpr()); |
30474 | OPGEN_RETURN(result); |
30475 | break; |
30476 | break; |
30477 | case Arg::Addr: |
30478 | case Arg::Stack: |
30479 | case Arg::CallArg: |
30480 | jit.load32(args[0].asAddress(), args[1].gpr()); |
30481 | OPGEN_RETURN(result); |
30482 | break; |
30483 | break; |
30484 | case Arg::Index: |
30485 | jit.load32(args[0].asBaseIndex(), args[1].gpr()); |
30486 | OPGEN_RETURN(result); |
30487 | break; |
30488 | break; |
30489 | default: |
30490 | break; |
30491 | } |
30492 | break; |
30493 | case Opcode::Load8: |
30494 | switch (this->args[0].kind()) { |
30495 | case Arg::Addr: |
30496 | case Arg::Stack: |
30497 | case Arg::CallArg: |
30498 | jit.load8(args[0].asAddress(), args[1].gpr()); |
30499 | OPGEN_RETURN(result); |
30500 | break; |
30501 | break; |
30502 | case Arg::Index: |
30503 | jit.load8(args[0].asBaseIndex(), args[1].gpr()); |
30504 | OPGEN_RETURN(result); |
30505 | break; |
30506 | break; |
30507 | default: |
30508 | break; |
30509 | } |
30510 | break; |
30511 | case Opcode::LoadAcq8: |
30512 | #if CPU(ARMv7) || CPU(ARM64) |
30513 | jit.loadAcq8(args[0].asAddress(), args[1].gpr()); |
30514 | OPGEN_RETURN(result); |
30515 | #endif |
30516 | break; |
30517 | break; |
30518 | case Opcode::Store8: |
30519 | switch (this->args[0].kind()) { |
30520 | case Arg::Tmp: |
30521 | switch (this->args[1].kind()) { |
30522 | case Arg::Index: |
30523 | jit.store8(args[0].gpr(), args[1].asBaseIndex()); |
30524 | OPGEN_RETURN(result); |
30525 | break; |
30526 | break; |
30527 | case Arg::Addr: |
30528 | case Arg::Stack: |
30529 | case Arg::CallArg: |
30530 | jit.store8(args[0].gpr(), args[1].asAddress()); |
30531 | OPGEN_RETURN(result); |
30532 | break; |
30533 | break; |
30534 | default: |
30535 | break; |
30536 | } |
30537 | break; |
30538 | case Arg::Imm: |
30539 | switch (this->args[1].kind()) { |
30540 | case Arg::Index: |
30541 | #if CPU(X86) || CPU(X86_64) |
30542 | jit.store8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
30543 | OPGEN_RETURN(result); |
30544 | #endif |
30545 | break; |
30546 | break; |
30547 | case Arg::Addr: |
30548 | case Arg::Stack: |
30549 | case Arg::CallArg: |
30550 | #if CPU(X86) || CPU(X86_64) |
30551 | jit.store8(args[0].asTrustedImm32(), args[1].asAddress()); |
30552 | OPGEN_RETURN(result); |
30553 | #endif |
30554 | break; |
30555 | break; |
30556 | default: |
30557 | break; |
30558 | } |
30559 | break; |
30560 | default: |
30561 | break; |
30562 | } |
30563 | break; |
30564 | case Opcode::StoreRel8: |
30565 | #if CPU(ARMv7) || CPU(ARM64) |
30566 | jit.storeRel8(args[0].gpr(), args[1].asAddress()); |
30567 | OPGEN_RETURN(result); |
30568 | #endif |
30569 | break; |
30570 | break; |
30571 | case Opcode::Load8SignedExtendTo32: |
30572 | switch (this->args[0].kind()) { |
30573 | case Arg::Addr: |
30574 | case Arg::Stack: |
30575 | case Arg::CallArg: |
30576 | jit.load8SignedExtendTo32(args[0].asAddress(), args[1].gpr()); |
30577 | OPGEN_RETURN(result); |
30578 | break; |
30579 | break; |
30580 | case Arg::Index: |
30581 | jit.load8SignedExtendTo32(args[0].asBaseIndex(), args[1].gpr()); |
30582 | OPGEN_RETURN(result); |
30583 | break; |
30584 | break; |
30585 | default: |
30586 | break; |
30587 | } |
30588 | break; |
30589 | case Opcode::LoadAcq8SignedExtendTo32: |
30590 | #if CPU(ARMv7) || CPU(ARM64) |
30591 | jit.loadAcq8SignedExtendTo32(args[0].asAddress(), args[1].gpr()); |
30592 | OPGEN_RETURN(result); |
30593 | #endif |
30594 | break; |
30595 | break; |
30596 | case Opcode::Load16: |
30597 | switch (this->args[0].kind()) { |
30598 | case Arg::Addr: |
30599 | case Arg::Stack: |
30600 | case Arg::CallArg: |
30601 | jit.load16(args[0].asAddress(), args[1].gpr()); |
30602 | OPGEN_RETURN(result); |
30603 | break; |
30604 | break; |
30605 | case Arg::Index: |
30606 | jit.load16(args[0].asBaseIndex(), args[1].gpr()); |
30607 | OPGEN_RETURN(result); |
30608 | break; |
30609 | break; |
30610 | default: |
30611 | break; |
30612 | } |
30613 | break; |
30614 | case Opcode::LoadAcq16: |
30615 | #if CPU(ARMv7) || CPU(ARM64) |
30616 | jit.loadAcq16(args[0].asAddress(), args[1].gpr()); |
30617 | OPGEN_RETURN(result); |
30618 | #endif |
30619 | break; |
30620 | break; |
30621 | case Opcode::Load16SignedExtendTo32: |
30622 | switch (this->args[0].kind()) { |
30623 | case Arg::Addr: |
30624 | case Arg::Stack: |
30625 | case Arg::CallArg: |
30626 | jit.load16SignedExtendTo32(args[0].asAddress(), args[1].gpr()); |
30627 | OPGEN_RETURN(result); |
30628 | break; |
30629 | break; |
30630 | case Arg::Index: |
30631 | jit.load16SignedExtendTo32(args[0].asBaseIndex(), args[1].gpr()); |
30632 | OPGEN_RETURN(result); |
30633 | break; |
30634 | break; |
30635 | default: |
30636 | break; |
30637 | } |
30638 | break; |
30639 | case Opcode::LoadAcq16SignedExtendTo32: |
30640 | #if CPU(ARMv7) || CPU(ARM64) |
30641 | jit.loadAcq16SignedExtendTo32(args[0].asAddress(), args[1].gpr()); |
30642 | OPGEN_RETURN(result); |
30643 | #endif |
30644 | break; |
30645 | break; |
30646 | case Opcode::Store16: |
30647 | switch (this->args[0].kind()) { |
30648 | case Arg::Tmp: |
30649 | switch (this->args[1].kind()) { |
30650 | case Arg::Index: |
30651 | jit.store16(args[0].gpr(), args[1].asBaseIndex()); |
30652 | OPGEN_RETURN(result); |
30653 | break; |
30654 | break; |
30655 | case Arg::Addr: |
30656 | case Arg::Stack: |
30657 | case Arg::CallArg: |
30658 | jit.store16(args[0].gpr(), args[1].asAddress()); |
30659 | OPGEN_RETURN(result); |
30660 | break; |
30661 | break; |
30662 | default: |
30663 | break; |
30664 | } |
30665 | break; |
30666 | case Arg::Imm: |
30667 | switch (this->args[1].kind()) { |
30668 | case Arg::Index: |
30669 | #if CPU(X86) || CPU(X86_64) |
30670 | jit.store16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
30671 | OPGEN_RETURN(result); |
30672 | #endif |
30673 | break; |
30674 | break; |
30675 | case Arg::Addr: |
30676 | case Arg::Stack: |
30677 | case Arg::CallArg: |
30678 | #if CPU(X86) || CPU(X86_64) |
30679 | jit.store16(args[0].asTrustedImm32(), args[1].asAddress()); |
30680 | OPGEN_RETURN(result); |
30681 | #endif |
30682 | break; |
30683 | break; |
30684 | default: |
30685 | break; |
30686 | } |
30687 | break; |
30688 | default: |
30689 | break; |
30690 | } |
30691 | break; |
30692 | case Opcode::StoreRel16: |
30693 | #if CPU(ARMv7) || CPU(ARM64) |
30694 | jit.storeRel16(args[0].gpr(), args[1].asAddress()); |
30695 | OPGEN_RETURN(result); |
30696 | #endif |
30697 | break; |
30698 | break; |
30699 | case Opcode::LoadAcq32: |
30700 | #if CPU(ARMv7) || CPU(ARM64) |
30701 | jit.loadAcq32(args[0].asAddress(), args[1].gpr()); |
30702 | OPGEN_RETURN(result); |
30703 | #endif |
30704 | break; |
30705 | break; |
30706 | case Opcode::StoreRel32: |
30707 | #if CPU(ARMv7) || CPU(ARM64) |
30708 | jit.storeRel32(args[0].gpr(), args[1].asAddress()); |
30709 | OPGEN_RETURN(result); |
30710 | #endif |
30711 | break; |
30712 | break; |
30713 | case Opcode::LoadAcq64: |
30714 | #if CPU(ARM64) |
30715 | jit.loadAcq64(args[0].asAddress(), args[1].gpr()); |
30716 | OPGEN_RETURN(result); |
30717 | #endif |
30718 | break; |
30719 | break; |
30720 | case Opcode::StoreRel64: |
30721 | #if CPU(ARM64) |
30722 | jit.storeRel64(args[0].gpr(), args[1].asAddress()); |
30723 | OPGEN_RETURN(result); |
30724 | #endif |
30725 | break; |
30726 | break; |
30727 | case Opcode::Xchg8: |
30728 | switch (this->args[1].kind()) { |
30729 | case Arg::Addr: |
30730 | case Arg::Stack: |
30731 | case Arg::CallArg: |
30732 | #if CPU(X86) || CPU(X86_64) |
30733 | jit.xchg8(args[0].gpr(), args[1].asAddress()); |
30734 | OPGEN_RETURN(result); |
30735 | #endif |
30736 | break; |
30737 | break; |
30738 | case Arg::Index: |
30739 | #if CPU(X86) || CPU(X86_64) |
30740 | jit.xchg8(args[0].gpr(), args[1].asBaseIndex()); |
30741 | OPGEN_RETURN(result); |
30742 | #endif |
30743 | break; |
30744 | break; |
30745 | default: |
30746 | break; |
30747 | } |
30748 | break; |
30749 | case Opcode::Xchg16: |
30750 | switch (this->args[1].kind()) { |
30751 | case Arg::Addr: |
30752 | case Arg::Stack: |
30753 | case Arg::CallArg: |
30754 | #if CPU(X86) || CPU(X86_64) |
30755 | jit.xchg16(args[0].gpr(), args[1].asAddress()); |
30756 | OPGEN_RETURN(result); |
30757 | #endif |
30758 | break; |
30759 | break; |
30760 | case Arg::Index: |
30761 | #if CPU(X86) || CPU(X86_64) |
30762 | jit.xchg16(args[0].gpr(), args[1].asBaseIndex()); |
30763 | OPGEN_RETURN(result); |
30764 | #endif |
30765 | break; |
30766 | break; |
30767 | default: |
30768 | break; |
30769 | } |
30770 | break; |
30771 | case Opcode::Xchg32: |
30772 | switch (this->args[1].kind()) { |
30773 | case Arg::Addr: |
30774 | case Arg::Stack: |
30775 | case Arg::CallArg: |
30776 | #if CPU(X86) || CPU(X86_64) |
30777 | jit.xchg32(args[0].gpr(), args[1].asAddress()); |
30778 | OPGEN_RETURN(result); |
30779 | #endif |
30780 | break; |
30781 | break; |
30782 | case Arg::Index: |
30783 | #if CPU(X86) || CPU(X86_64) |
30784 | jit.xchg32(args[0].gpr(), args[1].asBaseIndex()); |
30785 | OPGEN_RETURN(result); |
30786 | #endif |
30787 | break; |
30788 | break; |
30789 | default: |
30790 | break; |
30791 | } |
30792 | break; |
30793 | case Opcode::Xchg64: |
30794 | switch (this->args[1].kind()) { |
30795 | case Arg::Addr: |
30796 | case Arg::Stack: |
30797 | case Arg::CallArg: |
30798 | #if CPU(X86_64) |
30799 | jit.xchg64(args[0].gpr(), args[1].asAddress()); |
30800 | OPGEN_RETURN(result); |
30801 | #endif |
30802 | break; |
30803 | break; |
30804 | case Arg::Index: |
30805 | #if CPU(X86_64) |
30806 | jit.xchg64(args[0].gpr(), args[1].asBaseIndex()); |
30807 | OPGEN_RETURN(result); |
30808 | #endif |
30809 | break; |
30810 | break; |
30811 | default: |
30812 | break; |
30813 | } |
30814 | break; |
30815 | case Opcode::AtomicStrongCAS8: |
30816 | switch (this->args.size()) { |
30817 | case 5: |
30818 | switch (this->args[3].kind()) { |
30819 | case Arg::Addr: |
30820 | case Arg::Stack: |
30821 | case Arg::CallArg: |
30822 | #if CPU(X86) || CPU(X86_64) |
30823 | jit.atomicStrongCAS8(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress(), args[4].gpr()); |
30824 | OPGEN_RETURN(result); |
30825 | #endif |
30826 | break; |
30827 | break; |
30828 | case Arg::Index: |
30829 | #if CPU(X86) || CPU(X86_64) |
30830 | jit.atomicStrongCAS8(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex(), args[4].gpr()); |
30831 | OPGEN_RETURN(result); |
30832 | #endif |
30833 | break; |
30834 | break; |
30835 | default: |
30836 | break; |
30837 | } |
30838 | break; |
30839 | case 3: |
30840 | switch (this->args[2].kind()) { |
30841 | case Arg::Addr: |
30842 | case Arg::Stack: |
30843 | case Arg::CallArg: |
30844 | #if CPU(X86) || CPU(X86_64) |
30845 | jit.atomicStrongCAS8(args[0].gpr(), args[1].gpr(), args[2].asAddress()); |
30846 | OPGEN_RETURN(result); |
30847 | #endif |
30848 | break; |
30849 | break; |
30850 | case Arg::Index: |
30851 | #if CPU(X86) || CPU(X86_64) |
30852 | jit.atomicStrongCAS8(args[0].gpr(), args[1].gpr(), args[2].asBaseIndex()); |
30853 | OPGEN_RETURN(result); |
30854 | #endif |
30855 | break; |
30856 | break; |
30857 | default: |
30858 | break; |
30859 | } |
30860 | break; |
30861 | default: |
30862 | break; |
30863 | } |
30864 | break; |
30865 | case Opcode::AtomicStrongCAS16: |
30866 | switch (this->args.size()) { |
30867 | case 5: |
30868 | switch (this->args[3].kind()) { |
30869 | case Arg::Addr: |
30870 | case Arg::Stack: |
30871 | case Arg::CallArg: |
30872 | #if CPU(X86) || CPU(X86_64) |
30873 | jit.atomicStrongCAS16(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress(), args[4].gpr()); |
30874 | OPGEN_RETURN(result); |
30875 | #endif |
30876 | break; |
30877 | break; |
30878 | case Arg::Index: |
30879 | #if CPU(X86) || CPU(X86_64) |
30880 | jit.atomicStrongCAS16(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex(), args[4].gpr()); |
30881 | OPGEN_RETURN(result); |
30882 | #endif |
30883 | break; |
30884 | break; |
30885 | default: |
30886 | break; |
30887 | } |
30888 | break; |
30889 | case 3: |
30890 | switch (this->args[2].kind()) { |
30891 | case Arg::Addr: |
30892 | case Arg::Stack: |
30893 | case Arg::CallArg: |
30894 | #if CPU(X86) || CPU(X86_64) |
30895 | jit.atomicStrongCAS16(args[0].gpr(), args[1].gpr(), args[2].asAddress()); |
30896 | OPGEN_RETURN(result); |
30897 | #endif |
30898 | break; |
30899 | break; |
30900 | case Arg::Index: |
30901 | #if CPU(X86) || CPU(X86_64) |
30902 | jit.atomicStrongCAS16(args[0].gpr(), args[1].gpr(), args[2].asBaseIndex()); |
30903 | OPGEN_RETURN(result); |
30904 | #endif |
30905 | break; |
30906 | break; |
30907 | default: |
30908 | break; |
30909 | } |
30910 | break; |
30911 | default: |
30912 | break; |
30913 | } |
30914 | break; |
30915 | case Opcode::AtomicStrongCAS32: |
30916 | switch (this->args.size()) { |
30917 | case 5: |
30918 | switch (this->args[3].kind()) { |
30919 | case Arg::Addr: |
30920 | case Arg::Stack: |
30921 | case Arg::CallArg: |
30922 | #if CPU(X86) || CPU(X86_64) |
30923 | jit.atomicStrongCAS32(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress(), args[4].gpr()); |
30924 | OPGEN_RETURN(result); |
30925 | #endif |
30926 | break; |
30927 | break; |
30928 | case Arg::Index: |
30929 | #if CPU(X86) || CPU(X86_64) |
30930 | jit.atomicStrongCAS32(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex(), args[4].gpr()); |
30931 | OPGEN_RETURN(result); |
30932 | #endif |
30933 | break; |
30934 | break; |
30935 | default: |
30936 | break; |
30937 | } |
30938 | break; |
30939 | case 3: |
30940 | switch (this->args[2].kind()) { |
30941 | case Arg::Addr: |
30942 | case Arg::Stack: |
30943 | case Arg::CallArg: |
30944 | #if CPU(X86) || CPU(X86_64) |
30945 | jit.atomicStrongCAS32(args[0].gpr(), args[1].gpr(), args[2].asAddress()); |
30946 | OPGEN_RETURN(result); |
30947 | #endif |
30948 | break; |
30949 | break; |
30950 | case Arg::Index: |
30951 | #if CPU(X86) || CPU(X86_64) |
30952 | jit.atomicStrongCAS32(args[0].gpr(), args[1].gpr(), args[2].asBaseIndex()); |
30953 | OPGEN_RETURN(result); |
30954 | #endif |
30955 | break; |
30956 | break; |
30957 | default: |
30958 | break; |
30959 | } |
30960 | break; |
30961 | default: |
30962 | break; |
30963 | } |
30964 | break; |
30965 | case Opcode::AtomicStrongCAS64: |
30966 | switch (this->args.size()) { |
30967 | case 5: |
30968 | switch (this->args[3].kind()) { |
30969 | case Arg::Addr: |
30970 | case Arg::Stack: |
30971 | case Arg::CallArg: |
30972 | #if CPU(X86_64) |
30973 | jit.atomicStrongCAS64(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress(), args[4].gpr()); |
30974 | OPGEN_RETURN(result); |
30975 | #endif |
30976 | break; |
30977 | break; |
30978 | case Arg::Index: |
30979 | #if CPU(X86_64) |
30980 | jit.atomicStrongCAS64(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex(), args[4].gpr()); |
30981 | OPGEN_RETURN(result); |
30982 | #endif |
30983 | break; |
30984 | break; |
30985 | default: |
30986 | break; |
30987 | } |
30988 | break; |
30989 | case 3: |
30990 | switch (this->args[2].kind()) { |
30991 | case Arg::Addr: |
30992 | case Arg::Stack: |
30993 | case Arg::CallArg: |
30994 | #if CPU(X86_64) |
30995 | jit.atomicStrongCAS64(args[0].gpr(), args[1].gpr(), args[2].asAddress()); |
30996 | OPGEN_RETURN(result); |
30997 | #endif |
30998 | break; |
30999 | break; |
31000 | case Arg::Index: |
31001 | #if CPU(X86_64) |
31002 | jit.atomicStrongCAS64(args[0].gpr(), args[1].gpr(), args[2].asBaseIndex()); |
31003 | OPGEN_RETURN(result); |
31004 | #endif |
31005 | break; |
31006 | break; |
31007 | default: |
31008 | break; |
31009 | } |
31010 | break; |
31011 | default: |
31012 | break; |
31013 | } |
31014 | break; |
31015 | case Opcode::BranchAtomicStrongCAS8: |
31016 | switch (this->args[3].kind()) { |
31017 | case Arg::Addr: |
31018 | case Arg::Stack: |
31019 | case Arg::CallArg: |
31020 | #if CPU(X86) || CPU(X86_64) |
31021 | result = jit.branchAtomicStrongCAS8(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress()); |
31022 | OPGEN_RETURN(result); |
31023 | #endif |
31024 | break; |
31025 | break; |
31026 | case Arg::Index: |
31027 | #if CPU(X86) || CPU(X86_64) |
31028 | result = jit.branchAtomicStrongCAS8(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex()); |
31029 | OPGEN_RETURN(result); |
31030 | #endif |
31031 | break; |
31032 | break; |
31033 | default: |
31034 | break; |
31035 | } |
31036 | break; |
31037 | case Opcode::BranchAtomicStrongCAS16: |
31038 | switch (this->args[3].kind()) { |
31039 | case Arg::Addr: |
31040 | case Arg::Stack: |
31041 | case Arg::CallArg: |
31042 | #if CPU(X86) || CPU(X86_64) |
31043 | result = jit.branchAtomicStrongCAS16(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress()); |
31044 | OPGEN_RETURN(result); |
31045 | #endif |
31046 | break; |
31047 | break; |
31048 | case Arg::Index: |
31049 | #if CPU(X86) || CPU(X86_64) |
31050 | result = jit.branchAtomicStrongCAS16(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex()); |
31051 | OPGEN_RETURN(result); |
31052 | #endif |
31053 | break; |
31054 | break; |
31055 | default: |
31056 | break; |
31057 | } |
31058 | break; |
31059 | case Opcode::BranchAtomicStrongCAS32: |
31060 | switch (this->args[3].kind()) { |
31061 | case Arg::Addr: |
31062 | case Arg::Stack: |
31063 | case Arg::CallArg: |
31064 | #if CPU(X86) || CPU(X86_64) |
31065 | result = jit.branchAtomicStrongCAS32(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress()); |
31066 | OPGEN_RETURN(result); |
31067 | #endif |
31068 | break; |
31069 | break; |
31070 | case Arg::Index: |
31071 | #if CPU(X86) || CPU(X86_64) |
31072 | result = jit.branchAtomicStrongCAS32(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex()); |
31073 | OPGEN_RETURN(result); |
31074 | #endif |
31075 | break; |
31076 | break; |
31077 | default: |
31078 | break; |
31079 | } |
31080 | break; |
31081 | case Opcode::BranchAtomicStrongCAS64: |
31082 | switch (this->args[3].kind()) { |
31083 | case Arg::Addr: |
31084 | case Arg::Stack: |
31085 | case Arg::CallArg: |
31086 | #if CPU(X86_64) |
31087 | result = jit.branchAtomicStrongCAS64(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asAddress()); |
31088 | OPGEN_RETURN(result); |
31089 | #endif |
31090 | break; |
31091 | break; |
31092 | case Arg::Index: |
31093 | #if CPU(X86_64) |
31094 | result = jit.branchAtomicStrongCAS64(args[0].asStatusCondition(), args[1].gpr(), args[2].gpr(), args[3].asBaseIndex()); |
31095 | OPGEN_RETURN(result); |
31096 | #endif |
31097 | break; |
31098 | break; |
31099 | default: |
31100 | break; |
31101 | } |
31102 | break; |
31103 | case Opcode::AtomicAdd8: |
31104 | switch (this->args[0].kind()) { |
31105 | case Arg::Imm: |
31106 | switch (this->args[1].kind()) { |
31107 | case Arg::Addr: |
31108 | case Arg::Stack: |
31109 | case Arg::CallArg: |
31110 | #if CPU(X86) || CPU(X86_64) |
31111 | jit.atomicAdd8(args[0].asTrustedImm32(), args[1].asAddress()); |
31112 | OPGEN_RETURN(result); |
31113 | #endif |
31114 | break; |
31115 | break; |
31116 | case Arg::Index: |
31117 | #if CPU(X86) || CPU(X86_64) |
31118 | jit.atomicAdd8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31119 | OPGEN_RETURN(result); |
31120 | #endif |
31121 | break; |
31122 | break; |
31123 | default: |
31124 | break; |
31125 | } |
31126 | break; |
31127 | case Arg::Tmp: |
31128 | switch (this->args[1].kind()) { |
31129 | case Arg::Addr: |
31130 | case Arg::Stack: |
31131 | case Arg::CallArg: |
31132 | #if CPU(X86) || CPU(X86_64) |
31133 | jit.atomicAdd8(args[0].gpr(), args[1].asAddress()); |
31134 | OPGEN_RETURN(result); |
31135 | #endif |
31136 | break; |
31137 | break; |
31138 | case Arg::Index: |
31139 | #if CPU(X86) || CPU(X86_64) |
31140 | jit.atomicAdd8(args[0].gpr(), args[1].asBaseIndex()); |
31141 | OPGEN_RETURN(result); |
31142 | #endif |
31143 | break; |
31144 | break; |
31145 | default: |
31146 | break; |
31147 | } |
31148 | break; |
31149 | default: |
31150 | break; |
31151 | } |
31152 | break; |
31153 | case Opcode::AtomicAdd16: |
31154 | switch (this->args[0].kind()) { |
31155 | case Arg::Imm: |
31156 | switch (this->args[1].kind()) { |
31157 | case Arg::Addr: |
31158 | case Arg::Stack: |
31159 | case Arg::CallArg: |
31160 | #if CPU(X86) || CPU(X86_64) |
31161 | jit.atomicAdd16(args[0].asTrustedImm32(), args[1].asAddress()); |
31162 | OPGEN_RETURN(result); |
31163 | #endif |
31164 | break; |
31165 | break; |
31166 | case Arg::Index: |
31167 | #if CPU(X86) || CPU(X86_64) |
31168 | jit.atomicAdd16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31169 | OPGEN_RETURN(result); |
31170 | #endif |
31171 | break; |
31172 | break; |
31173 | default: |
31174 | break; |
31175 | } |
31176 | break; |
31177 | case Arg::Tmp: |
31178 | switch (this->args[1].kind()) { |
31179 | case Arg::Addr: |
31180 | case Arg::Stack: |
31181 | case Arg::CallArg: |
31182 | #if CPU(X86) || CPU(X86_64) |
31183 | jit.atomicAdd16(args[0].gpr(), args[1].asAddress()); |
31184 | OPGEN_RETURN(result); |
31185 | #endif |
31186 | break; |
31187 | break; |
31188 | case Arg::Index: |
31189 | #if CPU(X86) || CPU(X86_64) |
31190 | jit.atomicAdd16(args[0].gpr(), args[1].asBaseIndex()); |
31191 | OPGEN_RETURN(result); |
31192 | #endif |
31193 | break; |
31194 | break; |
31195 | default: |
31196 | break; |
31197 | } |
31198 | break; |
31199 | default: |
31200 | break; |
31201 | } |
31202 | break; |
31203 | case Opcode::AtomicAdd32: |
31204 | switch (this->args[0].kind()) { |
31205 | case Arg::Imm: |
31206 | switch (this->args[1].kind()) { |
31207 | case Arg::Addr: |
31208 | case Arg::Stack: |
31209 | case Arg::CallArg: |
31210 | #if CPU(X86) || CPU(X86_64) |
31211 | jit.atomicAdd32(args[0].asTrustedImm32(), args[1].asAddress()); |
31212 | OPGEN_RETURN(result); |
31213 | #endif |
31214 | break; |
31215 | break; |
31216 | case Arg::Index: |
31217 | #if CPU(X86) || CPU(X86_64) |
31218 | jit.atomicAdd32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31219 | OPGEN_RETURN(result); |
31220 | #endif |
31221 | break; |
31222 | break; |
31223 | default: |
31224 | break; |
31225 | } |
31226 | break; |
31227 | case Arg::Tmp: |
31228 | switch (this->args[1].kind()) { |
31229 | case Arg::Addr: |
31230 | case Arg::Stack: |
31231 | case Arg::CallArg: |
31232 | #if CPU(X86) || CPU(X86_64) |
31233 | jit.atomicAdd32(args[0].gpr(), args[1].asAddress()); |
31234 | OPGEN_RETURN(result); |
31235 | #endif |
31236 | break; |
31237 | break; |
31238 | case Arg::Index: |
31239 | #if CPU(X86) || CPU(X86_64) |
31240 | jit.atomicAdd32(args[0].gpr(), args[1].asBaseIndex()); |
31241 | OPGEN_RETURN(result); |
31242 | #endif |
31243 | break; |
31244 | break; |
31245 | default: |
31246 | break; |
31247 | } |
31248 | break; |
31249 | default: |
31250 | break; |
31251 | } |
31252 | break; |
31253 | case Opcode::AtomicAdd64: |
31254 | switch (this->args[0].kind()) { |
31255 | case Arg::Imm: |
31256 | switch (this->args[1].kind()) { |
31257 | case Arg::Addr: |
31258 | case Arg::Stack: |
31259 | case Arg::CallArg: |
31260 | #if CPU(X86_64) |
31261 | jit.atomicAdd64(args[0].asTrustedImm32(), args[1].asAddress()); |
31262 | OPGEN_RETURN(result); |
31263 | #endif |
31264 | break; |
31265 | break; |
31266 | case Arg::Index: |
31267 | #if CPU(X86_64) |
31268 | jit.atomicAdd64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31269 | OPGEN_RETURN(result); |
31270 | #endif |
31271 | break; |
31272 | break; |
31273 | default: |
31274 | break; |
31275 | } |
31276 | break; |
31277 | case Arg::Tmp: |
31278 | switch (this->args[1].kind()) { |
31279 | case Arg::Addr: |
31280 | case Arg::Stack: |
31281 | case Arg::CallArg: |
31282 | #if CPU(X86_64) |
31283 | jit.atomicAdd64(args[0].gpr(), args[1].asAddress()); |
31284 | OPGEN_RETURN(result); |
31285 | #endif |
31286 | break; |
31287 | break; |
31288 | case Arg::Index: |
31289 | #if CPU(X86_64) |
31290 | jit.atomicAdd64(args[0].gpr(), args[1].asBaseIndex()); |
31291 | OPGEN_RETURN(result); |
31292 | #endif |
31293 | break; |
31294 | break; |
31295 | default: |
31296 | break; |
31297 | } |
31298 | break; |
31299 | default: |
31300 | break; |
31301 | } |
31302 | break; |
31303 | case Opcode::AtomicSub8: |
31304 | switch (this->args[0].kind()) { |
31305 | case Arg::Imm: |
31306 | switch (this->args[1].kind()) { |
31307 | case Arg::Addr: |
31308 | case Arg::Stack: |
31309 | case Arg::CallArg: |
31310 | #if CPU(X86) || CPU(X86_64) |
31311 | jit.atomicSub8(args[0].asTrustedImm32(), args[1].asAddress()); |
31312 | OPGEN_RETURN(result); |
31313 | #endif |
31314 | break; |
31315 | break; |
31316 | case Arg::Index: |
31317 | #if CPU(X86) || CPU(X86_64) |
31318 | jit.atomicSub8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31319 | OPGEN_RETURN(result); |
31320 | #endif |
31321 | break; |
31322 | break; |
31323 | default: |
31324 | break; |
31325 | } |
31326 | break; |
31327 | case Arg::Tmp: |
31328 | switch (this->args[1].kind()) { |
31329 | case Arg::Addr: |
31330 | case Arg::Stack: |
31331 | case Arg::CallArg: |
31332 | #if CPU(X86) || CPU(X86_64) |
31333 | jit.atomicSub8(args[0].gpr(), args[1].asAddress()); |
31334 | OPGEN_RETURN(result); |
31335 | #endif |
31336 | break; |
31337 | break; |
31338 | case Arg::Index: |
31339 | #if CPU(X86) || CPU(X86_64) |
31340 | jit.atomicSub8(args[0].gpr(), args[1].asBaseIndex()); |
31341 | OPGEN_RETURN(result); |
31342 | #endif |
31343 | break; |
31344 | break; |
31345 | default: |
31346 | break; |
31347 | } |
31348 | break; |
31349 | default: |
31350 | break; |
31351 | } |
31352 | break; |
31353 | case Opcode::AtomicSub16: |
31354 | switch (this->args[0].kind()) { |
31355 | case Arg::Imm: |
31356 | switch (this->args[1].kind()) { |
31357 | case Arg::Addr: |
31358 | case Arg::Stack: |
31359 | case Arg::CallArg: |
31360 | #if CPU(X86) || CPU(X86_64) |
31361 | jit.atomicSub16(args[0].asTrustedImm32(), args[1].asAddress()); |
31362 | OPGEN_RETURN(result); |
31363 | #endif |
31364 | break; |
31365 | break; |
31366 | case Arg::Index: |
31367 | #if CPU(X86) || CPU(X86_64) |
31368 | jit.atomicSub16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31369 | OPGEN_RETURN(result); |
31370 | #endif |
31371 | break; |
31372 | break; |
31373 | default: |
31374 | break; |
31375 | } |
31376 | break; |
31377 | case Arg::Tmp: |
31378 | switch (this->args[1].kind()) { |
31379 | case Arg::Addr: |
31380 | case Arg::Stack: |
31381 | case Arg::CallArg: |
31382 | #if CPU(X86) || CPU(X86_64) |
31383 | jit.atomicSub16(args[0].gpr(), args[1].asAddress()); |
31384 | OPGEN_RETURN(result); |
31385 | #endif |
31386 | break; |
31387 | break; |
31388 | case Arg::Index: |
31389 | #if CPU(X86) || CPU(X86_64) |
31390 | jit.atomicSub16(args[0].gpr(), args[1].asBaseIndex()); |
31391 | OPGEN_RETURN(result); |
31392 | #endif |
31393 | break; |
31394 | break; |
31395 | default: |
31396 | break; |
31397 | } |
31398 | break; |
31399 | default: |
31400 | break; |
31401 | } |
31402 | break; |
31403 | case Opcode::AtomicSub32: |
31404 | switch (this->args[0].kind()) { |
31405 | case Arg::Imm: |
31406 | switch (this->args[1].kind()) { |
31407 | case Arg::Addr: |
31408 | case Arg::Stack: |
31409 | case Arg::CallArg: |
31410 | #if CPU(X86) || CPU(X86_64) |
31411 | jit.atomicSub32(args[0].asTrustedImm32(), args[1].asAddress()); |
31412 | OPGEN_RETURN(result); |
31413 | #endif |
31414 | break; |
31415 | break; |
31416 | case Arg::Index: |
31417 | #if CPU(X86) || CPU(X86_64) |
31418 | jit.atomicSub32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31419 | OPGEN_RETURN(result); |
31420 | #endif |
31421 | break; |
31422 | break; |
31423 | default: |
31424 | break; |
31425 | } |
31426 | break; |
31427 | case Arg::Tmp: |
31428 | switch (this->args[1].kind()) { |
31429 | case Arg::Addr: |
31430 | case Arg::Stack: |
31431 | case Arg::CallArg: |
31432 | #if CPU(X86) || CPU(X86_64) |
31433 | jit.atomicSub32(args[0].gpr(), args[1].asAddress()); |
31434 | OPGEN_RETURN(result); |
31435 | #endif |
31436 | break; |
31437 | break; |
31438 | case Arg::Index: |
31439 | #if CPU(X86) || CPU(X86_64) |
31440 | jit.atomicSub32(args[0].gpr(), args[1].asBaseIndex()); |
31441 | OPGEN_RETURN(result); |
31442 | #endif |
31443 | break; |
31444 | break; |
31445 | default: |
31446 | break; |
31447 | } |
31448 | break; |
31449 | default: |
31450 | break; |
31451 | } |
31452 | break; |
31453 | case Opcode::AtomicSub64: |
31454 | switch (this->args[0].kind()) { |
31455 | case Arg::Imm: |
31456 | switch (this->args[1].kind()) { |
31457 | case Arg::Addr: |
31458 | case Arg::Stack: |
31459 | case Arg::CallArg: |
31460 | #if CPU(X86_64) |
31461 | jit.atomicSub64(args[0].asTrustedImm32(), args[1].asAddress()); |
31462 | OPGEN_RETURN(result); |
31463 | #endif |
31464 | break; |
31465 | break; |
31466 | case Arg::Index: |
31467 | #if CPU(X86_64) |
31468 | jit.atomicSub64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31469 | OPGEN_RETURN(result); |
31470 | #endif |
31471 | break; |
31472 | break; |
31473 | default: |
31474 | break; |
31475 | } |
31476 | break; |
31477 | case Arg::Tmp: |
31478 | switch (this->args[1].kind()) { |
31479 | case Arg::Addr: |
31480 | case Arg::Stack: |
31481 | case Arg::CallArg: |
31482 | #if CPU(X86_64) |
31483 | jit.atomicSub64(args[0].gpr(), args[1].asAddress()); |
31484 | OPGEN_RETURN(result); |
31485 | #endif |
31486 | break; |
31487 | break; |
31488 | case Arg::Index: |
31489 | #if CPU(X86_64) |
31490 | jit.atomicSub64(args[0].gpr(), args[1].asBaseIndex()); |
31491 | OPGEN_RETURN(result); |
31492 | #endif |
31493 | break; |
31494 | break; |
31495 | default: |
31496 | break; |
31497 | } |
31498 | break; |
31499 | default: |
31500 | break; |
31501 | } |
31502 | break; |
31503 | case Opcode::AtomicAnd8: |
31504 | switch (this->args[0].kind()) { |
31505 | case Arg::Imm: |
31506 | switch (this->args[1].kind()) { |
31507 | case Arg::Addr: |
31508 | case Arg::Stack: |
31509 | case Arg::CallArg: |
31510 | #if CPU(X86) || CPU(X86_64) |
31511 | jit.atomicAnd8(args[0].asTrustedImm32(), args[1].asAddress()); |
31512 | OPGEN_RETURN(result); |
31513 | #endif |
31514 | break; |
31515 | break; |
31516 | case Arg::Index: |
31517 | #if CPU(X86) || CPU(X86_64) |
31518 | jit.atomicAnd8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31519 | OPGEN_RETURN(result); |
31520 | #endif |
31521 | break; |
31522 | break; |
31523 | default: |
31524 | break; |
31525 | } |
31526 | break; |
31527 | case Arg::Tmp: |
31528 | switch (this->args[1].kind()) { |
31529 | case Arg::Addr: |
31530 | case Arg::Stack: |
31531 | case Arg::CallArg: |
31532 | #if CPU(X86) || CPU(X86_64) |
31533 | jit.atomicAnd8(args[0].gpr(), args[1].asAddress()); |
31534 | OPGEN_RETURN(result); |
31535 | #endif |
31536 | break; |
31537 | break; |
31538 | case Arg::Index: |
31539 | #if CPU(X86) || CPU(X86_64) |
31540 | jit.atomicAnd8(args[0].gpr(), args[1].asBaseIndex()); |
31541 | OPGEN_RETURN(result); |
31542 | #endif |
31543 | break; |
31544 | break; |
31545 | default: |
31546 | break; |
31547 | } |
31548 | break; |
31549 | default: |
31550 | break; |
31551 | } |
31552 | break; |
31553 | case Opcode::AtomicAnd16: |
31554 | switch (this->args[0].kind()) { |
31555 | case Arg::Imm: |
31556 | switch (this->args[1].kind()) { |
31557 | case Arg::Addr: |
31558 | case Arg::Stack: |
31559 | case Arg::CallArg: |
31560 | #if CPU(X86) || CPU(X86_64) |
31561 | jit.atomicAnd16(args[0].asTrustedImm32(), args[1].asAddress()); |
31562 | OPGEN_RETURN(result); |
31563 | #endif |
31564 | break; |
31565 | break; |
31566 | case Arg::Index: |
31567 | #if CPU(X86) || CPU(X86_64) |
31568 | jit.atomicAnd16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31569 | OPGEN_RETURN(result); |
31570 | #endif |
31571 | break; |
31572 | break; |
31573 | default: |
31574 | break; |
31575 | } |
31576 | break; |
31577 | case Arg::Tmp: |
31578 | switch (this->args[1].kind()) { |
31579 | case Arg::Addr: |
31580 | case Arg::Stack: |
31581 | case Arg::CallArg: |
31582 | #if CPU(X86) || CPU(X86_64) |
31583 | jit.atomicAnd16(args[0].gpr(), args[1].asAddress()); |
31584 | OPGEN_RETURN(result); |
31585 | #endif |
31586 | break; |
31587 | break; |
31588 | case Arg::Index: |
31589 | #if CPU(X86) || CPU(X86_64) |
31590 | jit.atomicAnd16(args[0].gpr(), args[1].asBaseIndex()); |
31591 | OPGEN_RETURN(result); |
31592 | #endif |
31593 | break; |
31594 | break; |
31595 | default: |
31596 | break; |
31597 | } |
31598 | break; |
31599 | default: |
31600 | break; |
31601 | } |
31602 | break; |
31603 | case Opcode::AtomicAnd32: |
31604 | switch (this->args[0].kind()) { |
31605 | case Arg::Imm: |
31606 | switch (this->args[1].kind()) { |
31607 | case Arg::Addr: |
31608 | case Arg::Stack: |
31609 | case Arg::CallArg: |
31610 | #if CPU(X86) || CPU(X86_64) |
31611 | jit.atomicAnd32(args[0].asTrustedImm32(), args[1].asAddress()); |
31612 | OPGEN_RETURN(result); |
31613 | #endif |
31614 | break; |
31615 | break; |
31616 | case Arg::Index: |
31617 | #if CPU(X86) || CPU(X86_64) |
31618 | jit.atomicAnd32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31619 | OPGEN_RETURN(result); |
31620 | #endif |
31621 | break; |
31622 | break; |
31623 | default: |
31624 | break; |
31625 | } |
31626 | break; |
31627 | case Arg::Tmp: |
31628 | switch (this->args[1].kind()) { |
31629 | case Arg::Addr: |
31630 | case Arg::Stack: |
31631 | case Arg::CallArg: |
31632 | #if CPU(X86) || CPU(X86_64) |
31633 | jit.atomicAnd32(args[0].gpr(), args[1].asAddress()); |
31634 | OPGEN_RETURN(result); |
31635 | #endif |
31636 | break; |
31637 | break; |
31638 | case Arg::Index: |
31639 | #if CPU(X86) || CPU(X86_64) |
31640 | jit.atomicAnd32(args[0].gpr(), args[1].asBaseIndex()); |
31641 | OPGEN_RETURN(result); |
31642 | #endif |
31643 | break; |
31644 | break; |
31645 | default: |
31646 | break; |
31647 | } |
31648 | break; |
31649 | default: |
31650 | break; |
31651 | } |
31652 | break; |
31653 | case Opcode::AtomicAnd64: |
31654 | switch (this->args[0].kind()) { |
31655 | case Arg::Imm: |
31656 | switch (this->args[1].kind()) { |
31657 | case Arg::Addr: |
31658 | case Arg::Stack: |
31659 | case Arg::CallArg: |
31660 | #if CPU(X86_64) |
31661 | jit.atomicAnd64(args[0].asTrustedImm32(), args[1].asAddress()); |
31662 | OPGEN_RETURN(result); |
31663 | #endif |
31664 | break; |
31665 | break; |
31666 | case Arg::Index: |
31667 | #if CPU(X86_64) |
31668 | jit.atomicAnd64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31669 | OPGEN_RETURN(result); |
31670 | #endif |
31671 | break; |
31672 | break; |
31673 | default: |
31674 | break; |
31675 | } |
31676 | break; |
31677 | case Arg::Tmp: |
31678 | switch (this->args[1].kind()) { |
31679 | case Arg::Addr: |
31680 | case Arg::Stack: |
31681 | case Arg::CallArg: |
31682 | #if CPU(X86_64) |
31683 | jit.atomicAnd64(args[0].gpr(), args[1].asAddress()); |
31684 | OPGEN_RETURN(result); |
31685 | #endif |
31686 | break; |
31687 | break; |
31688 | case Arg::Index: |
31689 | #if CPU(X86_64) |
31690 | jit.atomicAnd64(args[0].gpr(), args[1].asBaseIndex()); |
31691 | OPGEN_RETURN(result); |
31692 | #endif |
31693 | break; |
31694 | break; |
31695 | default: |
31696 | break; |
31697 | } |
31698 | break; |
31699 | default: |
31700 | break; |
31701 | } |
31702 | break; |
31703 | case Opcode::AtomicOr8: |
31704 | switch (this->args[0].kind()) { |
31705 | case Arg::Imm: |
31706 | switch (this->args[1].kind()) { |
31707 | case Arg::Addr: |
31708 | case Arg::Stack: |
31709 | case Arg::CallArg: |
31710 | #if CPU(X86) || CPU(X86_64) |
31711 | jit.atomicOr8(args[0].asTrustedImm32(), args[1].asAddress()); |
31712 | OPGEN_RETURN(result); |
31713 | #endif |
31714 | break; |
31715 | break; |
31716 | case Arg::Index: |
31717 | #if CPU(X86) || CPU(X86_64) |
31718 | jit.atomicOr8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31719 | OPGEN_RETURN(result); |
31720 | #endif |
31721 | break; |
31722 | break; |
31723 | default: |
31724 | break; |
31725 | } |
31726 | break; |
31727 | case Arg::Tmp: |
31728 | switch (this->args[1].kind()) { |
31729 | case Arg::Addr: |
31730 | case Arg::Stack: |
31731 | case Arg::CallArg: |
31732 | #if CPU(X86) || CPU(X86_64) |
31733 | jit.atomicOr8(args[0].gpr(), args[1].asAddress()); |
31734 | OPGEN_RETURN(result); |
31735 | #endif |
31736 | break; |
31737 | break; |
31738 | case Arg::Index: |
31739 | #if CPU(X86) || CPU(X86_64) |
31740 | jit.atomicOr8(args[0].gpr(), args[1].asBaseIndex()); |
31741 | OPGEN_RETURN(result); |
31742 | #endif |
31743 | break; |
31744 | break; |
31745 | default: |
31746 | break; |
31747 | } |
31748 | break; |
31749 | default: |
31750 | break; |
31751 | } |
31752 | break; |
31753 | case Opcode::AtomicOr16: |
31754 | switch (this->args[0].kind()) { |
31755 | case Arg::Imm: |
31756 | switch (this->args[1].kind()) { |
31757 | case Arg::Addr: |
31758 | case Arg::Stack: |
31759 | case Arg::CallArg: |
31760 | #if CPU(X86) || CPU(X86_64) |
31761 | jit.atomicOr16(args[0].asTrustedImm32(), args[1].asAddress()); |
31762 | OPGEN_RETURN(result); |
31763 | #endif |
31764 | break; |
31765 | break; |
31766 | case Arg::Index: |
31767 | #if CPU(X86) || CPU(X86_64) |
31768 | jit.atomicOr16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31769 | OPGEN_RETURN(result); |
31770 | #endif |
31771 | break; |
31772 | break; |
31773 | default: |
31774 | break; |
31775 | } |
31776 | break; |
31777 | case Arg::Tmp: |
31778 | switch (this->args[1].kind()) { |
31779 | case Arg::Addr: |
31780 | case Arg::Stack: |
31781 | case Arg::CallArg: |
31782 | #if CPU(X86) || CPU(X86_64) |
31783 | jit.atomicOr16(args[0].gpr(), args[1].asAddress()); |
31784 | OPGEN_RETURN(result); |
31785 | #endif |
31786 | break; |
31787 | break; |
31788 | case Arg::Index: |
31789 | #if CPU(X86) || CPU(X86_64) |
31790 | jit.atomicOr16(args[0].gpr(), args[1].asBaseIndex()); |
31791 | OPGEN_RETURN(result); |
31792 | #endif |
31793 | break; |
31794 | break; |
31795 | default: |
31796 | break; |
31797 | } |
31798 | break; |
31799 | default: |
31800 | break; |
31801 | } |
31802 | break; |
31803 | case Opcode::AtomicOr32: |
31804 | switch (this->args[0].kind()) { |
31805 | case Arg::Imm: |
31806 | switch (this->args[1].kind()) { |
31807 | case Arg::Addr: |
31808 | case Arg::Stack: |
31809 | case Arg::CallArg: |
31810 | #if CPU(X86) || CPU(X86_64) |
31811 | jit.atomicOr32(args[0].asTrustedImm32(), args[1].asAddress()); |
31812 | OPGEN_RETURN(result); |
31813 | #endif |
31814 | break; |
31815 | break; |
31816 | case Arg::Index: |
31817 | #if CPU(X86) || CPU(X86_64) |
31818 | jit.atomicOr32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31819 | OPGEN_RETURN(result); |
31820 | #endif |
31821 | break; |
31822 | break; |
31823 | default: |
31824 | break; |
31825 | } |
31826 | break; |
31827 | case Arg::Tmp: |
31828 | switch (this->args[1].kind()) { |
31829 | case Arg::Addr: |
31830 | case Arg::Stack: |
31831 | case Arg::CallArg: |
31832 | #if CPU(X86) || CPU(X86_64) |
31833 | jit.atomicOr32(args[0].gpr(), args[1].asAddress()); |
31834 | OPGEN_RETURN(result); |
31835 | #endif |
31836 | break; |
31837 | break; |
31838 | case Arg::Index: |
31839 | #if CPU(X86) || CPU(X86_64) |
31840 | jit.atomicOr32(args[0].gpr(), args[1].asBaseIndex()); |
31841 | OPGEN_RETURN(result); |
31842 | #endif |
31843 | break; |
31844 | break; |
31845 | default: |
31846 | break; |
31847 | } |
31848 | break; |
31849 | default: |
31850 | break; |
31851 | } |
31852 | break; |
31853 | case Opcode::AtomicOr64: |
31854 | switch (this->args[0].kind()) { |
31855 | case Arg::Imm: |
31856 | switch (this->args[1].kind()) { |
31857 | case Arg::Addr: |
31858 | case Arg::Stack: |
31859 | case Arg::CallArg: |
31860 | #if CPU(X86_64) |
31861 | jit.atomicOr64(args[0].asTrustedImm32(), args[1].asAddress()); |
31862 | OPGEN_RETURN(result); |
31863 | #endif |
31864 | break; |
31865 | break; |
31866 | case Arg::Index: |
31867 | #if CPU(X86_64) |
31868 | jit.atomicOr64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31869 | OPGEN_RETURN(result); |
31870 | #endif |
31871 | break; |
31872 | break; |
31873 | default: |
31874 | break; |
31875 | } |
31876 | break; |
31877 | case Arg::Tmp: |
31878 | switch (this->args[1].kind()) { |
31879 | case Arg::Addr: |
31880 | case Arg::Stack: |
31881 | case Arg::CallArg: |
31882 | #if CPU(X86_64) |
31883 | jit.atomicOr64(args[0].gpr(), args[1].asAddress()); |
31884 | OPGEN_RETURN(result); |
31885 | #endif |
31886 | break; |
31887 | break; |
31888 | case Arg::Index: |
31889 | #if CPU(X86_64) |
31890 | jit.atomicOr64(args[0].gpr(), args[1].asBaseIndex()); |
31891 | OPGEN_RETURN(result); |
31892 | #endif |
31893 | break; |
31894 | break; |
31895 | default: |
31896 | break; |
31897 | } |
31898 | break; |
31899 | default: |
31900 | break; |
31901 | } |
31902 | break; |
31903 | case Opcode::AtomicXor8: |
31904 | switch (this->args[0].kind()) { |
31905 | case Arg::Imm: |
31906 | switch (this->args[1].kind()) { |
31907 | case Arg::Addr: |
31908 | case Arg::Stack: |
31909 | case Arg::CallArg: |
31910 | #if CPU(X86) || CPU(X86_64) |
31911 | jit.atomicXor8(args[0].asTrustedImm32(), args[1].asAddress()); |
31912 | OPGEN_RETURN(result); |
31913 | #endif |
31914 | break; |
31915 | break; |
31916 | case Arg::Index: |
31917 | #if CPU(X86) || CPU(X86_64) |
31918 | jit.atomicXor8(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31919 | OPGEN_RETURN(result); |
31920 | #endif |
31921 | break; |
31922 | break; |
31923 | default: |
31924 | break; |
31925 | } |
31926 | break; |
31927 | case Arg::Tmp: |
31928 | switch (this->args[1].kind()) { |
31929 | case Arg::Addr: |
31930 | case Arg::Stack: |
31931 | case Arg::CallArg: |
31932 | #if CPU(X86) || CPU(X86_64) |
31933 | jit.atomicXor8(args[0].gpr(), args[1].asAddress()); |
31934 | OPGEN_RETURN(result); |
31935 | #endif |
31936 | break; |
31937 | break; |
31938 | case Arg::Index: |
31939 | #if CPU(X86) || CPU(X86_64) |
31940 | jit.atomicXor8(args[0].gpr(), args[1].asBaseIndex()); |
31941 | OPGEN_RETURN(result); |
31942 | #endif |
31943 | break; |
31944 | break; |
31945 | default: |
31946 | break; |
31947 | } |
31948 | break; |
31949 | default: |
31950 | break; |
31951 | } |
31952 | break; |
31953 | case Opcode::AtomicXor16: |
31954 | switch (this->args[0].kind()) { |
31955 | case Arg::Imm: |
31956 | switch (this->args[1].kind()) { |
31957 | case Arg::Addr: |
31958 | case Arg::Stack: |
31959 | case Arg::CallArg: |
31960 | #if CPU(X86) || CPU(X86_64) |
31961 | jit.atomicXor16(args[0].asTrustedImm32(), args[1].asAddress()); |
31962 | OPGEN_RETURN(result); |
31963 | #endif |
31964 | break; |
31965 | break; |
31966 | case Arg::Index: |
31967 | #if CPU(X86) || CPU(X86_64) |
31968 | jit.atomicXor16(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
31969 | OPGEN_RETURN(result); |
31970 | #endif |
31971 | break; |
31972 | break; |
31973 | default: |
31974 | break; |
31975 | } |
31976 | break; |
31977 | case Arg::Tmp: |
31978 | switch (this->args[1].kind()) { |
31979 | case Arg::Addr: |
31980 | case Arg::Stack: |
31981 | case Arg::CallArg: |
31982 | #if CPU(X86) || CPU(X86_64) |
31983 | jit.atomicXor16(args[0].gpr(), args[1].asAddress()); |
31984 | OPGEN_RETURN(result); |
31985 | #endif |
31986 | break; |
31987 | break; |
31988 | case Arg::Index: |
31989 | #if CPU(X86) || CPU(X86_64) |
31990 | jit.atomicXor16(args[0].gpr(), args[1].asBaseIndex()); |
31991 | OPGEN_RETURN(result); |
31992 | #endif |
31993 | break; |
31994 | break; |
31995 | default: |
31996 | break; |
31997 | } |
31998 | break; |
31999 | default: |
32000 | break; |
32001 | } |
32002 | break; |
32003 | case Opcode::AtomicXor32: |
32004 | switch (this->args[0].kind()) { |
32005 | case Arg::Imm: |
32006 | switch (this->args[1].kind()) { |
32007 | case Arg::Addr: |
32008 | case Arg::Stack: |
32009 | case Arg::CallArg: |
32010 | #if CPU(X86) || CPU(X86_64) |
32011 | jit.atomicXor32(args[0].asTrustedImm32(), args[1].asAddress()); |
32012 | OPGEN_RETURN(result); |
32013 | #endif |
32014 | break; |
32015 | break; |
32016 | case Arg::Index: |
32017 | #if CPU(X86) || CPU(X86_64) |
32018 | jit.atomicXor32(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
32019 | OPGEN_RETURN(result); |
32020 | #endif |
32021 | break; |
32022 | break; |
32023 | default: |
32024 | break; |
32025 | } |
32026 | break; |
32027 | case Arg::Tmp: |
32028 | switch (this->args[1].kind()) { |
32029 | case Arg::Addr: |
32030 | case Arg::Stack: |
32031 | case Arg::CallArg: |
32032 | #if CPU(X86) || CPU(X86_64) |
32033 | jit.atomicXor32(args[0].gpr(), args[1].asAddress()); |
32034 | OPGEN_RETURN(result); |
32035 | #endif |
32036 | break; |
32037 | break; |
32038 | case Arg::Index: |
32039 | #if CPU(X86) || CPU(X86_64) |
32040 | jit.atomicXor32(args[0].gpr(), args[1].asBaseIndex()); |
32041 | OPGEN_RETURN(result); |
32042 | #endif |
32043 | break; |
32044 | break; |
32045 | default: |
32046 | break; |
32047 | } |
32048 | break; |
32049 | default: |
32050 | break; |
32051 | } |
32052 | break; |
32053 | case Opcode::AtomicXor64: |
32054 | switch (this->args[0].kind()) { |
32055 | case Arg::Imm: |
32056 | switch (this->args[1].kind()) { |
32057 | case Arg::Addr: |
32058 | case Arg::Stack: |
32059 | case Arg::CallArg: |
32060 | #if CPU(X86_64) |
32061 | jit.atomicXor64(args[0].asTrustedImm32(), args[1].asAddress()); |
32062 | OPGEN_RETURN(result); |
32063 | #endif |
32064 | break; |
32065 | break; |
32066 | case Arg::Index: |
32067 | #if CPU(X86_64) |
32068 | jit.atomicXor64(args[0].asTrustedImm32(), args[1].asBaseIndex()); |
32069 | OPGEN_RETURN(result); |
32070 | #endif |
32071 | break; |
32072 | break; |
32073 | default: |
32074 | break; |
32075 | } |
32076 | break; |
32077 | case Arg::Tmp: |
32078 | switch (this->args[1].kind()) { |
32079 | case Arg::Addr: |
32080 | case Arg::Stack: |
32081 | case Arg::CallArg: |
32082 | #if CPU(X86_64) |
32083 | jit.atomicXor64(args[0].gpr(), args[1].asAddress()); |
32084 | OPGEN_RETURN(result); |
32085 | #endif |
32086 | break; |
32087 | break; |
32088 | case Arg::Index: |
32089 | #if CPU(X86_64) |
32090 | jit.atomicXor64(args[0].gpr(), args[1].asBaseIndex()); |
32091 | OPGEN_RETURN(result); |
32092 | #endif |
32093 | break; |
32094 | break; |
32095 | default: |
32096 | break; |
32097 | } |
32098 | break; |
32099 | default: |
32100 | break; |
32101 | } |
32102 | break; |
32103 | case Opcode::AtomicNeg8: |
32104 | switch (this->args[0].kind()) { |
32105 | case Arg::Addr: |
32106 | case Arg::Stack: |
32107 | case Arg::CallArg: |
32108 | #if CPU(X86) || CPU(X86_64) |
32109 | jit.atomicNeg8(args[0].asAddress()); |
32110 | OPGEN_RETURN(result); |
32111 | #endif |
32112 | break; |
32113 | break; |
32114 | case Arg::Index: |
32115 | #if CPU(X86) || CPU(X86_64) |
32116 | jit.atomicNeg8(args[0].asBaseIndex()); |
32117 | OPGEN_RETURN(result); |
32118 | #endif |
32119 | break; |
32120 | break; |
32121 | default: |
32122 | break; |
32123 | } |
32124 | break; |
32125 | case Opcode::AtomicNeg16: |
32126 | switch (this->args[0].kind()) { |
32127 | case Arg::Addr: |
32128 | case Arg::Stack: |
32129 | case Arg::CallArg: |
32130 | #if CPU(X86) || CPU(X86_64) |
32131 | jit.atomicNeg16(args[0].asAddress()); |
32132 | OPGEN_RETURN(result); |
32133 | #endif |
32134 | break; |
32135 | break; |
32136 | case Arg::Index: |
32137 | #if CPU(X86) || CPU(X86_64) |
32138 | jit.atomicNeg16(args[0].asBaseIndex()); |
32139 | OPGEN_RETURN(result); |
32140 | #endif |
32141 | break; |
32142 | break; |
32143 | default: |
32144 | break; |
32145 | } |
32146 | break; |
32147 | case Opcode::AtomicNeg32: |
32148 | switch (this->args[0].kind()) { |
32149 | case Arg::Addr: |
32150 | case Arg::Stack: |
32151 | case Arg::CallArg: |
32152 | #if CPU(X86) || CPU(X86_64) |
32153 | jit.atomicNeg32(args[0].asAddress()); |
32154 | OPGEN_RETURN(result); |
32155 | #endif |
32156 | break; |
32157 | break; |
32158 | case Arg::Index: |
32159 | #if CPU(X86) || CPU(X86_64) |
32160 | jit.atomicNeg32(args[0].asBaseIndex()); |
32161 | OPGEN_RETURN(result); |
32162 | #endif |
32163 | break; |
32164 | break; |
32165 | default: |
32166 | break; |
32167 | } |
32168 | break; |
32169 | case Opcode::AtomicNeg64: |
32170 | switch (this->args[0].kind()) { |
32171 | case Arg::Addr: |
32172 | case Arg::Stack: |
32173 | case Arg::CallArg: |
32174 | #if CPU(X86_64) |
32175 | jit.atomicNeg64(args[0].asAddress()); |
32176 | OPGEN_RETURN(result); |
32177 | #endif |
32178 | break; |
32179 | break; |
32180 | case Arg::Index: |
32181 | #if CPU(X86_64) |
32182 | jit.atomicNeg64(args[0].asBaseIndex()); |
32183 | OPGEN_RETURN(result); |
32184 | #endif |
32185 | break; |
32186 | break; |
32187 | default: |
32188 | break; |
32189 | } |
32190 | break; |
32191 | case Opcode::AtomicNot8: |
32192 | switch (this->args[0].kind()) { |
32193 | case Arg::Addr: |
32194 | case Arg::Stack: |
32195 | case Arg::CallArg: |
32196 | #if CPU(X86) || CPU(X86_64) |
32197 | jit.atomicNot8(args[0].asAddress()); |
32198 | OPGEN_RETURN(result); |
32199 | #endif |
32200 | break; |
32201 | break; |
32202 | case Arg::Index: |
32203 | #if CPU(X86) || CPU(X86_64) |
32204 | jit.atomicNot8(args[0].asBaseIndex()); |
32205 | OPGEN_RETURN(result); |
32206 | #endif |
32207 | break; |
32208 | break; |
32209 | default: |
32210 | break; |
32211 | } |
32212 | break; |
32213 | case Opcode::AtomicNot16: |
32214 | switch (this->args[0].kind()) { |
32215 | case Arg::Addr: |
32216 | case Arg::Stack: |
32217 | case Arg::CallArg: |
32218 | #if CPU(X86) || CPU(X86_64) |
32219 | jit.atomicNot16(args[0].asAddress()); |
32220 | OPGEN_RETURN(result); |
32221 | #endif |
32222 | break; |
32223 | break; |
32224 | case Arg::Index: |
32225 | #if CPU(X86) || CPU(X86_64) |
32226 | jit.atomicNot16(args[0].asBaseIndex()); |
32227 | OPGEN_RETURN(result); |
32228 | #endif |
32229 | break; |
32230 | break; |
32231 | default: |
32232 | break; |
32233 | } |
32234 | break; |
32235 | case Opcode::AtomicNot32: |
32236 | switch (this->args[0].kind()) { |
32237 | case Arg::Addr: |
32238 | case Arg::Stack: |
32239 | case Arg::CallArg: |
32240 | #if CPU(X86) || CPU(X86_64) |
32241 | jit.atomicNot32(args[0].asAddress()); |
32242 | OPGEN_RETURN(result); |
32243 | #endif |
32244 | break; |
32245 | break; |
32246 | case Arg::Index: |
32247 | #if CPU(X86) || CPU(X86_64) |
32248 | jit.atomicNot32(args[0].asBaseIndex()); |
32249 | OPGEN_RETURN(result); |
32250 | #endif |
32251 | break; |
32252 | break; |
32253 | default: |
32254 | break; |
32255 | } |
32256 | break; |
32257 | case Opcode::AtomicNot64: |
32258 | switch (this->args[0].kind()) { |
32259 | case Arg::Addr: |
32260 | case Arg::Stack: |
32261 | case Arg::CallArg: |
32262 | #if CPU(X86_64) |
32263 | jit.atomicNot64(args[0].asAddress()); |
32264 | OPGEN_RETURN(result); |
32265 | #endif |
32266 | break; |
32267 | break; |
32268 | case Arg::Index: |
32269 | #if CPU(X86_64) |
32270 | jit.atomicNot64(args[0].asBaseIndex()); |
32271 | OPGEN_RETURN(result); |
32272 | #endif |
32273 | break; |
32274 | break; |
32275 | default: |
32276 | break; |
32277 | } |
32278 | break; |
32279 | case Opcode::AtomicXchgAdd8: |
32280 | switch (this->args[1].kind()) { |
32281 | case Arg::Addr: |
32282 | case Arg::Stack: |
32283 | case Arg::CallArg: |
32284 | #if CPU(X86) || CPU(X86_64) |
32285 | jit.atomicXchgAdd8(args[0].gpr(), args[1].asAddress()); |
32286 | OPGEN_RETURN(result); |
32287 | #endif |
32288 | break; |
32289 | break; |
32290 | case Arg::Index: |
32291 | #if CPU(X86) || CPU(X86_64) |
32292 | jit.atomicXchgAdd8(args[0].gpr(), args[1].asBaseIndex()); |
32293 | OPGEN_RETURN(result); |
32294 | #endif |
32295 | break; |
32296 | break; |
32297 | default: |
32298 | break; |
32299 | } |
32300 | break; |
32301 | case Opcode::AtomicXchgAdd16: |
32302 | switch (this->args[1].kind()) { |
32303 | case Arg::Addr: |
32304 | case Arg::Stack: |
32305 | case Arg::CallArg: |
32306 | #if CPU(X86) || CPU(X86_64) |
32307 | jit.atomicXchgAdd16(args[0].gpr(), args[1].asAddress()); |
32308 | OPGEN_RETURN(result); |
32309 | #endif |
32310 | break; |
32311 | break; |
32312 | case Arg::Index: |
32313 | #if CPU(X86) || CPU(X86_64) |
32314 | jit.atomicXchgAdd16(args[0].gpr(), args[1].asBaseIndex()); |
32315 | OPGEN_RETURN(result); |
32316 | #endif |
32317 | break; |
32318 | break; |
32319 | default: |
32320 | break; |
32321 | } |
32322 | break; |
32323 | case Opcode::AtomicXchgAdd32: |
32324 | switch (this->args[1].kind()) { |
32325 | case Arg::Addr: |
32326 | case Arg::Stack: |
32327 | case Arg::CallArg: |
32328 | #if CPU(X86) || CPU(X86_64) |
32329 | jit.atomicXchgAdd32(args[0].gpr(), args[1].asAddress()); |
32330 | OPGEN_RETURN(result); |
32331 | #endif |
32332 | break; |
32333 | break; |
32334 | case Arg::Index: |
32335 | #if CPU(X86) || CPU(X86_64) |
32336 | jit.atomicXchgAdd32(args[0].gpr(), args[1].asBaseIndex()); |
32337 | OPGEN_RETURN(result); |
32338 | #endif |
32339 | break; |
32340 | break; |
32341 | default: |
32342 | break; |
32343 | } |
32344 | break; |
32345 | case Opcode::AtomicXchgAdd64: |
32346 | switch (this->args[1].kind()) { |
32347 | case Arg::Addr: |
32348 | case Arg::Stack: |
32349 | case Arg::CallArg: |
32350 | #if CPU(X86_64) |
32351 | jit.atomicXchgAdd64(args[0].gpr(), args[1].asAddress()); |
32352 | OPGEN_RETURN(result); |
32353 | #endif |
32354 | break; |
32355 | break; |
32356 | case Arg::Index: |
32357 | #if CPU(X86_64) |
32358 | jit.atomicXchgAdd64(args[0].gpr(), args[1].asBaseIndex()); |
32359 | OPGEN_RETURN(result); |
32360 | #endif |
32361 | break; |
32362 | break; |
32363 | default: |
32364 | break; |
32365 | } |
32366 | break; |
32367 | case Opcode::AtomicXchg8: |
32368 | switch (this->args[1].kind()) { |
32369 | case Arg::Addr: |
32370 | case Arg::Stack: |
32371 | case Arg::CallArg: |
32372 | #if CPU(X86) || CPU(X86_64) |
32373 | jit.atomicXchg8(args[0].gpr(), args[1].asAddress()); |
32374 | OPGEN_RETURN(result); |
32375 | #endif |
32376 | break; |
32377 | break; |
32378 | case Arg::Index: |
32379 | #if CPU(X86) || CPU(X86_64) |
32380 | jit.atomicXchg8(args[0].gpr(), args[1].asBaseIndex()); |
32381 | OPGEN_RETURN(result); |
32382 | #endif |
32383 | break; |
32384 | break; |
32385 | default: |
32386 | break; |
32387 | } |
32388 | break; |
32389 | case Opcode::AtomicXchg16: |
32390 | switch (this->args[1].kind()) { |
32391 | case Arg::Addr: |
32392 | case Arg::Stack: |
32393 | case Arg::CallArg: |
32394 | #if CPU(X86) || CPU(X86_64) |
32395 | jit.atomicXchg16(args[0].gpr(), args[1].asAddress()); |
32396 | OPGEN_RETURN(result); |
32397 | #endif |
32398 | break; |
32399 | break; |
32400 | case Arg::Index: |
32401 | #if CPU(X86) || CPU(X86_64) |
32402 | jit.atomicXchg16(args[0].gpr(), args[1].asBaseIndex()); |
32403 | OPGEN_RETURN(result); |
32404 | #endif |
32405 | break; |
32406 | break; |
32407 | default: |
32408 | break; |
32409 | } |
32410 | break; |
32411 | case Opcode::AtomicXchg32: |
32412 | switch (this->args[1].kind()) { |
32413 | case Arg::Addr: |
32414 | case Arg::Stack: |
32415 | case Arg::CallArg: |
32416 | #if CPU(X86) || CPU(X86_64) |
32417 | jit.atomicXchg32(args[0].gpr(), args[1].asAddress()); |
32418 | OPGEN_RETURN(result); |
32419 | #endif |
32420 | break; |
32421 | break; |
32422 | case Arg::Index: |
32423 | #if CPU(X86) || CPU(X86_64) |
32424 | jit.atomicXchg32(args[0].gpr(), args[1].asBaseIndex()); |
32425 | OPGEN_RETURN(result); |
32426 | #endif |
32427 | break; |
32428 | break; |
32429 | default: |
32430 | break; |
32431 | } |
32432 | break; |
32433 | case Opcode::AtomicXchg64: |
32434 | switch (this->args[1].kind()) { |
32435 | case Arg::Addr: |
32436 | case Arg::Stack: |
32437 | case Arg::CallArg: |
32438 | #if CPU(X86_64) |
32439 | jit.atomicXchg64(args[0].gpr(), args[1].asAddress()); |
32440 | OPGEN_RETURN(result); |
32441 | #endif |
32442 | break; |
32443 | break; |
32444 | case Arg::Index: |
32445 | #if CPU(X86_64) |
32446 | jit.atomicXchg64(args[0].gpr(), args[1].asBaseIndex()); |
32447 | OPGEN_RETURN(result); |
32448 | #endif |
32449 | break; |
32450 | break; |
32451 | default: |
32452 | break; |
32453 | } |
32454 | break; |
32455 | case Opcode::LoadLink8: |
32456 | #if CPU(ARM64) |
32457 | jit.loadLink8(args[0].asAddress(), args[1].gpr()); |
32458 | OPGEN_RETURN(result); |
32459 | #endif |
32460 | break; |
32461 | break; |
32462 | case Opcode::LoadLinkAcq8: |
32463 | #if CPU(ARM64) |
32464 | jit.loadLinkAcq8(args[0].asAddress(), args[1].gpr()); |
32465 | OPGEN_RETURN(result); |
32466 | #endif |
32467 | break; |
32468 | break; |
32469 | case Opcode::StoreCond8: |
32470 | #if CPU(ARM64) |
32471 | jit.storeCond8(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32472 | OPGEN_RETURN(result); |
32473 | #endif |
32474 | break; |
32475 | break; |
32476 | case Opcode::StoreCondRel8: |
32477 | #if CPU(ARM64) |
32478 | jit.storeCondRel8(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32479 | OPGEN_RETURN(result); |
32480 | #endif |
32481 | break; |
32482 | break; |
32483 | case Opcode::LoadLink16: |
32484 | #if CPU(ARM64) |
32485 | jit.loadLink16(args[0].asAddress(), args[1].gpr()); |
32486 | OPGEN_RETURN(result); |
32487 | #endif |
32488 | break; |
32489 | break; |
32490 | case Opcode::LoadLinkAcq16: |
32491 | #if CPU(ARM64) |
32492 | jit.loadLinkAcq16(args[0].asAddress(), args[1].gpr()); |
32493 | OPGEN_RETURN(result); |
32494 | #endif |
32495 | break; |
32496 | break; |
32497 | case Opcode::StoreCond16: |
32498 | #if CPU(ARM64) |
32499 | jit.storeCond16(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32500 | OPGEN_RETURN(result); |
32501 | #endif |
32502 | break; |
32503 | break; |
32504 | case Opcode::StoreCondRel16: |
32505 | #if CPU(ARM64) |
32506 | jit.storeCondRel16(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32507 | OPGEN_RETURN(result); |
32508 | #endif |
32509 | break; |
32510 | break; |
32511 | case Opcode::LoadLink32: |
32512 | #if CPU(ARM64) |
32513 | jit.loadLink32(args[0].asAddress(), args[1].gpr()); |
32514 | OPGEN_RETURN(result); |
32515 | #endif |
32516 | break; |
32517 | break; |
32518 | case Opcode::LoadLinkAcq32: |
32519 | #if CPU(ARM64) |
32520 | jit.loadLinkAcq32(args[0].asAddress(), args[1].gpr()); |
32521 | OPGEN_RETURN(result); |
32522 | #endif |
32523 | break; |
32524 | break; |
32525 | case Opcode::StoreCond32: |
32526 | #if CPU(ARM64) |
32527 | jit.storeCond32(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32528 | OPGEN_RETURN(result); |
32529 | #endif |
32530 | break; |
32531 | break; |
32532 | case Opcode::StoreCondRel32: |
32533 | #if CPU(ARM64) |
32534 | jit.storeCondRel32(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32535 | OPGEN_RETURN(result); |
32536 | #endif |
32537 | break; |
32538 | break; |
32539 | case Opcode::LoadLink64: |
32540 | #if CPU(ARM64) |
32541 | jit.loadLink64(args[0].asAddress(), args[1].gpr()); |
32542 | OPGEN_RETURN(result); |
32543 | #endif |
32544 | break; |
32545 | break; |
32546 | case Opcode::LoadLinkAcq64: |
32547 | #if CPU(ARM64) |
32548 | jit.loadLinkAcq64(args[0].asAddress(), args[1].gpr()); |
32549 | OPGEN_RETURN(result); |
32550 | #endif |
32551 | break; |
32552 | break; |
32553 | case Opcode::StoreCond64: |
32554 | #if CPU(ARM64) |
32555 | jit.storeCond64(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32556 | OPGEN_RETURN(result); |
32557 | #endif |
32558 | break; |
32559 | break; |
32560 | case Opcode::StoreCondRel64: |
32561 | #if CPU(ARM64) |
32562 | jit.storeCondRel64(args[0].gpr(), args[1].asAddress(), args[2].gpr()); |
32563 | OPGEN_RETURN(result); |
32564 | #endif |
32565 | break; |
32566 | break; |
32567 | case Opcode::Depend32: |
32568 | #if CPU(ARM64) |
32569 | jit.depend32(args[0].gpr(), args[1].gpr()); |
32570 | OPGEN_RETURN(result); |
32571 | #endif |
32572 | break; |
32573 | break; |
32574 | case Opcode::Depend64: |
32575 | #if CPU(ARM64) |
32576 | jit.depend64(args[0].gpr(), args[1].gpr()); |
32577 | OPGEN_RETURN(result); |
32578 | #endif |
32579 | break; |
32580 | break; |
32581 | case Opcode::Compare32: |
32582 | switch (this->args[2].kind()) { |
32583 | case Arg::Tmp: |
32584 | jit.compare32(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
32585 | OPGEN_RETURN(result); |
32586 | break; |
32587 | break; |
32588 | case Arg::Imm: |
32589 | jit.compare32(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr()); |
32590 | OPGEN_RETURN(result); |
32591 | break; |
32592 | break; |
32593 | default: |
32594 | break; |
32595 | } |
32596 | break; |
32597 | case Opcode::Compare64: |
32598 | switch (this->args[2].kind()) { |
32599 | case Arg::Tmp: |
32600 | #if CPU(X86_64) || CPU(ARM64) |
32601 | jit.compare64(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
32602 | OPGEN_RETURN(result); |
32603 | #endif |
32604 | break; |
32605 | break; |
32606 | case Arg::Imm: |
32607 | #if CPU(X86_64) |
32608 | jit.compare64(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr()); |
32609 | OPGEN_RETURN(result); |
32610 | #endif |
32611 | break; |
32612 | break; |
32613 | default: |
32614 | break; |
32615 | } |
32616 | break; |
32617 | case Opcode::Test32: |
32618 | switch (this->args[1].kind()) { |
32619 | case Arg::Addr: |
32620 | case Arg::Stack: |
32621 | case Arg::CallArg: |
32622 | #if CPU(X86) || CPU(X86_64) |
32623 | jit.test32(args[0].asResultCondition(), args[1].asAddress(), args[2].asTrustedImm32(), args[3].gpr()); |
32624 | OPGEN_RETURN(result); |
32625 | #endif |
32626 | break; |
32627 | break; |
32628 | case Arg::Tmp: |
32629 | switch (this->args[2].kind()) { |
32630 | case Arg::Tmp: |
32631 | jit.test32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
32632 | OPGEN_RETURN(result); |
32633 | break; |
32634 | break; |
32635 | case Arg::BitImm: |
32636 | jit.test32(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr()); |
32637 | OPGEN_RETURN(result); |
32638 | break; |
32639 | break; |
32640 | default: |
32641 | break; |
32642 | } |
32643 | break; |
32644 | default: |
32645 | break; |
32646 | } |
32647 | break; |
32648 | case Opcode::Test64: |
32649 | switch (this->args[2].kind()) { |
32650 | case Arg::Imm: |
32651 | #if CPU(X86_64) |
32652 | jit.test64(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr()); |
32653 | OPGEN_RETURN(result); |
32654 | #endif |
32655 | break; |
32656 | break; |
32657 | case Arg::Tmp: |
32658 | #if CPU(X86_64) || CPU(ARM64) |
32659 | jit.test64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
32660 | OPGEN_RETURN(result); |
32661 | #endif |
32662 | break; |
32663 | break; |
32664 | default: |
32665 | break; |
32666 | } |
32667 | break; |
32668 | case Opcode::CompareDouble: |
32669 | jit.compareDouble(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].gpr()); |
32670 | OPGEN_RETURN(result); |
32671 | break; |
32672 | break; |
32673 | case Opcode::CompareFloat: |
32674 | jit.compareFloat(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].gpr()); |
32675 | OPGEN_RETURN(result); |
32676 | break; |
32677 | break; |
32678 | case Opcode::Branch8: |
32679 | switch (this->args[1].kind()) { |
32680 | case Arg::Addr: |
32681 | case Arg::Stack: |
32682 | case Arg::CallArg: |
32683 | #if CPU(X86) || CPU(X86_64) |
32684 | result = jit.branch8(args[0].asRelationalCondition(), args[1].asAddress(), args[2].asTrustedImm32()); |
32685 | OPGEN_RETURN(result); |
32686 | #endif |
32687 | break; |
32688 | break; |
32689 | case Arg::Index: |
32690 | #if CPU(X86) || CPU(X86_64) |
32691 | result = jit.branch8(args[0].asRelationalCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32()); |
32692 | OPGEN_RETURN(result); |
32693 | #endif |
32694 | break; |
32695 | break; |
32696 | default: |
32697 | break; |
32698 | } |
32699 | break; |
32700 | case Opcode::Branch32: |
32701 | switch (this->args[1].kind()) { |
32702 | case Arg::Addr: |
32703 | case Arg::Stack: |
32704 | case Arg::CallArg: |
32705 | switch (this->args[2].kind()) { |
32706 | case Arg::Imm: |
32707 | #if CPU(X86) || CPU(X86_64) |
32708 | result = jit.branch32(args[0].asRelationalCondition(), args[1].asAddress(), args[2].asTrustedImm32()); |
32709 | OPGEN_RETURN(result); |
32710 | #endif |
32711 | break; |
32712 | break; |
32713 | case Arg::Tmp: |
32714 | #if CPU(X86) || CPU(X86_64) |
32715 | result = jit.branch32(args[0].asRelationalCondition(), args[1].asAddress(), args[2].gpr()); |
32716 | OPGEN_RETURN(result); |
32717 | #endif |
32718 | break; |
32719 | break; |
32720 | default: |
32721 | break; |
32722 | } |
32723 | break; |
32724 | case Arg::Tmp: |
32725 | switch (this->args[2].kind()) { |
32726 | case Arg::Tmp: |
32727 | result = jit.branch32(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr()); |
32728 | OPGEN_RETURN(result); |
32729 | break; |
32730 | break; |
32731 | case Arg::Imm: |
32732 | result = jit.branch32(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32()); |
32733 | OPGEN_RETURN(result); |
32734 | break; |
32735 | break; |
32736 | case Arg::Addr: |
32737 | case Arg::Stack: |
32738 | case Arg::CallArg: |
32739 | #if CPU(X86) || CPU(X86_64) |
32740 | result = jit.branch32(args[0].asRelationalCondition(), args[1].gpr(), args[2].asAddress()); |
32741 | OPGEN_RETURN(result); |
32742 | #endif |
32743 | break; |
32744 | break; |
32745 | default: |
32746 | break; |
32747 | } |
32748 | break; |
32749 | case Arg::Index: |
32750 | #if CPU(X86) || CPU(X86_64) |
32751 | result = jit.branch32(args[0].asRelationalCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32()); |
32752 | OPGEN_RETURN(result); |
32753 | #endif |
32754 | break; |
32755 | break; |
32756 | default: |
32757 | break; |
32758 | } |
32759 | break; |
32760 | case Opcode::Branch64: |
32761 | switch (this->args[1].kind()) { |
32762 | case Arg::Tmp: |
32763 | switch (this->args[2].kind()) { |
32764 | case Arg::Tmp: |
32765 | #if CPU(X86_64) || CPU(ARM64) |
32766 | result = jit.branch64(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr()); |
32767 | OPGEN_RETURN(result); |
32768 | #endif |
32769 | break; |
32770 | break; |
32771 | case Arg::Imm: |
32772 | #if CPU(X86_64) || CPU(ARM64) |
32773 | result = jit.branch64(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32()); |
32774 | OPGEN_RETURN(result); |
32775 | #endif |
32776 | break; |
32777 | break; |
32778 | case Arg::Addr: |
32779 | case Arg::Stack: |
32780 | case Arg::CallArg: |
32781 | #if CPU(X86_64) |
32782 | result = jit.branch64(args[0].asRelationalCondition(), args[1].gpr(), args[2].asAddress()); |
32783 | OPGEN_RETURN(result); |
32784 | #endif |
32785 | break; |
32786 | break; |
32787 | default: |
32788 | break; |
32789 | } |
32790 | break; |
32791 | case Arg::Addr: |
32792 | case Arg::Stack: |
32793 | case Arg::CallArg: |
32794 | switch (this->args[2].kind()) { |
32795 | case Arg::Tmp: |
32796 | #if CPU(X86_64) |
32797 | result = jit.branch64(args[0].asRelationalCondition(), args[1].asAddress(), args[2].gpr()); |
32798 | OPGEN_RETURN(result); |
32799 | #endif |
32800 | break; |
32801 | break; |
32802 | case Arg::Imm: |
32803 | #if CPU(X86_64) |
32804 | result = jit.branch64(args[0].asRelationalCondition(), args[1].asAddress(), args[2].asTrustedImm32()); |
32805 | OPGEN_RETURN(result); |
32806 | #endif |
32807 | break; |
32808 | break; |
32809 | default: |
32810 | break; |
32811 | } |
32812 | break; |
32813 | case Arg::Index: |
32814 | #if CPU(X86_64) |
32815 | result = jit.branch64(args[0].asRelationalCondition(), args[1].asBaseIndex(), args[2].gpr()); |
32816 | OPGEN_RETURN(result); |
32817 | #endif |
32818 | break; |
32819 | break; |
32820 | default: |
32821 | break; |
32822 | } |
32823 | break; |
32824 | case Opcode::BranchTest8: |
32825 | switch (this->args[1].kind()) { |
32826 | case Arg::Addr: |
32827 | case Arg::Stack: |
32828 | case Arg::CallArg: |
32829 | #if CPU(X86) || CPU(X86_64) |
32830 | result = jit.branchTest8(args[0].asResultCondition(), args[1].asAddress(), args[2].asTrustedImm32()); |
32831 | OPGEN_RETURN(result); |
32832 | #endif |
32833 | break; |
32834 | break; |
32835 | case Arg::Index: |
32836 | #if CPU(X86) || CPU(X86_64) |
32837 | result = jit.branchTest8(args[0].asResultCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32()); |
32838 | OPGEN_RETURN(result); |
32839 | #endif |
32840 | break; |
32841 | break; |
32842 | default: |
32843 | break; |
32844 | } |
32845 | break; |
32846 | case Opcode::BranchTest32: |
32847 | switch (this->args[1].kind()) { |
32848 | case Arg::Tmp: |
32849 | switch (this->args[2].kind()) { |
32850 | case Arg::Tmp: |
32851 | result = jit.branchTest32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
32852 | OPGEN_RETURN(result); |
32853 | break; |
32854 | break; |
32855 | case Arg::BitImm: |
32856 | result = jit.branchTest32(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32()); |
32857 | OPGEN_RETURN(result); |
32858 | break; |
32859 | break; |
32860 | default: |
32861 | break; |
32862 | } |
32863 | break; |
32864 | case Arg::Addr: |
32865 | case Arg::Stack: |
32866 | case Arg::CallArg: |
32867 | #if CPU(X86) || CPU(X86_64) |
32868 | result = jit.branchTest32(args[0].asResultCondition(), args[1].asAddress(), args[2].asTrustedImm32()); |
32869 | OPGEN_RETURN(result); |
32870 | #endif |
32871 | break; |
32872 | break; |
32873 | case Arg::Index: |
32874 | #if CPU(X86) || CPU(X86_64) |
32875 | result = jit.branchTest32(args[0].asResultCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32()); |
32876 | OPGEN_RETURN(result); |
32877 | #endif |
32878 | break; |
32879 | break; |
32880 | default: |
32881 | break; |
32882 | } |
32883 | break; |
32884 | case Opcode::BranchTest64: |
32885 | switch (this->args[1].kind()) { |
32886 | case Arg::Tmp: |
32887 | switch (this->args[2].kind()) { |
32888 | case Arg::Tmp: |
32889 | #if CPU(X86_64) || CPU(ARM64) |
32890 | result = jit.branchTest64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
32891 | OPGEN_RETURN(result); |
32892 | #endif |
32893 | break; |
32894 | break; |
32895 | #if USE(JSVALUE64) |
32896 | case Arg::BitImm64: |
32897 | #if CPU(ARM64) |
32898 | result = jit.branchTest64(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm64()); |
32899 | OPGEN_RETURN(result); |
32900 | #endif |
32901 | break; |
32902 | break; |
32903 | #endif // USE(JSVALUE64) |
32904 | case Arg::BitImm: |
32905 | #if CPU(X86_64) |
32906 | result = jit.branchTest64(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32()); |
32907 | OPGEN_RETURN(result); |
32908 | #endif |
32909 | break; |
32910 | break; |
32911 | default: |
32912 | break; |
32913 | } |
32914 | break; |
32915 | case Arg::Addr: |
32916 | case Arg::Stack: |
32917 | case Arg::CallArg: |
32918 | switch (this->args[2].kind()) { |
32919 | case Arg::BitImm: |
32920 | #if CPU(X86_64) |
32921 | result = jit.branchTest64(args[0].asResultCondition(), args[1].asAddress(), args[2].asTrustedImm32()); |
32922 | OPGEN_RETURN(result); |
32923 | #endif |
32924 | break; |
32925 | break; |
32926 | case Arg::Tmp: |
32927 | #if CPU(X86_64) |
32928 | result = jit.branchTest64(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr()); |
32929 | OPGEN_RETURN(result); |
32930 | #endif |
32931 | break; |
32932 | break; |
32933 | default: |
32934 | break; |
32935 | } |
32936 | break; |
32937 | case Arg::Index: |
32938 | #if CPU(X86_64) |
32939 | result = jit.branchTest64(args[0].asResultCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32()); |
32940 | OPGEN_RETURN(result); |
32941 | #endif |
32942 | break; |
32943 | break; |
32944 | default: |
32945 | break; |
32946 | } |
32947 | break; |
32948 | case Opcode::BranchDouble: |
32949 | result = jit.branchDouble(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr()); |
32950 | OPGEN_RETURN(result); |
32951 | break; |
32952 | break; |
32953 | case Opcode::BranchFloat: |
32954 | result = jit.branchFloat(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr()); |
32955 | OPGEN_RETURN(result); |
32956 | break; |
32957 | break; |
32958 | case Opcode::BranchAdd32: |
32959 | switch (this->args.size()) { |
32960 | case 4: |
32961 | switch (this->args[1].kind()) { |
32962 | case Arg::Tmp: |
32963 | switch (this->args[2].kind()) { |
32964 | case Arg::Tmp: |
32965 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
32966 | OPGEN_RETURN(result); |
32967 | break; |
32968 | break; |
32969 | case Arg::Addr: |
32970 | case Arg::Stack: |
32971 | case Arg::CallArg: |
32972 | #if CPU(X86) || CPU(X86_64) |
32973 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].gpr(), args[2].asAddress(), args[3].gpr()); |
32974 | OPGEN_RETURN(result); |
32975 | #endif |
32976 | break; |
32977 | break; |
32978 | default: |
32979 | break; |
32980 | } |
32981 | break; |
32982 | case Arg::Addr: |
32983 | case Arg::Stack: |
32984 | case Arg::CallArg: |
32985 | #if CPU(X86) || CPU(X86_64) |
32986 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr(), args[3].gpr()); |
32987 | OPGEN_RETURN(result); |
32988 | #endif |
32989 | break; |
32990 | break; |
32991 | default: |
32992 | break; |
32993 | } |
32994 | break; |
32995 | case 3: |
32996 | switch (this->args[1].kind()) { |
32997 | case Arg::Tmp: |
32998 | switch (this->args[2].kind()) { |
32999 | case Arg::Tmp: |
33000 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
33001 | OPGEN_RETURN(result); |
33002 | break; |
33003 | break; |
33004 | case Arg::Addr: |
33005 | case Arg::Stack: |
33006 | case Arg::CallArg: |
33007 | #if CPU(X86) || CPU(X86_64) |
33008 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].gpr(), args[2].asAddress()); |
33009 | OPGEN_RETURN(result); |
33010 | #endif |
33011 | break; |
33012 | break; |
33013 | default: |
33014 | break; |
33015 | } |
33016 | break; |
33017 | case Arg::Imm: |
33018 | switch (this->args[2].kind()) { |
33019 | case Arg::Tmp: |
33020 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].asTrustedImm32(), args[2].gpr()); |
33021 | OPGEN_RETURN(result); |
33022 | break; |
33023 | break; |
33024 | case Arg::Addr: |
33025 | case Arg::Stack: |
33026 | case Arg::CallArg: |
33027 | #if CPU(X86) || CPU(X86_64) |
33028 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].asTrustedImm32(), args[2].asAddress()); |
33029 | OPGEN_RETURN(result); |
33030 | #endif |
33031 | break; |
33032 | break; |
33033 | default: |
33034 | break; |
33035 | } |
33036 | break; |
33037 | case Arg::Addr: |
33038 | case Arg::Stack: |
33039 | case Arg::CallArg: |
33040 | #if CPU(X86) || CPU(X86_64) |
33041 | result = jit.branchAdd32(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr()); |
33042 | OPGEN_RETURN(result); |
33043 | #endif |
33044 | break; |
33045 | break; |
33046 | default: |
33047 | break; |
33048 | } |
33049 | break; |
33050 | default: |
33051 | break; |
33052 | } |
33053 | break; |
33054 | case Opcode::BranchAdd64: |
33055 | switch (this->args.size()) { |
33056 | case 4: |
33057 | switch (this->args[1].kind()) { |
33058 | case Arg::Tmp: |
33059 | switch (this->args[2].kind()) { |
33060 | case Arg::Tmp: |
33061 | result = jit.branchAdd64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr()); |
33062 | OPGEN_RETURN(result); |
33063 | break; |
33064 | break; |
33065 | case Arg::Addr: |
33066 | case Arg::Stack: |
33067 | case Arg::CallArg: |
33068 | #if CPU(X86) || CPU(X86_64) |
33069 | result = jit.branchAdd64(args[0].asResultCondition(), args[1].gpr(), args[2].asAddress(), args[3].gpr()); |
33070 | OPGEN_RETURN(result); |
33071 | #endif |
33072 | break; |
33073 | break; |
33074 | default: |
33075 | break; |
33076 | } |
33077 | break; |
33078 | case Arg::Addr: |
33079 | case Arg::Stack: |
33080 | case Arg::CallArg: |
33081 | #if CPU(X86) || CPU(X86_64) |
33082 | result = jit.branchAdd64(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr(), args[3].gpr()); |
33083 | OPGEN_RETURN(result); |
33084 | #endif |
33085 | break; |
33086 | break; |
33087 | default: |
33088 | break; |
33089 | } |
33090 | break; |
33091 | case 3: |
33092 | switch (this->args[1].kind()) { |
33093 | case Arg::Imm: |
33094 | #if CPU(X86_64) || CPU(ARM64) |
33095 | result = jit.branchAdd64(args[0].asResultCondition(), args[1].asTrustedImm32(), args[2].gpr()); |
33096 | OPGEN_RETURN(result); |
33097 | #endif |
33098 | break; |
33099 | break; |
33100 | case Arg::Tmp: |
33101 | #if CPU(X86_64) || CPU(ARM64) |
33102 | result = jit.branchAdd64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
33103 | OPGEN_RETURN(result); |
33104 | #endif |
33105 | break; |
33106 | break; |
33107 | case Arg::Addr: |
33108 | case Arg::Stack: |
33109 | case Arg::CallArg: |
33110 | #if CPU(X86_64) |
33111 | result = jit.branchAdd64(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr()); |
33112 | OPGEN_RETURN(result); |
33113 | #endif |
33114 | break; |
33115 | break; |
33116 | default: |
33117 | break; |
33118 | } |
33119 | break; |
33120 | default: |
33121 | break; |
33122 | } |
33123 | break; |
33124 | case Opcode::BranchMul32: |
33125 | switch (this->args.size()) { |
33126 | case 3: |
33127 | switch (this->args[1].kind()) { |
33128 | case Arg::Tmp: |
33129 | #if CPU(X86) || CPU(X86_64) |
33130 | result = jit.branchMul32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
33131 | OPGEN_RETURN(result); |
33132 | #endif |
33133 | break; |
33134 | break; |
33135 | case Arg::Addr: |
33136 | case Arg::Stack: |
33137 | case Arg::CallArg: |
33138 | #if CPU(X86) || CPU(X86_64) |
33139 | result = jit.branchMul32(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr()); |
33140 | OPGEN_RETURN(result); |
33141 | #endif |
33142 | break; |
33143 | break; |
33144 | default: |
33145 | break; |
33146 | } |
33147 | break; |
33148 | case 4: |
33149 | #if CPU(X86) || CPU(X86_64) |
33150 | result = jit.branchMul32(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr()); |
33151 | OPGEN_RETURN(result); |
33152 | #endif |
33153 | break; |
33154 | break; |
33155 | case 6: |
33156 | #if CPU(ARM64) |
33157 | result = jit.branchMul32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33158 | OPGEN_RETURN(result); |
33159 | #endif |
33160 | break; |
33161 | break; |
33162 | default: |
33163 | break; |
33164 | } |
33165 | break; |
33166 | case Opcode::BranchMul64: |
33167 | switch (this->args.size()) { |
33168 | case 3: |
33169 | #if CPU(X86_64) |
33170 | result = jit.branchMul64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
33171 | OPGEN_RETURN(result); |
33172 | #endif |
33173 | break; |
33174 | break; |
33175 | case 6: |
33176 | #if CPU(ARM64) |
33177 | result = jit.branchMul64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33178 | OPGEN_RETURN(result); |
33179 | #endif |
33180 | break; |
33181 | break; |
33182 | default: |
33183 | break; |
33184 | } |
33185 | break; |
33186 | case Opcode::BranchSub32: |
33187 | switch (this->args[1].kind()) { |
33188 | case Arg::Tmp: |
33189 | switch (this->args[2].kind()) { |
33190 | case Arg::Tmp: |
33191 | result = jit.branchSub32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
33192 | OPGEN_RETURN(result); |
33193 | break; |
33194 | break; |
33195 | case Arg::Addr: |
33196 | case Arg::Stack: |
33197 | case Arg::CallArg: |
33198 | #if CPU(X86) || CPU(X86_64) |
33199 | result = jit.branchSub32(args[0].asResultCondition(), args[1].gpr(), args[2].asAddress()); |
33200 | OPGEN_RETURN(result); |
33201 | #endif |
33202 | break; |
33203 | break; |
33204 | default: |
33205 | break; |
33206 | } |
33207 | break; |
33208 | case Arg::Imm: |
33209 | switch (this->args[2].kind()) { |
33210 | case Arg::Tmp: |
33211 | result = jit.branchSub32(args[0].asResultCondition(), args[1].asTrustedImm32(), args[2].gpr()); |
33212 | OPGEN_RETURN(result); |
33213 | break; |
33214 | break; |
33215 | case Arg::Addr: |
33216 | case Arg::Stack: |
33217 | case Arg::CallArg: |
33218 | #if CPU(X86) || CPU(X86_64) |
33219 | result = jit.branchSub32(args[0].asResultCondition(), args[1].asTrustedImm32(), args[2].asAddress()); |
33220 | OPGEN_RETURN(result); |
33221 | #endif |
33222 | break; |
33223 | break; |
33224 | default: |
33225 | break; |
33226 | } |
33227 | break; |
33228 | case Arg::Addr: |
33229 | case Arg::Stack: |
33230 | case Arg::CallArg: |
33231 | #if CPU(X86) || CPU(X86_64) |
33232 | result = jit.branchSub32(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr()); |
33233 | OPGEN_RETURN(result); |
33234 | #endif |
33235 | break; |
33236 | break; |
33237 | default: |
33238 | break; |
33239 | } |
33240 | break; |
33241 | case Opcode::BranchSub64: |
33242 | switch (this->args[1].kind()) { |
33243 | case Arg::Imm: |
33244 | #if CPU(X86_64) || CPU(ARM64) |
33245 | result = jit.branchSub64(args[0].asResultCondition(), args[1].asTrustedImm32(), args[2].gpr()); |
33246 | OPGEN_RETURN(result); |
33247 | #endif |
33248 | break; |
33249 | break; |
33250 | case Arg::Tmp: |
33251 | #if CPU(X86_64) || CPU(ARM64) |
33252 | result = jit.branchSub64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr()); |
33253 | OPGEN_RETURN(result); |
33254 | #endif |
33255 | break; |
33256 | break; |
33257 | default: |
33258 | break; |
33259 | } |
33260 | break; |
33261 | case Opcode::BranchNeg32: |
33262 | result = jit.branchNeg32(args[0].asResultCondition(), args[1].gpr()); |
33263 | OPGEN_RETURN(result); |
33264 | break; |
33265 | break; |
33266 | case Opcode::BranchNeg64: |
33267 | #if CPU(X86_64) || CPU(ARM64) |
33268 | result = jit.branchNeg64(args[0].asResultCondition(), args[1].gpr()); |
33269 | OPGEN_RETURN(result); |
33270 | #endif |
33271 | break; |
33272 | break; |
33273 | case Opcode::MoveConditionally32: |
33274 | switch (this->args.size()) { |
33275 | case 5: |
33276 | jit.moveConditionally32(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr()); |
33277 | OPGEN_RETURN(result); |
33278 | break; |
33279 | break; |
33280 | case 6: |
33281 | switch (this->args[2].kind()) { |
33282 | case Arg::Tmp: |
33283 | jit.moveConditionally32(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33284 | OPGEN_RETURN(result); |
33285 | break; |
33286 | break; |
33287 | case Arg::Imm: |
33288 | jit.moveConditionally32(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33289 | OPGEN_RETURN(result); |
33290 | break; |
33291 | break; |
33292 | default: |
33293 | break; |
33294 | } |
33295 | break; |
33296 | default: |
33297 | break; |
33298 | } |
33299 | break; |
33300 | case Opcode::MoveConditionally64: |
33301 | switch (this->args.size()) { |
33302 | case 5: |
33303 | #if CPU(X86_64) || CPU(ARM64) |
33304 | jit.moveConditionally64(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr()); |
33305 | OPGEN_RETURN(result); |
33306 | #endif |
33307 | break; |
33308 | break; |
33309 | case 6: |
33310 | switch (this->args[2].kind()) { |
33311 | case Arg::Tmp: |
33312 | #if CPU(X86_64) || CPU(ARM64) |
33313 | jit.moveConditionally64(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33314 | OPGEN_RETURN(result); |
33315 | #endif |
33316 | break; |
33317 | break; |
33318 | case Arg::Imm: |
33319 | #if CPU(X86_64) || CPU(ARM64) |
33320 | jit.moveConditionally64(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33321 | OPGEN_RETURN(result); |
33322 | #endif |
33323 | break; |
33324 | break; |
33325 | default: |
33326 | break; |
33327 | } |
33328 | break; |
33329 | default: |
33330 | break; |
33331 | } |
33332 | break; |
33333 | case Opcode::MoveConditionallyTest32: |
33334 | switch (this->args.size()) { |
33335 | case 5: |
33336 | switch (this->args[2].kind()) { |
33337 | case Arg::Tmp: |
33338 | jit.moveConditionallyTest32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr()); |
33339 | OPGEN_RETURN(result); |
33340 | break; |
33341 | break; |
33342 | case Arg::Imm: |
33343 | #if CPU(X86) || CPU(X86_64) |
33344 | jit.moveConditionallyTest32(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr(), args[4].gpr()); |
33345 | OPGEN_RETURN(result); |
33346 | #endif |
33347 | break; |
33348 | break; |
33349 | default: |
33350 | break; |
33351 | } |
33352 | break; |
33353 | case 6: |
33354 | switch (this->args[2].kind()) { |
33355 | case Arg::Tmp: |
33356 | jit.moveConditionallyTest32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33357 | OPGEN_RETURN(result); |
33358 | break; |
33359 | break; |
33360 | case Arg::BitImm: |
33361 | jit.moveConditionallyTest32(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33362 | OPGEN_RETURN(result); |
33363 | break; |
33364 | break; |
33365 | default: |
33366 | break; |
33367 | } |
33368 | break; |
33369 | default: |
33370 | break; |
33371 | } |
33372 | break; |
33373 | case Opcode::MoveConditionallyTest64: |
33374 | switch (this->args.size()) { |
33375 | case 5: |
33376 | switch (this->args[2].kind()) { |
33377 | case Arg::Tmp: |
33378 | #if CPU(X86_64) || CPU(ARM64) |
33379 | jit.moveConditionallyTest64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr()); |
33380 | OPGEN_RETURN(result); |
33381 | #endif |
33382 | break; |
33383 | break; |
33384 | case Arg::Imm: |
33385 | #if CPU(X86_64) |
33386 | jit.moveConditionallyTest64(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr(), args[4].gpr()); |
33387 | OPGEN_RETURN(result); |
33388 | #endif |
33389 | break; |
33390 | break; |
33391 | default: |
33392 | break; |
33393 | } |
33394 | break; |
33395 | case 6: |
33396 | switch (this->args[2].kind()) { |
33397 | case Arg::Tmp: |
33398 | #if CPU(X86_64) || CPU(ARM64) |
33399 | jit.moveConditionallyTest64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33400 | OPGEN_RETURN(result); |
33401 | #endif |
33402 | break; |
33403 | break; |
33404 | case Arg::Imm: |
33405 | #if CPU(X86_64) |
33406 | jit.moveConditionallyTest64(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33407 | OPGEN_RETURN(result); |
33408 | #endif |
33409 | break; |
33410 | break; |
33411 | default: |
33412 | break; |
33413 | } |
33414 | break; |
33415 | default: |
33416 | break; |
33417 | } |
33418 | break; |
33419 | case Opcode::MoveConditionallyDouble: |
33420 | switch (this->args.size()) { |
33421 | case 6: |
33422 | jit.moveConditionallyDouble(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33423 | OPGEN_RETURN(result); |
33424 | break; |
33425 | break; |
33426 | case 5: |
33427 | jit.moveConditionallyDouble(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].gpr(), args[4].gpr()); |
33428 | OPGEN_RETURN(result); |
33429 | break; |
33430 | break; |
33431 | default: |
33432 | break; |
33433 | } |
33434 | break; |
33435 | case Opcode::MoveConditionallyFloat: |
33436 | switch (this->args.size()) { |
33437 | case 6: |
33438 | jit.moveConditionallyFloat(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].gpr(), args[4].gpr(), args[5].gpr()); |
33439 | OPGEN_RETURN(result); |
33440 | break; |
33441 | break; |
33442 | case 5: |
33443 | jit.moveConditionallyFloat(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].gpr(), args[4].gpr()); |
33444 | OPGEN_RETURN(result); |
33445 | break; |
33446 | break; |
33447 | default: |
33448 | break; |
33449 | } |
33450 | break; |
33451 | case Opcode::MoveDoubleConditionally32: |
33452 | switch (this->args[1].kind()) { |
33453 | case Arg::Tmp: |
33454 | switch (this->args[2].kind()) { |
33455 | case Arg::Tmp: |
33456 | jit.moveDoubleConditionally32(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33457 | OPGEN_RETURN(result); |
33458 | break; |
33459 | break; |
33460 | case Arg::Imm: |
33461 | jit.moveDoubleConditionally32(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33462 | OPGEN_RETURN(result); |
33463 | break; |
33464 | break; |
33465 | case Arg::Addr: |
33466 | case Arg::Stack: |
33467 | case Arg::CallArg: |
33468 | #if CPU(X86) || CPU(X86_64) |
33469 | jit.moveDoubleConditionally32(args[0].asRelationalCondition(), args[1].gpr(), args[2].asAddress(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33470 | OPGEN_RETURN(result); |
33471 | #endif |
33472 | break; |
33473 | break; |
33474 | default: |
33475 | break; |
33476 | } |
33477 | break; |
33478 | case Arg::Addr: |
33479 | case Arg::Stack: |
33480 | case Arg::CallArg: |
33481 | switch (this->args[2].kind()) { |
33482 | case Arg::Imm: |
33483 | #if CPU(X86) || CPU(X86_64) |
33484 | jit.moveDoubleConditionally32(args[0].asRelationalCondition(), args[1].asAddress(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33485 | OPGEN_RETURN(result); |
33486 | #endif |
33487 | break; |
33488 | break; |
33489 | case Arg::Tmp: |
33490 | #if CPU(X86) || CPU(X86_64) |
33491 | jit.moveDoubleConditionally32(args[0].asRelationalCondition(), args[1].asAddress(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33492 | OPGEN_RETURN(result); |
33493 | #endif |
33494 | break; |
33495 | break; |
33496 | default: |
33497 | break; |
33498 | } |
33499 | break; |
33500 | case Arg::Index: |
33501 | #if CPU(X86) || CPU(X86_64) |
33502 | jit.moveDoubleConditionally32(args[0].asRelationalCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33503 | OPGEN_RETURN(result); |
33504 | #endif |
33505 | break; |
33506 | break; |
33507 | default: |
33508 | break; |
33509 | } |
33510 | break; |
33511 | case Opcode::MoveDoubleConditionally64: |
33512 | switch (this->args[1].kind()) { |
33513 | case Arg::Tmp: |
33514 | switch (this->args[2].kind()) { |
33515 | case Arg::Tmp: |
33516 | #if CPU(X86_64) || CPU(ARM64) |
33517 | jit.moveDoubleConditionally64(args[0].asRelationalCondition(), args[1].gpr(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33518 | OPGEN_RETURN(result); |
33519 | #endif |
33520 | break; |
33521 | break; |
33522 | case Arg::Imm: |
33523 | #if CPU(X86_64) || CPU(ARM64) |
33524 | jit.moveDoubleConditionally64(args[0].asRelationalCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33525 | OPGEN_RETURN(result); |
33526 | #endif |
33527 | break; |
33528 | break; |
33529 | case Arg::Addr: |
33530 | case Arg::Stack: |
33531 | case Arg::CallArg: |
33532 | #if CPU(X86_64) |
33533 | jit.moveDoubleConditionally64(args[0].asRelationalCondition(), args[1].gpr(), args[2].asAddress(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33534 | OPGEN_RETURN(result); |
33535 | #endif |
33536 | break; |
33537 | break; |
33538 | default: |
33539 | break; |
33540 | } |
33541 | break; |
33542 | case Arg::Addr: |
33543 | case Arg::Stack: |
33544 | case Arg::CallArg: |
33545 | switch (this->args[2].kind()) { |
33546 | case Arg::Tmp: |
33547 | #if CPU(X86_64) |
33548 | jit.moveDoubleConditionally64(args[0].asRelationalCondition(), args[1].asAddress(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33549 | OPGEN_RETURN(result); |
33550 | #endif |
33551 | break; |
33552 | break; |
33553 | case Arg::Imm: |
33554 | #if CPU(X86_64) |
33555 | jit.moveDoubleConditionally64(args[0].asRelationalCondition(), args[1].asAddress(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33556 | OPGEN_RETURN(result); |
33557 | #endif |
33558 | break; |
33559 | break; |
33560 | default: |
33561 | break; |
33562 | } |
33563 | break; |
33564 | case Arg::Index: |
33565 | #if CPU(X86_64) |
33566 | jit.moveDoubleConditionally64(args[0].asRelationalCondition(), args[1].asBaseIndex(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33567 | OPGEN_RETURN(result); |
33568 | #endif |
33569 | break; |
33570 | break; |
33571 | default: |
33572 | break; |
33573 | } |
33574 | break; |
33575 | case Opcode::MoveDoubleConditionallyTest32: |
33576 | switch (this->args[1].kind()) { |
33577 | case Arg::Tmp: |
33578 | switch (this->args[2].kind()) { |
33579 | case Arg::Tmp: |
33580 | jit.moveDoubleConditionallyTest32(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33581 | OPGEN_RETURN(result); |
33582 | break; |
33583 | break; |
33584 | case Arg::BitImm: |
33585 | jit.moveDoubleConditionallyTest32(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33586 | OPGEN_RETURN(result); |
33587 | break; |
33588 | break; |
33589 | default: |
33590 | break; |
33591 | } |
33592 | break; |
33593 | case Arg::Addr: |
33594 | case Arg::Stack: |
33595 | case Arg::CallArg: |
33596 | #if CPU(X86) || CPU(X86_64) |
33597 | jit.moveDoubleConditionallyTest32(args[0].asResultCondition(), args[1].asAddress(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33598 | OPGEN_RETURN(result); |
33599 | #endif |
33600 | break; |
33601 | break; |
33602 | case Arg::Index: |
33603 | #if CPU(X86) || CPU(X86_64) |
33604 | jit.moveDoubleConditionallyTest32(args[0].asResultCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33605 | OPGEN_RETURN(result); |
33606 | #endif |
33607 | break; |
33608 | break; |
33609 | default: |
33610 | break; |
33611 | } |
33612 | break; |
33613 | case Opcode::MoveDoubleConditionallyTest64: |
33614 | switch (this->args[1].kind()) { |
33615 | case Arg::Tmp: |
33616 | switch (this->args[2].kind()) { |
33617 | case Arg::Tmp: |
33618 | #if CPU(X86_64) || CPU(ARM64) |
33619 | jit.moveDoubleConditionallyTest64(args[0].asResultCondition(), args[1].gpr(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33620 | OPGEN_RETURN(result); |
33621 | #endif |
33622 | break; |
33623 | break; |
33624 | case Arg::Imm: |
33625 | #if CPU(X86_64) |
33626 | jit.moveDoubleConditionallyTest64(args[0].asResultCondition(), args[1].gpr(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33627 | OPGEN_RETURN(result); |
33628 | #endif |
33629 | break; |
33630 | break; |
33631 | default: |
33632 | break; |
33633 | } |
33634 | break; |
33635 | case Arg::Addr: |
33636 | case Arg::Stack: |
33637 | case Arg::CallArg: |
33638 | switch (this->args[2].kind()) { |
33639 | case Arg::Imm: |
33640 | #if CPU(X86_64) |
33641 | jit.moveDoubleConditionallyTest64(args[0].asResultCondition(), args[1].asAddress(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33642 | OPGEN_RETURN(result); |
33643 | #endif |
33644 | break; |
33645 | break; |
33646 | case Arg::Tmp: |
33647 | #if CPU(X86_64) |
33648 | jit.moveDoubleConditionallyTest64(args[0].asResultCondition(), args[1].asAddress(), args[2].gpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33649 | OPGEN_RETURN(result); |
33650 | #endif |
33651 | break; |
33652 | break; |
33653 | default: |
33654 | break; |
33655 | } |
33656 | break; |
33657 | case Arg::Index: |
33658 | #if CPU(X86_64) |
33659 | jit.moveDoubleConditionallyTest64(args[0].asResultCondition(), args[1].asBaseIndex(), args[2].asTrustedImm32(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33660 | OPGEN_RETURN(result); |
33661 | #endif |
33662 | break; |
33663 | break; |
33664 | default: |
33665 | break; |
33666 | } |
33667 | break; |
33668 | case Opcode::MoveDoubleConditionallyDouble: |
33669 | jit.moveDoubleConditionallyDouble(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33670 | OPGEN_RETURN(result); |
33671 | break; |
33672 | break; |
33673 | case Opcode::MoveDoubleConditionallyFloat: |
33674 | jit.moveDoubleConditionallyFloat(args[0].asDoubleCondition(), args[1].fpr(), args[2].fpr(), args[3].fpr(), args[4].fpr(), args[5].fpr()); |
33675 | OPGEN_RETURN(result); |
33676 | break; |
33677 | break; |
33678 | case Opcode::MemoryFence: |
33679 | jit.memoryFence(); |
33680 | OPGEN_RETURN(result); |
33681 | break; |
33682 | break; |
33683 | case Opcode::StoreFence: |
33684 | jit.storeFence(); |
33685 | OPGEN_RETURN(result); |
33686 | break; |
33687 | break; |
33688 | case Opcode::LoadFence: |
33689 | jit.loadFence(); |
33690 | OPGEN_RETURN(result); |
33691 | break; |
33692 | break; |
33693 | case Opcode::Jump: |
33694 | result = jit.jump(); |
33695 | OPGEN_RETURN(result); |
33696 | break; |
33697 | break; |
33698 | case Opcode::RetVoid: |
33699 | jit.retVoid(); |
33700 | OPGEN_RETURN(result); |
33701 | break; |
33702 | break; |
33703 | case Opcode::Ret32: |
33704 | jit.ret32(args[0].gpr()); |
33705 | OPGEN_RETURN(result); |
33706 | break; |
33707 | break; |
33708 | case Opcode::Ret64: |
33709 | #if CPU(X86_64) || CPU(ARM64) |
33710 | jit.ret64(args[0].gpr()); |
33711 | OPGEN_RETURN(result); |
33712 | #endif |
33713 | break; |
33714 | break; |
33715 | case Opcode::RetFloat: |
33716 | jit.retFloat(args[0].fpr()); |
33717 | OPGEN_RETURN(result); |
33718 | break; |
33719 | break; |
33720 | case Opcode::RetDouble: |
33721 | jit.retDouble(args[0].fpr()); |
33722 | OPGEN_RETURN(result); |
33723 | break; |
33724 | break; |
33725 | case Opcode::Oops: |
33726 | jit.oops(); |
33727 | OPGEN_RETURN(result); |
33728 | break; |
33729 | break; |
33730 | case Opcode::EntrySwitch: |
33731 | OPGEN_RETURN(EntrySwitchCustom::generate(*this, jit, context)); |
33732 | break; |
33733 | case Opcode::Shuffle: |
33734 | OPGEN_RETURN(ShuffleCustom::generate(*this, jit, context)); |
33735 | break; |
33736 | case Opcode::Patch: |
33737 | OPGEN_RETURN(PatchCustom::generate(*this, jit, context)); |
33738 | break; |
33739 | case Opcode::CCall: |
33740 | OPGEN_RETURN(CCallCustom::generate(*this, jit, context)); |
33741 | break; |
33742 | case Opcode::ColdCCall: |
33743 | OPGEN_RETURN(ColdCCallCustom::generate(*this, jit, context)); |
33744 | break; |
33745 | case Opcode::WasmBoundsCheck: |
33746 | OPGEN_RETURN(WasmBoundsCheckCustom::generate(*this, jit, context)); |
33747 | break; |
33748 | default: |
33749 | break; |
33750 | } |
33751 | RELEASE_ASSERT_NOT_REACHED(); |
33752 | return result; |
33753 | } |
33754 | } } } // namespace JSC::B3::Air |
33755 | #endif // AirOpcodeGenerated_h |
33756 | |