1 /* bfin.h -- Header file for ADI Blackfin opcode table
2 Copyright (C) 2005-2014 Free Software Foundation, Inc.
4 This file is part of GDB, GAS, and the GNU binutils.
6 GDB, GAS, and the GNU binutils are free software; you can redistribute
7 them and/or modify them under the terms of the GNU General Public
8 License as published by the Free Software Foundation; either version 3,
9 or (at your option) any later version.
11 GDB, GAS, and the GNU binutils are distributed in the hope that they
12 will be useful, but WITHOUT ANY WARRANTY; without even the implied
13 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
14 the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this file; see the file COPYING3. If not, write to the Free
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
24 /* Common to all DSP32 instructions. */
25 #define BIT_MULTI_INS 0x0800
27 /* This just sets the multi instruction bit of a DSP32 instruction. */
28 #define SET_MULTI_INSTRUCTION_BIT(x) x->value |= BIT_MULTI_INS;
31 /* DSP instructions (32 bit) */
44 static inline int is_macmod_pmove (int x
)
46 return (x
== 0) || (x
== M_IS
) || (x
== M_FU
) || (x
== M_S2RND
)
47 || (x
== M_ISS2
) || (x
== M_IU
);
50 static inline int is_macmod_hmove (int x
)
52 return (x
== 0) || (x
== M_IS
) || (x
== M_FU
) || (x
== M_IU
) || (x
== M_T
)
53 || (x
== M_TFU
) || (x
== M_S2RND
) || (x
== M_ISS2
) || (x
== M_IH
);
56 static inline int is_macmod_signed (int x
)
58 return (x
== 0) || (x
== M_IS
) || (x
== M_T
) || (x
== M_S2RND
)
59 || (x
== M_ISS2
) || (x
== M_IH
) || (x
== M_W32
);
63 +----+----+---+---|---+----+----+---|---+---+---+---|---+---+---+---+
64 | 1 | 1 | 0 | 0 |.M.| 0 | 0 |.mmod..........|.MM|.P.|.w1|.op1...|
65 |.h01|.h11|.w0|.op0...|.h00|.h10|.dst.......|.src0......|.src1......|
66 +----+----+---+---|---+----+----+---|---+---+---+---|---+---+---+---+
108 #define DSP32Mac_opcode 0xc0000000
109 #define DSP32Mac_src1_bits 0
110 #define DSP32Mac_src1_mask 0x7
111 #define DSP32Mac_src0_bits 3
112 #define DSP32Mac_src0_mask 0x7
113 #define DSP32Mac_dst_bits 6
114 #define DSP32Mac_dst_mask 0x7
115 #define DSP32Mac_h10_bits 9
116 #define DSP32Mac_h10_mask 0x1
117 #define DSP32Mac_h00_bits 10
118 #define DSP32Mac_h00_mask 0x1
119 #define DSP32Mac_op0_bits 11
120 #define DSP32Mac_op0_mask 0x3
121 #define DSP32Mac_w0_bits 13
122 #define DSP32Mac_w0_mask 0x1
123 #define DSP32Mac_h11_bits 14
124 #define DSP32Mac_h11_mask 0x1
125 #define DSP32Mac_h01_bits 15
126 #define DSP32Mac_h01_mask 0x1
127 #define DSP32Mac_op1_bits 16
128 #define DSP32Mac_op1_mask 0x3
129 #define DSP32Mac_w1_bits 18
130 #define DSP32Mac_w1_mask 0x1
131 #define DSP32Mac_p_bits 19
132 #define DSP32Mac_p_mask 0x1
133 #define DSP32Mac_MM_bits 20
134 #define DSP32Mac_MM_mask 0x1
135 #define DSP32Mac_mmod_bits 21
136 #define DSP32Mac_mmod_mask 0xf
137 #define DSP32Mac_code2_bits 25
138 #define DSP32Mac_code2_mask 0x3
139 #define DSP32Mac_M_bits 27
140 #define DSP32Mac_M_mask 0x1
141 #define DSP32Mac_code_bits 28
142 #define DSP32Mac_code_mask 0xf
144 #define init_DSP32Mac \
147 DSP32Mac_src1_bits, DSP32Mac_src1_mask, \
148 DSP32Mac_src0_bits, DSP32Mac_src0_mask, \
149 DSP32Mac_dst_bits, DSP32Mac_dst_mask, \
150 DSP32Mac_h10_bits, DSP32Mac_h10_mask, \
151 DSP32Mac_h00_bits, DSP32Mac_h00_mask, \
152 DSP32Mac_op0_bits, DSP32Mac_op0_mask, \
153 DSP32Mac_w0_bits, DSP32Mac_w0_mask, \
154 DSP32Mac_h11_bits, DSP32Mac_h11_mask, \
155 DSP32Mac_h01_bits, DSP32Mac_h01_mask, \
156 DSP32Mac_op1_bits, DSP32Mac_op1_mask, \
157 DSP32Mac_w1_bits, DSP32Mac_w1_mask, \
158 DSP32Mac_p_bits, DSP32Mac_p_mask, \
159 DSP32Mac_MM_bits, DSP32Mac_MM_mask, \
160 DSP32Mac_mmod_bits, DSP32Mac_mmod_mask, \
161 DSP32Mac_code2_bits, DSP32Mac_code2_mask, \
162 DSP32Mac_M_bits, DSP32Mac_M_mask, \
163 DSP32Mac_code_bits, DSP32Mac_code_mask \
167 +----+----+---+---|---+----+----+---|---+---+---+---|---+---+---+---+
168 | 1 | 1 | 0 | 0 |.M.| 0 | 1 |.mmod..........|.MM|.P.|.w1|.op1...|
169 |.h01|.h11|.w0|.op0...|.h00|.h10|.dst.......|.src0......|.src1......|
170 +----+----+---+---|---+----+----+---|---+---+---+---|---+---+---+---+
173 typedef DSP32Mac DSP32Mult
;
174 #define DSP32Mult_opcode 0xc2000000
176 #define init_DSP32Mult \
179 DSP32Mac_src1_bits, DSP32Mac_src1_mask, \
180 DSP32Mac_src0_bits, DSP32Mac_src0_mask, \
181 DSP32Mac_dst_bits, DSP32Mac_dst_mask, \
182 DSP32Mac_h10_bits, DSP32Mac_h10_mask, \
183 DSP32Mac_h00_bits, DSP32Mac_h00_mask, \
184 DSP32Mac_op0_bits, DSP32Mac_op0_mask, \
185 DSP32Mac_w0_bits, DSP32Mac_w0_mask, \
186 DSP32Mac_h11_bits, DSP32Mac_h11_mask, \
187 DSP32Mac_h01_bits, DSP32Mac_h01_mask, \
188 DSP32Mac_op1_bits, DSP32Mac_op1_mask, \
189 DSP32Mac_w1_bits, DSP32Mac_w1_mask, \
190 DSP32Mac_p_bits, DSP32Mac_p_mask, \
191 DSP32Mac_MM_bits, DSP32Mac_MM_mask, \
192 DSP32Mac_mmod_bits, DSP32Mac_mmod_mask, \
193 DSP32Mac_code2_bits, DSP32Mac_code2_mask, \
194 DSP32Mac_M_bits, DSP32Mac_M_mask, \
195 DSP32Mac_code_bits, DSP32Mac_code_mask \
199 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
200 | 1 | 1 | 0 | 0 |.M.| 1 | 0 | - | - | - |.HL|.aopcde............|
201 |.aop...|.s.|.x.|.dst0......|.dst1......|.src0......|.src1......|
202 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
207 unsigned long opcode
;
236 #define DSP32Alu_opcode 0xc4000000
237 #define DSP32Alu_src1_bits 0
238 #define DSP32Alu_src1_mask 0x7
239 #define DSP32Alu_src0_bits 3
240 #define DSP32Alu_src0_mask 0x7
241 #define DSP32Alu_dst1_bits 6
242 #define DSP32Alu_dst1_mask 0x7
243 #define DSP32Alu_dst0_bits 9
244 #define DSP32Alu_dst0_mask 0x7
245 #define DSP32Alu_x_bits 12
246 #define DSP32Alu_x_mask 0x1
247 #define DSP32Alu_s_bits 13
248 #define DSP32Alu_s_mask 0x1
249 #define DSP32Alu_aop_bits 14
250 #define DSP32Alu_aop_mask 0x3
251 #define DSP32Alu_aopcde_bits 16
252 #define DSP32Alu_aopcde_mask 0x1f
253 #define DSP32Alu_HL_bits 21
254 #define DSP32Alu_HL_mask 0x1
255 #define DSP32Alu_dontcare_bits 22
256 #define DSP32Alu_dontcare_mask 0x7
257 #define DSP32Alu_code2_bits 25
258 #define DSP32Alu_code2_mask 0x3
259 #define DSP32Alu_M_bits 27
260 #define DSP32Alu_M_mask 0x1
261 #define DSP32Alu_code_bits 28
262 #define DSP32Alu_code_mask 0xf
264 #define init_DSP32Alu \
267 DSP32Alu_src1_bits, DSP32Alu_src1_mask, \
268 DSP32Alu_src0_bits, DSP32Alu_src0_mask, \
269 DSP32Alu_dst1_bits, DSP32Alu_dst1_mask, \
270 DSP32Alu_dst0_bits, DSP32Alu_dst0_mask, \
271 DSP32Alu_x_bits, DSP32Alu_x_mask, \
272 DSP32Alu_s_bits, DSP32Alu_s_mask, \
273 DSP32Alu_aop_bits, DSP32Alu_aop_mask, \
274 DSP32Alu_aopcde_bits, DSP32Alu_aopcde_mask, \
275 DSP32Alu_HL_bits, DSP32Alu_HL_mask, \
276 DSP32Alu_dontcare_bits, DSP32Alu_dontcare_mask, \
277 DSP32Alu_code2_bits, DSP32Alu_code2_mask, \
278 DSP32Alu_M_bits, DSP32Alu_M_mask, \
279 DSP32Alu_code_bits, DSP32Alu_code_mask \
283 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
284 | 1 | 1 | 0 | 0 |.M.| 1 | 1 | 0 | 0 | - | - |.sopcde............|
285 |.sop...|.HLs...|.dst0......| - | - | - |.src0......|.src1......|
286 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
291 unsigned long opcode
;
316 #define DSP32Shift_opcode 0xc6000000
317 #define DSP32Shift_src1_bits 0
318 #define DSP32Shift_src1_mask 0x7
319 #define DSP32Shift_src0_bits 3
320 #define DSP32Shift_src0_mask 0x7
321 #define DSP32Shift_dst1_bits 6
322 #define DSP32Shift_dst1_mask 0x7
323 #define DSP32Shift_dst0_bits 9
324 #define DSP32Shift_dst0_mask 0x7
325 #define DSP32Shift_HLs_bits 12
326 #define DSP32Shift_HLs_mask 0x3
327 #define DSP32Shift_sop_bits 14
328 #define DSP32Shift_sop_mask 0x3
329 #define DSP32Shift_sopcde_bits 16
330 #define DSP32Shift_sopcde_mask 0x1f
331 #define DSP32Shift_dontcare_bits 21
332 #define DSP32Shift_dontcare_mask 0x3
333 #define DSP32Shift_code2_bits 23
334 #define DSP32Shift_code2_mask 0xf
335 #define DSP32Shift_M_bits 27
336 #define DSP32Shift_M_mask 0x1
337 #define DSP32Shift_code_bits 28
338 #define DSP32Shift_code_mask 0xf
340 #define init_DSP32Shift \
343 DSP32Shift_src1_bits, DSP32Shift_src1_mask, \
344 DSP32Shift_src0_bits, DSP32Shift_src0_mask, \
345 DSP32Shift_dst1_bits, DSP32Shift_dst1_mask, \
346 DSP32Shift_dst0_bits, DSP32Shift_dst0_mask, \
347 DSP32Shift_HLs_bits, DSP32Shift_HLs_mask, \
348 DSP32Shift_sop_bits, DSP32Shift_sop_mask, \
349 DSP32Shift_sopcde_bits, DSP32Shift_sopcde_mask, \
350 DSP32Shift_dontcare_bits, DSP32Shift_dontcare_mask, \
351 DSP32Shift_code2_bits, DSP32Shift_code2_mask, \
352 DSP32Shift_M_bits, DSP32Shift_M_mask, \
353 DSP32Shift_code_bits, DSP32Shift_code_mask \
357 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
358 | 1 | 1 | 0 | 0 |.M.| 1 | 1 | 0 | 1 | - | - |.sopcde............|
359 |.sop...|.HLs...|.dst0......|.immag.................|.src1......|
360 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
365 unsigned long opcode
;
388 #define DSP32ShiftImm_opcode 0xc6800000
389 #define DSP32ShiftImm_src1_bits 0
390 #define DSP32ShiftImm_src1_mask 0x7
391 #define DSP32ShiftImm_immag_bits 3
392 #define DSP32ShiftImm_immag_mask 0x3f
393 #define DSP32ShiftImm_dst0_bits 9
394 #define DSP32ShiftImm_dst0_mask 0x7
395 #define DSP32ShiftImm_HLs_bits 12
396 #define DSP32ShiftImm_HLs_mask 0x3
397 #define DSP32ShiftImm_sop_bits 14
398 #define DSP32ShiftImm_sop_mask 0x3
399 #define DSP32ShiftImm_sopcde_bits 16
400 #define DSP32ShiftImm_sopcde_mask 0x1f
401 #define DSP32ShiftImm_dontcare_bits 21
402 #define DSP32ShiftImm_dontcare_mask 0x3
403 #define DSP32ShiftImm_code2_bits 23
404 #define DSP32ShiftImm_code2_mask 0xf
405 #define DSP32ShiftImm_M_bits 27
406 #define DSP32ShiftImm_M_mask 0x1
407 #define DSP32ShiftImm_code_bits 28
408 #define DSP32ShiftImm_code_mask 0xf
410 #define init_DSP32ShiftImm \
412 DSP32ShiftImm_opcode, \
413 DSP32ShiftImm_src1_bits, DSP32ShiftImm_src1_mask, \
414 DSP32ShiftImm_immag_bits, DSP32ShiftImm_immag_mask, \
415 DSP32ShiftImm_dst0_bits, DSP32ShiftImm_dst0_mask, \
416 DSP32ShiftImm_HLs_bits, DSP32ShiftImm_HLs_mask, \
417 DSP32ShiftImm_sop_bits, DSP32ShiftImm_sop_mask, \
418 DSP32ShiftImm_sopcde_bits, DSP32ShiftImm_sopcde_mask, \
419 DSP32ShiftImm_dontcare_bits, DSP32ShiftImm_dontcare_mask, \
420 DSP32ShiftImm_code2_bits, DSP32ShiftImm_code2_mask, \
421 DSP32ShiftImm_M_bits, DSP32ShiftImm_M_mask, \
422 DSP32ShiftImm_code_bits, DSP32ShiftImm_code_mask \
428 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
429 | 1 | 1 | 1 | 0 | 0 | 1 |.W.|.Z.|.sz....|.ptr.......|.reg.......|
430 |.offset........................................................|
431 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
436 unsigned long opcode
;
453 #define LDSTidxI_opcode 0xe4000000
454 #define LDSTidxI_offset_bits 0
455 #define LDSTidxI_offset_mask 0xffff
456 #define LDSTidxI_reg_bits 16
457 #define LDSTidxI_reg_mask 0x7
458 #define LDSTidxI_ptr_bits 19
459 #define LDSTidxI_ptr_mask 0x7
460 #define LDSTidxI_sz_bits 22
461 #define LDSTidxI_sz_mask 0x3
462 #define LDSTidxI_Z_bits 24
463 #define LDSTidxI_Z_mask 0x1
464 #define LDSTidxI_W_bits 25
465 #define LDSTidxI_W_mask 0x1
466 #define LDSTidxI_code_bits 26
467 #define LDSTidxI_code_mask 0x3f
469 #define init_LDSTidxI \
472 LDSTidxI_offset_bits, LDSTidxI_offset_mask, \
473 LDSTidxI_reg_bits, LDSTidxI_reg_mask, \
474 LDSTidxI_ptr_bits, LDSTidxI_ptr_mask, \
475 LDSTidxI_sz_bits, LDSTidxI_sz_mask, \
476 LDSTidxI_Z_bits, LDSTidxI_Z_mask, \
477 LDSTidxI_W_bits, LDSTidxI_W_mask, \
478 LDSTidxI_code_bits, LDSTidxI_code_mask \
483 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
484 | 1 | 0 | 0 | 1 |.sz....|.W.|.aop...|.Z.|.ptr.......|.reg.......|
485 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
490 unsigned short opcode
;
507 #define LDST_opcode 0x9000
508 #define LDST_reg_bits 0
509 #define LDST_reg_mask 0x7
510 #define LDST_ptr_bits 3
511 #define LDST_ptr_mask 0x7
512 #define LDST_Z_bits 6
513 #define LDST_Z_mask 0x1
514 #define LDST_aop_bits 7
515 #define LDST_aop_mask 0x3
516 #define LDST_W_bits 9
517 #define LDST_W_mask 0x1
518 #define LDST_sz_bits 10
519 #define LDST_sz_mask 0x3
520 #define LDST_code_bits 12
521 #define LDST_code_mask 0xf
526 LDST_reg_bits, LDST_reg_mask, \
527 LDST_ptr_bits, LDST_ptr_mask, \
528 LDST_Z_bits, LDST_Z_mask, \
529 LDST_aop_bits, LDST_aop_mask, \
530 LDST_W_bits, LDST_W_mask, \
531 LDST_sz_bits, LDST_sz_mask, \
532 LDST_code_bits, LDST_code_mask \
536 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
537 | 1 | 0 | 1 |.W.|.op....|.offset........|.ptr.......|.reg.......|
538 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
543 unsigned short opcode
;
558 #define LDSTii_opcode 0xa000
559 #define LDSTii_reg_bit 0
560 #define LDSTii_reg_mask 0x7
561 #define LDSTii_ptr_bit 3
562 #define LDSTii_ptr_mask 0x7
563 #define LDSTii_offset_bit 6
564 #define LDSTii_offset_mask 0xf
565 #define LDSTii_op_bit 10
566 #define LDSTii_op_mask 0x3
567 #define LDSTii_W_bit 12
568 #define LDSTii_W_mask 0x1
569 #define LDSTii_code_bit 13
570 #define LDSTii_code_mask 0x7
572 #define init_LDSTii \
575 LDSTii_reg_bit, LDSTii_reg_mask, \
576 LDSTii_ptr_bit, LDSTii_ptr_mask, \
577 LDSTii_offset_bit, LDSTii_offset_mask, \
578 LDSTii_op_bit, LDSTii_op_mask, \
579 LDSTii_W_bit, LDSTii_W_mask, \
580 LDSTii_code_bit, LDSTii_code_mask \
585 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
586 | 1 | 0 | 1 | 1 | 1 | 0 |.W.|.offset............|.reg...........|
587 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
592 unsigned short opcode
;
603 #define LDSTiiFP_opcode 0xb800
604 #define LDSTiiFP_reg_bits 0
605 #define LDSTiiFP_reg_mask 0xf
606 #define LDSTiiFP_offset_bits 4
607 #define LDSTiiFP_offset_mask 0x1f
608 #define LDSTiiFP_W_bits 9
609 #define LDSTiiFP_W_mask 0x1
610 #define LDSTiiFP_code_bits 10
611 #define LDSTiiFP_code_mask 0x3f
613 #define init_LDSTiiFP \
616 LDSTiiFP_reg_bits, LDSTiiFP_reg_mask, \
617 LDSTiiFP_offset_bits, LDSTiiFP_offset_mask, \
618 LDSTiiFP_W_bits, LDSTiiFP_W_mask, \
619 LDSTiiFP_code_bits, LDSTiiFP_code_mask \
623 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
624 | 1 | 0 | 0 | 1 | 1 | 1 |.W.|.aop...|.m.....|.i.....|.reg.......|
625 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
630 unsigned short opcode
;
645 #define DspLDST_opcode 0x9c00
646 #define DspLDST_reg_bits 0
647 #define DspLDST_reg_mask 0x7
648 #define DspLDST_i_bits 3
649 #define DspLDST_i_mask 0x3
650 #define DspLDST_m_bits 5
651 #define DspLDST_m_mask 0x3
652 #define DspLDST_aop_bits 7
653 #define DspLDST_aop_mask 0x3
654 #define DspLDST_W_bits 9
655 #define DspLDST_W_mask 0x1
656 #define DspLDST_code_bits 10
657 #define DspLDST_code_mask 0x3f
659 #define init_DspLDST \
662 DspLDST_reg_bits, DspLDST_reg_mask, \
663 DspLDST_i_bits, DspLDST_i_mask, \
664 DspLDST_m_bits, DspLDST_m_mask, \
665 DspLDST_aop_bits, DspLDST_aop_mask, \
666 DspLDST_W_bits, DspLDST_W_mask, \
667 DspLDST_code_bits, DspLDST_code_mask \
672 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
673 | 1 | 0 | 0 | 0 |.W.|.aop...|.reg.......|.idx.......|.ptr.......|
674 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
679 unsigned short opcode
;
694 #define LDSTpmod_opcode 0x8000
695 #define LDSTpmod_ptr_bits 0
696 #define LDSTpmod_ptr_mask 0x7
697 #define LDSTpmod_idx_bits 3
698 #define LDSTpmod_idx_mask 0x7
699 #define LDSTpmod_reg_bits 6
700 #define LDSTpmod_reg_mask 0x7
701 #define LDSTpmod_aop_bits 9
702 #define LDSTpmod_aop_mask 0x3
703 #define LDSTpmod_W_bits 11
704 #define LDSTpmod_W_mask 0x1
705 #define LDSTpmod_code_bits 12
706 #define LDSTpmod_code_mask 0xf
708 #define init_LDSTpmod \
711 LDSTpmod_ptr_bits, LDSTpmod_ptr_mask, \
712 LDSTpmod_idx_bits, LDSTpmod_idx_mask, \
713 LDSTpmod_reg_bits, LDSTpmod_reg_mask, \
714 LDSTpmod_aop_bits, LDSTpmod_aop_mask, \
715 LDSTpmod_W_bits, LDSTpmod_W_mask, \
716 LDSTpmod_code_bits, LDSTpmod_code_mask \
721 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
722 | 0 | 1 | 0 | 0 | 1 |.opc.......|.src...............|.dst.......|
723 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
728 unsigned short opcode
;
739 #define LOGI2op_opcode 0x4800
740 #define LOGI2op_dst_bits 0
741 #define LOGI2op_dst_mask 0x7
742 #define LOGI2op_src_bits 3
743 #define LOGI2op_src_mask 0x1f
744 #define LOGI2op_opc_bits 8
745 #define LOGI2op_opc_mask 0x7
746 #define LOGI2op_code_bits 11
747 #define LOGI2op_code_mask 0x1f
749 #define init_LOGI2op \
752 LOGI2op_dst_bits, LOGI2op_dst_mask, \
753 LOGI2op_src_bits, LOGI2op_src_mask, \
754 LOGI2op_opc_bits, LOGI2op_opc_mask, \
755 LOGI2op_code_bits, LOGI2op_code_mask \
760 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
761 | 0 | 1 | 0 | 0 | 0 | 0 |.opc...........|.src.......|.dst.......|
762 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
767 unsigned short opcode
;
778 #define ALU2op_opcode 0x4000
779 #define ALU2op_dst_bits 0
780 #define ALU2op_dst_mask 0x7
781 #define ALU2op_src_bits 3
782 #define ALU2op_src_mask 0x7
783 #define ALU2op_opc_bits 6
784 #define ALU2op_opc_mask 0xf
785 #define ALU2op_code_bits 10
786 #define ALU2op_code_mask 0x3f
788 #define init_ALU2op \
791 ALU2op_dst_bits, ALU2op_dst_mask, \
792 ALU2op_src_bits, ALU2op_src_mask, \
793 ALU2op_opc_bits, ALU2op_opc_mask, \
794 ALU2op_code_bits, ALU2op_code_mask \
799 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
800 | 0 | 0 | 0 | 1 |.T.|.B.|.offset................................|
801 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
806 unsigned short opcode
;
817 #define BRCC_opcode 0x1000
818 #define BRCC_offset_bits 0
819 #define BRCC_offset_mask 0x3ff
820 #define BRCC_B_bits 10
821 #define BRCC_B_mask 0x1
822 #define BRCC_T_bits 11
823 #define BRCC_T_mask 0x1
824 #define BRCC_code_bits 12
825 #define BRCC_code_mask 0xf
830 BRCC_offset_bits, BRCC_offset_mask, \
831 BRCC_B_bits, BRCC_B_mask, \
832 BRCC_T_bits, BRCC_T_mask, \
833 BRCC_code_bits, BRCC_code_mask \
838 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
839 | 0 | 0 | 1 | 0 |.offset........................................|
840 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
845 unsigned short opcode
;
852 #define UJump_opcode 0x2000
853 #define UJump_offset_bits 0
854 #define UJump_offset_mask 0xfff
855 #define UJump_code_bits 12
856 #define UJump_code_mask 0xf
861 UJump_offset_bits, UJump_offset_mask, \
862 UJump_code_bits, UJump_code_mask \
867 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |.prgfunc.......|.poprnd........|
869 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
874 unsigned short opcode
;
883 #define ProgCtrl_opcode 0x0000
884 #define ProgCtrl_poprnd_bits 0
885 #define ProgCtrl_poprnd_mask 0xf
886 #define ProgCtrl_prgfunc_bits 4
887 #define ProgCtrl_prgfunc_mask 0xf
888 #define ProgCtrl_code_bits 8
889 #define ProgCtrl_code_mask 0xff
891 #define init_ProgCtrl \
894 ProgCtrl_poprnd_bits, ProgCtrl_poprnd_mask, \
895 ProgCtrl_prgfunc_bits, ProgCtrl_prgfunc_mask, \
896 ProgCtrl_code_bits, ProgCtrl_code_mask \
900 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
901 | 1 | 1 | 1 | 0 | 0 | 0 | 1 |.S.|.msw...........................|
902 |.lsw...........................................................|
903 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
909 unsigned long opcode
;
918 #define CALLa_opcode 0xe2000000
919 #define CALLa_addr_bits 0
920 #define CALLa_addr_mask 0xffffff
921 #define CALLa_S_bits 24
922 #define CALLa_S_mask 0x1
923 #define CALLa_code_bits 25
924 #define CALLa_code_mask 0x7f
929 CALLa_addr_bits, CALLa_addr_mask, \
930 CALLa_S_bits, CALLa_S_mask, \
931 CALLa_code_bits, CALLa_code_mask \
936 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
937 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |.fn....|.grp.......|.reg.......|
938 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
943 unsigned short opcode
;
954 #define PseudoDbg_opcode 0xf800
955 #define PseudoDbg_reg_bits 0
956 #define PseudoDbg_reg_mask 0x7
957 #define PseudoDbg_grp_bits 3
958 #define PseudoDbg_grp_mask 0x7
959 #define PseudoDbg_fn_bits 6
960 #define PseudoDbg_fn_mask 0x3
961 #define PseudoDbg_code_bits 8
962 #define PseudoDbg_code_mask 0xff
964 #define init_PseudoDbg \
967 PseudoDbg_reg_bits, PseudoDbg_reg_mask, \
968 PseudoDbg_grp_bits, PseudoDbg_grp_mask, \
969 PseudoDbg_fn_bits, PseudoDbg_fn_mask, \
970 PseudoDbg_code_bits, PseudoDbg_code_mask \
974 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
975 | 1 | 1 | 1 | 1 | 0 | - | - | - | dbgop |.grp.......|.regtest...|
976 |.expected......................................................|
977 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
982 unsigned long opcode
;
997 #define PseudoDbg_Assert_opcode 0xf0000000
998 #define PseudoDbg_Assert_expected_bits 0
999 #define PseudoDbg_Assert_expected_mask 0xffff
1000 #define PseudoDbg_Assert_regtest_bits 16
1001 #define PseudoDbg_Assert_regtest_mask 0x7
1002 #define PseudoDbg_Assert_grp_bits 19
1003 #define PseudoDbg_Assert_grp_mask 0x7
1004 #define PseudoDbg_Assert_dbgop_bits 22
1005 #define PseudoDbg_Assert_dbgop_mask 0x3
1006 #define PseudoDbg_Assert_dontcare_bits 24
1007 #define PseudoDbg_Assert_dontcare_mask 0x7
1008 #define PseudoDbg_Assert_code_bits 27
1009 #define PseudoDbg_Assert_code_mask 0x1f
1011 #define init_PseudoDbg_Assert \
1013 PseudoDbg_Assert_opcode, \
1014 PseudoDbg_Assert_expected_bits, PseudoDbg_Assert_expected_mask, \
1015 PseudoDbg_Assert_regtest_bits, PseudoDbg_Assert_regtest_mask, \
1016 PseudoDbg_Assert_grp_bits, PseudoDbg_Assert_grp_mask, \
1017 PseudoDbg_Assert_dbgop_bits, PseudoDbg_Assert_dbgop_mask, \
1018 PseudoDbg_Assert_dontcare_bits, PseudoDbg_Assert_dontcare_mask, \
1019 PseudoDbg_Assert_code_bits, PseudoDbg_Assert_code_mask \
1023 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1024 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 |.ch............................|
1025 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1030 unsigned short opcode
;
1037 #define PseudoChr_opcode 0xf900
1038 #define PseudoChr_ch_bits 0
1039 #define PseudoChr_ch_mask 0xff
1040 #define PseudoChr_code_bits 8
1041 #define PseudoChr_code_mask 0xff
1043 #define init_PseudoChr \
1046 PseudoChr_ch_bits, PseudoChr_ch_mask, \
1047 PseudoChr_code_bits, PseudoChr_code_mask \
1051 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |.a.|.op....|.reg.......|
1053 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1058 unsigned short opcode
;
1069 #define CaCTRL_opcode 0x0240
1070 #define CaCTRL_reg_bits 0
1071 #define CaCTRL_reg_mask 0x7
1072 #define CaCTRL_op_bits 3
1073 #define CaCTRL_op_mask 0x3
1074 #define CaCTRL_a_bits 5
1075 #define CaCTRL_a_mask 0x1
1076 #define CaCTRL_code_bits 6
1077 #define CaCTRL_code_mask 0x3fff
1079 #define init_CaCTRL \
1082 CaCTRL_reg_bits, CaCTRL_reg_mask, \
1083 CaCTRL_op_bits, CaCTRL_op_mask, \
1084 CaCTRL_a_bits, CaCTRL_a_mask, \
1085 CaCTRL_code_bits, CaCTRL_code_mask \
1089 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1090 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |.d.|.p.|.W.|.dr........|.pr........|
1091 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1096 unsigned short opcode
;
1111 #define PushPopMultiple_opcode 0x0400
1112 #define PushPopMultiple_pr_bits 0
1113 #define PushPopMultiple_pr_mask 0x7
1114 #define PushPopMultiple_dr_bits 3
1115 #define PushPopMultiple_dr_mask 0x7
1116 #define PushPopMultiple_W_bits 6
1117 #define PushPopMultiple_W_mask 0x1
1118 #define PushPopMultiple_p_bits 7
1119 #define PushPopMultiple_p_mask 0x1
1120 #define PushPopMultiple_d_bits 8
1121 #define PushPopMultiple_d_mask 0x1
1122 #define PushPopMultiple_code_bits 8
1123 #define PushPopMultiple_code_mask 0x1
1125 #define init_PushPopMultiple \
1127 PushPopMultiple_opcode, \
1128 PushPopMultiple_pr_bits, PushPopMultiple_pr_mask, \
1129 PushPopMultiple_dr_bits, PushPopMultiple_dr_mask, \
1130 PushPopMultiple_W_bits, PushPopMultiple_W_mask, \
1131 PushPopMultiple_p_bits, PushPopMultiple_p_mask, \
1132 PushPopMultiple_d_bits, PushPopMultiple_d_mask, \
1133 PushPopMultiple_code_bits, PushPopMultiple_code_mask \
1137 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |.W.|.grp.......|.reg.......|
1139 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1144 unsigned short opcode
;
1155 #define PushPopReg_opcode 0x0100
1156 #define PushPopReg_reg_bits 0
1157 #define PushPopReg_reg_mask 0x7
1158 #define PushPopReg_grp_bits 3
1159 #define PushPopReg_grp_mask 0x7
1160 #define PushPopReg_W_bits 6
1161 #define PushPopReg_W_mask 0x1
1162 #define PushPopReg_code_bits 7
1163 #define PushPopReg_code_mask 0x1ff
1165 #define init_PushPopReg \
1167 PushPopReg_opcode, \
1168 PushPopReg_reg_bits, PushPopReg_reg_mask, \
1169 PushPopReg_grp_bits, PushPopReg_grp_mask, \
1170 PushPopReg_W_bits, PushPopReg_W_mask, \
1171 PushPopReg_code_bits, PushPopReg_code_mask, \
1175 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1176 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |.R.|
1177 |.framesize.....................................................|
1178 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1183 unsigned long opcode
;
1192 #define Linkage_opcode 0xe8000000
1193 #define Linkage_framesize_bits 0
1194 #define Linkage_framesize_mask 0xffff
1195 #define Linkage_R_bits 16
1196 #define Linkage_R_mask 0x1
1197 #define Linkage_code_bits 17
1198 #define Linkage_code_mask 0x7fff
1200 #define init_Linkage \
1203 Linkage_framesize_bits, Linkage_framesize_mask, \
1204 Linkage_R_bits, Linkage_R_mask, \
1205 Linkage_code_bits, Linkage_code_mask \
1209 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1210 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |.rop...|.c.|.soffset.......|
1211 |.reg...........| - | - |.eoffset...............................|
1212 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1217 unsigned long opcode
;
1234 #define LoopSetup_opcode 0xe0800000
1235 #define LoopSetup_eoffset_bits 0
1236 #define LoopSetup_eoffset_mask 0x3ff
1237 #define LoopSetup_dontcare_bits 10
1238 #define LoopSetup_dontcare_mask 0x3
1239 #define LoopSetup_reg_bits 12
1240 #define LoopSetup_reg_mask 0xf
1241 #define LoopSetup_soffset_bits 16
1242 #define LoopSetup_soffset_mask 0xf
1243 #define LoopSetup_c_bits 20
1244 #define LoopSetup_c_mask 0x1
1245 #define LoopSetup_rop_bits 21
1246 #define LoopSetup_rop_mask 0x3
1247 #define LoopSetup_code_bits 23
1248 #define LoopSetup_code_mask 0x1ff
1250 #define init_LoopSetup \
1253 LoopSetup_eoffset_bits, LoopSetup_eoffset_mask, \
1254 LoopSetup_dontcare_bits, LoopSetup_dontcare_mask, \
1255 LoopSetup_reg_bits, LoopSetup_reg_mask, \
1256 LoopSetup_soffset_bits, LoopSetup_soffset_mask, \
1257 LoopSetup_c_bits, LoopSetup_c_mask, \
1258 LoopSetup_rop_bits, LoopSetup_rop_mask, \
1259 LoopSetup_code_bits, LoopSetup_code_mask \
1263 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1264 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 |.Z.|.H.|.S.|.grp...|.reg.......|
1265 |.hword.........................................................|
1266 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1271 unsigned long opcode
;
1288 #define LDIMMhalf_opcode 0xe1000000
1289 #define LDIMMhalf_hword_bits 0
1290 #define LDIMMhalf_hword_mask 0xffff
1291 #define LDIMMhalf_reg_bits 16
1292 #define LDIMMhalf_reg_mask 0x7
1293 #define LDIMMhalf_grp_bits 19
1294 #define LDIMMhalf_grp_mask 0x3
1295 #define LDIMMhalf_S_bits 21
1296 #define LDIMMhalf_S_mask 0x1
1297 #define LDIMMhalf_H_bits 22
1298 #define LDIMMhalf_H_mask 0x1
1299 #define LDIMMhalf_Z_bits 23
1300 #define LDIMMhalf_Z_mask 0x1
1301 #define LDIMMhalf_code_bits 24
1302 #define LDIMMhalf_code_mask 0xff
1304 #define init_LDIMMhalf \
1307 LDIMMhalf_hword_bits, LDIMMhalf_hword_mask, \
1308 LDIMMhalf_reg_bits, LDIMMhalf_reg_mask, \
1309 LDIMMhalf_grp_bits, LDIMMhalf_grp_mask, \
1310 LDIMMhalf_S_bits, LDIMMhalf_S_mask, \
1311 LDIMMhalf_H_bits, LDIMMhalf_H_mask, \
1312 LDIMMhalf_Z_bits, LDIMMhalf_Z_mask, \
1313 LDIMMhalf_code_bits, LDIMMhalf_code_mask \
1318 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |.op....|.reg.......|
1320 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1325 unsigned short opcode
;
1334 #define CC2dreg_opcode 0x0200
1335 #define CC2dreg_reg_bits 0
1336 #define CC2dreg_reg_mask 0x7
1337 #define CC2dreg_op_bits 3
1338 #define CC2dreg_op_mask 0x3
1339 #define CC2dreg_code_bits 5
1340 #define CC2dreg_code_mask 0x7fff
1342 #define init_CC2dreg \
1345 CC2dreg_reg_bits, CC2dreg_reg_mask, \
1346 CC2dreg_op_bits, CC2dreg_op_mask, \
1347 CC2dreg_code_bits, CC2dreg_code_mask \
1352 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1353 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |.opc.......|.src.......|.dst.......|
1354 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1359 unsigned short opcode
;
1370 #define PTR2op_opcode 0x4400
1371 #define PTR2op_dst_bits 0
1372 #define PTR2op_dst_mask 0x7
1373 #define PTR2op_src_bits 3
1374 #define PTR2op_src_mask 0x7
1375 #define PTR2op_opc_bits 6
1376 #define PTR2op_opc_mask 0x7
1377 #define PTR2op_code_bits 9
1378 #define PTR2op_code_mask 0x7f
1380 #define init_PTR2op \
1383 PTR2op_dst_bits, PTR2op_dst_mask, \
1384 PTR2op_src_bits, PTR2op_src_mask, \
1385 PTR2op_opc_bits, PTR2op_opc_mask, \
1386 PTR2op_code_bits, PTR2op_code_mask \
1391 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1392 | 0 | 1 | 0 | 1 |.opc.......|.dst.......|.src1......|.src0......|
1393 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1398 unsigned short opcode
;
1411 #define COMP3op_opcode 0x5000
1412 #define COMP3op_src0_bits 0
1413 #define COMP3op_src0_mask 0x7
1414 #define COMP3op_src1_bits 3
1415 #define COMP3op_src1_mask 0x7
1416 #define COMP3op_dst_bits 6
1417 #define COMP3op_dst_mask 0x7
1418 #define COMP3op_opc_bits 9
1419 #define COMP3op_opc_mask 0x7
1420 #define COMP3op_code_bits 12
1421 #define COMP3op_code_mask 0xf
1423 #define init_COMP3op \
1426 COMP3op_src0_bits, COMP3op_src0_mask, \
1427 COMP3op_src1_bits, COMP3op_src1_mask, \
1428 COMP3op_dst_bits, COMP3op_dst_mask, \
1429 COMP3op_opc_bits, COMP3op_opc_mask, \
1430 COMP3op_code_bits, COMP3op_code_mask \
1434 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1435 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |.T.|.d.|.s.|.dst.......|.src.......|
1436 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1441 unsigned short opcode
;
1456 #define CCmv_opcode 0x0600
1457 #define CCmv_src_bits 0
1458 #define CCmv_src_mask 0x7
1459 #define CCmv_dst_bits 3
1460 #define CCmv_dst_mask 0x7
1461 #define CCmv_s_bits 6
1462 #define CCmv_s_mask 0x1
1463 #define CCmv_d_bits 7
1464 #define CCmv_d_mask 0x1
1465 #define CCmv_T_bits 8
1466 #define CCmv_T_mask 0x1
1467 #define CCmv_code_bits 9
1468 #define CCmv_code_mask 0x7f
1473 CCmv_src_bits, CCmv_src_mask, \
1474 CCmv_dst_bits, CCmv_dst_mask, \
1475 CCmv_s_bits, CCmv_s_mask, \
1476 CCmv_d_bits, CCmv_d_mask, \
1477 CCmv_T_bits, CCmv_T_mask, \
1478 CCmv_code_bits, CCmv_code_mask \
1483 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1484 | 0 | 0 | 0 | 0 | 1 |.I.|.opc.......|.G.|.y.........|.x.........|
1485 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1490 unsigned short opcode
;
1505 #define CCflag_opcode 0x0800
1506 #define CCflag_x_bits 0
1507 #define CCflag_x_mask 0x7
1508 #define CCflag_y_bits 3
1509 #define CCflag_y_mask 0x7
1510 #define CCflag_G_bits 6
1511 #define CCflag_G_mask 0x1
1512 #define CCflag_opc_bits 7
1513 #define CCflag_opc_mask 0x7
1514 #define CCflag_I_bits 10
1515 #define CCflag_I_mask 0x1
1516 #define CCflag_code_bits 11
1517 #define CCflag_code_mask 0x1f
1519 #define init_CCflag \
1522 CCflag_x_bits, CCflag_x_mask, \
1523 CCflag_y_bits, CCflag_y_mask, \
1524 CCflag_G_bits, CCflag_G_mask, \
1525 CCflag_opc_bits, CCflag_opc_mask, \
1526 CCflag_I_bits, CCflag_I_mask, \
1527 CCflag_code_bits, CCflag_code_mask, \
1532 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |.D.|.op....|.cbit..............|
1534 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1539 unsigned short opcode
;
1550 #define CC2stat_opcode 0x0300
1551 #define CC2stat_cbit_bits 0
1552 #define CC2stat_cbit_mask 0x1f
1553 #define CC2stat_op_bits 5
1554 #define CC2stat_op_mask 0x3
1555 #define CC2stat_D_bits 7
1556 #define CC2stat_D_mask 0x1
1557 #define CC2stat_code_bits 8
1558 #define CC2stat_code_mask 0xff
1560 #define init_CC2stat \
1563 CC2stat_cbit_bits, CC2stat_cbit_mask, \
1564 CC2stat_op_bits, CC2stat_op_mask, \
1565 CC2stat_D_bits, CC2stat_D_mask, \
1566 CC2stat_code_bits, CC2stat_code_mask \
1571 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1572 | 0 | 0 | 1 | 1 |.gd........|.gs........|.dst.......|.src.......|
1573 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1578 unsigned short opcode
;
1591 #define RegMv_opcode 0x3000
1592 #define RegMv_src_bits 0
1593 #define RegMv_src_mask 0x7
1594 #define RegMv_dst_bits 3
1595 #define RegMv_dst_mask 0x7
1596 #define RegMv_gs_bits 6
1597 #define RegMv_gs_mask 0x7
1598 #define RegMv_gd_bits 9
1599 #define RegMv_gd_mask 0x7
1600 #define RegMv_code_bits 12
1601 #define RegMv_code_mask 0xf
1603 #define init_RegMv \
1606 RegMv_src_bits, RegMv_src_mask, \
1607 RegMv_dst_bits, RegMv_dst_mask, \
1608 RegMv_gs_bits, RegMv_gs_mask, \
1609 RegMv_gd_bits, RegMv_gd_mask, \
1610 RegMv_code_bits, RegMv_code_mask \
1615 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1616 | 0 | 1 | 1 | 0 | 0 |.op|.isrc......................|.dst.......|
1617 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1622 unsigned short opcode
;
1633 #define COMPI2opD_opcode 0x6000
1634 #define COMPI2opD_dst_bits 0
1635 #define COMPI2opD_dst_mask 0x7
1636 #define COMPI2opD_src_bits 3
1637 #define COMPI2opD_src_mask 0x7f
1638 #define COMPI2opD_op_bits 10
1639 #define COMPI2opD_op_mask 0x1
1640 #define COMPI2opD_code_bits 11
1641 #define COMPI2opD_code_mask 0x1f
1643 #define init_COMPI2opD \
1646 COMPI2opD_dst_bits, COMPI2opD_dst_mask, \
1647 COMPI2opD_src_bits, COMPI2opD_src_mask, \
1648 COMPI2opD_op_bits, COMPI2opD_op_mask, \
1649 COMPI2opD_code_bits, COMPI2opD_code_mask \
1653 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1654 | 0 | 1 | 1 | 0 | 1 |.op|.src.......................|.dst.......|
1655 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1658 typedef COMPI2opD COMPI2opP
;
1660 #define COMPI2opP_opcode 0x6800
1661 #define COMPI2opP_dst_bits 0
1662 #define COMPI2opP_dst_mask 0x7
1663 #define COMPI2opP_src_bits 3
1664 #define COMPI2opP_src_mask 0x7f
1665 #define COMPI2opP_op_bits 10
1666 #define COMPI2opP_op_mask 0x1
1667 #define COMPI2opP_code_bits 11
1668 #define COMPI2opP_code_mask 0x1f
1670 #define init_COMPI2opP \
1673 COMPI2opP_dst_bits, COMPI2opP_dst_mask, \
1674 COMPI2opP_src_bits, COMPI2opP_src_mask, \
1675 COMPI2opP_op_bits, COMPI2opP_op_mask, \
1676 COMPI2opP_code_bits, COMPI2opP_code_mask \
1681 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1682 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 |.br| 1 | 1 |.op|.m.....|.i.....|
1683 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1688 unsigned short opcode
;
1703 #define DagMODim_opcode 0x9e60
1704 #define DagMODim_i_bits 0
1705 #define DagMODim_i_mask 0x3
1706 #define DagMODim_m_bits 2
1707 #define DagMODim_m_mask 0x3
1708 #define DagMODim_op_bits 4
1709 #define DagMODim_op_mask 0x1
1710 #define DagMODim_code2_bits 5
1711 #define DagMODim_code2_mask 0x3
1712 #define DagMODim_br_bits 7
1713 #define DagMODim_br_mask 0x1
1714 #define DagMODim_code_bits 8
1715 #define DagMODim_code_mask 0xff
1717 #define init_DagMODim \
1720 DagMODim_i_bits, DagMODim_i_mask, \
1721 DagMODim_m_bits, DagMODim_m_mask, \
1722 DagMODim_op_bits, DagMODim_op_mask, \
1723 DagMODim_code2_bits, DagMODim_code2_mask, \
1724 DagMODim_br_bits, DagMODim_br_mask, \
1725 DagMODim_code_bits, DagMODim_code_mask \
1729 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1730 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 |.op....|.i.....|
1731 +---+---+---+---|---+---+---+---|---+---+---+---|---+---+---+---+
1736 unsigned short opcode
;
1745 #define DagMODik_opcode 0x9f60
1746 #define DagMODik_i_bits 0
1747 #define DagMODik_i_mask 0x3
1748 #define DagMODik_op_bits 2
1749 #define DagMODik_op_mask 0x3
1750 #define DagMODik_code_bits 3
1751 #define DagMODik_code_mask 0xfff
1753 #define init_DagMODik \
1756 DagMODik_i_bits, DagMODik_i_mask, \
1757 DagMODik_op_bits, DagMODik_op_mask, \
1758 DagMODik_code_bits, DagMODik_code_mask \
This page took 0.068791 seconds and 4 git commands to generate.