1 /* CPU family header for crisv32f.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright 1996-2005 Free Software Foundation, Inc.
7 This file is part of the GNU simulators.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
25 #ifndef CPU_CRISV32F_H
26 #define CPU_CRISV32F_H
28 /* Maximum number of instructions that are fetched at a time.
29 This is for LIW type instructions sets (e.g. m32r). */
30 #define MAX_LIW_INSNS 1
32 /* Maximum number of instructions that can be executed in parallel. */
33 #define MAX_PARALLEL_INSNS 1
35 /* CPU state information. */
37 /* Hardware elements. */
41 #define GET_H_PC() CPU (h_pc)
44 CPU (h_pc) = ANDSI ((x), (~ (1)));\
46 /* General purpose registers */
48 #define GET_H_GR_ACR(a1) CPU (h_gr_acr)[a1]
49 #define SET_H_GR_ACR(a1, x) (CPU (h_gr_acr)[a1] = (x))
50 /* Special registers for v32 */
52 #define GET_H_SR_V32(index) (ORIF (ORIF (((index) == (((UINT) 0))), ((index) == (((UINT) 4)))), ((index) == (((UINT) 8))))) ? (0) : (((index) == (((UINT) 1)))) ? (32) : (((index) == (((UINT) 13)))) ? (ORSI (ANDSI (CPU (h_sr_v32[((UINT) 13)]), 1073740800), ORSI (ZEXTBISI (CPU (h_cbit)), ORSI (SLLSI (ZEXTBISI (CPU (h_vbit)), 1), ORSI (SLLSI (ZEXTBISI (CPU (h_zbit)), 2), ORSI (SLLSI (ZEXTBISI (CPU (h_nbit)), 3), ORSI (SLLSI (ZEXTBISI (CPU (h_xbit)), 4), ORSI (SLLSI (ZEXTBISI (GET_H_IBIT ()), 5), ORSI (SLLSI (ZEXTBISI (GET_H_UBIT ()), 6), ORSI (SLLSI (ZEXTBISI (CPU (h_pbit)), 7), ORSI (SLLSI (ZEXTBISI (CPU (h_rbit)), 8), ORSI (SLLSI (ZEXTBISI (CPU (h_sbit)), 9), ORSI (SLLSI (ZEXTBISI (CPU (h_mbit)), 30), ORSI (SLLSI (ZEXTBISI (CPU (h_qbit)), 31), 0)))))))))))))) : (((index) == (((UINT) 14)))) ? (((GET_H_UBIT ()) ? (CPU (h_gr_acr[((UINT) 14)])) : (CPU (h_sr_v32[((UINT) 14)])))) : (CPU (h_sr_v32[index]))
53 #define SET_H_SR_V32(index, x) \
55 if (ORIF (ORIF ((((index)) == (((UINT) 0))), (((index)) == (((UINT) 4)))), ORIF ((((index)) == (((UINT) 8))), (((index)) == (((UINT) 1)))))) {\
58 else if ((((index)) == (((UINT) 13)))) {\
60 CPU (h_cbit) = ((NESI (ANDSI ((x), ((1) << (0))), 0)) ? (1) : (0));\
61 CPU (h_vbit) = ((NESI (ANDSI ((x), ((1) << (1))), 0)) ? (1) : (0));\
62 CPU (h_zbit) = ((NESI (ANDSI ((x), ((1) << (2))), 0)) ? (1) : (0));\
63 CPU (h_nbit) = ((NESI (ANDSI ((x), ((1) << (3))), 0)) ? (1) : (0));\
64 CPU (h_xbit) = ((NESI (ANDSI ((x), ((1) << (4))), 0)) ? (1) : (0));\
65 SET_H_IBIT (((NESI (ANDSI ((x), ((1) << (5))), 0)) ? (1) : (0)));\
66 SET_H_SBIT (((NESI (ANDSI ((x), ((1) << (9))), 0)) ? (1) : (0)));\
67 SET_H_MBIT (((NESI (ANDSI ((x), ((1) << (30))), 0)) ? (1) : (0)));\
68 CPU (h_pbit) = ((NESI (ANDSI ((x), ((1) << (7))), 0)) ? (1) : (0));\
69 CPU (h_rbit) = ((NESI (ANDSI ((x), ((1) << (8))), 0)) ? (1) : (0));\
70 SET_H_QBIT (((NESI (ANDSI ((x), ((1) << (31))), 0)) ? (1) : (0)));\
71 SET_H_UBIT (((NESI (ANDSI ((x), ((1) << (6))), 0)) ? (1) : (0)));\
72 CPU (h_sr_v32[(index)]) = (x);\
75 else if ((((index)) == (((UINT) 14)))) {\
78 CPU (h_gr_acr[((UINT) 14)]) = (x);\
80 CPU (h_sr_v32[((UINT) 14)]) = (x);\
83 else if ((((index)) == (((UINT) 3)))) {\
84 if (NOTBI (GET_H_UBIT ())) {\
85 CPU (h_sr_v32[((UINT) 3)]) = (x);\
88 else if ((((index)) == (((UINT) 9)))) {\
89 if (NOTBI (GET_H_UBIT ())) {\
90 CPU (h_sr_v32[((UINT) 9)]) = (x);\
93 else if ((((index)) == (((UINT) 2)))) {\
94 if (NOTBI (GET_H_UBIT ())) {\
96 crisv32f_write_pid_handler (current_cpu, (x));\
97 CPU (h_sr_v32[((UINT) 2)]) = (x);\
101 else if ((((index)) == (((UINT) 15)))) {\
102 if (NOTBI (GET_H_UBIT ())) {\
103 CPU (h_sr_v32[((UINT) 15)]) = (x);\
107 CPU (h_sr_v32[(index)]) = (x);\
112 #define GET_H_CBIT() CPU (h_cbit)
113 #define SET_H_CBIT(x) (CPU (h_cbit) = (x))
116 #define GET_H_VBIT() CPU (h_vbit)
117 #define SET_H_VBIT(x) (CPU (h_vbit) = (x))
120 #define GET_H_ZBIT() CPU (h_zbit)
121 #define SET_H_ZBIT(x) (CPU (h_zbit) = (x))
124 #define GET_H_NBIT() CPU (h_nbit)
125 #define SET_H_NBIT(x) (CPU (h_nbit) = (x))
126 /* extended-arithmetic bit */
128 #define GET_H_XBIT() CPU (h_xbit)
129 #define SET_H_XBIT(x) (CPU (h_xbit) = (x))
130 /* sequence-broken bit */
132 #define GET_H_PBIT() CPU (h_pbit)
133 #define SET_H_PBIT(x) (CPU (h_pbit) = (x))
134 /* carry bit for MCP+restore-p bit */
136 #define GET_H_RBIT() CPU (h_rbit)
137 #define SET_H_RBIT(x) (CPU (h_rbit) = (x))
140 #define GET_H_GBIT() CPU (h_gbit)
141 #define SET_H_GBIT(x) (CPU (h_gbit) = (x))
142 /* Kernel stack pointer during user mode */
144 #define GET_H_KERNEL_SP() CPU (h_kernel_sp)
145 #define SET_H_KERNEL_SP(x) (CPU (h_kernel_sp) = (x))
148 #define GET_H_UBIT_V32() CPU (h_ubit_v32)
149 #define SET_H_UBIT_V32(x) \
152 if (ANDIF ((x), NOTBI (CPU (h_ubit_v32)))) {\
154 CPU (h_kernel_sp) = CPU (h_gr_acr[((UINT) 14)]);\
155 CPU (h_gr_acr[((UINT) 14)]) = CPU (h_sr_v32[((UINT) 14)]);\
156 CPU (h_ubit_v32) = (x);\
157 crisv32f_usermode_enabled (current_cpu);\
162 /* Interrupt-enable bit */
164 #define GET_H_IBIT_V32() CPU (h_ibit_v32)
165 #define SET_H_IBIT_V32(x) \
168 if (NOTBI (GET_H_UBIT ())) {\
171 tmp_enabled = ANDIF ((x), NOTBI (CPU (h_ibit_v32)));\
172 CPU (h_ibit_v32) = (x);\
174 crisv32f_interrupts_enabled (current_cpu);\
182 #define GET_H_MBIT() CPU (h_mbit)
183 #define SET_H_MBIT(x) \
186 if (ANDIF ((x), ANDIF (NOTBI (CPU (h_mbit)), NOTBI (GET_H_UBIT ())))) {\
189 crisv32f_nmi_enabled (current_cpu);\
194 /* Pending single-step bit */
196 #define GET_H_QBIT() CPU (h_qbit)
197 #define SET_H_QBIT(x) \
200 if (NOTBI (GET_H_UBIT ())) {\
205 /* Cause single step exception on ... [see CRISv32 ref] bit */
207 #define GET_H_SBIT() CPU (h_sbit)
208 #define SET_H_SBIT(x) \
211 if (NOTBI (GET_H_UBIT ())) {\
214 tmp_enabled = ANDIF ((x), NOTBI (CPU (h_sbit)));\
217 crisv32f_single_step_enabled (current_cpu);\
224 #define CPU_CGEN_HW(cpu) (& (cpu)->cpu_data.hardware)
229 #define GET_H_V32_V32() 1
230 #define SET_H_V32_V32(x) \
232 cgen_rtx_error (current_cpu, "Can't set h-v32");\
234 #define GET_H_GR(index) CPU (h_gr_acr[index])
235 #define SET_H_GR(index, x) \
237 CPU (h_gr_acr[(index)]) = (x);\
239 #define GET_H_RAW_GR_ACR(index) CPU (h_gr_acr[index])
240 #define SET_H_RAW_GR_ACR(index, x) \
242 CPU (h_gr_acr[(index)]) = (x);\
244 #define GET_H_SR(index) GET_H_SR_V32 (index)
245 #define SET_H_SR(index, x) \
247 SET_H_SR_V32 ((index), (x));\
249 #define GET_H_SUPR(index) crisv32f_read_supr (current_cpu, index)
250 #define SET_H_SUPR(index, x) \
252 crisv32f_write_supr (current_cpu, (index), (x));\
254 #define GET_H_CBIT_MOVE() GET_H_CBIT_MOVE_V32 ()
255 #define SET_H_CBIT_MOVE(x) \
257 SET_H_CBIT_MOVE_V32 ((x));\
259 #define GET_H_CBIT_MOVE_V32() (cgen_rtx_error (current_cpu, "Can't get h-cbit-move on CRISv32"), 0)
260 #define SET_H_CBIT_MOVE_V32(x) \
264 #define GET_H_VBIT_MOVE() GET_H_VBIT_MOVE_V32 ()
265 #define SET_H_VBIT_MOVE(x) \
267 SET_H_VBIT_MOVE_V32 ((x));\
269 #define GET_H_VBIT_MOVE_V32() (cgen_rtx_error (current_cpu, "Can't get h-vbit-move on CRISv32"), 0)
270 #define SET_H_VBIT_MOVE_V32(x) \
274 #define GET_H_ZBIT_MOVE() GET_H_ZBIT_MOVE_V32 ()
275 #define SET_H_ZBIT_MOVE(x) \
277 SET_H_ZBIT_MOVE_V32 ((x));\
279 #define GET_H_ZBIT_MOVE_V32() (cgen_rtx_error (current_cpu, "Can't get h-zbit-move on CRISv32"), 0)
280 #define SET_H_ZBIT_MOVE_V32(x) \
284 #define GET_H_NBIT_MOVE() GET_H_NBIT_MOVE_V32 ()
285 #define SET_H_NBIT_MOVE(x) \
287 SET_H_NBIT_MOVE_V32 ((x));\
289 #define GET_H_NBIT_MOVE_V32() (cgen_rtx_error (current_cpu, "Can't get h-nbit-move on CRISv32"), 0)
290 #define SET_H_NBIT_MOVE_V32(x) \
294 #define GET_H_IBIT() CPU (h_ibit_v32)
295 #define SET_H_IBIT(x) \
297 SET_H_IBIT_V32 ((x));\
299 #define GET_H_UBIT() CPU (h_ubit_v32)
300 #define SET_H_UBIT(x) \
302 SET_H_UBIT_V32 ((x));\
304 #define GET_H_INSN_PREFIXED_P() GET_H_INSN_PREFIXED_P_V32 ()
305 #define SET_H_INSN_PREFIXED_P(x) \
307 SET_H_INSN_PREFIXED_P_V32 ((x));\
309 #define GET_H_INSN_PREFIXED_P_V32() 0
310 #define SET_H_INSN_PREFIXED_P_V32(x) \
314 #define GET_H_PREFIXREG_V32() GET_H_GR (((UINT) 15))
315 #define SET_H_PREFIXREG_V32(x) \
317 SET_H_GR (((UINT) 15), (x));\
320 /* Cover fns for register access. */
321 BI
crisv32f_h_v32_v32_get (SIM_CPU
*);
322 void crisv32f_h_v32_v32_set (SIM_CPU
*, BI
);
323 USI
crisv32f_h_pc_get (SIM_CPU
*);
324 void crisv32f_h_pc_set (SIM_CPU
*, USI
);
325 SI
crisv32f_h_gr_get (SIM_CPU
*, UINT
);
326 void crisv32f_h_gr_set (SIM_CPU
*, UINT
, SI
);
327 SI
crisv32f_h_gr_acr_get (SIM_CPU
*, UINT
);
328 void crisv32f_h_gr_acr_set (SIM_CPU
*, UINT
, SI
);
329 SI
crisv32f_h_raw_gr_acr_get (SIM_CPU
*, UINT
);
330 void crisv32f_h_raw_gr_acr_set (SIM_CPU
*, UINT
, SI
);
331 SI
crisv32f_h_sr_get (SIM_CPU
*, UINT
);
332 void crisv32f_h_sr_set (SIM_CPU
*, UINT
, SI
);
333 SI
crisv32f_h_sr_v32_get (SIM_CPU
*, UINT
);
334 void crisv32f_h_sr_v32_set (SIM_CPU
*, UINT
, SI
);
335 SI
crisv32f_h_supr_get (SIM_CPU
*, UINT
);
336 void crisv32f_h_supr_set (SIM_CPU
*, UINT
, SI
);
337 BI
crisv32f_h_cbit_get (SIM_CPU
*);
338 void crisv32f_h_cbit_set (SIM_CPU
*, BI
);
339 BI
crisv32f_h_cbit_move_get (SIM_CPU
*);
340 void crisv32f_h_cbit_move_set (SIM_CPU
*, BI
);
341 BI
crisv32f_h_cbit_move_v32_get (SIM_CPU
*);
342 void crisv32f_h_cbit_move_v32_set (SIM_CPU
*, BI
);
343 BI
crisv32f_h_vbit_get (SIM_CPU
*);
344 void crisv32f_h_vbit_set (SIM_CPU
*, BI
);
345 BI
crisv32f_h_vbit_move_get (SIM_CPU
*);
346 void crisv32f_h_vbit_move_set (SIM_CPU
*, BI
);
347 BI
crisv32f_h_vbit_move_v32_get (SIM_CPU
*);
348 void crisv32f_h_vbit_move_v32_set (SIM_CPU
*, BI
);
349 BI
crisv32f_h_zbit_get (SIM_CPU
*);
350 void crisv32f_h_zbit_set (SIM_CPU
*, BI
);
351 BI
crisv32f_h_zbit_move_get (SIM_CPU
*);
352 void crisv32f_h_zbit_move_set (SIM_CPU
*, BI
);
353 BI
crisv32f_h_zbit_move_v32_get (SIM_CPU
*);
354 void crisv32f_h_zbit_move_v32_set (SIM_CPU
*, BI
);
355 BI
crisv32f_h_nbit_get (SIM_CPU
*);
356 void crisv32f_h_nbit_set (SIM_CPU
*, BI
);
357 BI
crisv32f_h_nbit_move_get (SIM_CPU
*);
358 void crisv32f_h_nbit_move_set (SIM_CPU
*, BI
);
359 BI
crisv32f_h_nbit_move_v32_get (SIM_CPU
*);
360 void crisv32f_h_nbit_move_v32_set (SIM_CPU
*, BI
);
361 BI
crisv32f_h_xbit_get (SIM_CPU
*);
362 void crisv32f_h_xbit_set (SIM_CPU
*, BI
);
363 BI
crisv32f_h_ibit_get (SIM_CPU
*);
364 void crisv32f_h_ibit_set (SIM_CPU
*, BI
);
365 BI
crisv32f_h_pbit_get (SIM_CPU
*);
366 void crisv32f_h_pbit_set (SIM_CPU
*, BI
);
367 BI
crisv32f_h_rbit_get (SIM_CPU
*);
368 void crisv32f_h_rbit_set (SIM_CPU
*, BI
);
369 BI
crisv32f_h_ubit_get (SIM_CPU
*);
370 void crisv32f_h_ubit_set (SIM_CPU
*, BI
);
371 BI
crisv32f_h_gbit_get (SIM_CPU
*);
372 void crisv32f_h_gbit_set (SIM_CPU
*, BI
);
373 SI
crisv32f_h_kernel_sp_get (SIM_CPU
*);
374 void crisv32f_h_kernel_sp_set (SIM_CPU
*, SI
);
375 BI
crisv32f_h_ubit_v32_get (SIM_CPU
*);
376 void crisv32f_h_ubit_v32_set (SIM_CPU
*, BI
);
377 BI
crisv32f_h_ibit_v32_get (SIM_CPU
*);
378 void crisv32f_h_ibit_v32_set (SIM_CPU
*, BI
);
379 BI
crisv32f_h_mbit_get (SIM_CPU
*);
380 void crisv32f_h_mbit_set (SIM_CPU
*, BI
);
381 BI
crisv32f_h_qbit_get (SIM_CPU
*);
382 void crisv32f_h_qbit_set (SIM_CPU
*, BI
);
383 BI
crisv32f_h_sbit_get (SIM_CPU
*);
384 void crisv32f_h_sbit_set (SIM_CPU
*, BI
);
385 BI
crisv32f_h_insn_prefixed_p_get (SIM_CPU
*);
386 void crisv32f_h_insn_prefixed_p_set (SIM_CPU
*, BI
);
387 BI
crisv32f_h_insn_prefixed_p_v32_get (SIM_CPU
*);
388 void crisv32f_h_insn_prefixed_p_v32_set (SIM_CPU
*, BI
);
389 SI
crisv32f_h_prefixreg_v32_get (SIM_CPU
*);
390 void crisv32f_h_prefixreg_v32_set (SIM_CPU
*, SI
);
392 /* These must be hand-written. */
393 extern CPUREG_FETCH_FN crisv32f_fetch_register
;
394 extern CPUREG_STORE_FN crisv32f_store_register
;
397 UINT prev_prev_prev_modf_regs
;
398 UINT prev_prev_modf_regs
;
401 UINT prev_prev_prev_movem_dest_regs
;
402 UINT prev_prev_movem_dest_regs
;
403 UINT prev_movem_dest_regs
;
404 UINT movem_dest_regs
;
405 } MODEL_CRISV32_DATA
;
407 /* Instruction argument buffer. */
410 struct { /* no operands */
420 IADDR i_o_word_pcrel
;
428 unsigned char in_h_sr_SI_13
;
429 unsigned char out_h_sr_SI_13
;
437 ADDR i_const32_pcrel
;
439 unsigned char out_Pd
;
444 unsigned char out_Rd
;
447 ADDR i_const32_pcrel
;
449 unsigned char out_Rd
;
452 INT f_indir_pc__dword
;
454 unsigned char out_Pd
;
455 } sfmt_move_c_sprv32_p2
;
459 unsigned char out_Rd
;
462 INT f_indir_pc__dword
;
465 unsigned char out_Rd
;
468 INT f_indir_pc__word
;
471 unsigned char out_Rd
;
474 INT f_indir_pc__byte
;
477 unsigned char out_Rd
;
483 unsigned char out_Rd
;
489 unsigned char out_h_gr_SI_index_of__DFLT_Rd
;
492 INT f_indir_pc__dword
;
495 unsigned char out_h_gr_SI_index_of__DFLT_Rd
;
498 INT f_indir_pc__word
;
501 unsigned char out_h_gr_SI_index_of__DFLT_Rd
;
504 INT f_indir_pc__byte
;
507 unsigned char out_h_gr_SI_index_of__DFLT_Rd
;
513 unsigned char out_h_gr_SI_index_of__DFLT_Rd
;
520 unsigned char out_h_gr_SI_index_of__DFLT_Rs
;
527 unsigned char out_Rd
;
528 unsigned char out_h_sr_SI_7
;
536 unsigned char out_Rs
;
537 } sfmt_move_spr_mv32
;
543 unsigned char out_Pd
;
544 unsigned char out_Rs
;
545 } sfmt_move_m_sprv32
;
551 unsigned char out_Rd
;
552 unsigned char out_Rs
;
560 unsigned char out_Rs
;
561 unsigned char out_h_gr_SI_index_of__DFLT_Rd
;
569 unsigned char out_Rs
;
570 unsigned char out_h_gr_SI_if__SI_andif__DFLT_prefix_set_not__DFLT_inc_index_of__DFLT_Rs_index_of__DFLT_Rd
;
578 unsigned char out_Rs
;
579 unsigned char out_h_gr_SI_0
;
580 unsigned char out_h_gr_SI_1
;
581 unsigned char out_h_gr_SI_10
;
582 unsigned char out_h_gr_SI_11
;
583 unsigned char out_h_gr_SI_12
;
584 unsigned char out_h_gr_SI_13
;
585 unsigned char out_h_gr_SI_14
;
586 unsigned char out_h_gr_SI_15
;
587 unsigned char out_h_gr_SI_2
;
588 unsigned char out_h_gr_SI_3
;
589 unsigned char out_h_gr_SI_4
;
590 unsigned char out_h_gr_SI_5
;
591 unsigned char out_h_gr_SI_6
;
592 unsigned char out_h_gr_SI_7
;
593 unsigned char out_h_gr_SI_8
;
594 unsigned char out_h_gr_SI_9
;
595 } sfmt_movem_m_r_v32
;
602 unsigned char in_h_gr_SI_0
;
603 unsigned char in_h_gr_SI_1
;
604 unsigned char in_h_gr_SI_10
;
605 unsigned char in_h_gr_SI_11
;
606 unsigned char in_h_gr_SI_12
;
607 unsigned char in_h_gr_SI_13
;
608 unsigned char in_h_gr_SI_14
;
609 unsigned char in_h_gr_SI_15
;
610 unsigned char in_h_gr_SI_2
;
611 unsigned char in_h_gr_SI_3
;
612 unsigned char in_h_gr_SI_4
;
613 unsigned char in_h_gr_SI_5
;
614 unsigned char in_h_gr_SI_6
;
615 unsigned char in_h_gr_SI_7
;
616 unsigned char in_h_gr_SI_8
;
617 unsigned char in_h_gr_SI_9
;
618 unsigned char out_Rs
;
619 } sfmt_movem_r_m_v32
;
621 /* Writeback handler. */
623 /* Pointer to argbuf entry for insn whose results need writing back. */
624 const struct argbuf
*abuf
;
626 /* x-before handler */
628 /*const SCACHE *insns[MAX_PARALLEL_INSNS];*/
631 /* x-after handler */
635 /* This entry is used to terminate each pbb. */
637 /* Number of insns in pbb. */
639 /* Next pbb to execute. */
641 SCACHE
*branch_target
;
646 /* The ARGBUF struct. */
648 /* These are the baseclass definitions. */
653 /* ??? Temporary hack for skip insns. */
656 /* cpu specific data follows */
659 union sem_fields fields
;
664 ??? SCACHE used to contain more than just argbuf. We could delete the
665 type entirely and always just use ARGBUF, but for future concerns and as
666 a level of abstraction it is left in. */
669 struct argbuf argbuf
;
672 /* Macros to simplify extraction, reading and semantic code.
673 These define and assign the local vars that contain the insn's fields. */
675 #define EXTRACT_IFMT_EMPTY_VARS \
677 #define EXTRACT_IFMT_EMPTY_CODE \
680 #define EXTRACT_IFMT_MOVE_B_R_VARS \
687 #define EXTRACT_IFMT_MOVE_B_R_CODE \
689 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
690 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
691 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
692 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
693 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
695 #define EXTRACT_IFMT_MOVEQ_VARS \
701 #define EXTRACT_IFMT_MOVEQ_CODE \
703 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
704 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
705 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
706 f_s6 = EXTRACT_LSB0_INT (insn, 16, 5, 6); \
708 #define EXTRACT_IFMT_MOVECBR_VARS \
710 INT f_indir_pc__byte; \
715 /* Contents of trailing part of insn. */ \
718 #define EXTRACT_IFMT_MOVECBR_CODE \
720 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
721 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
722 f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); \
723 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
724 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
725 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
726 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
728 #define EXTRACT_IFMT_MOVECWR_VARS \
730 INT f_indir_pc__word; \
735 /* Contents of trailing part of insn. */ \
738 #define EXTRACT_IFMT_MOVECWR_CODE \
740 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
741 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
742 f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); \
743 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
744 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
745 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
746 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
748 #define EXTRACT_IFMT_MOVECDR_VARS \
749 INT f_indir_pc__dword; \
755 /* Contents of trailing part of insn. */ \
758 #define EXTRACT_IFMT_MOVECDR_CODE \
760 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
761 f_indir_pc__dword = (0|(EXTRACT_LSB0_UINT (word_1, 32, 31, 32) << 0)); \
762 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
763 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
764 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
765 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
766 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
768 #define EXTRACT_IFMT_MOVUCBR_VARS \
770 INT f_indir_pc__byte; \
775 /* Contents of trailing part of insn. */ \
778 #define EXTRACT_IFMT_MOVUCBR_CODE \
780 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
781 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
782 f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); \
783 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
784 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
785 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
786 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
788 #define EXTRACT_IFMT_MOVUCWR_VARS \
790 INT f_indir_pc__word; \
795 /* Contents of trailing part of insn. */ \
798 #define EXTRACT_IFMT_MOVUCWR_CODE \
800 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
801 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
802 f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); \
803 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
804 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
805 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
806 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
808 #define EXTRACT_IFMT_ADDQ_VARS \
814 #define EXTRACT_IFMT_ADDQ_CODE \
816 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
817 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
818 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
819 f_u6 = EXTRACT_LSB0_UINT (insn, 16, 5, 6); \
821 #define EXTRACT_IFMT_CMP_M_B_M_VARS \
829 #define EXTRACT_IFMT_CMP_M_B_M_CODE \
831 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
832 f_membit = EXTRACT_LSB0_UINT (insn, 16, 11, 1); \
833 f_memmode = EXTRACT_LSB0_UINT (insn, 16, 10, 1); \
834 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
835 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
836 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
838 #define EXTRACT_IFMT_MOVE_R_SPRV32_VARS \
845 #define EXTRACT_IFMT_MOVE_R_SPRV32_CODE \
847 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
848 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
849 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
850 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
851 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
853 #define EXTRACT_IFMT_MOVE_SPR_RV32_VARS \
860 #define EXTRACT_IFMT_MOVE_SPR_RV32_CODE \
862 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
863 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
864 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
865 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
866 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
868 #define EXTRACT_IFMT_MOVE_M_SPRV32_VARS \
876 #define EXTRACT_IFMT_MOVE_M_SPRV32_CODE \
878 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
879 f_membit = EXTRACT_LSB0_UINT (insn, 16, 11, 1); \
880 f_memmode = EXTRACT_LSB0_UINT (insn, 16, 10, 1); \
881 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
882 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
883 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
885 #define EXTRACT_IFMT_MOVE_C_SPRV32_P2_VARS \
886 INT f_indir_pc__dword; \
892 /* Contents of trailing part of insn. */ \
895 #define EXTRACT_IFMT_MOVE_C_SPRV32_P2_CODE \
897 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
898 f_indir_pc__dword = (0|(EXTRACT_LSB0_UINT (word_1, 32, 31, 32) << 0)); \
899 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
900 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
901 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
902 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
903 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
905 #define EXTRACT_IFMT_MOVE_SPR_MV32_VARS \
913 #define EXTRACT_IFMT_MOVE_SPR_MV32_CODE \
915 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
916 f_membit = EXTRACT_LSB0_UINT (insn, 16, 11, 1); \
917 f_memmode = EXTRACT_LSB0_UINT (insn, 16, 10, 1); \
918 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
919 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
920 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
922 #define EXTRACT_IFMT_MOVE_SS_R_VARS \
929 #define EXTRACT_IFMT_MOVE_SS_R_CODE \
931 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
932 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
933 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
934 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
935 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
937 #define EXTRACT_IFMT_MOVE_R_SS_VARS \
944 #define EXTRACT_IFMT_MOVE_R_SS_CODE \
946 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
947 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
948 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
949 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
950 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
952 #define EXTRACT_IFMT_LAPC_D_VARS \
953 SI f_indir_pc__dword_pcrel; \
959 /* Contents of trailing part of insn. */ \
962 #define EXTRACT_IFMT_LAPC_D_CODE \
964 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
965 f_indir_pc__dword_pcrel = ((pc) + ((0|(EXTRACT_LSB0_UINT (word_1, 32, 31, 32) << 0)))); \
966 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
967 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
968 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
969 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
970 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
972 #define EXTRACT_IFMT_LAPCQ_VARS \
979 #define EXTRACT_IFMT_LAPCQ_CODE \
981 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
982 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
983 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
984 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
985 f_qo = ((pc) + (((EXTRACT_LSB0_UINT (insn, 16, 3, 4)) << (1)))); \
987 #define EXTRACT_IFMT_TEST_M_B_M_VARS \
995 #define EXTRACT_IFMT_TEST_M_B_M_CODE \
997 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
998 f_membit = EXTRACT_LSB0_UINT (insn, 16, 11, 1); \
999 f_memmode = EXTRACT_LSB0_UINT (insn, 16, 10, 1); \
1000 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1001 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1002 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1004 #define EXTRACT_IFMT_SWAP_VARS \
1010 unsigned int length;
1011 #define EXTRACT_IFMT_SWAP_CODE \
1013 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1014 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1015 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1016 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1017 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1019 #define EXTRACT_IFMT_ASRQ_VARS \
1025 unsigned int length;
1026 #define EXTRACT_IFMT_ASRQ_CODE \
1028 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1029 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1030 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1031 f_b5 = EXTRACT_LSB0_UINT (insn, 16, 5, 1); \
1032 f_u5 = EXTRACT_LSB0_UINT (insn, 16, 4, 5); \
1034 #define EXTRACT_IFMT_SETF_VARS \
1041 unsigned int length;
1042 #define EXTRACT_IFMT_SETF_CODE \
1044 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1045 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1046 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1047 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1048 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1049 f_dstsrc = ((((f_operand1) | (((f_operand2) << (4))))) & (255));\
1051 #define EXTRACT_IFMT_RFE_VARS \
1057 unsigned int length;
1058 #define EXTRACT_IFMT_RFE_CODE \
1060 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1061 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1062 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1063 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1064 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1066 #define EXTRACT_IFMT_BCC_B_VARS \
1073 unsigned int length;
1074 #define EXTRACT_IFMT_BCC_B_CODE \
1076 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1077 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1078 f_opcode_hi = EXTRACT_LSB0_UINT (insn, 16, 9, 2); \
1079 f_disp9_hi = EXTRACT_LSB0_INT (insn, 16, 0, 1); \
1080 f_disp9_lo = EXTRACT_LSB0_UINT (insn, 16, 7, 7); \
1084 tmp_abslo = ((f_disp9_lo) << (1));\
1085 tmp_absval = ((((((f_disp9_hi) != (0))) ? ((~ (255))) : (0))) | (tmp_abslo));\
1086 f_disp9 = ((((pc) + (tmp_absval))) + (((GET_H_V32_V32 ()) ? (0) : (2))));\
1089 #define EXTRACT_IFMT_BA_B_VARS \
1096 unsigned int length;
1097 #define EXTRACT_IFMT_BA_B_CODE \
1099 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1100 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1101 f_opcode_hi = EXTRACT_LSB0_UINT (insn, 16, 9, 2); \
1102 f_disp9_hi = EXTRACT_LSB0_INT (insn, 16, 0, 1); \
1103 f_disp9_lo = EXTRACT_LSB0_UINT (insn, 16, 7, 7); \
1107 tmp_abslo = ((f_disp9_lo) << (1));\
1108 tmp_absval = ((((((f_disp9_hi) != (0))) ? ((~ (255))) : (0))) | (tmp_abslo));\
1109 f_disp9 = ((((pc) + (tmp_absval))) + (((GET_H_V32_V32 ()) ? (0) : (2))));\
1112 #define EXTRACT_IFMT_BCC_W_VARS \
1114 SI f_indir_pc__word_pcrel; \
1119 /* Contents of trailing part of insn. */ \
1121 unsigned int length;
1122 #define EXTRACT_IFMT_BCC_W_CODE \
1124 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
1125 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1126 f_indir_pc__word_pcrel = ((EXTHISI (((HI) (UINT) ((0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)))))) + (((pc) + (((GET_H_V32_V32 ()) ? (0) : (4)))))); \
1127 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1128 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1129 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1130 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1132 #define EXTRACT_IFMT_BA_W_VARS \
1134 SI f_indir_pc__word_pcrel; \
1139 /* Contents of trailing part of insn. */ \
1141 unsigned int length;
1142 #define EXTRACT_IFMT_BA_W_CODE \
1144 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
1145 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1146 f_indir_pc__word_pcrel = ((EXTHISI (((HI) (UINT) ((0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)))))) + (((pc) + (((GET_H_V32_V32 ()) ? (0) : (4)))))); \
1147 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1148 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1149 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1150 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1152 #define EXTRACT_IFMT_JAS_C_VARS \
1153 INT f_indir_pc__dword; \
1159 /* Contents of trailing part of insn. */ \
1161 unsigned int length;
1162 #define EXTRACT_IFMT_JAS_C_CODE \
1164 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
1165 f_indir_pc__dword = (0|(EXTRACT_LSB0_UINT (word_1, 32, 31, 32) << 0)); \
1166 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1167 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1168 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1169 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1170 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1172 #define EXTRACT_IFMT_JUMP_P_VARS \
1178 unsigned int length;
1179 #define EXTRACT_IFMT_JUMP_P_CODE \
1181 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1182 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1183 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1184 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1185 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1187 #define EXTRACT_IFMT_BAS_C_VARS \
1188 SI f_indir_pc__dword_pcrel; \
1194 /* Contents of trailing part of insn. */ \
1196 unsigned int length;
1197 #define EXTRACT_IFMT_BAS_C_CODE \
1199 word_1 = GETIMEMUSI (current_cpu, pc + 2); \
1200 f_indir_pc__dword_pcrel = ((pc) + ((0|(EXTRACT_LSB0_UINT (word_1, 32, 31, 32) << 0)))); \
1201 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1202 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1203 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1204 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1205 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1207 #define EXTRACT_IFMT_BREAK_VARS \
1213 unsigned int length;
1214 #define EXTRACT_IFMT_BREAK_CODE \
1216 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1217 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1218 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1219 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1220 f_u4 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1222 #define EXTRACT_IFMT_SCC_VARS \
1228 unsigned int length;
1229 #define EXTRACT_IFMT_SCC_CODE \
1231 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1232 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1233 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1234 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1235 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1237 #define EXTRACT_IFMT_ADDOQ_VARS \
1242 unsigned int length;
1243 #define EXTRACT_IFMT_ADDOQ_CODE \
1245 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1246 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1247 f_opcode_hi = EXTRACT_LSB0_UINT (insn, 16, 9, 2); \
1248 f_s8 = EXTRACT_LSB0_INT (insn, 16, 7, 8); \
1250 #define EXTRACT_IFMT_FIDXI_VARS \
1256 unsigned int length;
1257 #define EXTRACT_IFMT_FIDXI_CODE \
1259 f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); \
1260 f_mode = EXTRACT_LSB0_UINT (insn, 16, 11, 2); \
1261 f_opcode = EXTRACT_LSB0_UINT (insn, 16, 9, 4); \
1262 f_size = EXTRACT_LSB0_UINT (insn, 16, 5, 2); \
1263 f_operand1 = EXTRACT_LSB0_UINT (insn, 16, 3, 4); \
1265 /* Collection of various things for the trace handler to use. */
1267 typedef struct trace_record
{
1272 #endif /* CPU_CRISV32F_H */