OSDN Git Service

Regenerate cgen files, update copyright year.
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / cgen-cpu / sh / sh5-compact-model.cxx
1 /* Simulator model support for sh5_compact.
2
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
4
5 Copyright (C) 2000-2010 Red Hat, Inc.
6
7 This file is part of the Red Hat simulators.
8
9
10 */
11
12
13 #if HAVE_CONFIG_H
14 #include "config.h"
15 #endif
16 #include "sh5.h"
17
18 using namespace sh5; // FIXME: namespace organization still wip
19
20 /* The profiling data is recorded here, but is accessed via the profiling
21    mechanism.  After all, this is information for profiling.  */
22
23 /* Model handlers for each insn.  */
24
25 sh5_compact_sh5_model::sh5_compact_sh5_model (sh5_cpu *cpu)
26   : cgen_model (cpu)
27 {
28 }
29
30 UINT
31 sh5_compact_sh5_model::model_add_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
32 {
33 #define FLD(f) abuf->fields.sfmt_macl_compact.f
34   const sh5_compact_scache* abuf = sem;
35   const sh5_compact_idesc* idesc = abuf->idesc;
36   int cycles = 0;
37   {
38     INT in_usereg = -1;
39     in_usereg = FLD (in_rn);
40     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
41   }
42   {
43     INT in_usereg = -1;
44     in_usereg = FLD (in_rm);
45     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
46   }
47   {
48     cycles += model_u_exec_before (current_cpu, idesc, 2);
49   }
50   return cycles;
51 #undef FLD
52 }
53
54 UINT
55 sh5_compact_sh5_model::model_add_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
56 {
57 #define FLD(f) abuf->fields.sfmt_macl_compact.f
58   const sh5_compact_scache* abuf = sem;
59   const sh5_compact_idesc* idesc = abuf->idesc;
60   int cycles = 0;
61   {
62     int referenced = 0;
63     unsigned long long insn_referenced = abuf->written;
64     INT in_usereg = -1;
65     in_usereg = FLD (in_rn);
66     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
67   }
68   {
69     int referenced = 0;
70     unsigned long long insn_referenced = abuf->written;
71     INT in_usereg = -1;
72     in_usereg = FLD (in_rm);
73     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
74   }
75   {
76     int referenced = 0;
77     unsigned long long insn_referenced = abuf->written;
78     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
79   }
80   return cycles;
81 #undef FLD
82 }
83
84 UINT
85 sh5_compact_sh5_model::model_addi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
86 {
87 #define FLD(f) abuf->fields.sfmt_addi_compact.f
88   const sh5_compact_scache* abuf = sem;
89   const sh5_compact_idesc* idesc = abuf->idesc;
90   int cycles = 0;
91   {
92     INT in_usereg = -1;
93     in_usereg = FLD (in_rn);
94     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
95   }
96   {
97     cycles += model_u_exec_before (current_cpu, idesc, 1);
98   }
99   return cycles;
100 #undef FLD
101 }
102
103 UINT
104 sh5_compact_sh5_model::model_addi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
105 {
106 #define FLD(f) abuf->fields.sfmt_addi_compact.f
107   const sh5_compact_scache* abuf = sem;
108   const sh5_compact_idesc* idesc = abuf->idesc;
109   int cycles = 0;
110   {
111     int referenced = 0;
112     unsigned long long insn_referenced = abuf->written;
113     INT in_usereg = -1;
114     in_usereg = FLD (in_rn);
115     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
116   }
117   {
118     int referenced = 0;
119     unsigned long long insn_referenced = abuf->written;
120     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
121   }
122   return cycles;
123 #undef FLD
124 }
125
126 UINT
127 sh5_compact_sh5_model::model_addc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
128 {
129 #define FLD(f) abuf->fields.sfmt_macl_compact.f
130   const sh5_compact_scache* abuf = sem;
131   const sh5_compact_idesc* idesc = abuf->idesc;
132   int cycles = 0;
133   {
134     INT in_usereg = -1;
135     in_usereg = FLD (in_rn);
136     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
137   }
138   {
139     INT in_usereg = -1;
140     in_usereg = FLD (in_rm);
141     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
142   }
143   {
144     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
145   }
146   {
147     cycles += model_u_exec_before (current_cpu, idesc, 3);
148   }
149   {
150     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
151   }
152   return cycles;
153 #undef FLD
154 }
155
156 UINT
157 sh5_compact_sh5_model::model_addc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
158 {
159 #define FLD(f) abuf->fields.sfmt_macl_compact.f
160   const sh5_compact_scache* abuf = sem;
161   const sh5_compact_idesc* idesc = abuf->idesc;
162   int cycles = 0;
163   {
164     int referenced = 0;
165     unsigned long long insn_referenced = abuf->written;
166     INT in_usereg = -1;
167     in_usereg = FLD (in_rn);
168     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
169   }
170   {
171     int referenced = 0;
172     unsigned long long insn_referenced = abuf->written;
173     INT in_usereg = -1;
174     in_usereg = FLD (in_rm);
175     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
176   }
177   {
178     int referenced = 0;
179     unsigned long long insn_referenced = abuf->written;
180     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
181   }
182   {
183     int referenced = 0;
184     unsigned long long insn_referenced = abuf->written;
185     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
186   }
187   {
188     int referenced = 0;
189     unsigned long long insn_referenced = abuf->written;
190     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
191   }
192   return cycles;
193 #undef FLD
194 }
195
196 UINT
197 sh5_compact_sh5_model::model_addv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
198 {
199 #define FLD(f) abuf->fields.sfmt_macl_compact.f
200   const sh5_compact_scache* abuf = sem;
201   const sh5_compact_idesc* idesc = abuf->idesc;
202   int cycles = 0;
203   {
204     INT in_usereg = -1;
205     in_usereg = FLD (in_rn);
206     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
207   }
208   {
209     INT in_usereg = -1;
210     in_usereg = FLD (in_rm);
211     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
212   }
213   {
214     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
215   }
216   {
217     cycles += model_u_exec_before (current_cpu, idesc, 3);
218   }
219   {
220     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
221   }
222   return cycles;
223 #undef FLD
224 }
225
226 UINT
227 sh5_compact_sh5_model::model_addv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
228 {
229 #define FLD(f) abuf->fields.sfmt_macl_compact.f
230   const sh5_compact_scache* abuf = sem;
231   const sh5_compact_idesc* idesc = abuf->idesc;
232   int cycles = 0;
233   {
234     int referenced = 0;
235     unsigned long long insn_referenced = abuf->written;
236     INT in_usereg = -1;
237     in_usereg = FLD (in_rn);
238     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
239   }
240   {
241     int referenced = 0;
242     unsigned long long insn_referenced = abuf->written;
243     INT in_usereg = -1;
244     in_usereg = FLD (in_rm);
245     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
246   }
247   {
248     int referenced = 0;
249     unsigned long long insn_referenced = abuf->written;
250     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
251   }
252   {
253     int referenced = 0;
254     unsigned long long insn_referenced = abuf->written;
255     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
256   }
257   {
258     int referenced = 0;
259     unsigned long long insn_referenced = abuf->written;
260     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
261   }
262   return cycles;
263 #undef FLD
264 }
265
266 UINT
267 sh5_compact_sh5_model::model_and_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
268 {
269 #define FLD(f) abuf->fields.sfmt_and_compact.f
270   const sh5_compact_scache* abuf = sem;
271   const sh5_compact_idesc* idesc = abuf->idesc;
272   int cycles = 0;
273   {
274     INT in_usereg = -1;
275     in_usereg = FLD (in_rn64);
276     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
277   }
278   {
279     INT in_usereg = -1;
280     in_usereg = FLD (in_rm64);
281     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
282   }
283   {
284     cycles += model_u_exec_before (current_cpu, idesc, 2);
285   }
286   return cycles;
287 #undef FLD
288 }
289
290 UINT
291 sh5_compact_sh5_model::model_and_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
292 {
293 #define FLD(f) abuf->fields.sfmt_and_compact.f
294   const sh5_compact_scache* abuf = sem;
295   const sh5_compact_idesc* idesc = abuf->idesc;
296   int cycles = 0;
297   {
298     int referenced = 0;
299     unsigned long long insn_referenced = abuf->written;
300     INT in_usereg = -1;
301     in_usereg = FLD (in_rn64);
302     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
303   }
304   {
305     int referenced = 0;
306     unsigned long long insn_referenced = abuf->written;
307     INT in_usereg = -1;
308     in_usereg = FLD (in_rm64);
309     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
310   }
311   {
312     int referenced = 0;
313     unsigned long long insn_referenced = abuf->written;
314     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
315   }
316   return cycles;
317 #undef FLD
318 }
319
320 UINT
321 sh5_compact_sh5_model::model_andi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
322 {
323 #define FLD(f) abuf->fields.sfmt_andi_compact.f
324   const sh5_compact_scache* abuf = sem;
325   const sh5_compact_idesc* idesc = abuf->idesc;
326   int cycles = 0;
327   {
328     INT in_usereg = -1;
329     in_usereg = FLD (in_r0);
330     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
331   }
332   {
333     cycles += model_u_exec_before (current_cpu, idesc, 1);
334   }
335   return cycles;
336 #undef FLD
337 }
338
339 UINT
340 sh5_compact_sh5_model::model_andi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
341 {
342 #define FLD(f) abuf->fields.sfmt_andi_compact.f
343   const sh5_compact_scache* abuf = sem;
344   const sh5_compact_idesc* idesc = abuf->idesc;
345   int cycles = 0;
346   {
347     int referenced = 0;
348     unsigned long long insn_referenced = abuf->written;
349     INT in_usereg = -1;
350     in_usereg = FLD (in_r0);
351     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
352   }
353   {
354     int referenced = 0;
355     unsigned long long insn_referenced = abuf->written;
356     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
357   }
358   return cycles;
359 #undef FLD
360 }
361
362 UINT
363 sh5_compact_sh5_model::model_andb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
364 {
365 #define FLD(f) abuf->fields.sfmt_andi_compact.f
366   const sh5_compact_scache* abuf = sem;
367   const sh5_compact_idesc* idesc = abuf->idesc;
368   int cycles = 0;
369   {
370     INT in_usereg = -1;
371     in_usereg = FLD (in_r0);
372     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
373   }
374   {
375     cycles += model_u_logic_b_before (current_cpu, idesc, 1);
376   }
377   {
378     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
379   }
380   return cycles;
381 #undef FLD
382 }
383
384 UINT
385 sh5_compact_sh5_model::model_andb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
386 {
387 #define FLD(f) abuf->fields.sfmt_andi_compact.f
388   const sh5_compact_scache* abuf = sem;
389   const sh5_compact_idesc* idesc = abuf->idesc;
390   int cycles = 0;
391   {
392     int referenced = 0;
393     unsigned long long insn_referenced = abuf->written;
394     INT in_usereg = -1;
395     in_usereg = FLD (in_r0);
396     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
397   }
398   {
399     int referenced = 0;
400     unsigned long long insn_referenced = abuf->written;
401     cycles += model_u_logic_b_after (current_cpu, idesc, 1, referenced);
402   }
403   {
404     int referenced = 0;
405     unsigned long long insn_referenced = abuf->written;
406     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
407   }
408   return cycles;
409 #undef FLD
410 }
411
412 UINT
413 sh5_compact_sh5_model::model_bf_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
414 {
415 #define FLD(f) abuf->fields.sfmt_bf_compact.f
416   const sh5_compact_scache* abuf = sem;
417   const sh5_compact_idesc* idesc = abuf->idesc;
418   int cycles = 0;
419   {
420     cycles += model_u_use_tbit_before (current_cpu, idesc, 0);
421   }
422   {
423     cycles += model_u_branch_before (current_cpu, idesc, 1);
424   }
425   return cycles;
426 #undef FLD
427 }
428
429 UINT
430 sh5_compact_sh5_model::model_bf_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
431 {
432 #define FLD(f) abuf->fields.sfmt_bf_compact.f
433   const sh5_compact_scache* abuf = sem;
434   const sh5_compact_idesc* idesc = abuf->idesc;
435   int cycles = 0;
436   {
437     int referenced = 0;
438     unsigned long long insn_referenced = abuf->written;
439     cycles += model_u_use_tbit_after (current_cpu, idesc, 0, referenced);
440   }
441   {
442     int referenced = 0;
443     unsigned long long insn_referenced = abuf->written;
444     if (insn_referenced & (1 << 2)) referenced |= 1 << 0;
445     cycles += model_u_branch_after (current_cpu, idesc, 1, referenced);
446   }
447   return cycles;
448 #undef FLD
449 }
450
451 UINT
452 sh5_compact_sh5_model::model_bfs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
453 {
454 #define FLD(f) abuf->fields.sfmt_bf_compact.f
455   const sh5_compact_scache* abuf = sem;
456   const sh5_compact_idesc* idesc = abuf->idesc;
457   int cycles = 0;
458   {
459     cycles += model_u_use_tbit_before (current_cpu, idesc, 0);
460   }
461   {
462     cycles += model_u_branch_before (current_cpu, idesc, 1);
463   }
464   return cycles;
465 #undef FLD
466 }
467
468 UINT
469 sh5_compact_sh5_model::model_bfs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
470 {
471 #define FLD(f) abuf->fields.sfmt_bf_compact.f
472   const sh5_compact_scache* abuf = sem;
473   const sh5_compact_idesc* idesc = abuf->idesc;
474   int cycles = 0;
475   {
476     int referenced = 0;
477     unsigned long long insn_referenced = abuf->written;
478     cycles += model_u_use_tbit_after (current_cpu, idesc, 0, referenced);
479   }
480   {
481     int referenced = 0;
482     unsigned long long insn_referenced = abuf->written;
483     if (insn_referenced & (1 << 3)) referenced |= 1 << 0;
484     cycles += model_u_branch_after (current_cpu, idesc, 1, referenced);
485   }
486   return cycles;
487 #undef FLD
488 }
489
490 UINT
491 sh5_compact_sh5_model::model_bra_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
492 {
493 #define FLD(f) abuf->fields.sfmt_bra_compact.f
494   const sh5_compact_scache* abuf = sem;
495   const sh5_compact_idesc* idesc = abuf->idesc;
496   int cycles = 0;
497   {
498     cycles += model_u_branch_before (current_cpu, idesc, 0);
499   }
500   return cycles;
501 #undef FLD
502 }
503
504 UINT
505 sh5_compact_sh5_model::model_bra_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
506 {
507 #define FLD(f) abuf->fields.sfmt_bra_compact.f
508   const sh5_compact_scache* abuf = sem;
509   const sh5_compact_idesc* idesc = abuf->idesc;
510   int cycles = 0;
511   {
512     int referenced = 0;
513     unsigned long long insn_referenced = abuf->written;
514     referenced |= 1 << 0;
515     cycles += model_u_branch_after (current_cpu, idesc, 0, referenced);
516   }
517   return cycles;
518 #undef FLD
519 }
520
521 UINT
522 sh5_compact_sh5_model::model_braf_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
523 {
524 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
525   const sh5_compact_scache* abuf = sem;
526   const sh5_compact_idesc* idesc = abuf->idesc;
527   int cycles = 0;
528   {
529     INT in_usereg = -1;
530     in_usereg = FLD (in_rn);
531     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
532   }
533   {
534     cycles += model_u_jmp_before (current_cpu, idesc, 1);
535   }
536   return cycles;
537 #undef FLD
538 }
539
540 UINT
541 sh5_compact_sh5_model::model_braf_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
542 {
543 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
544   const sh5_compact_scache* abuf = sem;
545   const sh5_compact_idesc* idesc = abuf->idesc;
546   int cycles = 0;
547   {
548     int referenced = 0;
549     unsigned long long insn_referenced = abuf->written;
550     INT in_usereg = -1;
551     in_usereg = FLD (in_rn);
552     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
553   }
554   {
555     int referenced = 0;
556     unsigned long long insn_referenced = abuf->written;
557     referenced |= 1 << 0;
558     cycles += model_u_jmp_after (current_cpu, idesc, 1, referenced);
559   }
560   return cycles;
561 #undef FLD
562 }
563
564 UINT
565 sh5_compact_sh5_model::model_brk_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
566 {
567 #define FLD(f) abuf->fields.fmt_empty.f
568   const sh5_compact_scache* abuf = sem;
569   const sh5_compact_idesc* idesc = abuf->idesc;
570   int cycles = 0;
571   {
572     cycles += model_u_exec_before (current_cpu, idesc, 0);
573   }
574   return cycles;
575 #undef FLD
576 }
577
578 UINT
579 sh5_compact_sh5_model::model_brk_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
580 {
581 #define FLD(f) abuf->fields.fmt_empty.f
582   const sh5_compact_scache* abuf = sem;
583   const sh5_compact_idesc* idesc = abuf->idesc;
584   int cycles = 0;
585   {
586     int referenced = 0;
587     unsigned long long insn_referenced = abuf->written;
588     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
589   }
590   return cycles;
591 #undef FLD
592 }
593
594 UINT
595 sh5_compact_sh5_model::model_bsr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
596 {
597 #define FLD(f) abuf->fields.sfmt_bra_compact.f
598   const sh5_compact_scache* abuf = sem;
599   const sh5_compact_idesc* idesc = abuf->idesc;
600   int cycles = 0;
601   {
602     cycles += model_u_branch_before (current_cpu, idesc, 0);
603   }
604   return cycles;
605 #undef FLD
606 }
607
608 UINT
609 sh5_compact_sh5_model::model_bsr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
610 {
611 #define FLD(f) abuf->fields.sfmt_bra_compact.f
612   const sh5_compact_scache* abuf = sem;
613   const sh5_compact_idesc* idesc = abuf->idesc;
614   int cycles = 0;
615   {
616     int referenced = 0;
617     unsigned long long insn_referenced = abuf->written;
618     referenced |= 1 << 0;
619     cycles += model_u_branch_after (current_cpu, idesc, 0, referenced);
620   }
621   return cycles;
622 #undef FLD
623 }
624
625 UINT
626 sh5_compact_sh5_model::model_bsrf_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
627 {
628 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
629   const sh5_compact_scache* abuf = sem;
630   const sh5_compact_idesc* idesc = abuf->idesc;
631   int cycles = 0;
632   {
633     INT in_usereg = -1;
634     in_usereg = FLD (in_rn);
635     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
636   }
637   {
638     cycles += model_u_jsr_before (current_cpu, idesc, 1);
639   }
640   return cycles;
641 #undef FLD
642 }
643
644 UINT
645 sh5_compact_sh5_model::model_bsrf_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
646 {
647 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
648   const sh5_compact_scache* abuf = sem;
649   const sh5_compact_idesc* idesc = abuf->idesc;
650   int cycles = 0;
651   {
652     int referenced = 0;
653     unsigned long long insn_referenced = abuf->written;
654     INT in_usereg = -1;
655     in_usereg = FLD (in_rn);
656     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
657   }
658   {
659     int referenced = 0;
660     unsigned long long insn_referenced = abuf->written;
661     referenced |= 1 << 0;
662     cycles += model_u_jsr_after (current_cpu, idesc, 1, referenced);
663   }
664   return cycles;
665 #undef FLD
666 }
667
668 UINT
669 sh5_compact_sh5_model::model_bt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
670 {
671 #define FLD(f) abuf->fields.sfmt_bf_compact.f
672   const sh5_compact_scache* abuf = sem;
673   const sh5_compact_idesc* idesc = abuf->idesc;
674   int cycles = 0;
675   {
676     cycles += model_u_use_tbit_before (current_cpu, idesc, 0);
677   }
678   {
679     cycles += model_u_branch_before (current_cpu, idesc, 1);
680   }
681   return cycles;
682 #undef FLD
683 }
684
685 UINT
686 sh5_compact_sh5_model::model_bt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
687 {
688 #define FLD(f) abuf->fields.sfmt_bf_compact.f
689   const sh5_compact_scache* abuf = sem;
690   const sh5_compact_idesc* idesc = abuf->idesc;
691   int cycles = 0;
692   {
693     int referenced = 0;
694     unsigned long long insn_referenced = abuf->written;
695     cycles += model_u_use_tbit_after (current_cpu, idesc, 0, referenced);
696   }
697   {
698     int referenced = 0;
699     unsigned long long insn_referenced = abuf->written;
700     if (insn_referenced & (1 << 2)) referenced |= 1 << 0;
701     cycles += model_u_branch_after (current_cpu, idesc, 1, referenced);
702   }
703   return cycles;
704 #undef FLD
705 }
706
707 UINT
708 sh5_compact_sh5_model::model_bts_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
709 {
710 #define FLD(f) abuf->fields.sfmt_bf_compact.f
711   const sh5_compact_scache* abuf = sem;
712   const sh5_compact_idesc* idesc = abuf->idesc;
713   int cycles = 0;
714   {
715     cycles += model_u_use_tbit_before (current_cpu, idesc, 0);
716   }
717   {
718     cycles += model_u_branch_before (current_cpu, idesc, 1);
719   }
720   return cycles;
721 #undef FLD
722 }
723
724 UINT
725 sh5_compact_sh5_model::model_bts_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
726 {
727 #define FLD(f) abuf->fields.sfmt_bf_compact.f
728   const sh5_compact_scache* abuf = sem;
729   const sh5_compact_idesc* idesc = abuf->idesc;
730   int cycles = 0;
731   {
732     int referenced = 0;
733     unsigned long long insn_referenced = abuf->written;
734     cycles += model_u_use_tbit_after (current_cpu, idesc, 0, referenced);
735   }
736   {
737     int referenced = 0;
738     unsigned long long insn_referenced = abuf->written;
739     if (insn_referenced & (1 << 3)) referenced |= 1 << 0;
740     cycles += model_u_branch_after (current_cpu, idesc, 1, referenced);
741   }
742   return cycles;
743 #undef FLD
744 }
745
746 UINT
747 sh5_compact_sh5_model::model_clrmac_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
748 {
749 #define FLD(f) abuf->fields.fmt_empty.f
750   const sh5_compact_scache* abuf = sem;
751   const sh5_compact_idesc* idesc = abuf->idesc;
752   int cycles = 0;
753   {
754     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 0);
755   }
756   {
757     cycles += model_u_exec_before (current_cpu, idesc, 1);
758   }
759   {
760     cycles += model_u_set_mac_before (current_cpu, idesc, 2);
761   }
762   return cycles;
763 #undef FLD
764 }
765
766 UINT
767 sh5_compact_sh5_model::model_clrmac_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
768 {
769 #define FLD(f) abuf->fields.fmt_empty.f
770   const sh5_compact_scache* abuf = sem;
771   const sh5_compact_idesc* idesc = abuf->idesc;
772   int cycles = 0;
773   {
774     int referenced = 0;
775     unsigned long long insn_referenced = abuf->written;
776     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 0, referenced);
777   }
778   {
779     int referenced = 0;
780     unsigned long long insn_referenced = abuf->written;
781     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
782   }
783   {
784     int referenced = 0;
785     unsigned long long insn_referenced = abuf->written;
786     cycles += model_u_set_mac_after (current_cpu, idesc, 2, referenced);
787   }
788   return cycles;
789 #undef FLD
790 }
791
792 UINT
793 sh5_compact_sh5_model::model_clrs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
794 {
795 #define FLD(f) abuf->fields.fmt_empty.f
796   const sh5_compact_scache* abuf = sem;
797   const sh5_compact_idesc* idesc = abuf->idesc;
798   int cycles = 0;
799   {
800     cycles += model_u_exec_before (current_cpu, idesc, 0);
801   }
802   {
803     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 1);
804   }
805   return cycles;
806 #undef FLD
807 }
808
809 UINT
810 sh5_compact_sh5_model::model_clrs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
811 {
812 #define FLD(f) abuf->fields.fmt_empty.f
813   const sh5_compact_scache* abuf = sem;
814   const sh5_compact_idesc* idesc = abuf->idesc;
815   int cycles = 0;
816   {
817     int referenced = 0;
818     unsigned long long insn_referenced = abuf->written;
819     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
820   }
821   {
822     int referenced = 0;
823     unsigned long long insn_referenced = abuf->written;
824     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 1, referenced);
825   }
826   return cycles;
827 #undef FLD
828 }
829
830 UINT
831 sh5_compact_sh5_model::model_clrt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
832 {
833 #define FLD(f) abuf->fields.fmt_empty.f
834   const sh5_compact_scache* abuf = sem;
835   const sh5_compact_idesc* idesc = abuf->idesc;
836   int cycles = 0;
837   {
838     cycles += model_u_exec_before (current_cpu, idesc, 0);
839   }
840   {
841     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
842   }
843   {
844     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 2);
845   }
846   return cycles;
847 #undef FLD
848 }
849
850 UINT
851 sh5_compact_sh5_model::model_clrt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
852 {
853 #define FLD(f) abuf->fields.fmt_empty.f
854   const sh5_compact_scache* abuf = sem;
855   const sh5_compact_idesc* idesc = abuf->idesc;
856   int cycles = 0;
857   {
858     int referenced = 0;
859     unsigned long long insn_referenced = abuf->written;
860     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
861   }
862   {
863     int referenced = 0;
864     unsigned long long insn_referenced = abuf->written;
865     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
866   }
867   {
868     int referenced = 0;
869     unsigned long long insn_referenced = abuf->written;
870     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 2, referenced);
871   }
872   return cycles;
873 #undef FLD
874 }
875
876 UINT
877 sh5_compact_sh5_model::model_cmpeq_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
878 {
879 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
880   const sh5_compact_scache* abuf = sem;
881   const sh5_compact_idesc* idesc = abuf->idesc;
882   int cycles = 0;
883   {
884     INT in_usereg = -1;
885     in_usereg = FLD (in_rn);
886     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
887   }
888   {
889     INT in_usereg = -1;
890     in_usereg = FLD (in_rm);
891     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
892   }
893   {
894     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
895   }
896   {
897     cycles += model_u_exec_before (current_cpu, idesc, 3);
898   }
899   {
900     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
901   }
902   return cycles;
903 #undef FLD
904 }
905
906 UINT
907 sh5_compact_sh5_model::model_cmpeq_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
908 {
909 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
910   const sh5_compact_scache* abuf = sem;
911   const sh5_compact_idesc* idesc = abuf->idesc;
912   int cycles = 0;
913   {
914     int referenced = 0;
915     unsigned long long insn_referenced = abuf->written;
916     INT in_usereg = -1;
917     in_usereg = FLD (in_rn);
918     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
919   }
920   {
921     int referenced = 0;
922     unsigned long long insn_referenced = abuf->written;
923     INT in_usereg = -1;
924     in_usereg = FLD (in_rm);
925     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
926   }
927   {
928     int referenced = 0;
929     unsigned long long insn_referenced = abuf->written;
930     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
931   }
932   {
933     int referenced = 0;
934     unsigned long long insn_referenced = abuf->written;
935     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
936   }
937   {
938     int referenced = 0;
939     unsigned long long insn_referenced = abuf->written;
940     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
941   }
942   return cycles;
943 #undef FLD
944 }
945
946 UINT
947 sh5_compact_sh5_model::model_cmpeqi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
948 {
949 #define FLD(f) abuf->fields.sfmt_andi_compact.f
950   const sh5_compact_scache* abuf = sem;
951   const sh5_compact_idesc* idesc = abuf->idesc;
952   int cycles = 0;
953   {
954     INT in_usereg = -1;
955     in_usereg = FLD (in_r0);
956     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
957   }
958   {
959     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
960   }
961   {
962     cycles += model_u_exec_before (current_cpu, idesc, 2);
963   }
964   {
965     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
966   }
967   return cycles;
968 #undef FLD
969 }
970
971 UINT
972 sh5_compact_sh5_model::model_cmpeqi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
973 {
974 #define FLD(f) abuf->fields.sfmt_andi_compact.f
975   const sh5_compact_scache* abuf = sem;
976   const sh5_compact_idesc* idesc = abuf->idesc;
977   int cycles = 0;
978   {
979     int referenced = 0;
980     unsigned long long insn_referenced = abuf->written;
981     INT in_usereg = -1;
982     in_usereg = FLD (in_r0);
983     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
984   }
985   {
986     int referenced = 0;
987     unsigned long long insn_referenced = abuf->written;
988     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
989   }
990   {
991     int referenced = 0;
992     unsigned long long insn_referenced = abuf->written;
993     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
994   }
995   {
996     int referenced = 0;
997     unsigned long long insn_referenced = abuf->written;
998     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
999   }
1000   return cycles;
1001 #undef FLD
1002 }
1003
1004 UINT
1005 sh5_compact_sh5_model::model_cmpge_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1006 {
1007 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1008   const sh5_compact_scache* abuf = sem;
1009   const sh5_compact_idesc* idesc = abuf->idesc;
1010   int cycles = 0;
1011   {
1012     INT in_usereg = -1;
1013     in_usereg = FLD (in_rn);
1014     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1015   }
1016   {
1017     INT in_usereg = -1;
1018     in_usereg = FLD (in_rm);
1019     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1020   }
1021   {
1022     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1023   }
1024   {
1025     cycles += model_u_exec_before (current_cpu, idesc, 3);
1026   }
1027   {
1028     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1029   }
1030   return cycles;
1031 #undef FLD
1032 }
1033
1034 UINT
1035 sh5_compact_sh5_model::model_cmpge_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1036 {
1037 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1038   const sh5_compact_scache* abuf = sem;
1039   const sh5_compact_idesc* idesc = abuf->idesc;
1040   int cycles = 0;
1041   {
1042     int referenced = 0;
1043     unsigned long long insn_referenced = abuf->written;
1044     INT in_usereg = -1;
1045     in_usereg = FLD (in_rn);
1046     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1047   }
1048   {
1049     int referenced = 0;
1050     unsigned long long insn_referenced = abuf->written;
1051     INT in_usereg = -1;
1052     in_usereg = FLD (in_rm);
1053     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1054   }
1055   {
1056     int referenced = 0;
1057     unsigned long long insn_referenced = abuf->written;
1058     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1059   }
1060   {
1061     int referenced = 0;
1062     unsigned long long insn_referenced = abuf->written;
1063     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1064   }
1065   {
1066     int referenced = 0;
1067     unsigned long long insn_referenced = abuf->written;
1068     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1069   }
1070   return cycles;
1071 #undef FLD
1072 }
1073
1074 UINT
1075 sh5_compact_sh5_model::model_cmpgt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1076 {
1077 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1078   const sh5_compact_scache* abuf = sem;
1079   const sh5_compact_idesc* idesc = abuf->idesc;
1080   int cycles = 0;
1081   {
1082     INT in_usereg = -1;
1083     in_usereg = FLD (in_rn);
1084     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1085   }
1086   {
1087     INT in_usereg = -1;
1088     in_usereg = FLD (in_rm);
1089     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1090   }
1091   {
1092     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1093   }
1094   {
1095     cycles += model_u_exec_before (current_cpu, idesc, 3);
1096   }
1097   {
1098     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1099   }
1100   return cycles;
1101 #undef FLD
1102 }
1103
1104 UINT
1105 sh5_compact_sh5_model::model_cmpgt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1106 {
1107 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1108   const sh5_compact_scache* abuf = sem;
1109   const sh5_compact_idesc* idesc = abuf->idesc;
1110   int cycles = 0;
1111   {
1112     int referenced = 0;
1113     unsigned long long insn_referenced = abuf->written;
1114     INT in_usereg = -1;
1115     in_usereg = FLD (in_rn);
1116     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1117   }
1118   {
1119     int referenced = 0;
1120     unsigned long long insn_referenced = abuf->written;
1121     INT in_usereg = -1;
1122     in_usereg = FLD (in_rm);
1123     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1124   }
1125   {
1126     int referenced = 0;
1127     unsigned long long insn_referenced = abuf->written;
1128     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1129   }
1130   {
1131     int referenced = 0;
1132     unsigned long long insn_referenced = abuf->written;
1133     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1134   }
1135   {
1136     int referenced = 0;
1137     unsigned long long insn_referenced = abuf->written;
1138     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1139   }
1140   return cycles;
1141 #undef FLD
1142 }
1143
1144 UINT
1145 sh5_compact_sh5_model::model_cmphi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1146 {
1147 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1148   const sh5_compact_scache* abuf = sem;
1149   const sh5_compact_idesc* idesc = abuf->idesc;
1150   int cycles = 0;
1151   {
1152     INT in_usereg = -1;
1153     in_usereg = FLD (in_rn);
1154     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1155   }
1156   {
1157     INT in_usereg = -1;
1158     in_usereg = FLD (in_rm);
1159     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1160   }
1161   {
1162     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1163   }
1164   {
1165     cycles += model_u_exec_before (current_cpu, idesc, 3);
1166   }
1167   {
1168     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1169   }
1170   return cycles;
1171 #undef FLD
1172 }
1173
1174 UINT
1175 sh5_compact_sh5_model::model_cmphi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1176 {
1177 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1178   const sh5_compact_scache* abuf = sem;
1179   const sh5_compact_idesc* idesc = abuf->idesc;
1180   int cycles = 0;
1181   {
1182     int referenced = 0;
1183     unsigned long long insn_referenced = abuf->written;
1184     INT in_usereg = -1;
1185     in_usereg = FLD (in_rn);
1186     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1187   }
1188   {
1189     int referenced = 0;
1190     unsigned long long insn_referenced = abuf->written;
1191     INT in_usereg = -1;
1192     in_usereg = FLD (in_rm);
1193     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1194   }
1195   {
1196     int referenced = 0;
1197     unsigned long long insn_referenced = abuf->written;
1198     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1199   }
1200   {
1201     int referenced = 0;
1202     unsigned long long insn_referenced = abuf->written;
1203     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1204   }
1205   {
1206     int referenced = 0;
1207     unsigned long long insn_referenced = abuf->written;
1208     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1209   }
1210   return cycles;
1211 #undef FLD
1212 }
1213
1214 UINT
1215 sh5_compact_sh5_model::model_cmphs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1216 {
1217 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1218   const sh5_compact_scache* abuf = sem;
1219   const sh5_compact_idesc* idesc = abuf->idesc;
1220   int cycles = 0;
1221   {
1222     INT in_usereg = -1;
1223     in_usereg = FLD (in_rn);
1224     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1225   }
1226   {
1227     INT in_usereg = -1;
1228     in_usereg = FLD (in_rm);
1229     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1230   }
1231   {
1232     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1233   }
1234   {
1235     cycles += model_u_exec_before (current_cpu, idesc, 3);
1236   }
1237   {
1238     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1239   }
1240   return cycles;
1241 #undef FLD
1242 }
1243
1244 UINT
1245 sh5_compact_sh5_model::model_cmphs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1246 {
1247 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1248   const sh5_compact_scache* abuf = sem;
1249   const sh5_compact_idesc* idesc = abuf->idesc;
1250   int cycles = 0;
1251   {
1252     int referenced = 0;
1253     unsigned long long insn_referenced = abuf->written;
1254     INT in_usereg = -1;
1255     in_usereg = FLD (in_rn);
1256     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1257   }
1258   {
1259     int referenced = 0;
1260     unsigned long long insn_referenced = abuf->written;
1261     INT in_usereg = -1;
1262     in_usereg = FLD (in_rm);
1263     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1264   }
1265   {
1266     int referenced = 0;
1267     unsigned long long insn_referenced = abuf->written;
1268     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1269   }
1270   {
1271     int referenced = 0;
1272     unsigned long long insn_referenced = abuf->written;
1273     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1274   }
1275   {
1276     int referenced = 0;
1277     unsigned long long insn_referenced = abuf->written;
1278     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1279   }
1280   return cycles;
1281 #undef FLD
1282 }
1283
1284 UINT
1285 sh5_compact_sh5_model::model_cmppl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1286 {
1287 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
1288   const sh5_compact_scache* abuf = sem;
1289   const sh5_compact_idesc* idesc = abuf->idesc;
1290   int cycles = 0;
1291   {
1292     INT in_usereg = -1;
1293     in_usereg = FLD (in_rn);
1294     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1295   }
1296   {
1297     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
1298   }
1299   {
1300     cycles += model_u_exec_before (current_cpu, idesc, 2);
1301   }
1302   {
1303     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
1304   }
1305   return cycles;
1306 #undef FLD
1307 }
1308
1309 UINT
1310 sh5_compact_sh5_model::model_cmppl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1311 {
1312 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
1313   const sh5_compact_scache* abuf = sem;
1314   const sh5_compact_idesc* idesc = abuf->idesc;
1315   int cycles = 0;
1316   {
1317     int referenced = 0;
1318     unsigned long long insn_referenced = abuf->written;
1319     INT in_usereg = -1;
1320     in_usereg = FLD (in_rn);
1321     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1322   }
1323   {
1324     int referenced = 0;
1325     unsigned long long insn_referenced = abuf->written;
1326     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
1327   }
1328   {
1329     int referenced = 0;
1330     unsigned long long insn_referenced = abuf->written;
1331     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
1332   }
1333   {
1334     int referenced = 0;
1335     unsigned long long insn_referenced = abuf->written;
1336     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
1337   }
1338   return cycles;
1339 #undef FLD
1340 }
1341
1342 UINT
1343 sh5_compact_sh5_model::model_cmppz_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1344 {
1345 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
1346   const sh5_compact_scache* abuf = sem;
1347   const sh5_compact_idesc* idesc = abuf->idesc;
1348   int cycles = 0;
1349   {
1350     INT in_usereg = -1;
1351     in_usereg = FLD (in_rn);
1352     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1353   }
1354   {
1355     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
1356   }
1357   {
1358     cycles += model_u_exec_before (current_cpu, idesc, 2);
1359   }
1360   {
1361     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
1362   }
1363   return cycles;
1364 #undef FLD
1365 }
1366
1367 UINT
1368 sh5_compact_sh5_model::model_cmppz_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1369 {
1370 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
1371   const sh5_compact_scache* abuf = sem;
1372   const sh5_compact_idesc* idesc = abuf->idesc;
1373   int cycles = 0;
1374   {
1375     int referenced = 0;
1376     unsigned long long insn_referenced = abuf->written;
1377     INT in_usereg = -1;
1378     in_usereg = FLD (in_rn);
1379     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1380   }
1381   {
1382     int referenced = 0;
1383     unsigned long long insn_referenced = abuf->written;
1384     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
1385   }
1386   {
1387     int referenced = 0;
1388     unsigned long long insn_referenced = abuf->written;
1389     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
1390   }
1391   {
1392     int referenced = 0;
1393     unsigned long long insn_referenced = abuf->written;
1394     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
1395   }
1396   return cycles;
1397 #undef FLD
1398 }
1399
1400 UINT
1401 sh5_compact_sh5_model::model_cmpstr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1402 {
1403 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1404   const sh5_compact_scache* abuf = sem;
1405   const sh5_compact_idesc* idesc = abuf->idesc;
1406   int cycles = 0;
1407   {
1408     INT in_usereg = -1;
1409     in_usereg = FLD (in_rn);
1410     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1411   }
1412   {
1413     INT in_usereg = -1;
1414     in_usereg = FLD (in_rm);
1415     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1416   }
1417   {
1418     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1419   }
1420   {
1421     cycles += model_u_exec_before (current_cpu, idesc, 3);
1422   }
1423   {
1424     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1425   }
1426   return cycles;
1427 #undef FLD
1428 }
1429
1430 UINT
1431 sh5_compact_sh5_model::model_cmpstr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1432 {
1433 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1434   const sh5_compact_scache* abuf = sem;
1435   const sh5_compact_idesc* idesc = abuf->idesc;
1436   int cycles = 0;
1437   {
1438     int referenced = 0;
1439     unsigned long long insn_referenced = abuf->written;
1440     INT in_usereg = -1;
1441     in_usereg = FLD (in_rn);
1442     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1443   }
1444   {
1445     int referenced = 0;
1446     unsigned long long insn_referenced = abuf->written;
1447     INT in_usereg = -1;
1448     in_usereg = FLD (in_rm);
1449     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1450   }
1451   {
1452     int referenced = 0;
1453     unsigned long long insn_referenced = abuf->written;
1454     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1455   }
1456   {
1457     int referenced = 0;
1458     unsigned long long insn_referenced = abuf->written;
1459     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1460   }
1461   {
1462     int referenced = 0;
1463     unsigned long long insn_referenced = abuf->written;
1464     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1465   }
1466   return cycles;
1467 #undef FLD
1468 }
1469
1470 UINT
1471 sh5_compact_sh5_model::model_div0s_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1472 {
1473 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1474   const sh5_compact_scache* abuf = sem;
1475   const sh5_compact_idesc* idesc = abuf->idesc;
1476   int cycles = 0;
1477   {
1478     INT in_usereg = -1;
1479     in_usereg = FLD (in_rn);
1480     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1481   }
1482   {
1483     INT in_usereg = -1;
1484     in_usereg = FLD (in_rm);
1485     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1486   }
1487   {
1488     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1489   }
1490   {
1491     cycles += model_u_exec_before (current_cpu, idesc, 3);
1492   }
1493   {
1494     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1495   }
1496   return cycles;
1497 #undef FLD
1498 }
1499
1500 UINT
1501 sh5_compact_sh5_model::model_div0s_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1502 {
1503 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1504   const sh5_compact_scache* abuf = sem;
1505   const sh5_compact_idesc* idesc = abuf->idesc;
1506   int cycles = 0;
1507   {
1508     int referenced = 0;
1509     unsigned long long insn_referenced = abuf->written;
1510     INT in_usereg = -1;
1511     in_usereg = FLD (in_rn);
1512     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1513   }
1514   {
1515     int referenced = 0;
1516     unsigned long long insn_referenced = abuf->written;
1517     INT in_usereg = -1;
1518     in_usereg = FLD (in_rm);
1519     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1520   }
1521   {
1522     int referenced = 0;
1523     unsigned long long insn_referenced = abuf->written;
1524     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1525   }
1526   {
1527     int referenced = 0;
1528     unsigned long long insn_referenced = abuf->written;
1529     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1530   }
1531   {
1532     int referenced = 0;
1533     unsigned long long insn_referenced = abuf->written;
1534     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1535   }
1536   return cycles;
1537 #undef FLD
1538 }
1539
1540 UINT
1541 sh5_compact_sh5_model::model_div0u_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1542 {
1543 #define FLD(f) abuf->fields.fmt_empty.f
1544   const sh5_compact_scache* abuf = sem;
1545   const sh5_compact_idesc* idesc = abuf->idesc;
1546   int cycles = 0;
1547   {
1548     cycles += model_u_use_tbit_before (current_cpu, idesc, 0);
1549   }
1550   {
1551     cycles += model_u_exec_before (current_cpu, idesc, 1);
1552   }
1553   {
1554     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 2);
1555   }
1556   return cycles;
1557 #undef FLD
1558 }
1559
1560 UINT
1561 sh5_compact_sh5_model::model_div0u_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1562 {
1563 #define FLD(f) abuf->fields.fmt_empty.f
1564   const sh5_compact_scache* abuf = sem;
1565   const sh5_compact_idesc* idesc = abuf->idesc;
1566   int cycles = 0;
1567   {
1568     int referenced = 0;
1569     unsigned long long insn_referenced = abuf->written;
1570     cycles += model_u_use_tbit_after (current_cpu, idesc, 0, referenced);
1571   }
1572   {
1573     int referenced = 0;
1574     unsigned long long insn_referenced = abuf->written;
1575     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
1576   }
1577   {
1578     int referenced = 0;
1579     unsigned long long insn_referenced = abuf->written;
1580     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 2, referenced);
1581   }
1582   return cycles;
1583 #undef FLD
1584 }
1585
1586 UINT
1587 sh5_compact_sh5_model::model_div1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1588 {
1589 #define FLD(f) abuf->fields.sfmt_macl_compact.f
1590   const sh5_compact_scache* abuf = sem;
1591   const sh5_compact_idesc* idesc = abuf->idesc;
1592   int cycles = 0;
1593   {
1594     INT in_usereg = -1;
1595     in_usereg = FLD (in_rn);
1596     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1597   }
1598   {
1599     INT in_usereg = -1;
1600     in_usereg = FLD (in_rm);
1601     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1602   }
1603   {
1604     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
1605   }
1606   {
1607     cycles += model_u_exec_before (current_cpu, idesc, 3);
1608   }
1609   {
1610     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
1611   }
1612   return cycles;
1613 #undef FLD
1614 }
1615
1616 UINT
1617 sh5_compact_sh5_model::model_div1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1618 {
1619 #define FLD(f) abuf->fields.sfmt_macl_compact.f
1620   const sh5_compact_scache* abuf = sem;
1621   const sh5_compact_idesc* idesc = abuf->idesc;
1622   int cycles = 0;
1623   {
1624     int referenced = 0;
1625     unsigned long long insn_referenced = abuf->written;
1626     INT in_usereg = -1;
1627     in_usereg = FLD (in_rn);
1628     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1629   }
1630   {
1631     int referenced = 0;
1632     unsigned long long insn_referenced = abuf->written;
1633     INT in_usereg = -1;
1634     in_usereg = FLD (in_rm);
1635     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1636   }
1637   {
1638     int referenced = 0;
1639     unsigned long long insn_referenced = abuf->written;
1640     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
1641   }
1642   {
1643     int referenced = 0;
1644     unsigned long long insn_referenced = abuf->written;
1645     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
1646   }
1647   {
1648     int referenced = 0;
1649     unsigned long long insn_referenced = abuf->written;
1650     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
1651   }
1652   return cycles;
1653 #undef FLD
1654 }
1655
1656 UINT
1657 sh5_compact_sh5_model::model_divu_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1658 {
1659 #define FLD(f) abuf->fields.sfmt_divu_compact.f
1660   const sh5_compact_scache* abuf = sem;
1661   const sh5_compact_idesc* idesc = abuf->idesc;
1662   int cycles = 0;
1663   {
1664     INT in_usereg = -1;
1665     in_usereg = FLD (in_rn);
1666     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1667   }
1668   {
1669     INT in_usereg = -1;
1670     in_usereg = FLD (in_r0);
1671     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1672   }
1673   {
1674     cycles += model_u_exec_before (current_cpu, idesc, 2);
1675   }
1676   return cycles;
1677 #undef FLD
1678 }
1679
1680 UINT
1681 sh5_compact_sh5_model::model_divu_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1682 {
1683 #define FLD(f) abuf->fields.sfmt_divu_compact.f
1684   const sh5_compact_scache* abuf = sem;
1685   const sh5_compact_idesc* idesc = abuf->idesc;
1686   int cycles = 0;
1687   {
1688     int referenced = 0;
1689     unsigned long long insn_referenced = abuf->written;
1690     INT in_usereg = -1;
1691     in_usereg = FLD (in_rn);
1692     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1693   }
1694   {
1695     int referenced = 0;
1696     unsigned long long insn_referenced = abuf->written;
1697     INT in_usereg = -1;
1698     in_usereg = FLD (in_r0);
1699     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1700   }
1701   {
1702     int referenced = 0;
1703     unsigned long long insn_referenced = abuf->written;
1704     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
1705   }
1706   return cycles;
1707 #undef FLD
1708 }
1709
1710 UINT
1711 sh5_compact_sh5_model::model_mulr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1712 {
1713 #define FLD(f) abuf->fields.sfmt_divu_compact.f
1714   const sh5_compact_scache* abuf = sem;
1715   const sh5_compact_idesc* idesc = abuf->idesc;
1716   int cycles = 0;
1717   {
1718     INT in_usereg = -1;
1719     in_usereg = FLD (in_rn);
1720     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1721   }
1722   {
1723     INT in_usereg = -1;
1724     in_usereg = FLD (in_r0);
1725     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1726   }
1727   {
1728     cycles += model_u_mulr_before (current_cpu, idesc, 2);
1729   }
1730   {
1731     INT out_loadreg = -1;
1732     out_loadreg = FLD (out_rn);
1733     cycles += model_u_mulr_gr_before (current_cpu, idesc, 3, out_loadreg);
1734   }
1735   return cycles;
1736 #undef FLD
1737 }
1738
1739 UINT
1740 sh5_compact_sh5_model::model_mulr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1741 {
1742 #define FLD(f) abuf->fields.sfmt_divu_compact.f
1743   const sh5_compact_scache* abuf = sem;
1744   const sh5_compact_idesc* idesc = abuf->idesc;
1745   int cycles = 0;
1746   {
1747     int referenced = 0;
1748     unsigned long long insn_referenced = abuf->written;
1749     INT in_usereg = -1;
1750     in_usereg = FLD (in_rn);
1751     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1752   }
1753   {
1754     int referenced = 0;
1755     unsigned long long insn_referenced = abuf->written;
1756     INT in_usereg = -1;
1757     in_usereg = FLD (in_r0);
1758     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1759   }
1760   {
1761     int referenced = 0;
1762     unsigned long long insn_referenced = abuf->written;
1763     cycles += model_u_mulr_after (current_cpu, idesc, 2, referenced);
1764   }
1765   {
1766     int referenced = 0;
1767     unsigned long long insn_referenced = abuf->written;
1768     INT out_loadreg = -1;
1769     out_loadreg = FLD (out_rn);
1770     cycles += model_u_mulr_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
1771   }
1772   return cycles;
1773 #undef FLD
1774 }
1775
1776 UINT
1777 sh5_compact_sh5_model::model_dmulsl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1778 {
1779 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1780   const sh5_compact_scache* abuf = sem;
1781   const sh5_compact_idesc* idesc = abuf->idesc;
1782   int cycles = 0;
1783   {
1784     INT in_usereg = -1;
1785     in_usereg = FLD (in_rn);
1786     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1787   }
1788   {
1789     INT in_usereg = -1;
1790     in_usereg = FLD (in_rm);
1791     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1792   }
1793   {
1794     cycles += model_u_dmul_before (current_cpu, idesc, 2);
1795   }
1796   return cycles;
1797 #undef FLD
1798 }
1799
1800 UINT
1801 sh5_compact_sh5_model::model_dmulsl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1802 {
1803 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1804   const sh5_compact_scache* abuf = sem;
1805   const sh5_compact_idesc* idesc = abuf->idesc;
1806   int cycles = 0;
1807   {
1808     int referenced = 0;
1809     unsigned long long insn_referenced = abuf->written;
1810     INT in_usereg = -1;
1811     in_usereg = FLD (in_rn);
1812     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1813   }
1814   {
1815     int referenced = 0;
1816     unsigned long long insn_referenced = abuf->written;
1817     INT in_usereg = -1;
1818     in_usereg = FLD (in_rm);
1819     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1820   }
1821   {
1822     int referenced = 0;
1823     unsigned long long insn_referenced = abuf->written;
1824     cycles += model_u_dmul_after (current_cpu, idesc, 2, referenced);
1825   }
1826   return cycles;
1827 #undef FLD
1828 }
1829
1830 UINT
1831 sh5_compact_sh5_model::model_dmulul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1832 {
1833 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1834   const sh5_compact_scache* abuf = sem;
1835   const sh5_compact_idesc* idesc = abuf->idesc;
1836   int cycles = 0;
1837   {
1838     INT in_usereg = -1;
1839     in_usereg = FLD (in_rn);
1840     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1841   }
1842   {
1843     INT in_usereg = -1;
1844     in_usereg = FLD (in_rm);
1845     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
1846   }
1847   {
1848     cycles += model_u_dmul_before (current_cpu, idesc, 2);
1849   }
1850   return cycles;
1851 #undef FLD
1852 }
1853
1854 UINT
1855 sh5_compact_sh5_model::model_dmulul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1856 {
1857 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
1858   const sh5_compact_scache* abuf = sem;
1859   const sh5_compact_idesc* idesc = abuf->idesc;
1860   int cycles = 0;
1861   {
1862     int referenced = 0;
1863     unsigned long long insn_referenced = abuf->written;
1864     INT in_usereg = -1;
1865     in_usereg = FLD (in_rn);
1866     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1867   }
1868   {
1869     int referenced = 0;
1870     unsigned long long insn_referenced = abuf->written;
1871     INT in_usereg = -1;
1872     in_usereg = FLD (in_rm);
1873     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
1874   }
1875   {
1876     int referenced = 0;
1877     unsigned long long insn_referenced = abuf->written;
1878     cycles += model_u_dmul_after (current_cpu, idesc, 2, referenced);
1879   }
1880   return cycles;
1881 #undef FLD
1882 }
1883
1884 UINT
1885 sh5_compact_sh5_model::model_dt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1886 {
1887 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
1888   const sh5_compact_scache* abuf = sem;
1889   const sh5_compact_idesc* idesc = abuf->idesc;
1890   int cycles = 0;
1891   {
1892     INT in_usereg = -1;
1893     in_usereg = FLD (in_rn);
1894     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1895   }
1896   {
1897     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
1898   }
1899   {
1900     cycles += model_u_exec_before (current_cpu, idesc, 2);
1901   }
1902   {
1903     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
1904   }
1905   return cycles;
1906 #undef FLD
1907 }
1908
1909 UINT
1910 sh5_compact_sh5_model::model_dt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1911 {
1912 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
1913   const sh5_compact_scache* abuf = sem;
1914   const sh5_compact_idesc* idesc = abuf->idesc;
1915   int cycles = 0;
1916   {
1917     int referenced = 0;
1918     unsigned long long insn_referenced = abuf->written;
1919     INT in_usereg = -1;
1920     in_usereg = FLD (in_rn);
1921     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1922   }
1923   {
1924     int referenced = 0;
1925     unsigned long long insn_referenced = abuf->written;
1926     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
1927   }
1928   {
1929     int referenced = 0;
1930     unsigned long long insn_referenced = abuf->written;
1931     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
1932   }
1933   {
1934     int referenced = 0;
1935     unsigned long long insn_referenced = abuf->written;
1936     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
1937   }
1938   return cycles;
1939 #undef FLD
1940 }
1941
1942 UINT
1943 sh5_compact_sh5_model::model_extsb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1944 {
1945 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
1946   const sh5_compact_scache* abuf = sem;
1947   const sh5_compact_idesc* idesc = abuf->idesc;
1948   int cycles = 0;
1949   {
1950     INT in_usereg = -1;
1951     in_usereg = FLD (in_rm);
1952     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
1953   }
1954   {
1955     cycles += model_u_exec_before (current_cpu, idesc, 1);
1956   }
1957   {
1958     cycles += model_u_shift_before (current_cpu, idesc, 2);
1959   }
1960   return cycles;
1961 #undef FLD
1962 }
1963
1964 UINT
1965 sh5_compact_sh5_model::model_extsb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1966 {
1967 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
1968   const sh5_compact_scache* abuf = sem;
1969   const sh5_compact_idesc* idesc = abuf->idesc;
1970   int cycles = 0;
1971   {
1972     int referenced = 0;
1973     unsigned long long insn_referenced = abuf->written;
1974     INT in_usereg = -1;
1975     in_usereg = FLD (in_rm);
1976     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
1977   }
1978   {
1979     int referenced = 0;
1980     unsigned long long insn_referenced = abuf->written;
1981     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
1982   }
1983   {
1984     int referenced = 0;
1985     unsigned long long insn_referenced = abuf->written;
1986     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
1987   }
1988   return cycles;
1989 #undef FLD
1990 }
1991
1992 UINT
1993 sh5_compact_sh5_model::model_extsw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
1994 {
1995 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
1996   const sh5_compact_scache* abuf = sem;
1997   const sh5_compact_idesc* idesc = abuf->idesc;
1998   int cycles = 0;
1999   {
2000     INT in_usereg = -1;
2001     in_usereg = FLD (in_rm);
2002     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
2003   }
2004   {
2005     cycles += model_u_exec_before (current_cpu, idesc, 1);
2006   }
2007   {
2008     cycles += model_u_shift_before (current_cpu, idesc, 2);
2009   }
2010   return cycles;
2011 #undef FLD
2012 }
2013
2014 UINT
2015 sh5_compact_sh5_model::model_extsw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2016 {
2017 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
2018   const sh5_compact_scache* abuf = sem;
2019   const sh5_compact_idesc* idesc = abuf->idesc;
2020   int cycles = 0;
2021   {
2022     int referenced = 0;
2023     unsigned long long insn_referenced = abuf->written;
2024     INT in_usereg = -1;
2025     in_usereg = FLD (in_rm);
2026     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
2027   }
2028   {
2029     int referenced = 0;
2030     unsigned long long insn_referenced = abuf->written;
2031     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2032   }
2033   {
2034     int referenced = 0;
2035     unsigned long long insn_referenced = abuf->written;
2036     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
2037   }
2038   return cycles;
2039 #undef FLD
2040 }
2041
2042 UINT
2043 sh5_compact_sh5_model::model_extub_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2044 {
2045 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
2046   const sh5_compact_scache* abuf = sem;
2047   const sh5_compact_idesc* idesc = abuf->idesc;
2048   int cycles = 0;
2049   {
2050     INT in_usereg = -1;
2051     in_usereg = FLD (in_rm);
2052     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
2053   }
2054   {
2055     cycles += model_u_exec_before (current_cpu, idesc, 1);
2056   }
2057   {
2058     cycles += model_u_shift_before (current_cpu, idesc, 2);
2059   }
2060   return cycles;
2061 #undef FLD
2062 }
2063
2064 UINT
2065 sh5_compact_sh5_model::model_extub_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2066 {
2067 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
2068   const sh5_compact_scache* abuf = sem;
2069   const sh5_compact_idesc* idesc = abuf->idesc;
2070   int cycles = 0;
2071   {
2072     int referenced = 0;
2073     unsigned long long insn_referenced = abuf->written;
2074     INT in_usereg = -1;
2075     in_usereg = FLD (in_rm);
2076     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
2077   }
2078   {
2079     int referenced = 0;
2080     unsigned long long insn_referenced = abuf->written;
2081     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2082   }
2083   {
2084     int referenced = 0;
2085     unsigned long long insn_referenced = abuf->written;
2086     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
2087   }
2088   return cycles;
2089 #undef FLD
2090 }
2091
2092 UINT
2093 sh5_compact_sh5_model::model_extuw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2094 {
2095 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
2096   const sh5_compact_scache* abuf = sem;
2097   const sh5_compact_idesc* idesc = abuf->idesc;
2098   int cycles = 0;
2099   {
2100     INT in_usereg = -1;
2101     in_usereg = FLD (in_rm);
2102     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
2103   }
2104   {
2105     cycles += model_u_exec_before (current_cpu, idesc, 1);
2106   }
2107   {
2108     cycles += model_u_shift_before (current_cpu, idesc, 2);
2109   }
2110   return cycles;
2111 #undef FLD
2112 }
2113
2114 UINT
2115 sh5_compact_sh5_model::model_extuw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2116 {
2117 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
2118   const sh5_compact_scache* abuf = sem;
2119   const sh5_compact_idesc* idesc = abuf->idesc;
2120   int cycles = 0;
2121   {
2122     int referenced = 0;
2123     unsigned long long insn_referenced = abuf->written;
2124     INT in_usereg = -1;
2125     in_usereg = FLD (in_rm);
2126     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
2127   }
2128   {
2129     int referenced = 0;
2130     unsigned long long insn_referenced = abuf->written;
2131     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2132   }
2133   {
2134     int referenced = 0;
2135     unsigned long long insn_referenced = abuf->written;
2136     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
2137   }
2138   return cycles;
2139 #undef FLD
2140 }
2141
2142 UINT
2143 sh5_compact_sh5_model::model_fabs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2144 {
2145 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2146   const sh5_compact_scache* abuf = sem;
2147   const sh5_compact_idesc* idesc = abuf->idesc;
2148   int cycles = 0;
2149   {
2150     INT in_usereg = -1;
2151     in_usereg = FLD (in_fsdn);
2152     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2153   }
2154   {
2155     cycles += model_u_exec_before (current_cpu, idesc, 1);
2156   }
2157   {
2158     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
2159   }
2160   {
2161     INT out_loadreg = -1;
2162     out_loadreg = FLD (out_fsdn);
2163     cycles += model_u_set_fr_0_before (current_cpu, idesc, 3, out_loadreg);
2164   }
2165   return cycles;
2166 #undef FLD
2167 }
2168
2169 UINT
2170 sh5_compact_sh5_model::model_fabs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2171 {
2172 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2173   const sh5_compact_scache* abuf = sem;
2174   const sh5_compact_idesc* idesc = abuf->idesc;
2175   int cycles = 0;
2176   {
2177     int referenced = 0;
2178     unsigned long long insn_referenced = abuf->written;
2179     INT in_usereg = -1;
2180     in_usereg = FLD (in_fsdn);
2181     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2182   }
2183   {
2184     int referenced = 0;
2185     unsigned long long insn_referenced = abuf->written;
2186     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2187   }
2188   {
2189     int referenced = 0;
2190     unsigned long long insn_referenced = abuf->written;
2191     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
2192   }
2193   {
2194     int referenced = 0;
2195     unsigned long long insn_referenced = abuf->written;
2196     INT out_loadreg = -1;
2197     out_loadreg = FLD (out_fsdn);
2198     cycles += model_u_set_fr_0_after (current_cpu, idesc, 3, referenced, out_loadreg);
2199   }
2200   return cycles;
2201 #undef FLD
2202 }
2203
2204 UINT
2205 sh5_compact_sh5_model::model_fadd_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2206 {
2207 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2208   const sh5_compact_scache* abuf = sem;
2209   const sh5_compact_idesc* idesc = abuf->idesc;
2210   int cycles = 0;
2211   {
2212     INT in_usereg = -1;
2213     in_usereg = FLD (in_fsdm);
2214     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2215   }
2216   {
2217     INT in_usereg = -1;
2218     in_usereg = FLD (in_fsdn);
2219     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
2220   }
2221   {
2222     cycles += model_u_exec_before (current_cpu, idesc, 2);
2223   }
2224   {
2225     cycles += model_u_fpu_before (current_cpu, idesc, 3);
2226   }
2227   {
2228     INT out_loadreg = -1;
2229     out_loadreg = FLD (out_fsdn);
2230     cycles += model_u_set_fr_before (current_cpu, idesc, 4, out_loadreg);
2231   }
2232   return cycles;
2233 #undef FLD
2234 }
2235
2236 UINT
2237 sh5_compact_sh5_model::model_fadd_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2238 {
2239 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2240   const sh5_compact_scache* abuf = sem;
2241   const sh5_compact_idesc* idesc = abuf->idesc;
2242   int cycles = 0;
2243   {
2244     int referenced = 0;
2245     unsigned long long insn_referenced = abuf->written;
2246     INT in_usereg = -1;
2247     in_usereg = FLD (in_fsdm);
2248     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2249   }
2250   {
2251     int referenced = 0;
2252     unsigned long long insn_referenced = abuf->written;
2253     INT in_usereg = -1;
2254     in_usereg = FLD (in_fsdn);
2255     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
2256   }
2257   {
2258     int referenced = 0;
2259     unsigned long long insn_referenced = abuf->written;
2260     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
2261   }
2262   {
2263     int referenced = 0;
2264     unsigned long long insn_referenced = abuf->written;
2265     cycles += model_u_fpu_after (current_cpu, idesc, 3, referenced);
2266   }
2267   {
2268     int referenced = 0;
2269     unsigned long long insn_referenced = abuf->written;
2270     INT out_loadreg = -1;
2271     out_loadreg = FLD (out_fsdn);
2272     cycles += model_u_set_fr_after (current_cpu, idesc, 4, referenced, out_loadreg);
2273   }
2274   return cycles;
2275 #undef FLD
2276 }
2277
2278 UINT
2279 sh5_compact_sh5_model::model_fcmpeq_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2280 {
2281 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2282   const sh5_compact_scache* abuf = sem;
2283   const sh5_compact_idesc* idesc = abuf->idesc;
2284   int cycles = 0;
2285   {
2286     INT in_usereg = -1;
2287     in_usereg = FLD (in_fsdm);
2288     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2289   }
2290   {
2291     INT in_usereg = -1;
2292     in_usereg = FLD (in_fsdn);
2293     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
2294   }
2295   {
2296     cycles += model_u_exec_before (current_cpu, idesc, 2);
2297   }
2298   {
2299     cycles += model_u_fcmp_before (current_cpu, idesc, 3);
2300   }
2301   {
2302     cycles += model_u_fpu_before (current_cpu, idesc, 4);
2303   }
2304   return cycles;
2305 #undef FLD
2306 }
2307
2308 UINT
2309 sh5_compact_sh5_model::model_fcmpeq_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2310 {
2311 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2312   const sh5_compact_scache* abuf = sem;
2313   const sh5_compact_idesc* idesc = abuf->idesc;
2314   int cycles = 0;
2315   {
2316     int referenced = 0;
2317     unsigned long long insn_referenced = abuf->written;
2318     INT in_usereg = -1;
2319     in_usereg = FLD (in_fsdm);
2320     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2321   }
2322   {
2323     int referenced = 0;
2324     unsigned long long insn_referenced = abuf->written;
2325     INT in_usereg = -1;
2326     in_usereg = FLD (in_fsdn);
2327     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
2328   }
2329   {
2330     int referenced = 0;
2331     unsigned long long insn_referenced = abuf->written;
2332     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
2333   }
2334   {
2335     int referenced = 0;
2336     unsigned long long insn_referenced = abuf->written;
2337     cycles += model_u_fcmp_after (current_cpu, idesc, 3, referenced);
2338   }
2339   {
2340     int referenced = 0;
2341     unsigned long long insn_referenced = abuf->written;
2342     cycles += model_u_fpu_after (current_cpu, idesc, 4, referenced);
2343   }
2344   return cycles;
2345 #undef FLD
2346 }
2347
2348 UINT
2349 sh5_compact_sh5_model::model_fcmpgt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2350 {
2351 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2352   const sh5_compact_scache* abuf = sem;
2353   const sh5_compact_idesc* idesc = abuf->idesc;
2354   int cycles = 0;
2355   {
2356     INT in_usereg = -1;
2357     in_usereg = FLD (in_fsdm);
2358     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2359   }
2360   {
2361     INT in_usereg = -1;
2362     in_usereg = FLD (in_fsdn);
2363     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
2364   }
2365   {
2366     cycles += model_u_exec_before (current_cpu, idesc, 2);
2367   }
2368   {
2369     cycles += model_u_fcmp_before (current_cpu, idesc, 3);
2370   }
2371   {
2372     cycles += model_u_fpu_before (current_cpu, idesc, 4);
2373   }
2374   return cycles;
2375 #undef FLD
2376 }
2377
2378 UINT
2379 sh5_compact_sh5_model::model_fcmpgt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2380 {
2381 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2382   const sh5_compact_scache* abuf = sem;
2383   const sh5_compact_idesc* idesc = abuf->idesc;
2384   int cycles = 0;
2385   {
2386     int referenced = 0;
2387     unsigned long long insn_referenced = abuf->written;
2388     INT in_usereg = -1;
2389     in_usereg = FLD (in_fsdm);
2390     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2391   }
2392   {
2393     int referenced = 0;
2394     unsigned long long insn_referenced = abuf->written;
2395     INT in_usereg = -1;
2396     in_usereg = FLD (in_fsdn);
2397     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
2398   }
2399   {
2400     int referenced = 0;
2401     unsigned long long insn_referenced = abuf->written;
2402     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
2403   }
2404   {
2405     int referenced = 0;
2406     unsigned long long insn_referenced = abuf->written;
2407     cycles += model_u_fcmp_after (current_cpu, idesc, 3, referenced);
2408   }
2409   {
2410     int referenced = 0;
2411     unsigned long long insn_referenced = abuf->written;
2412     cycles += model_u_fpu_after (current_cpu, idesc, 4, referenced);
2413   }
2414   return cycles;
2415 #undef FLD
2416 }
2417
2418 UINT
2419 sh5_compact_sh5_model::model_fcnvds_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2420 {
2421 #define FLD(f) abuf->fields.sfmt_fcnvds_compact.f
2422   const sh5_compact_scache* abuf = sem;
2423   const sh5_compact_idesc* idesc = abuf->idesc;
2424   int cycles = 0;
2425   {
2426     INT in_usereg = -1;
2427     in_usereg = FLD (in_drn);
2428     cycles += model_u_use_dr_before (current_cpu, idesc, 0, in_usereg);
2429   }
2430   {
2431     cycles += model_u_exec_before (current_cpu, idesc, 1);
2432   }
2433   {
2434     cycles += model_u_fcnv_before (current_cpu, idesc, 2);
2435   }
2436   {
2437     cycles += model_u_set_fpul_before (current_cpu, idesc, 3);
2438   }
2439   return cycles;
2440 #undef FLD
2441 }
2442
2443 UINT
2444 sh5_compact_sh5_model::model_fcnvds_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2445 {
2446 #define FLD(f) abuf->fields.sfmt_fcnvds_compact.f
2447   const sh5_compact_scache* abuf = sem;
2448   const sh5_compact_idesc* idesc = abuf->idesc;
2449   int cycles = 0;
2450   {
2451     int referenced = 0;
2452     unsigned long long insn_referenced = abuf->written;
2453     INT in_usereg = -1;
2454     in_usereg = FLD (in_drn);
2455     cycles += model_u_use_dr_after (current_cpu, idesc, 0, referenced, in_usereg);
2456   }
2457   {
2458     int referenced = 0;
2459     unsigned long long insn_referenced = abuf->written;
2460     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2461   }
2462   {
2463     int referenced = 0;
2464     unsigned long long insn_referenced = abuf->written;
2465     cycles += model_u_fcnv_after (current_cpu, idesc, 2, referenced);
2466   }
2467   {
2468     int referenced = 0;
2469     unsigned long long insn_referenced = abuf->written;
2470     cycles += model_u_set_fpul_after (current_cpu, idesc, 3, referenced);
2471   }
2472   return cycles;
2473 #undef FLD
2474 }
2475
2476 UINT
2477 sh5_compact_sh5_model::model_fcnvsd_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2478 {
2479 #define FLD(f) abuf->fields.sfmt_fcnvsd_compact.f
2480   const sh5_compact_scache* abuf = sem;
2481   const sh5_compact_idesc* idesc = abuf->idesc;
2482   int cycles = 0;
2483   {
2484     cycles += model_u_use_fpul_before (current_cpu, idesc, 0);
2485   }
2486   {
2487     cycles += model_u_exec_before (current_cpu, idesc, 1);
2488   }
2489   {
2490     cycles += model_u_fcnv_before (current_cpu, idesc, 2);
2491   }
2492   {
2493     INT out_loadreg = -1;
2494     out_loadreg = FLD (out_drn);
2495     cycles += model_u_set_dr_before (current_cpu, idesc, 3, out_loadreg);
2496   }
2497   return cycles;
2498 #undef FLD
2499 }
2500
2501 UINT
2502 sh5_compact_sh5_model::model_fcnvsd_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2503 {
2504 #define FLD(f) abuf->fields.sfmt_fcnvsd_compact.f
2505   const sh5_compact_scache* abuf = sem;
2506   const sh5_compact_idesc* idesc = abuf->idesc;
2507   int cycles = 0;
2508   {
2509     int referenced = 0;
2510     unsigned long long insn_referenced = abuf->written;
2511     cycles += model_u_use_fpul_after (current_cpu, idesc, 0, referenced);
2512   }
2513   {
2514     int referenced = 0;
2515     unsigned long long insn_referenced = abuf->written;
2516     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2517   }
2518   {
2519     int referenced = 0;
2520     unsigned long long insn_referenced = abuf->written;
2521     cycles += model_u_fcnv_after (current_cpu, idesc, 2, referenced);
2522   }
2523   {
2524     int referenced = 0;
2525     unsigned long long insn_referenced = abuf->written;
2526     INT out_loadreg = -1;
2527     out_loadreg = FLD (out_drn);
2528     cycles += model_u_set_dr_after (current_cpu, idesc, 3, referenced, out_loadreg);
2529   }
2530   return cycles;
2531 #undef FLD
2532 }
2533
2534 UINT
2535 sh5_compact_sh5_model::model_fdiv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2536 {
2537 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2538   const sh5_compact_scache* abuf = sem;
2539   const sh5_compact_idesc* idesc = abuf->idesc;
2540   int cycles = 0;
2541   {
2542     INT in_usereg = -1;
2543     in_usereg = FLD (in_fsdm);
2544     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2545   }
2546   {
2547     INT in_usereg = -1;
2548     in_usereg = FLD (in_fsdn);
2549     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
2550   }
2551   {
2552     cycles += model_u_exec_before (current_cpu, idesc, 2);
2553   }
2554   {
2555     INT out_loadreg = -1;
2556     out_loadreg = FLD (out_fsdn);
2557     cycles += model_u_fdiv_before (current_cpu, idesc, 3, out_loadreg);
2558   }
2559   return cycles;
2560 #undef FLD
2561 }
2562
2563 UINT
2564 sh5_compact_sh5_model::model_fdiv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2565 {
2566 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
2567   const sh5_compact_scache* abuf = sem;
2568   const sh5_compact_idesc* idesc = abuf->idesc;
2569   int cycles = 0;
2570   {
2571     int referenced = 0;
2572     unsigned long long insn_referenced = abuf->written;
2573     INT in_usereg = -1;
2574     in_usereg = FLD (in_fsdm);
2575     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2576   }
2577   {
2578     int referenced = 0;
2579     unsigned long long insn_referenced = abuf->written;
2580     INT in_usereg = -1;
2581     in_usereg = FLD (in_fsdn);
2582     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
2583   }
2584   {
2585     int referenced = 0;
2586     unsigned long long insn_referenced = abuf->written;
2587     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
2588   }
2589   {
2590     int referenced = 0;
2591     unsigned long long insn_referenced = abuf->written;
2592     INT out_loadreg = -1;
2593     out_loadreg = FLD (out_fsdn);
2594     cycles += model_u_fdiv_after (current_cpu, idesc, 3, referenced, out_loadreg);
2595   }
2596   return cycles;
2597 #undef FLD
2598 }
2599
2600 UINT
2601 sh5_compact_sh5_model::model_fipr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2602 {
2603 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
2604   const sh5_compact_scache* abuf = sem;
2605   const sh5_compact_idesc* idesc = abuf->idesc;
2606   int cycles = 0;
2607   {
2608     cycles += model_u_exec_before (current_cpu, idesc, 0);
2609   }
2610   {
2611     INT in_fvm = -1;
2612     INT in_fvn = -1;
2613     cycles += model_u_fipr_before (current_cpu, idesc, 1, in_fvm, in_fvn);
2614   }
2615   return cycles;
2616 #undef FLD
2617 }
2618
2619 UINT
2620 sh5_compact_sh5_model::model_fipr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2621 {
2622 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
2623   const sh5_compact_scache* abuf = sem;
2624   const sh5_compact_idesc* idesc = abuf->idesc;
2625   int cycles = 0;
2626   {
2627     int referenced = 0;
2628     unsigned long long insn_referenced = abuf->written;
2629     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
2630   }
2631   {
2632     int referenced = 0;
2633     unsigned long long insn_referenced = abuf->written;
2634     INT in_fvm = -1;
2635     INT in_fvn = -1;
2636     cycles += model_u_fipr_after (current_cpu, idesc, 1, referenced, in_fvm, in_fvn);
2637   }
2638   return cycles;
2639 #undef FLD
2640 }
2641
2642 UINT
2643 sh5_compact_sh5_model::model_flds_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2644 {
2645 #define FLD(f) abuf->fields.sfmt_flds_compact.f
2646   const sh5_compact_scache* abuf = sem;
2647   const sh5_compact_idesc* idesc = abuf->idesc;
2648   int cycles = 0;
2649   {
2650     INT in_usereg = -1;
2651     in_usereg = FLD (in_frn);
2652     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2653   }
2654   {
2655     cycles += model_u_exec_before (current_cpu, idesc, 1);
2656   }
2657   {
2658     cycles += model_u_flds_fpul_before (current_cpu, idesc, 2);
2659   }
2660   return cycles;
2661 #undef FLD
2662 }
2663
2664 UINT
2665 sh5_compact_sh5_model::model_flds_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2666 {
2667 #define FLD(f) abuf->fields.sfmt_flds_compact.f
2668   const sh5_compact_scache* abuf = sem;
2669   const sh5_compact_idesc* idesc = abuf->idesc;
2670   int cycles = 0;
2671   {
2672     int referenced = 0;
2673     unsigned long long insn_referenced = abuf->written;
2674     INT in_usereg = -1;
2675     in_usereg = FLD (in_frn);
2676     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2677   }
2678   {
2679     int referenced = 0;
2680     unsigned long long insn_referenced = abuf->written;
2681     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2682   }
2683   {
2684     int referenced = 0;
2685     unsigned long long insn_referenced = abuf->written;
2686     cycles += model_u_flds_fpul_after (current_cpu, idesc, 2, referenced);
2687   }
2688   return cycles;
2689 #undef FLD
2690 }
2691
2692 UINT
2693 sh5_compact_sh5_model::model_fldi0_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2694 {
2695 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
2696   const sh5_compact_scache* abuf = sem;
2697   const sh5_compact_idesc* idesc = abuf->idesc;
2698   int cycles = 0;
2699   {
2700     cycles += model_u_exec_before (current_cpu, idesc, 0);
2701   }
2702   {
2703     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 1);
2704   }
2705   {
2706     INT out_loadreg = -1;
2707     out_loadreg = FLD (out_frn);
2708     cycles += model_u_set_fr_0_before (current_cpu, idesc, 2, out_loadreg);
2709   }
2710   return cycles;
2711 #undef FLD
2712 }
2713
2714 UINT
2715 sh5_compact_sh5_model::model_fldi0_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2716 {
2717 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
2718   const sh5_compact_scache* abuf = sem;
2719   const sh5_compact_idesc* idesc = abuf->idesc;
2720   int cycles = 0;
2721   {
2722     int referenced = 0;
2723     unsigned long long insn_referenced = abuf->written;
2724     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
2725   }
2726   {
2727     int referenced = 0;
2728     unsigned long long insn_referenced = abuf->written;
2729     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 1, referenced);
2730   }
2731   {
2732     int referenced = 0;
2733     unsigned long long insn_referenced = abuf->written;
2734     INT out_loadreg = -1;
2735     out_loadreg = FLD (out_frn);
2736     cycles += model_u_set_fr_0_after (current_cpu, idesc, 2, referenced, out_loadreg);
2737   }
2738   return cycles;
2739 #undef FLD
2740 }
2741
2742 UINT
2743 sh5_compact_sh5_model::model_fldi1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2744 {
2745 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
2746   const sh5_compact_scache* abuf = sem;
2747   const sh5_compact_idesc* idesc = abuf->idesc;
2748   int cycles = 0;
2749   {
2750     cycles += model_u_exec_before (current_cpu, idesc, 0);
2751   }
2752   {
2753     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 1);
2754   }
2755   {
2756     INT out_loadreg = -1;
2757     out_loadreg = FLD (out_frn);
2758     cycles += model_u_set_fr_0_before (current_cpu, idesc, 2, out_loadreg);
2759   }
2760   return cycles;
2761 #undef FLD
2762 }
2763
2764 UINT
2765 sh5_compact_sh5_model::model_fldi1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2766 {
2767 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
2768   const sh5_compact_scache* abuf = sem;
2769   const sh5_compact_idesc* idesc = abuf->idesc;
2770   int cycles = 0;
2771   {
2772     int referenced = 0;
2773     unsigned long long insn_referenced = abuf->written;
2774     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
2775   }
2776   {
2777     int referenced = 0;
2778     unsigned long long insn_referenced = abuf->written;
2779     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 1, referenced);
2780   }
2781   {
2782     int referenced = 0;
2783     unsigned long long insn_referenced = abuf->written;
2784     INT out_loadreg = -1;
2785     out_loadreg = FLD (out_frn);
2786     cycles += model_u_set_fr_0_after (current_cpu, idesc, 2, referenced, out_loadreg);
2787   }
2788   return cycles;
2789 #undef FLD
2790 }
2791
2792 UINT
2793 sh5_compact_sh5_model::model_float_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2794 {
2795 #define FLD(f) abuf->fields.sfmt_float_compact.f
2796   const sh5_compact_scache* abuf = sem;
2797   const sh5_compact_idesc* idesc = abuf->idesc;
2798   int cycles = 0;
2799   {
2800     cycles += model_u_use_fpul_before (current_cpu, idesc, 0);
2801   }
2802   {
2803     cycles += model_u_exec_before (current_cpu, idesc, 1);
2804   }
2805   {
2806     cycles += model_u_fpu_before (current_cpu, idesc, 2);
2807   }
2808   {
2809     INT out_loadreg = -1;
2810     out_loadreg = FLD (out_fsdn);
2811     cycles += model_u_set_fr_before (current_cpu, idesc, 3, out_loadreg);
2812   }
2813   return cycles;
2814 #undef FLD
2815 }
2816
2817 UINT
2818 sh5_compact_sh5_model::model_float_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2819 {
2820 #define FLD(f) abuf->fields.sfmt_float_compact.f
2821   const sh5_compact_scache* abuf = sem;
2822   const sh5_compact_idesc* idesc = abuf->idesc;
2823   int cycles = 0;
2824   {
2825     int referenced = 0;
2826     unsigned long long insn_referenced = abuf->written;
2827     cycles += model_u_use_fpul_after (current_cpu, idesc, 0, referenced);
2828   }
2829   {
2830     int referenced = 0;
2831     unsigned long long insn_referenced = abuf->written;
2832     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2833   }
2834   {
2835     int referenced = 0;
2836     unsigned long long insn_referenced = abuf->written;
2837     cycles += model_u_fpu_after (current_cpu, idesc, 2, referenced);
2838   }
2839   {
2840     int referenced = 0;
2841     unsigned long long insn_referenced = abuf->written;
2842     INT out_loadreg = -1;
2843     out_loadreg = FLD (out_fsdn);
2844     cycles += model_u_set_fr_after (current_cpu, idesc, 3, referenced, out_loadreg);
2845   }
2846   return cycles;
2847 #undef FLD
2848 }
2849
2850 UINT
2851 sh5_compact_sh5_model::model_fmac_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2852 {
2853 #define FLD(f) abuf->fields.sfmt_fmac_compact.f
2854   const sh5_compact_scache* abuf = sem;
2855   const sh5_compact_idesc* idesc = abuf->idesc;
2856   int cycles = 0;
2857   {
2858     INT in_usereg = -1;
2859     in_usereg = FLD (in_frm);
2860     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2861   }
2862   {
2863     INT in_usereg = -1;
2864     in_usereg = FLD (in_frn);
2865     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
2866   }
2867   {
2868     INT in_usereg = -1;
2869     in_usereg = FLD (in_fr0);
2870     cycles += model_u_use_fr_before (current_cpu, idesc, 2, in_usereg);
2871   }
2872   {
2873     cycles += model_u_exec_before (current_cpu, idesc, 3);
2874   }
2875   {
2876     cycles += model_u_fpu_before (current_cpu, idesc, 4);
2877   }
2878   {
2879     INT out_loadreg = -1;
2880     out_loadreg = FLD (out_frn);
2881     cycles += model_u_set_fr_before (current_cpu, idesc, 5, out_loadreg);
2882   }
2883   return cycles;
2884 #undef FLD
2885 }
2886
2887 UINT
2888 sh5_compact_sh5_model::model_fmac_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2889 {
2890 #define FLD(f) abuf->fields.sfmt_fmac_compact.f
2891   const sh5_compact_scache* abuf = sem;
2892   const sh5_compact_idesc* idesc = abuf->idesc;
2893   int cycles = 0;
2894   {
2895     int referenced = 0;
2896     unsigned long long insn_referenced = abuf->written;
2897     INT in_usereg = -1;
2898     in_usereg = FLD (in_frm);
2899     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2900   }
2901   {
2902     int referenced = 0;
2903     unsigned long long insn_referenced = abuf->written;
2904     INT in_usereg = -1;
2905     in_usereg = FLD (in_frn);
2906     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
2907   }
2908   {
2909     int referenced = 0;
2910     unsigned long long insn_referenced = abuf->written;
2911     INT in_usereg = -1;
2912     in_usereg = FLD (in_fr0);
2913     cycles += model_u_use_fr_after (current_cpu, idesc, 2, referenced, in_usereg);
2914   }
2915   {
2916     int referenced = 0;
2917     unsigned long long insn_referenced = abuf->written;
2918     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
2919   }
2920   {
2921     int referenced = 0;
2922     unsigned long long insn_referenced = abuf->written;
2923     cycles += model_u_fpu_after (current_cpu, idesc, 4, referenced);
2924   }
2925   {
2926     int referenced = 0;
2927     unsigned long long insn_referenced = abuf->written;
2928     INT out_loadreg = -1;
2929     out_loadreg = FLD (out_frn);
2930     cycles += model_u_set_fr_after (current_cpu, idesc, 5, referenced, out_loadreg);
2931   }
2932   return cycles;
2933 #undef FLD
2934 }
2935
2936 UINT
2937 sh5_compact_sh5_model::model_fmov1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2938 {
2939 #define FLD(f) abuf->fields.sfmt_fmov1_compact.f
2940   const sh5_compact_scache* abuf = sem;
2941   const sh5_compact_idesc* idesc = abuf->idesc;
2942   int cycles = 0;
2943   {
2944     INT in_usereg = -1;
2945     in_usereg = FLD (in_fmovm);
2946     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
2947   }
2948   {
2949     cycles += model_u_exec_before (current_cpu, idesc, 1);
2950   }
2951   {
2952     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
2953   }
2954   {
2955     INT out_loadreg = -1;
2956     out_loadreg = FLD (out_fmovn);
2957     cycles += model_u_set_fr_0_before (current_cpu, idesc, 3, out_loadreg);
2958   }
2959   return cycles;
2960 #undef FLD
2961 }
2962
2963 UINT
2964 sh5_compact_sh5_model::model_fmov1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
2965 {
2966 #define FLD(f) abuf->fields.sfmt_fmov1_compact.f
2967   const sh5_compact_scache* abuf = sem;
2968   const sh5_compact_idesc* idesc = abuf->idesc;
2969   int cycles = 0;
2970   {
2971     int referenced = 0;
2972     unsigned long long insn_referenced = abuf->written;
2973     INT in_usereg = -1;
2974     in_usereg = FLD (in_fmovm);
2975     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
2976   }
2977   {
2978     int referenced = 0;
2979     unsigned long long insn_referenced = abuf->written;
2980     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
2981   }
2982   {
2983     int referenced = 0;
2984     unsigned long long insn_referenced = abuf->written;
2985     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
2986   }
2987   {
2988     int referenced = 0;
2989     unsigned long long insn_referenced = abuf->written;
2990     INT out_loadreg = -1;
2991     out_loadreg = FLD (out_fmovn);
2992     cycles += model_u_set_fr_0_after (current_cpu, idesc, 3, referenced, out_loadreg);
2993   }
2994   return cycles;
2995 #undef FLD
2996 }
2997
2998 UINT
2999 sh5_compact_sh5_model::model_fmov2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3000 {
3001 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
3002   const sh5_compact_scache* abuf = sem;
3003   const sh5_compact_idesc* idesc = abuf->idesc;
3004   int cycles = 0;
3005   {
3006     INT in_usereg = -1;
3007     in_usereg = FLD (in_rm);
3008     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
3009   }
3010   {
3011     cycles += model_u_exec_before (current_cpu, idesc, 1);
3012   }
3013   {
3014     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
3015   }
3016   {
3017     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
3018   }
3019   {
3020     INT out_loadreg = -1;
3021     out_loadreg = FLD (out_fmovn);
3022     cycles += model_u_load_fr_before (current_cpu, idesc, 4, out_loadreg);
3023   }
3024   return cycles;
3025 #undef FLD
3026 }
3027
3028 UINT
3029 sh5_compact_sh5_model::model_fmov2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3030 {
3031 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
3032   const sh5_compact_scache* abuf = sem;
3033   const sh5_compact_idesc* idesc = abuf->idesc;
3034   int cycles = 0;
3035   {
3036     int referenced = 0;
3037     unsigned long long insn_referenced = abuf->written;
3038     INT in_usereg = -1;
3039     in_usereg = FLD (in_rm);
3040     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
3041   }
3042   {
3043     int referenced = 0;
3044     unsigned long long insn_referenced = abuf->written;
3045     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3046   }
3047   {
3048     int referenced = 0;
3049     unsigned long long insn_referenced = abuf->written;
3050     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
3051   }
3052   {
3053     int referenced = 0;
3054     unsigned long long insn_referenced = abuf->written;
3055     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
3056   }
3057   {
3058     int referenced = 0;
3059     unsigned long long insn_referenced = abuf->written;
3060     INT out_loadreg = -1;
3061     out_loadreg = FLD (out_fmovn);
3062     cycles += model_u_load_fr_after (current_cpu, idesc, 4, referenced, out_loadreg);
3063   }
3064   return cycles;
3065 #undef FLD
3066 }
3067
3068 UINT
3069 sh5_compact_sh5_model::model_fmov3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3070 {
3071 #define FLD(f) abuf->fields.sfmt_fmov3_compact.f
3072   const sh5_compact_scache* abuf = sem;
3073   const sh5_compact_idesc* idesc = abuf->idesc;
3074   int cycles = 0;
3075   {
3076     INT in_usereg = -1;
3077     in_usereg = FLD (in_rm);
3078     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
3079   }
3080   {
3081     cycles += model_u_exec_before (current_cpu, idesc, 1);
3082   }
3083   {
3084     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
3085   }
3086   {
3087     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
3088   }
3089   {
3090     INT out_loadreg = -1;
3091     out_loadreg = FLD (out_fmovn);
3092     cycles += model_u_load_fr_before (current_cpu, idesc, 4, out_loadreg);
3093   }
3094   return cycles;
3095 #undef FLD
3096 }
3097
3098 UINT
3099 sh5_compact_sh5_model::model_fmov3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3100 {
3101 #define FLD(f) abuf->fields.sfmt_fmov3_compact.f
3102   const sh5_compact_scache* abuf = sem;
3103   const sh5_compact_idesc* idesc = abuf->idesc;
3104   int cycles = 0;
3105   {
3106     int referenced = 0;
3107     unsigned long long insn_referenced = abuf->written;
3108     INT in_usereg = -1;
3109     in_usereg = FLD (in_rm);
3110     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
3111   }
3112   {
3113     int referenced = 0;
3114     unsigned long long insn_referenced = abuf->written;
3115     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3116   }
3117   {
3118     int referenced = 0;
3119     unsigned long long insn_referenced = abuf->written;
3120     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
3121   }
3122   {
3123     int referenced = 0;
3124     unsigned long long insn_referenced = abuf->written;
3125     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
3126   }
3127   {
3128     int referenced = 0;
3129     unsigned long long insn_referenced = abuf->written;
3130     INT out_loadreg = -1;
3131     out_loadreg = FLD (out_fmovn);
3132     cycles += model_u_load_fr_after (current_cpu, idesc, 4, referenced, out_loadreg);
3133   }
3134   return cycles;
3135 #undef FLD
3136 }
3137
3138 UINT
3139 sh5_compact_sh5_model::model_fmov4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3140 {
3141 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
3142   const sh5_compact_scache* abuf = sem;
3143   const sh5_compact_idesc* idesc = abuf->idesc;
3144   int cycles = 0;
3145   {
3146     INT in_usereg = -1;
3147     in_usereg = FLD (in_rm);
3148     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
3149   }
3150   {
3151     INT in_usereg = -1;
3152     in_usereg = FLD (in_r0);
3153     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
3154   }
3155   {
3156     cycles += model_u_exec_before (current_cpu, idesc, 2);
3157   }
3158   {
3159     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 3);
3160   }
3161   {
3162     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 4);
3163   }
3164   {
3165     INT out_loadreg = -1;
3166     out_loadreg = FLD (out_fmovn);
3167     cycles += model_u_load_fr_before (current_cpu, idesc, 5, out_loadreg);
3168   }
3169   return cycles;
3170 #undef FLD
3171 }
3172
3173 UINT
3174 sh5_compact_sh5_model::model_fmov4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3175 {
3176 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
3177   const sh5_compact_scache* abuf = sem;
3178   const sh5_compact_idesc* idesc = abuf->idesc;
3179   int cycles = 0;
3180   {
3181     int referenced = 0;
3182     unsigned long long insn_referenced = abuf->written;
3183     INT in_usereg = -1;
3184     in_usereg = FLD (in_rm);
3185     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
3186   }
3187   {
3188     int referenced = 0;
3189     unsigned long long insn_referenced = abuf->written;
3190     INT in_usereg = -1;
3191     in_usereg = FLD (in_r0);
3192     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
3193   }
3194   {
3195     int referenced = 0;
3196     unsigned long long insn_referenced = abuf->written;
3197     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
3198   }
3199   {
3200     int referenced = 0;
3201     unsigned long long insn_referenced = abuf->written;
3202     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 3, referenced);
3203   }
3204   {
3205     int referenced = 0;
3206     unsigned long long insn_referenced = abuf->written;
3207     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 4, referenced);
3208   }
3209   {
3210     int referenced = 0;
3211     unsigned long long insn_referenced = abuf->written;
3212     INT out_loadreg = -1;
3213     out_loadreg = FLD (out_fmovn);
3214     cycles += model_u_load_fr_after (current_cpu, idesc, 5, referenced, out_loadreg);
3215   }
3216   return cycles;
3217 #undef FLD
3218 }
3219
3220 UINT
3221 sh5_compact_sh5_model::model_fmov5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3222 {
3223 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
3224   const sh5_compact_scache* abuf = sem;
3225   const sh5_compact_idesc* idesc = abuf->idesc;
3226   int cycles = 0;
3227   {
3228     INT in_usereg = -1;
3229     in_usereg = FLD (in_fmovm);
3230     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3231   }
3232   {
3233     INT in_usereg = -1;
3234     in_usereg = FLD (in_rn);
3235     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
3236   }
3237   {
3238     cycles += model_u_exec_before (current_cpu, idesc, 2);
3239   }
3240   {
3241     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 3);
3242   }
3243   {
3244     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 4);
3245   }
3246   return cycles;
3247 #undef FLD
3248 }
3249
3250 UINT
3251 sh5_compact_sh5_model::model_fmov5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3252 {
3253 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
3254   const sh5_compact_scache* abuf = sem;
3255   const sh5_compact_idesc* idesc = abuf->idesc;
3256   int cycles = 0;
3257   {
3258     int referenced = 0;
3259     unsigned long long insn_referenced = abuf->written;
3260     INT in_usereg = -1;
3261     in_usereg = FLD (in_fmovm);
3262     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3263   }
3264   {
3265     int referenced = 0;
3266     unsigned long long insn_referenced = abuf->written;
3267     INT in_usereg = -1;
3268     in_usereg = FLD (in_rn);
3269     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
3270   }
3271   {
3272     int referenced = 0;
3273     unsigned long long insn_referenced = abuf->written;
3274     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
3275   }
3276   {
3277     int referenced = 0;
3278     unsigned long long insn_referenced = abuf->written;
3279     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 3, referenced);
3280   }
3281   {
3282     int referenced = 0;
3283     unsigned long long insn_referenced = abuf->written;
3284     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 4, referenced);
3285   }
3286   return cycles;
3287 #undef FLD
3288 }
3289
3290 UINT
3291 sh5_compact_sh5_model::model_fmov6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3292 {
3293 #define FLD(f) abuf->fields.sfmt_fmov6_compact.f
3294   const sh5_compact_scache* abuf = sem;
3295   const sh5_compact_idesc* idesc = abuf->idesc;
3296   int cycles = 0;
3297   {
3298     INT in_usereg = -1;
3299     in_usereg = FLD (in_fmovm);
3300     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3301   }
3302   {
3303     INT in_usereg = -1;
3304     in_usereg = FLD (in_rn);
3305     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
3306   }
3307   {
3308     cycles += model_u_exec_before (current_cpu, idesc, 2);
3309   }
3310   {
3311     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 3);
3312   }
3313   {
3314     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 4);
3315   }
3316   return cycles;
3317 #undef FLD
3318 }
3319
3320 UINT
3321 sh5_compact_sh5_model::model_fmov6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3322 {
3323 #define FLD(f) abuf->fields.sfmt_fmov6_compact.f
3324   const sh5_compact_scache* abuf = sem;
3325   const sh5_compact_idesc* idesc = abuf->idesc;
3326   int cycles = 0;
3327   {
3328     int referenced = 0;
3329     unsigned long long insn_referenced = abuf->written;
3330     INT in_usereg = -1;
3331     in_usereg = FLD (in_fmovm);
3332     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3333   }
3334   {
3335     int referenced = 0;
3336     unsigned long long insn_referenced = abuf->written;
3337     INT in_usereg = -1;
3338     in_usereg = FLD (in_rn);
3339     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
3340   }
3341   {
3342     int referenced = 0;
3343     unsigned long long insn_referenced = abuf->written;
3344     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
3345   }
3346   {
3347     int referenced = 0;
3348     unsigned long long insn_referenced = abuf->written;
3349     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 3, referenced);
3350   }
3351   {
3352     int referenced = 0;
3353     unsigned long long insn_referenced = abuf->written;
3354     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 4, referenced);
3355   }
3356   return cycles;
3357 #undef FLD
3358 }
3359
3360 UINT
3361 sh5_compact_sh5_model::model_fmov7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3362 {
3363 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
3364   const sh5_compact_scache* abuf = sem;
3365   const sh5_compact_idesc* idesc = abuf->idesc;
3366   int cycles = 0;
3367   {
3368     INT in_usereg = -1;
3369     in_usereg = FLD (in_fmovm);
3370     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3371   }
3372   {
3373     INT in_usereg = -1;
3374     in_usereg = FLD (in_rn);
3375     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
3376   }
3377   {
3378     INT in_usereg = -1;
3379     in_usereg = FLD (in_r0);
3380     cycles += model_u_use_gr_before (current_cpu, idesc, 2, in_usereg);
3381   }
3382   {
3383     cycles += model_u_exec_before (current_cpu, idesc, 3);
3384   }
3385   {
3386     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 4);
3387   }
3388   {
3389     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 5);
3390   }
3391   return cycles;
3392 #undef FLD
3393 }
3394
3395 UINT
3396 sh5_compact_sh5_model::model_fmov7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3397 {
3398 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
3399   const sh5_compact_scache* abuf = sem;
3400   const sh5_compact_idesc* idesc = abuf->idesc;
3401   int cycles = 0;
3402   {
3403     int referenced = 0;
3404     unsigned long long insn_referenced = abuf->written;
3405     INT in_usereg = -1;
3406     in_usereg = FLD (in_fmovm);
3407     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3408   }
3409   {
3410     int referenced = 0;
3411     unsigned long long insn_referenced = abuf->written;
3412     INT in_usereg = -1;
3413     in_usereg = FLD (in_rn);
3414     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
3415   }
3416   {
3417     int referenced = 0;
3418     unsigned long long insn_referenced = abuf->written;
3419     INT in_usereg = -1;
3420     in_usereg = FLD (in_r0);
3421     cycles += model_u_use_gr_after (current_cpu, idesc, 2, referenced, in_usereg);
3422   }
3423   {
3424     int referenced = 0;
3425     unsigned long long insn_referenced = abuf->written;
3426     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
3427   }
3428   {
3429     int referenced = 0;
3430     unsigned long long insn_referenced = abuf->written;
3431     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 4, referenced);
3432   }
3433   {
3434     int referenced = 0;
3435     unsigned long long insn_referenced = abuf->written;
3436     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 5, referenced);
3437   }
3438   return cycles;
3439 #undef FLD
3440 }
3441
3442 UINT
3443 sh5_compact_sh5_model::model_fmov8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3444 {
3445 #define FLD(f) abuf->fields.sfmt_fmov8_compact.f
3446   const sh5_compact_scache* abuf = sem;
3447   const sh5_compact_idesc* idesc = abuf->idesc;
3448   int cycles = 0;
3449   {
3450     INT in_usereg = -1;
3451     in_usereg = FLD (in_rm);
3452     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
3453   }
3454   {
3455     cycles += model_u_exec_before (current_cpu, idesc, 1);
3456   }
3457   {
3458     cycles += model_u_fpu_before (current_cpu, idesc, 2);
3459   }
3460   {
3461     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
3462   }
3463   {
3464     INT out_loadreg = -1;
3465     out_loadreg = FLD (out_drn);
3466     cycles += model_u_load_dr_before (current_cpu, idesc, 4, out_loadreg);
3467   }
3468   return cycles;
3469 #undef FLD
3470 }
3471
3472 UINT
3473 sh5_compact_sh5_model::model_fmov8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3474 {
3475 #define FLD(f) abuf->fields.sfmt_fmov8_compact.f
3476   const sh5_compact_scache* abuf = sem;
3477   const sh5_compact_idesc* idesc = abuf->idesc;
3478   int cycles = 0;
3479   {
3480     int referenced = 0;
3481     unsigned long long insn_referenced = abuf->written;
3482     INT in_usereg = -1;
3483     in_usereg = FLD (in_rm);
3484     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
3485   }
3486   {
3487     int referenced = 0;
3488     unsigned long long insn_referenced = abuf->written;
3489     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3490   }
3491   {
3492     int referenced = 0;
3493     unsigned long long insn_referenced = abuf->written;
3494     cycles += model_u_fpu_after (current_cpu, idesc, 2, referenced);
3495   }
3496   {
3497     int referenced = 0;
3498     unsigned long long insn_referenced = abuf->written;
3499     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
3500   }
3501   {
3502     int referenced = 0;
3503     unsigned long long insn_referenced = abuf->written;
3504     INT out_loadreg = -1;
3505     out_loadreg = FLD (out_drn);
3506     cycles += model_u_load_dr_after (current_cpu, idesc, 4, referenced, out_loadreg);
3507   }
3508   return cycles;
3509 #undef FLD
3510 }
3511
3512 UINT
3513 sh5_compact_sh5_model::model_fmov9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3514 {
3515 #define FLD(f) abuf->fields.sfmt_fmov9_compact.f
3516   const sh5_compact_scache* abuf = sem;
3517   const sh5_compact_idesc* idesc = abuf->idesc;
3518   int cycles = 0;
3519   {
3520     INT in_usereg = -1;
3521     in_usereg = FLD (in_drm);
3522     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3523   }
3524   {
3525     cycles += model_u_exec_before (current_cpu, idesc, 1);
3526   }
3527   {
3528     cycles += model_u_fpu_before (current_cpu, idesc, 2);
3529   }
3530   {
3531     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
3532   }
3533   return cycles;
3534 #undef FLD
3535 }
3536
3537 UINT
3538 sh5_compact_sh5_model::model_fmov9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3539 {
3540 #define FLD(f) abuf->fields.sfmt_fmov9_compact.f
3541   const sh5_compact_scache* abuf = sem;
3542   const sh5_compact_idesc* idesc = abuf->idesc;
3543   int cycles = 0;
3544   {
3545     int referenced = 0;
3546     unsigned long long insn_referenced = abuf->written;
3547     INT in_usereg = -1;
3548     in_usereg = FLD (in_drm);
3549     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3550   }
3551   {
3552     int referenced = 0;
3553     unsigned long long insn_referenced = abuf->written;
3554     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3555   }
3556   {
3557     int referenced = 0;
3558     unsigned long long insn_referenced = abuf->written;
3559     cycles += model_u_fpu_after (current_cpu, idesc, 2, referenced);
3560   }
3561   {
3562     int referenced = 0;
3563     unsigned long long insn_referenced = abuf->written;
3564     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
3565   }
3566   return cycles;
3567 #undef FLD
3568 }
3569
3570 UINT
3571 sh5_compact_sh5_model::model_fmul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3572 {
3573 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3574   const sh5_compact_scache* abuf = sem;
3575   const sh5_compact_idesc* idesc = abuf->idesc;
3576   int cycles = 0;
3577   {
3578     INT in_usereg = -1;
3579     in_usereg = FLD (in_fsdm);
3580     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3581   }
3582   {
3583     INT in_usereg = -1;
3584     in_usereg = FLD (in_fsdn);
3585     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
3586   }
3587   {
3588     cycles += model_u_exec_before (current_cpu, idesc, 2);
3589   }
3590   {
3591     cycles += model_u_fpu_before (current_cpu, idesc, 3);
3592   }
3593   {
3594     INT out_loadreg = -1;
3595     out_loadreg = FLD (out_fsdn);
3596     cycles += model_u_set_fr_before (current_cpu, idesc, 4, out_loadreg);
3597   }
3598   return cycles;
3599 #undef FLD
3600 }
3601
3602 UINT
3603 sh5_compact_sh5_model::model_fmul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3604 {
3605 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3606   const sh5_compact_scache* abuf = sem;
3607   const sh5_compact_idesc* idesc = abuf->idesc;
3608   int cycles = 0;
3609   {
3610     int referenced = 0;
3611     unsigned long long insn_referenced = abuf->written;
3612     INT in_usereg = -1;
3613     in_usereg = FLD (in_fsdm);
3614     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3615   }
3616   {
3617     int referenced = 0;
3618     unsigned long long insn_referenced = abuf->written;
3619     INT in_usereg = -1;
3620     in_usereg = FLD (in_fsdn);
3621     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
3622   }
3623   {
3624     int referenced = 0;
3625     unsigned long long insn_referenced = abuf->written;
3626     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
3627   }
3628   {
3629     int referenced = 0;
3630     unsigned long long insn_referenced = abuf->written;
3631     cycles += model_u_fpu_after (current_cpu, idesc, 3, referenced);
3632   }
3633   {
3634     int referenced = 0;
3635     unsigned long long insn_referenced = abuf->written;
3636     INT out_loadreg = -1;
3637     out_loadreg = FLD (out_fsdn);
3638     cycles += model_u_set_fr_after (current_cpu, idesc, 4, referenced, out_loadreg);
3639   }
3640   return cycles;
3641 #undef FLD
3642 }
3643
3644 UINT
3645 sh5_compact_sh5_model::model_fneg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3646 {
3647 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3648   const sh5_compact_scache* abuf = sem;
3649   const sh5_compact_idesc* idesc = abuf->idesc;
3650   int cycles = 0;
3651   {
3652     INT in_usereg = -1;
3653     in_usereg = FLD (in_fsdn);
3654     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3655   }
3656   {
3657     cycles += model_u_exec_before (current_cpu, idesc, 1);
3658   }
3659   {
3660     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
3661   }
3662   {
3663     INT out_loadreg = -1;
3664     out_loadreg = FLD (out_fsdn);
3665     cycles += model_u_set_fr_0_before (current_cpu, idesc, 3, out_loadreg);
3666   }
3667   return cycles;
3668 #undef FLD
3669 }
3670
3671 UINT
3672 sh5_compact_sh5_model::model_fneg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3673 {
3674 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3675   const sh5_compact_scache* abuf = sem;
3676   const sh5_compact_idesc* idesc = abuf->idesc;
3677   int cycles = 0;
3678   {
3679     int referenced = 0;
3680     unsigned long long insn_referenced = abuf->written;
3681     INT in_usereg = -1;
3682     in_usereg = FLD (in_fsdn);
3683     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3684   }
3685   {
3686     int referenced = 0;
3687     unsigned long long insn_referenced = abuf->written;
3688     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3689   }
3690   {
3691     int referenced = 0;
3692     unsigned long long insn_referenced = abuf->written;
3693     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
3694   }
3695   {
3696     int referenced = 0;
3697     unsigned long long insn_referenced = abuf->written;
3698     INT out_loadreg = -1;
3699     out_loadreg = FLD (out_fsdn);
3700     cycles += model_u_set_fr_0_after (current_cpu, idesc, 3, referenced, out_loadreg);
3701   }
3702   return cycles;
3703 #undef FLD
3704 }
3705
3706 UINT
3707 sh5_compact_sh5_model::model_frchg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3708 {
3709 #define FLD(f) abuf->fields.fmt_empty.f
3710   const sh5_compact_scache* abuf = sem;
3711   const sh5_compact_idesc* idesc = abuf->idesc;
3712   int cycles = 0;
3713   {
3714     cycles += model_u_exec_before (current_cpu, idesc, 0);
3715   }
3716   return cycles;
3717 #undef FLD
3718 }
3719
3720 UINT
3721 sh5_compact_sh5_model::model_frchg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3722 {
3723 #define FLD(f) abuf->fields.fmt_empty.f
3724   const sh5_compact_scache* abuf = sem;
3725   const sh5_compact_idesc* idesc = abuf->idesc;
3726   int cycles = 0;
3727   {
3728     int referenced = 0;
3729     unsigned long long insn_referenced = abuf->written;
3730     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
3731   }
3732   return cycles;
3733 #undef FLD
3734 }
3735
3736 UINT
3737 sh5_compact_sh5_model::model_fschg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3738 {
3739 #define FLD(f) abuf->fields.fmt_empty.f
3740   const sh5_compact_scache* abuf = sem;
3741   const sh5_compact_idesc* idesc = abuf->idesc;
3742   int cycles = 0;
3743   {
3744     cycles += model_u_exec_before (current_cpu, idesc, 0);
3745   }
3746   return cycles;
3747 #undef FLD
3748 }
3749
3750 UINT
3751 sh5_compact_sh5_model::model_fschg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3752 {
3753 #define FLD(f) abuf->fields.fmt_empty.f
3754   const sh5_compact_scache* abuf = sem;
3755   const sh5_compact_idesc* idesc = abuf->idesc;
3756   int cycles = 0;
3757   {
3758     int referenced = 0;
3759     unsigned long long insn_referenced = abuf->written;
3760     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
3761   }
3762   return cycles;
3763 #undef FLD
3764 }
3765
3766 UINT
3767 sh5_compact_sh5_model::model_fsqrt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3768 {
3769 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3770   const sh5_compact_scache* abuf = sem;
3771   const sh5_compact_idesc* idesc = abuf->idesc;
3772   int cycles = 0;
3773   {
3774     INT in_usereg = -1;
3775     in_usereg = FLD (in_fsdn);
3776     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3777   }
3778   {
3779     cycles += model_u_exec_before (current_cpu, idesc, 1);
3780   }
3781   {
3782     INT out_loadreg = -1;
3783     out_loadreg = FLD (out_fsdn);
3784     cycles += model_u_fsqrt_before (current_cpu, idesc, 2, out_loadreg);
3785   }
3786   return cycles;
3787 #undef FLD
3788 }
3789
3790 UINT
3791 sh5_compact_sh5_model::model_fsqrt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3792 {
3793 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3794   const sh5_compact_scache* abuf = sem;
3795   const sh5_compact_idesc* idesc = abuf->idesc;
3796   int cycles = 0;
3797   {
3798     int referenced = 0;
3799     unsigned long long insn_referenced = abuf->written;
3800     INT in_usereg = -1;
3801     in_usereg = FLD (in_fsdn);
3802     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3803   }
3804   {
3805     int referenced = 0;
3806     unsigned long long insn_referenced = abuf->written;
3807     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3808   }
3809   {
3810     int referenced = 0;
3811     unsigned long long insn_referenced = abuf->written;
3812     INT out_loadreg = -1;
3813     out_loadreg = FLD (out_fsdn);
3814     cycles += model_u_fsqrt_after (current_cpu, idesc, 2, referenced, out_loadreg);
3815   }
3816   return cycles;
3817 #undef FLD
3818 }
3819
3820 UINT
3821 sh5_compact_sh5_model::model_fsts_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3822 {
3823 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
3824   const sh5_compact_scache* abuf = sem;
3825   const sh5_compact_idesc* idesc = abuf->idesc;
3826   int cycles = 0;
3827   {
3828     cycles += model_u_use_fpul_before (current_cpu, idesc, 0);
3829   }
3830   {
3831     cycles += model_u_exec_before (current_cpu, idesc, 1);
3832   }
3833   {
3834     cycles += model_u_fpu_before (current_cpu, idesc, 2);
3835   }
3836   {
3837     INT out_loadreg = -1;
3838     out_loadreg = FLD (out_frn);
3839     cycles += model_u_set_fr_0_before (current_cpu, idesc, 3, out_loadreg);
3840   }
3841   return cycles;
3842 #undef FLD
3843 }
3844
3845 UINT
3846 sh5_compact_sh5_model::model_fsts_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3847 {
3848 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
3849   const sh5_compact_scache* abuf = sem;
3850   const sh5_compact_idesc* idesc = abuf->idesc;
3851   int cycles = 0;
3852   {
3853     int referenced = 0;
3854     unsigned long long insn_referenced = abuf->written;
3855     cycles += model_u_use_fpul_after (current_cpu, idesc, 0, referenced);
3856   }
3857   {
3858     int referenced = 0;
3859     unsigned long long insn_referenced = abuf->written;
3860     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3861   }
3862   {
3863     int referenced = 0;
3864     unsigned long long insn_referenced = abuf->written;
3865     cycles += model_u_fpu_after (current_cpu, idesc, 2, referenced);
3866   }
3867   {
3868     int referenced = 0;
3869     unsigned long long insn_referenced = abuf->written;
3870     INT out_loadreg = -1;
3871     out_loadreg = FLD (out_frn);
3872     cycles += model_u_set_fr_0_after (current_cpu, idesc, 3, referenced, out_loadreg);
3873   }
3874   return cycles;
3875 #undef FLD
3876 }
3877
3878 UINT
3879 sh5_compact_sh5_model::model_fsub_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3880 {
3881 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3882   const sh5_compact_scache* abuf = sem;
3883   const sh5_compact_idesc* idesc = abuf->idesc;
3884   int cycles = 0;
3885   {
3886     INT in_usereg = -1;
3887     in_usereg = FLD (in_fsdm);
3888     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3889   }
3890   {
3891     INT in_usereg = -1;
3892     in_usereg = FLD (in_fsdn);
3893     cycles += model_u_use_fr_before (current_cpu, idesc, 1, in_usereg);
3894   }
3895   {
3896     cycles += model_u_exec_before (current_cpu, idesc, 2);
3897   }
3898   {
3899     cycles += model_u_fpu_before (current_cpu, idesc, 3);
3900   }
3901   {
3902     INT out_loadreg = -1;
3903     out_loadreg = FLD (out_fsdn);
3904     cycles += model_u_set_fr_before (current_cpu, idesc, 4, out_loadreg);
3905   }
3906   return cycles;
3907 #undef FLD
3908 }
3909
3910 UINT
3911 sh5_compact_sh5_model::model_fsub_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3912 {
3913 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
3914   const sh5_compact_scache* abuf = sem;
3915   const sh5_compact_idesc* idesc = abuf->idesc;
3916   int cycles = 0;
3917   {
3918     int referenced = 0;
3919     unsigned long long insn_referenced = abuf->written;
3920     INT in_usereg = -1;
3921     in_usereg = FLD (in_fsdm);
3922     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3923   }
3924   {
3925     int referenced = 0;
3926     unsigned long long insn_referenced = abuf->written;
3927     INT in_usereg = -1;
3928     in_usereg = FLD (in_fsdn);
3929     cycles += model_u_use_fr_after (current_cpu, idesc, 1, referenced, in_usereg);
3930   }
3931   {
3932     int referenced = 0;
3933     unsigned long long insn_referenced = abuf->written;
3934     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
3935   }
3936   {
3937     int referenced = 0;
3938     unsigned long long insn_referenced = abuf->written;
3939     cycles += model_u_fpu_after (current_cpu, idesc, 3, referenced);
3940   }
3941   {
3942     int referenced = 0;
3943     unsigned long long insn_referenced = abuf->written;
3944     INT out_loadreg = -1;
3945     out_loadreg = FLD (out_fsdn);
3946     cycles += model_u_set_fr_after (current_cpu, idesc, 4, referenced, out_loadreg);
3947   }
3948   return cycles;
3949 #undef FLD
3950 }
3951
3952 UINT
3953 sh5_compact_sh5_model::model_ftrc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3954 {
3955 #define FLD(f) abuf->fields.sfmt_ftrc_compact.f
3956   const sh5_compact_scache* abuf = sem;
3957   const sh5_compact_idesc* idesc = abuf->idesc;
3958   int cycles = 0;
3959   {
3960     INT in_usereg = -1;
3961     in_usereg = FLD (in_fsdn);
3962     cycles += model_u_use_fr_before (current_cpu, idesc, 0, in_usereg);
3963   }
3964   {
3965     cycles += model_u_exec_before (current_cpu, idesc, 1);
3966   }
3967   {
3968     cycles += model_u_fpu_before (current_cpu, idesc, 2);
3969   }
3970   {
3971     cycles += model_u_set_fpul_before (current_cpu, idesc, 3);
3972   }
3973   return cycles;
3974 #undef FLD
3975 }
3976
3977 UINT
3978 sh5_compact_sh5_model::model_ftrc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
3979 {
3980 #define FLD(f) abuf->fields.sfmt_ftrc_compact.f
3981   const sh5_compact_scache* abuf = sem;
3982   const sh5_compact_idesc* idesc = abuf->idesc;
3983   int cycles = 0;
3984   {
3985     int referenced = 0;
3986     unsigned long long insn_referenced = abuf->written;
3987     INT in_usereg = -1;
3988     in_usereg = FLD (in_fsdn);
3989     cycles += model_u_use_fr_after (current_cpu, idesc, 0, referenced, in_usereg);
3990   }
3991   {
3992     int referenced = 0;
3993     unsigned long long insn_referenced = abuf->written;
3994     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
3995   }
3996   {
3997     int referenced = 0;
3998     unsigned long long insn_referenced = abuf->written;
3999     cycles += model_u_fpu_after (current_cpu, idesc, 2, referenced);
4000   }
4001   {
4002     int referenced = 0;
4003     unsigned long long insn_referenced = abuf->written;
4004     cycles += model_u_set_fpul_after (current_cpu, idesc, 3, referenced);
4005   }
4006   return cycles;
4007 #undef FLD
4008 }
4009
4010 UINT
4011 sh5_compact_sh5_model::model_ftrv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4012 {
4013 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
4014   const sh5_compact_scache* abuf = sem;
4015   const sh5_compact_idesc* idesc = abuf->idesc;
4016   int cycles = 0;
4017   {
4018     cycles += model_u_exec_before (current_cpu, idesc, 0);
4019   }
4020   {
4021     INT in_fvn = -1;
4022     cycles += model_u_ftrv_before (current_cpu, idesc, 1, in_fvn);
4023   }
4024   return cycles;
4025 #undef FLD
4026 }
4027
4028 UINT
4029 sh5_compact_sh5_model::model_ftrv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4030 {
4031 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
4032   const sh5_compact_scache* abuf = sem;
4033   const sh5_compact_idesc* idesc = abuf->idesc;
4034   int cycles = 0;
4035   {
4036     int referenced = 0;
4037     unsigned long long insn_referenced = abuf->written;
4038     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
4039   }
4040   {
4041     int referenced = 0;
4042     unsigned long long insn_referenced = abuf->written;
4043     INT in_fvn = -1;
4044     cycles += model_u_ftrv_after (current_cpu, idesc, 1, referenced, in_fvn);
4045   }
4046   return cycles;
4047 #undef FLD
4048 }
4049
4050 UINT
4051 sh5_compact_sh5_model::model_jmp_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4052 {
4053 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4054   const sh5_compact_scache* abuf = sem;
4055   const sh5_compact_idesc* idesc = abuf->idesc;
4056   int cycles = 0;
4057   {
4058     cycles += model_u_jmp_before (current_cpu, idesc, 0);
4059   }
4060   return cycles;
4061 #undef FLD
4062 }
4063
4064 UINT
4065 sh5_compact_sh5_model::model_jmp_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4066 {
4067 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4068   const sh5_compact_scache* abuf = sem;
4069   const sh5_compact_idesc* idesc = abuf->idesc;
4070   int cycles = 0;
4071   {
4072     int referenced = 0;
4073     unsigned long long insn_referenced = abuf->written;
4074     referenced |= 1 << 0;
4075     cycles += model_u_jmp_after (current_cpu, idesc, 0, referenced);
4076   }
4077   return cycles;
4078 #undef FLD
4079 }
4080
4081 UINT
4082 sh5_compact_sh5_model::model_jsr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4083 {
4084 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4085   const sh5_compact_scache* abuf = sem;
4086   const sh5_compact_idesc* idesc = abuf->idesc;
4087   int cycles = 0;
4088   {
4089     cycles += model_u_jsr_before (current_cpu, idesc, 0);
4090   }
4091   return cycles;
4092 #undef FLD
4093 }
4094
4095 UINT
4096 sh5_compact_sh5_model::model_jsr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4097 {
4098 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4099   const sh5_compact_scache* abuf = sem;
4100   const sh5_compact_idesc* idesc = abuf->idesc;
4101   int cycles = 0;
4102   {
4103     int referenced = 0;
4104     unsigned long long insn_referenced = abuf->written;
4105     referenced |= 1 << 0;
4106     cycles += model_u_jsr_after (current_cpu, idesc, 0, referenced);
4107   }
4108   return cycles;
4109 #undef FLD
4110 }
4111
4112 UINT
4113 sh5_compact_sh5_model::model_ldc_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4114 {
4115 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4116   const sh5_compact_scache* abuf = sem;
4117   const sh5_compact_idesc* idesc = abuf->idesc;
4118   int cycles = 0;
4119   {
4120     INT in_usereg = -1;
4121     in_usereg = FLD (in_rn);
4122     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4123   }
4124   {
4125     cycles += model_u_ldc_gbr_before (current_cpu, idesc, 1);
4126   }
4127   return cycles;
4128 #undef FLD
4129 }
4130
4131 UINT
4132 sh5_compact_sh5_model::model_ldc_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4133 {
4134 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4135   const sh5_compact_scache* abuf = sem;
4136   const sh5_compact_idesc* idesc = abuf->idesc;
4137   int cycles = 0;
4138   {
4139     int referenced = 0;
4140     unsigned long long insn_referenced = abuf->written;
4141     INT in_usereg = -1;
4142     in_usereg = FLD (in_rn);
4143     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4144   }
4145   {
4146     int referenced = 0;
4147     unsigned long long insn_referenced = abuf->written;
4148     cycles += model_u_ldc_gbr_after (current_cpu, idesc, 1, referenced);
4149   }
4150   return cycles;
4151 #undef FLD
4152 }
4153
4154 UINT
4155 sh5_compact_sh5_model::model_ldc_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4156 {
4157 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4158   const sh5_compact_scache* abuf = sem;
4159   const sh5_compact_idesc* idesc = abuf->idesc;
4160   int cycles = 0;
4161   {
4162     INT in_usereg = -1;
4163     in_usereg = FLD (in_rn);
4164     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4165   }
4166   {
4167     cycles += model_u_exec_before (current_cpu, idesc, 1);
4168   }
4169   return cycles;
4170 #undef FLD
4171 }
4172
4173 UINT
4174 sh5_compact_sh5_model::model_ldc_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4175 {
4176 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4177   const sh5_compact_scache* abuf = sem;
4178   const sh5_compact_idesc* idesc = abuf->idesc;
4179   int cycles = 0;
4180   {
4181     int referenced = 0;
4182     unsigned long long insn_referenced = abuf->written;
4183     INT in_usereg = -1;
4184     in_usereg = FLD (in_rn);
4185     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4186   }
4187   {
4188     int referenced = 0;
4189     unsigned long long insn_referenced = abuf->written;
4190     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
4191   }
4192   return cycles;
4193 #undef FLD
4194 }
4195
4196 UINT
4197 sh5_compact_sh5_model::model_ldc_sr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4198 {
4199 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4200   const sh5_compact_scache* abuf = sem;
4201   const sh5_compact_idesc* idesc = abuf->idesc;
4202   int cycles = 0;
4203   {
4204     INT in_usereg = -1;
4205     in_usereg = FLD (in_rn);
4206     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4207   }
4208   {
4209     cycles += model_u_ldc_sr_before (current_cpu, idesc, 1);
4210   }
4211   return cycles;
4212 #undef FLD
4213 }
4214
4215 UINT
4216 sh5_compact_sh5_model::model_ldc_sr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4217 {
4218 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4219   const sh5_compact_scache* abuf = sem;
4220   const sh5_compact_idesc* idesc = abuf->idesc;
4221   int cycles = 0;
4222   {
4223     int referenced = 0;
4224     unsigned long long insn_referenced = abuf->written;
4225     INT in_usereg = -1;
4226     in_usereg = FLD (in_rn);
4227     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4228   }
4229   {
4230     int referenced = 0;
4231     unsigned long long insn_referenced = abuf->written;
4232     cycles += model_u_ldc_sr_after (current_cpu, idesc, 1, referenced);
4233   }
4234   return cycles;
4235 #undef FLD
4236 }
4237
4238 UINT
4239 sh5_compact_sh5_model::model_ldcl_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4240 {
4241 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4242   const sh5_compact_scache* abuf = sem;
4243   const sh5_compact_idesc* idesc = abuf->idesc;
4244   int cycles = 0;
4245   {
4246     INT in_usereg = -1;
4247     in_usereg = FLD (in_rn);
4248     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4249   }
4250   {
4251     cycles += model_u_ldcl_before (current_cpu, idesc, 1);
4252   }
4253   {
4254     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
4255   }
4256   {
4257     cycles += model_u_load_gbr_before (current_cpu, idesc, 3);
4258   }
4259   return cycles;
4260 #undef FLD
4261 }
4262
4263 UINT
4264 sh5_compact_sh5_model::model_ldcl_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4265 {
4266 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4267   const sh5_compact_scache* abuf = sem;
4268   const sh5_compact_idesc* idesc = abuf->idesc;
4269   int cycles = 0;
4270   {
4271     int referenced = 0;
4272     unsigned long long insn_referenced = abuf->written;
4273     INT in_usereg = -1;
4274     in_usereg = FLD (in_rn);
4275     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4276   }
4277   {
4278     int referenced = 0;
4279     unsigned long long insn_referenced = abuf->written;
4280     cycles += model_u_ldcl_after (current_cpu, idesc, 1, referenced);
4281   }
4282   {
4283     int referenced = 0;
4284     unsigned long long insn_referenced = abuf->written;
4285     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
4286   }
4287   {
4288     int referenced = 0;
4289     unsigned long long insn_referenced = abuf->written;
4290     cycles += model_u_load_gbr_after (current_cpu, idesc, 3, referenced);
4291   }
4292   return cycles;
4293 #undef FLD
4294 }
4295
4296 UINT
4297 sh5_compact_sh5_model::model_ldcl_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4298 {
4299 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4300   const sh5_compact_scache* abuf = sem;
4301   const sh5_compact_idesc* idesc = abuf->idesc;
4302   int cycles = 0;
4303   {
4304     INT in_usereg = -1;
4305     in_usereg = FLD (in_rn);
4306     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4307   }
4308   {
4309     cycles += model_u_ldcl_vbr_before (current_cpu, idesc, 1);
4310   }
4311   {
4312     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
4313   }
4314   {
4315     cycles += model_u_load_vbr_before (current_cpu, idesc, 3);
4316   }
4317   return cycles;
4318 #undef FLD
4319 }
4320
4321 UINT
4322 sh5_compact_sh5_model::model_ldcl_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4323 {
4324 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4325   const sh5_compact_scache* abuf = sem;
4326   const sh5_compact_idesc* idesc = abuf->idesc;
4327   int cycles = 0;
4328   {
4329     int referenced = 0;
4330     unsigned long long insn_referenced = abuf->written;
4331     INT in_usereg = -1;
4332     in_usereg = FLD (in_rn);
4333     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4334   }
4335   {
4336     int referenced = 0;
4337     unsigned long long insn_referenced = abuf->written;
4338     cycles += model_u_ldcl_vbr_after (current_cpu, idesc, 1, referenced);
4339   }
4340   {
4341     int referenced = 0;
4342     unsigned long long insn_referenced = abuf->written;
4343     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
4344   }
4345   {
4346     int referenced = 0;
4347     unsigned long long insn_referenced = abuf->written;
4348     cycles += model_u_load_vbr_after (current_cpu, idesc, 3, referenced);
4349   }
4350   return cycles;
4351 #undef FLD
4352 }
4353
4354 UINT
4355 sh5_compact_sh5_model::model_lds_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4356 {
4357 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4358   const sh5_compact_scache* abuf = sem;
4359   const sh5_compact_idesc* idesc = abuf->idesc;
4360   int cycles = 0;
4361   {
4362     INT in_usereg = -1;
4363     in_usereg = FLD (in_rn);
4364     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4365   }
4366   {
4367     cycles += model_u_lds_fpscr_before (current_cpu, idesc, 1);
4368   }
4369   return cycles;
4370 #undef FLD
4371 }
4372
4373 UINT
4374 sh5_compact_sh5_model::model_lds_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4375 {
4376 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4377   const sh5_compact_scache* abuf = sem;
4378   const sh5_compact_idesc* idesc = abuf->idesc;
4379   int cycles = 0;
4380   {
4381     int referenced = 0;
4382     unsigned long long insn_referenced = abuf->written;
4383     INT in_usereg = -1;
4384     in_usereg = FLD (in_rn);
4385     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4386   }
4387   {
4388     int referenced = 0;
4389     unsigned long long insn_referenced = abuf->written;
4390     cycles += model_u_lds_fpscr_after (current_cpu, idesc, 1, referenced);
4391   }
4392   return cycles;
4393 #undef FLD
4394 }
4395
4396 UINT
4397 sh5_compact_sh5_model::model_ldsl_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4398 {
4399 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4400   const sh5_compact_scache* abuf = sem;
4401   const sh5_compact_idesc* idesc = abuf->idesc;
4402   int cycles = 0;
4403   {
4404     INT in_usereg = -1;
4405     in_usereg = FLD (in_rn);
4406     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4407   }
4408   {
4409     cycles += model_u_lds_fpscr_before (current_cpu, idesc, 1);
4410   }
4411   {
4412     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 2);
4413   }
4414   {
4415     cycles += model_u_ldsl_fpscr_before (current_cpu, idesc, 3);
4416   }
4417   return cycles;
4418 #undef FLD
4419 }
4420
4421 UINT
4422 sh5_compact_sh5_model::model_ldsl_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4423 {
4424 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4425   const sh5_compact_scache* abuf = sem;
4426   const sh5_compact_idesc* idesc = abuf->idesc;
4427   int cycles = 0;
4428   {
4429     int referenced = 0;
4430     unsigned long long insn_referenced = abuf->written;
4431     INT in_usereg = -1;
4432     in_usereg = FLD (in_rn);
4433     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4434   }
4435   {
4436     int referenced = 0;
4437     unsigned long long insn_referenced = abuf->written;
4438     cycles += model_u_lds_fpscr_after (current_cpu, idesc, 1, referenced);
4439   }
4440   {
4441     int referenced = 0;
4442     unsigned long long insn_referenced = abuf->written;
4443     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 2, referenced);
4444   }
4445   {
4446     int referenced = 0;
4447     unsigned long long insn_referenced = abuf->written;
4448     cycles += model_u_ldsl_fpscr_after (current_cpu, idesc, 3, referenced);
4449   }
4450   return cycles;
4451 #undef FLD
4452 }
4453
4454 UINT
4455 sh5_compact_sh5_model::model_lds_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4456 {
4457 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
4458   const sh5_compact_scache* abuf = sem;
4459   const sh5_compact_idesc* idesc = abuf->idesc;
4460   int cycles = 0;
4461   {
4462     INT in_usereg = -1;
4463     in_usereg = FLD (in_rn);
4464     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4465   }
4466   {
4467     cycles += model_u_exec_before (current_cpu, idesc, 1);
4468   }
4469   {
4470     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
4471   }
4472   {
4473     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
4474   }
4475   {
4476     cycles += model_u_load_fpul_before (current_cpu, idesc, 4);
4477   }
4478   return cycles;
4479 #undef FLD
4480 }
4481
4482 UINT
4483 sh5_compact_sh5_model::model_lds_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4484 {
4485 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
4486   const sh5_compact_scache* abuf = sem;
4487   const sh5_compact_idesc* idesc = abuf->idesc;
4488   int cycles = 0;
4489   {
4490     int referenced = 0;
4491     unsigned long long insn_referenced = abuf->written;
4492     INT in_usereg = -1;
4493     in_usereg = FLD (in_rn);
4494     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4495   }
4496   {
4497     int referenced = 0;
4498     unsigned long long insn_referenced = abuf->written;
4499     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
4500   }
4501   {
4502     int referenced = 0;
4503     unsigned long long insn_referenced = abuf->written;
4504     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
4505   }
4506   {
4507     int referenced = 0;
4508     unsigned long long insn_referenced = abuf->written;
4509     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
4510   }
4511   {
4512     int referenced = 0;
4513     unsigned long long insn_referenced = abuf->written;
4514     cycles += model_u_load_fpul_after (current_cpu, idesc, 4, referenced);
4515   }
4516   return cycles;
4517 #undef FLD
4518 }
4519
4520 UINT
4521 sh5_compact_sh5_model::model_ldsl_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4522 {
4523 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
4524   const sh5_compact_scache* abuf = sem;
4525   const sh5_compact_idesc* idesc = abuf->idesc;
4526   int cycles = 0;
4527   {
4528     INT in_usereg = -1;
4529     in_usereg = FLD (in_rn);
4530     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4531   }
4532   {
4533     cycles += model_u_exec_before (current_cpu, idesc, 1);
4534   }
4535   {
4536     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
4537   }
4538   {
4539     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
4540   }
4541   {
4542     cycles += model_u_load_fpul_before (current_cpu, idesc, 4);
4543   }
4544   return cycles;
4545 #undef FLD
4546 }
4547
4548 UINT
4549 sh5_compact_sh5_model::model_ldsl_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4550 {
4551 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
4552   const sh5_compact_scache* abuf = sem;
4553   const sh5_compact_idesc* idesc = abuf->idesc;
4554   int cycles = 0;
4555   {
4556     int referenced = 0;
4557     unsigned long long insn_referenced = abuf->written;
4558     INT in_usereg = -1;
4559     in_usereg = FLD (in_rn);
4560     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4561   }
4562   {
4563     int referenced = 0;
4564     unsigned long long insn_referenced = abuf->written;
4565     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
4566   }
4567   {
4568     int referenced = 0;
4569     unsigned long long insn_referenced = abuf->written;
4570     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
4571   }
4572   {
4573     int referenced = 0;
4574     unsigned long long insn_referenced = abuf->written;
4575     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
4576   }
4577   {
4578     int referenced = 0;
4579     unsigned long long insn_referenced = abuf->written;
4580     cycles += model_u_load_fpul_after (current_cpu, idesc, 4, referenced);
4581   }
4582   return cycles;
4583 #undef FLD
4584 }
4585
4586 UINT
4587 sh5_compact_sh5_model::model_lds_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4588 {
4589 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4590   const sh5_compact_scache* abuf = sem;
4591   const sh5_compact_idesc* idesc = abuf->idesc;
4592   int cycles = 0;
4593   {
4594     INT in_usereg = -1;
4595     in_usereg = FLD (in_rn);
4596     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4597   }
4598   {
4599     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 1);
4600   }
4601   {
4602     cycles += model_u_exec_before (current_cpu, idesc, 2);
4603   }
4604   {
4605     cycles += model_u_set_mac_before (current_cpu, idesc, 3);
4606   }
4607   return cycles;
4608 #undef FLD
4609 }
4610
4611 UINT
4612 sh5_compact_sh5_model::model_lds_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4613 {
4614 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4615   const sh5_compact_scache* abuf = sem;
4616   const sh5_compact_idesc* idesc = abuf->idesc;
4617   int cycles = 0;
4618   {
4619     int referenced = 0;
4620     unsigned long long insn_referenced = abuf->written;
4621     INT in_usereg = -1;
4622     in_usereg = FLD (in_rn);
4623     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4624   }
4625   {
4626     int referenced = 0;
4627     unsigned long long insn_referenced = abuf->written;
4628     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 1, referenced);
4629   }
4630   {
4631     int referenced = 0;
4632     unsigned long long insn_referenced = abuf->written;
4633     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
4634   }
4635   {
4636     int referenced = 0;
4637     unsigned long long insn_referenced = abuf->written;
4638     cycles += model_u_set_mac_after (current_cpu, idesc, 3, referenced);
4639   }
4640   return cycles;
4641 #undef FLD
4642 }
4643
4644 UINT
4645 sh5_compact_sh5_model::model_ldsl_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4646 {
4647 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4648   const sh5_compact_scache* abuf = sem;
4649   const sh5_compact_idesc* idesc = abuf->idesc;
4650   int cycles = 0;
4651   {
4652     INT in_usereg = -1;
4653     in_usereg = FLD (in_rn);
4654     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4655   }
4656   {
4657     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 1);
4658   }
4659   {
4660     cycles += model_u_exec_before (current_cpu, idesc, 2);
4661   }
4662   {
4663     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
4664   }
4665   {
4666     cycles += model_u_load_mac_before (current_cpu, idesc, 4);
4667   }
4668   return cycles;
4669 #undef FLD
4670 }
4671
4672 UINT
4673 sh5_compact_sh5_model::model_ldsl_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4674 {
4675 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4676   const sh5_compact_scache* abuf = sem;
4677   const sh5_compact_idesc* idesc = abuf->idesc;
4678   int cycles = 0;
4679   {
4680     int referenced = 0;
4681     unsigned long long insn_referenced = abuf->written;
4682     INT in_usereg = -1;
4683     in_usereg = FLD (in_rn);
4684     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4685   }
4686   {
4687     int referenced = 0;
4688     unsigned long long insn_referenced = abuf->written;
4689     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 1, referenced);
4690   }
4691   {
4692     int referenced = 0;
4693     unsigned long long insn_referenced = abuf->written;
4694     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
4695   }
4696   {
4697     int referenced = 0;
4698     unsigned long long insn_referenced = abuf->written;
4699     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
4700   }
4701   {
4702     int referenced = 0;
4703     unsigned long long insn_referenced = abuf->written;
4704     cycles += model_u_load_mac_after (current_cpu, idesc, 4, referenced);
4705   }
4706   return cycles;
4707 #undef FLD
4708 }
4709
4710 UINT
4711 sh5_compact_sh5_model::model_lds_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4712 {
4713 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4714   const sh5_compact_scache* abuf = sem;
4715   const sh5_compact_idesc* idesc = abuf->idesc;
4716   int cycles = 0;
4717   {
4718     INT in_usereg = -1;
4719     in_usereg = FLD (in_rn);
4720     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4721   }
4722   {
4723     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 1);
4724   }
4725   {
4726     cycles += model_u_exec_before (current_cpu, idesc, 2);
4727   }
4728   {
4729     cycles += model_u_set_mac_before (current_cpu, idesc, 3);
4730   }
4731   return cycles;
4732 #undef FLD
4733 }
4734
4735 UINT
4736 sh5_compact_sh5_model::model_lds_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4737 {
4738 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4739   const sh5_compact_scache* abuf = sem;
4740   const sh5_compact_idesc* idesc = abuf->idesc;
4741   int cycles = 0;
4742   {
4743     int referenced = 0;
4744     unsigned long long insn_referenced = abuf->written;
4745     INT in_usereg = -1;
4746     in_usereg = FLD (in_rn);
4747     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4748   }
4749   {
4750     int referenced = 0;
4751     unsigned long long insn_referenced = abuf->written;
4752     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 1, referenced);
4753   }
4754   {
4755     int referenced = 0;
4756     unsigned long long insn_referenced = abuf->written;
4757     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
4758   }
4759   {
4760     int referenced = 0;
4761     unsigned long long insn_referenced = abuf->written;
4762     cycles += model_u_set_mac_after (current_cpu, idesc, 3, referenced);
4763   }
4764   return cycles;
4765 #undef FLD
4766 }
4767
4768 UINT
4769 sh5_compact_sh5_model::model_ldsl_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4770 {
4771 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4772   const sh5_compact_scache* abuf = sem;
4773   const sh5_compact_idesc* idesc = abuf->idesc;
4774   int cycles = 0;
4775   {
4776     INT in_usereg = -1;
4777     in_usereg = FLD (in_rn);
4778     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4779   }
4780   {
4781     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 1);
4782   }
4783   {
4784     cycles += model_u_exec_before (current_cpu, idesc, 2);
4785   }
4786   {
4787     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
4788   }
4789   {
4790     cycles += model_u_load_mac_before (current_cpu, idesc, 4);
4791   }
4792   return cycles;
4793 #undef FLD
4794 }
4795
4796 UINT
4797 sh5_compact_sh5_model::model_ldsl_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4798 {
4799 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4800   const sh5_compact_scache* abuf = sem;
4801   const sh5_compact_idesc* idesc = abuf->idesc;
4802   int cycles = 0;
4803   {
4804     int referenced = 0;
4805     unsigned long long insn_referenced = abuf->written;
4806     INT in_usereg = -1;
4807     in_usereg = FLD (in_rn);
4808     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4809   }
4810   {
4811     int referenced = 0;
4812     unsigned long long insn_referenced = abuf->written;
4813     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 1, referenced);
4814   }
4815   {
4816     int referenced = 0;
4817     unsigned long long insn_referenced = abuf->written;
4818     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
4819   }
4820   {
4821     int referenced = 0;
4822     unsigned long long insn_referenced = abuf->written;
4823     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
4824   }
4825   {
4826     int referenced = 0;
4827     unsigned long long insn_referenced = abuf->written;
4828     cycles += model_u_load_mac_after (current_cpu, idesc, 4, referenced);
4829   }
4830   return cycles;
4831 #undef FLD
4832 }
4833
4834 UINT
4835 sh5_compact_sh5_model::model_lds_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4836 {
4837 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4838   const sh5_compact_scache* abuf = sem;
4839   const sh5_compact_idesc* idesc = abuf->idesc;
4840   int cycles = 0;
4841   {
4842     INT in_usereg = -1;
4843     in_usereg = FLD (in_rn);
4844     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4845   }
4846   {
4847     cycles += model_u_lds_pr_before (current_cpu, idesc, 1);
4848   }
4849   return cycles;
4850 #undef FLD
4851 }
4852
4853 UINT
4854 sh5_compact_sh5_model::model_lds_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4855 {
4856 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4857   const sh5_compact_scache* abuf = sem;
4858   const sh5_compact_idesc* idesc = abuf->idesc;
4859   int cycles = 0;
4860   {
4861     int referenced = 0;
4862     unsigned long long insn_referenced = abuf->written;
4863     INT in_usereg = -1;
4864     in_usereg = FLD (in_rn);
4865     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4866   }
4867   {
4868     int referenced = 0;
4869     unsigned long long insn_referenced = abuf->written;
4870     cycles += model_u_lds_pr_after (current_cpu, idesc, 1, referenced);
4871   }
4872   return cycles;
4873 #undef FLD
4874 }
4875
4876 UINT
4877 sh5_compact_sh5_model::model_ldsl_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4878 {
4879 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4880   const sh5_compact_scache* abuf = sem;
4881   const sh5_compact_idesc* idesc = abuf->idesc;
4882   int cycles = 0;
4883   {
4884     INT in_usereg = -1;
4885     in_usereg = FLD (in_rn);
4886     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4887   }
4888   {
4889     cycles += model_u_lds_pr_before (current_cpu, idesc, 1);
4890   }
4891   {
4892     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
4893   }
4894   {
4895     cycles += model_u_load_pr_before (current_cpu, idesc, 3);
4896   }
4897   return cycles;
4898 #undef FLD
4899 }
4900
4901 UINT
4902 sh5_compact_sh5_model::model_ldsl_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4903 {
4904 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
4905   const sh5_compact_scache* abuf = sem;
4906   const sh5_compact_idesc* idesc = abuf->idesc;
4907   int cycles = 0;
4908   {
4909     int referenced = 0;
4910     unsigned long long insn_referenced = abuf->written;
4911     INT in_usereg = -1;
4912     in_usereg = FLD (in_rn);
4913     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4914   }
4915   {
4916     int referenced = 0;
4917     unsigned long long insn_referenced = abuf->written;
4918     cycles += model_u_lds_pr_after (current_cpu, idesc, 1, referenced);
4919   }
4920   {
4921     int referenced = 0;
4922     unsigned long long insn_referenced = abuf->written;
4923     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
4924   }
4925   {
4926     int referenced = 0;
4927     unsigned long long insn_referenced = abuf->written;
4928     cycles += model_u_load_pr_after (current_cpu, idesc, 3, referenced);
4929   }
4930   return cycles;
4931 #undef FLD
4932 }
4933
4934 UINT
4935 sh5_compact_sh5_model::model_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4936 {
4937 #define FLD(f) abuf->fields.sfmt_macl_compact.f
4938   const sh5_compact_scache* abuf = sem;
4939   const sh5_compact_idesc* idesc = abuf->idesc;
4940   int cycles = 0;
4941   {
4942     INT in_usereg = -1;
4943     in_usereg = FLD (in_rn);
4944     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4945   }
4946   {
4947     INT in_usereg = -1;
4948     in_usereg = FLD (in_rm);
4949     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
4950   }
4951   {
4952     cycles += model_u_macl_before (current_cpu, idesc, 2);
4953   }
4954   return cycles;
4955 #undef FLD
4956 }
4957
4958 UINT
4959 sh5_compact_sh5_model::model_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4960 {
4961 #define FLD(f) abuf->fields.sfmt_macl_compact.f
4962   const sh5_compact_scache* abuf = sem;
4963   const sh5_compact_idesc* idesc = abuf->idesc;
4964   int cycles = 0;
4965   {
4966     int referenced = 0;
4967     unsigned long long insn_referenced = abuf->written;
4968     INT in_usereg = -1;
4969     in_usereg = FLD (in_rn);
4970     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
4971   }
4972   {
4973     int referenced = 0;
4974     unsigned long long insn_referenced = abuf->written;
4975     INT in_usereg = -1;
4976     in_usereg = FLD (in_rm);
4977     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
4978   }
4979   {
4980     int referenced = 0;
4981     unsigned long long insn_referenced = abuf->written;
4982     cycles += model_u_macl_after (current_cpu, idesc, 2, referenced);
4983   }
4984   return cycles;
4985 #undef FLD
4986 }
4987
4988 UINT
4989 sh5_compact_sh5_model::model_macw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
4990 {
4991 #define FLD(f) abuf->fields.sfmt_macl_compact.f
4992   const sh5_compact_scache* abuf = sem;
4993   const sh5_compact_idesc* idesc = abuf->idesc;
4994   int cycles = 0;
4995   {
4996     INT in_usereg = -1;
4997     in_usereg = FLD (in_rn);
4998     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
4999   }
5000   {
5001     INT in_usereg = -1;
5002     in_usereg = FLD (in_rm);
5003     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5004   }
5005   {
5006     cycles += model_u_macw_before (current_cpu, idesc, 2);
5007   }
5008   return cycles;
5009 #undef FLD
5010 }
5011
5012 UINT
5013 sh5_compact_sh5_model::model_macw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5014 {
5015 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5016   const sh5_compact_scache* abuf = sem;
5017   const sh5_compact_idesc* idesc = abuf->idesc;
5018   int cycles = 0;
5019   {
5020     int referenced = 0;
5021     unsigned long long insn_referenced = abuf->written;
5022     INT in_usereg = -1;
5023     in_usereg = FLD (in_rn);
5024     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5025   }
5026   {
5027     int referenced = 0;
5028     unsigned long long insn_referenced = abuf->written;
5029     INT in_usereg = -1;
5030     in_usereg = FLD (in_rm);
5031     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5032   }
5033   {
5034     int referenced = 0;
5035     unsigned long long insn_referenced = abuf->written;
5036     cycles += model_u_macw_after (current_cpu, idesc, 2, referenced);
5037   }
5038   return cycles;
5039 #undef FLD
5040 }
5041
5042 UINT
5043 sh5_compact_sh5_model::model_mov_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5044 {
5045 #define FLD(f) abuf->fields.sfmt_and_compact.f
5046   const sh5_compact_scache* abuf = sem;
5047   const sh5_compact_idesc* idesc = abuf->idesc;
5048   int cycles = 0;
5049   {
5050     INT in_usereg = -1;
5051     in_usereg = FLD (in_rm64);
5052     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5053   }
5054   {
5055     cycles += model_u_exec_before (current_cpu, idesc, 1);
5056   }
5057   return cycles;
5058 #undef FLD
5059 }
5060
5061 UINT
5062 sh5_compact_sh5_model::model_mov_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5063 {
5064 #define FLD(f) abuf->fields.sfmt_and_compact.f
5065   const sh5_compact_scache* abuf = sem;
5066   const sh5_compact_idesc* idesc = abuf->idesc;
5067   int cycles = 0;
5068   {
5069     int referenced = 0;
5070     unsigned long long insn_referenced = abuf->written;
5071     INT in_usereg = -1;
5072     in_usereg = FLD (in_rm64);
5073     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5074   }
5075   {
5076     int referenced = 0;
5077     unsigned long long insn_referenced = abuf->written;
5078     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
5079   }
5080   return cycles;
5081 #undef FLD
5082 }
5083
5084 UINT
5085 sh5_compact_sh5_model::model_movi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5086 {
5087 #define FLD(f) abuf->fields.sfmt_addi_compact.f
5088   const sh5_compact_scache* abuf = sem;
5089   const sh5_compact_idesc* idesc = abuf->idesc;
5090   int cycles = 0;
5091   {
5092     cycles += model_u_exec_before (current_cpu, idesc, 0);
5093   }
5094   return cycles;
5095 #undef FLD
5096 }
5097
5098 UINT
5099 sh5_compact_sh5_model::model_movi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5100 {
5101 #define FLD(f) abuf->fields.sfmt_addi_compact.f
5102   const sh5_compact_scache* abuf = sem;
5103   const sh5_compact_idesc* idesc = abuf->idesc;
5104   int cycles = 0;
5105   {
5106     int referenced = 0;
5107     unsigned long long insn_referenced = abuf->written;
5108     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
5109   }
5110   return cycles;
5111 #undef FLD
5112 }
5113
5114 UINT
5115 sh5_compact_sh5_model::model_movi20_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5116 {
5117 #define FLD(f) abuf->fields.sfmt_movi20_compact.f
5118   const sh5_compact_scache* abuf = sem;
5119   const sh5_compact_idesc* idesc = abuf->idesc;
5120   int cycles = 0;
5121   {
5122     cycles += model_u_exec_before (current_cpu, idesc, 0);
5123   }
5124   return cycles;
5125 #undef FLD
5126 }
5127
5128 UINT
5129 sh5_compact_sh5_model::model_movi20_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5130 {
5131 #define FLD(f) abuf->fields.sfmt_movi20_compact.f
5132   const sh5_compact_scache* abuf = sem;
5133   const sh5_compact_idesc* idesc = abuf->idesc;
5134   int cycles = 0;
5135   {
5136     int referenced = 0;
5137     unsigned long long insn_referenced = abuf->written;
5138     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
5139   }
5140   return cycles;
5141 #undef FLD
5142 }
5143
5144 UINT
5145 sh5_compact_sh5_model::model_movb1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5146 {
5147 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
5148   const sh5_compact_scache* abuf = sem;
5149   const sh5_compact_idesc* idesc = abuf->idesc;
5150   int cycles = 0;
5151   {
5152     INT in_usereg = -1;
5153     in_usereg = FLD (in_rn);
5154     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5155   }
5156   {
5157     INT in_usereg = -1;
5158     in_usereg = FLD (in_rm);
5159     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5160   }
5161   {
5162     cycles += model_u_exec_before (current_cpu, idesc, 2);
5163   }
5164   {
5165     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5166   }
5167   return cycles;
5168 #undef FLD
5169 }
5170
5171 UINT
5172 sh5_compact_sh5_model::model_movb1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5173 {
5174 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
5175   const sh5_compact_scache* abuf = sem;
5176   const sh5_compact_idesc* idesc = abuf->idesc;
5177   int cycles = 0;
5178   {
5179     int referenced = 0;
5180     unsigned long long insn_referenced = abuf->written;
5181     INT in_usereg = -1;
5182     in_usereg = FLD (in_rn);
5183     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5184   }
5185   {
5186     int referenced = 0;
5187     unsigned long long insn_referenced = abuf->written;
5188     INT in_usereg = -1;
5189     in_usereg = FLD (in_rm);
5190     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5191   }
5192   {
5193     int referenced = 0;
5194     unsigned long long insn_referenced = abuf->written;
5195     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
5196   }
5197   {
5198     int referenced = 0;
5199     unsigned long long insn_referenced = abuf->written;
5200     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
5201   }
5202   return cycles;
5203 #undef FLD
5204 }
5205
5206 UINT
5207 sh5_compact_sh5_model::model_movb2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5208 {
5209 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5210   const sh5_compact_scache* abuf = sem;
5211   const sh5_compact_idesc* idesc = abuf->idesc;
5212   int cycles = 0;
5213   {
5214     INT in_usereg = -1;
5215     in_usereg = FLD (in_rn);
5216     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5217   }
5218   {
5219     INT in_usereg = -1;
5220     in_usereg = FLD (in_rm);
5221     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5222   }
5223   {
5224     cycles += model_u_exec_before (current_cpu, idesc, 2);
5225   }
5226   {
5227     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5228   }
5229   return cycles;
5230 #undef FLD
5231 }
5232
5233 UINT
5234 sh5_compact_sh5_model::model_movb2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5235 {
5236 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5237   const sh5_compact_scache* abuf = sem;
5238   const sh5_compact_idesc* idesc = abuf->idesc;
5239   int cycles = 0;
5240   {
5241     int referenced = 0;
5242     unsigned long long insn_referenced = abuf->written;
5243     INT in_usereg = -1;
5244     in_usereg = FLD (in_rn);
5245     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5246   }
5247   {
5248     int referenced = 0;
5249     unsigned long long insn_referenced = abuf->written;
5250     INT in_usereg = -1;
5251     in_usereg = FLD (in_rm);
5252     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5253   }
5254   {
5255     int referenced = 0;
5256     unsigned long long insn_referenced = abuf->written;
5257     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
5258   }
5259   {
5260     int referenced = 0;
5261     unsigned long long insn_referenced = abuf->written;
5262     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
5263   }
5264   return cycles;
5265 #undef FLD
5266 }
5267
5268 UINT
5269 sh5_compact_sh5_model::model_movb3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5270 {
5271 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
5272   const sh5_compact_scache* abuf = sem;
5273   const sh5_compact_idesc* idesc = abuf->idesc;
5274   int cycles = 0;
5275   {
5276     INT in_usereg = -1;
5277     in_usereg = FLD (in_rn);
5278     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5279   }
5280   {
5281     INT in_usereg = -1;
5282     in_usereg = FLD (in_rm);
5283     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5284   }
5285   {
5286     INT in_usereg = -1;
5287     in_usereg = FLD (in_r0);
5288     cycles += model_u_use_gr_before (current_cpu, idesc, 2, in_usereg);
5289   }
5290   {
5291     cycles += model_u_exec_before (current_cpu, idesc, 3);
5292   }
5293   {
5294     cycles += model_u_memory_access_before (current_cpu, idesc, 4);
5295   }
5296   return cycles;
5297 #undef FLD
5298 }
5299
5300 UINT
5301 sh5_compact_sh5_model::model_movb3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5302 {
5303 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
5304   const sh5_compact_scache* abuf = sem;
5305   const sh5_compact_idesc* idesc = abuf->idesc;
5306   int cycles = 0;
5307   {
5308     int referenced = 0;
5309     unsigned long long insn_referenced = abuf->written;
5310     INT in_usereg = -1;
5311     in_usereg = FLD (in_rn);
5312     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5313   }
5314   {
5315     int referenced = 0;
5316     unsigned long long insn_referenced = abuf->written;
5317     INT in_usereg = -1;
5318     in_usereg = FLD (in_rm);
5319     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5320   }
5321   {
5322     int referenced = 0;
5323     unsigned long long insn_referenced = abuf->written;
5324     INT in_usereg = -1;
5325     in_usereg = FLD (in_r0);
5326     cycles += model_u_use_gr_after (current_cpu, idesc, 2, referenced, in_usereg);
5327   }
5328   {
5329     int referenced = 0;
5330     unsigned long long insn_referenced = abuf->written;
5331     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
5332   }
5333   {
5334     int referenced = 0;
5335     unsigned long long insn_referenced = abuf->written;
5336     cycles += model_u_memory_access_after (current_cpu, idesc, 4, referenced);
5337   }
5338   return cycles;
5339 #undef FLD
5340 }
5341
5342 UINT
5343 sh5_compact_sh5_model::model_movb4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5344 {
5345 #define FLD(f) abuf->fields.sfmt_andi_compact.f
5346   const sh5_compact_scache* abuf = sem;
5347   const sh5_compact_idesc* idesc = abuf->idesc;
5348   int cycles = 0;
5349   {
5350     cycles += model_u_exec_before (current_cpu, idesc, 0);
5351   }
5352   {
5353     cycles += model_u_sx_before (current_cpu, idesc, 1);
5354   }
5355   {
5356     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
5357   }
5358   return cycles;
5359 #undef FLD
5360 }
5361
5362 UINT
5363 sh5_compact_sh5_model::model_movb4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5364 {
5365 #define FLD(f) abuf->fields.sfmt_andi_compact.f
5366   const sh5_compact_scache* abuf = sem;
5367   const sh5_compact_idesc* idesc = abuf->idesc;
5368   int cycles = 0;
5369   {
5370     int referenced = 0;
5371     unsigned long long insn_referenced = abuf->written;
5372     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
5373   }
5374   {
5375     int referenced = 0;
5376     unsigned long long insn_referenced = abuf->written;
5377     cycles += model_u_sx_after (current_cpu, idesc, 1, referenced);
5378   }
5379   {
5380     int referenced = 0;
5381     unsigned long long insn_referenced = abuf->written;
5382     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
5383   }
5384   return cycles;
5385 #undef FLD
5386 }
5387
5388 UINT
5389 sh5_compact_sh5_model::model_movb5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5390 {
5391 #define FLD(f) abuf->fields.sfmt_movb5_compact.f
5392   const sh5_compact_scache* abuf = sem;
5393   const sh5_compact_idesc* idesc = abuf->idesc;
5394   int cycles = 0;
5395   {
5396     INT in_usereg = -1;
5397     in_usereg = FLD (in_r0);
5398     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5399   }
5400   {
5401     INT in_usereg = -1;
5402     in_usereg = FLD (in_rm);
5403     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5404   }
5405   {
5406     cycles += model_u_exec_before (current_cpu, idesc, 2);
5407   }
5408   {
5409     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5410   }
5411   return cycles;
5412 #undef FLD
5413 }
5414
5415 UINT
5416 sh5_compact_sh5_model::model_movb5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5417 {
5418 #define FLD(f) abuf->fields.sfmt_movb5_compact.f
5419   const sh5_compact_scache* abuf = sem;
5420   const sh5_compact_idesc* idesc = abuf->idesc;
5421   int cycles = 0;
5422   {
5423     int referenced = 0;
5424     unsigned long long insn_referenced = abuf->written;
5425     INT in_usereg = -1;
5426     in_usereg = FLD (in_r0);
5427     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5428   }
5429   {
5430     int referenced = 0;
5431     unsigned long long insn_referenced = abuf->written;
5432     INT in_usereg = -1;
5433     in_usereg = FLD (in_rm);
5434     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5435   }
5436   {
5437     int referenced = 0;
5438     unsigned long long insn_referenced = abuf->written;
5439     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
5440   }
5441   {
5442     int referenced = 0;
5443     unsigned long long insn_referenced = abuf->written;
5444     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
5445   }
5446   return cycles;
5447 #undef FLD
5448 }
5449
5450 UINT
5451 sh5_compact_sh5_model::model_movb6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5452 {
5453 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
5454   const sh5_compact_scache* abuf = sem;
5455   const sh5_compact_idesc* idesc = abuf->idesc;
5456   int cycles = 0;
5457   {
5458     INT in_usereg = -1;
5459     in_usereg = FLD (in_rm);
5460     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5461   }
5462   {
5463     cycles += model_u_exec_before (current_cpu, idesc, 1);
5464   }
5465   {
5466     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
5467   }
5468   {
5469     INT out_loadreg = -1;
5470     out_loadreg = FLD (out_rn);
5471     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
5472   }
5473   return cycles;
5474 #undef FLD
5475 }
5476
5477 UINT
5478 sh5_compact_sh5_model::model_movb6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5479 {
5480 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
5481   const sh5_compact_scache* abuf = sem;
5482   const sh5_compact_idesc* idesc = abuf->idesc;
5483   int cycles = 0;
5484   {
5485     int referenced = 0;
5486     unsigned long long insn_referenced = abuf->written;
5487     INT in_usereg = -1;
5488     in_usereg = FLD (in_rm);
5489     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5490   }
5491   {
5492     int referenced = 0;
5493     unsigned long long insn_referenced = abuf->written;
5494     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
5495   }
5496   {
5497     int referenced = 0;
5498     unsigned long long insn_referenced = abuf->written;
5499     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
5500   }
5501   {
5502     int referenced = 0;
5503     unsigned long long insn_referenced = abuf->written;
5504     INT out_loadreg = -1;
5505     out_loadreg = FLD (out_rn);
5506     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
5507   }
5508   return cycles;
5509 #undef FLD
5510 }
5511
5512 UINT
5513 sh5_compact_sh5_model::model_movb7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5514 {
5515 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5516   const sh5_compact_scache* abuf = sem;
5517   const sh5_compact_idesc* idesc = abuf->idesc;
5518   int cycles = 0;
5519   {
5520     INT in_usereg = -1;
5521     in_usereg = FLD (in_rm);
5522     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5523   }
5524   {
5525     cycles += model_u_exec_before (current_cpu, idesc, 1);
5526   }
5527   {
5528     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
5529   }
5530   {
5531     INT out_loadreg = -1;
5532     out_loadreg = FLD (out_rn);
5533     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
5534   }
5535   return cycles;
5536 #undef FLD
5537 }
5538
5539 UINT
5540 sh5_compact_sh5_model::model_movb7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5541 {
5542 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5543   const sh5_compact_scache* abuf = sem;
5544   const sh5_compact_idesc* idesc = abuf->idesc;
5545   int cycles = 0;
5546   {
5547     int referenced = 0;
5548     unsigned long long insn_referenced = abuf->written;
5549     INT in_usereg = -1;
5550     in_usereg = FLD (in_rm);
5551     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5552   }
5553   {
5554     int referenced = 0;
5555     unsigned long long insn_referenced = abuf->written;
5556     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
5557   }
5558   {
5559     int referenced = 0;
5560     unsigned long long insn_referenced = abuf->written;
5561     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
5562   }
5563   {
5564     int referenced = 0;
5565     unsigned long long insn_referenced = abuf->written;
5566     INT out_loadreg = -1;
5567     out_loadreg = FLD (out_rn);
5568     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
5569   }
5570   return cycles;
5571 #undef FLD
5572 }
5573
5574 UINT
5575 sh5_compact_sh5_model::model_movb8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5576 {
5577 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
5578   const sh5_compact_scache* abuf = sem;
5579   const sh5_compact_idesc* idesc = abuf->idesc;
5580   int cycles = 0;
5581   {
5582     INT in_usereg = -1;
5583     in_usereg = FLD (in_rm);
5584     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5585   }
5586   {
5587     INT in_usereg = -1;
5588     in_usereg = FLD (in_r0);
5589     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5590   }
5591   {
5592     cycles += model_u_exec_before (current_cpu, idesc, 2);
5593   }
5594   {
5595     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5596   }
5597   {
5598     INT out_loadreg = -1;
5599     out_loadreg = FLD (out_rn);
5600     cycles += model_u_load_gr_before (current_cpu, idesc, 4, out_loadreg);
5601   }
5602   return cycles;
5603 #undef FLD
5604 }
5605
5606 UINT
5607 sh5_compact_sh5_model::model_movb8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5608 {
5609 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
5610   const sh5_compact_scache* abuf = sem;
5611   const sh5_compact_idesc* idesc = abuf->idesc;
5612   int cycles = 0;
5613   {
5614     int referenced = 0;
5615     unsigned long long insn_referenced = abuf->written;
5616     INT in_usereg = -1;
5617     in_usereg = FLD (in_rm);
5618     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5619   }
5620   {
5621     int referenced = 0;
5622     unsigned long long insn_referenced = abuf->written;
5623     INT in_usereg = -1;
5624     in_usereg = FLD (in_r0);
5625     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5626   }
5627   {
5628     int referenced = 0;
5629     unsigned long long insn_referenced = abuf->written;
5630     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
5631   }
5632   {
5633     int referenced = 0;
5634     unsigned long long insn_referenced = abuf->written;
5635     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
5636   }
5637   {
5638     int referenced = 0;
5639     unsigned long long insn_referenced = abuf->written;
5640     INT out_loadreg = -1;
5641     out_loadreg = FLD (out_rn);
5642     cycles += model_u_load_gr_after (current_cpu, idesc, 4, referenced, out_loadreg);
5643   }
5644   return cycles;
5645 #undef FLD
5646 }
5647
5648 UINT
5649 sh5_compact_sh5_model::model_movb9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5650 {
5651 #define FLD(f) abuf->fields.sfmt_andi_compact.f
5652   const sh5_compact_scache* abuf = sem;
5653   const sh5_compact_idesc* idesc = abuf->idesc;
5654   int cycles = 0;
5655   {
5656     cycles += model_u_exec_before (current_cpu, idesc, 0);
5657   }
5658   {
5659     cycles += model_u_memory_access_before (current_cpu, idesc, 1);
5660   }
5661   {
5662     INT out_loadreg = -1;
5663     out_loadreg = FLD (out_r0);
5664     cycles += model_u_load_gr_before (current_cpu, idesc, 2, out_loadreg);
5665   }
5666   return cycles;
5667 #undef FLD
5668 }
5669
5670 UINT
5671 sh5_compact_sh5_model::model_movb9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5672 {
5673 #define FLD(f) abuf->fields.sfmt_andi_compact.f
5674   const sh5_compact_scache* abuf = sem;
5675   const sh5_compact_idesc* idesc = abuf->idesc;
5676   int cycles = 0;
5677   {
5678     int referenced = 0;
5679     unsigned long long insn_referenced = abuf->written;
5680     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
5681   }
5682   {
5683     int referenced = 0;
5684     unsigned long long insn_referenced = abuf->written;
5685     cycles += model_u_memory_access_after (current_cpu, idesc, 1, referenced);
5686   }
5687   {
5688     int referenced = 0;
5689     unsigned long long insn_referenced = abuf->written;
5690     INT out_loadreg = -1;
5691     out_loadreg = FLD (out_r0);
5692     cycles += model_u_load_gr_after (current_cpu, idesc, 2, referenced, out_loadreg);
5693   }
5694   return cycles;
5695 #undef FLD
5696 }
5697
5698 UINT
5699 sh5_compact_sh5_model::model_movb10_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5700 {
5701 #define FLD(f) abuf->fields.sfmt_movb10_compact.f
5702   const sh5_compact_scache* abuf = sem;
5703   const sh5_compact_idesc* idesc = abuf->idesc;
5704   int cycles = 0;
5705   {
5706     INT in_usereg = -1;
5707     in_usereg = FLD (in_rm);
5708     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5709   }
5710   {
5711     cycles += model_u_exec_before (current_cpu, idesc, 1);
5712   }
5713   {
5714     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
5715   }
5716   {
5717     INT out_loadreg = -1;
5718     out_loadreg = FLD (out_r0);
5719     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
5720   }
5721   return cycles;
5722 #undef FLD
5723 }
5724
5725 UINT
5726 sh5_compact_sh5_model::model_movb10_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5727 {
5728 #define FLD(f) abuf->fields.sfmt_movb10_compact.f
5729   const sh5_compact_scache* abuf = sem;
5730   const sh5_compact_idesc* idesc = abuf->idesc;
5731   int cycles = 0;
5732   {
5733     int referenced = 0;
5734     unsigned long long insn_referenced = abuf->written;
5735     INT in_usereg = -1;
5736     in_usereg = FLD (in_rm);
5737     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5738   }
5739   {
5740     int referenced = 0;
5741     unsigned long long insn_referenced = abuf->written;
5742     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
5743   }
5744   {
5745     int referenced = 0;
5746     unsigned long long insn_referenced = abuf->written;
5747     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
5748   }
5749   {
5750     int referenced = 0;
5751     unsigned long long insn_referenced = abuf->written;
5752     INT out_loadreg = -1;
5753     out_loadreg = FLD (out_r0);
5754     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
5755   }
5756   return cycles;
5757 #undef FLD
5758 }
5759
5760 UINT
5761 sh5_compact_sh5_model::model_movl1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5762 {
5763 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
5764   const sh5_compact_scache* abuf = sem;
5765   const sh5_compact_idesc* idesc = abuf->idesc;
5766   int cycles = 0;
5767   {
5768     INT in_usereg = -1;
5769     in_usereg = FLD (in_rm);
5770     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5771   }
5772   {
5773     INT in_usereg = -1;
5774     in_usereg = FLD (in_rn);
5775     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5776   }
5777   {
5778     cycles += model_u_exec_before (current_cpu, idesc, 2);
5779   }
5780   {
5781     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5782   }
5783   return cycles;
5784 #undef FLD
5785 }
5786
5787 UINT
5788 sh5_compact_sh5_model::model_movl1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5789 {
5790 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
5791   const sh5_compact_scache* abuf = sem;
5792   const sh5_compact_idesc* idesc = abuf->idesc;
5793   int cycles = 0;
5794   {
5795     int referenced = 0;
5796     unsigned long long insn_referenced = abuf->written;
5797     INT in_usereg = -1;
5798     in_usereg = FLD (in_rm);
5799     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5800   }
5801   {
5802     int referenced = 0;
5803     unsigned long long insn_referenced = abuf->written;
5804     INT in_usereg = -1;
5805     in_usereg = FLD (in_rn);
5806     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5807   }
5808   {
5809     int referenced = 0;
5810     unsigned long long insn_referenced = abuf->written;
5811     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
5812   }
5813   {
5814     int referenced = 0;
5815     unsigned long long insn_referenced = abuf->written;
5816     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
5817   }
5818   return cycles;
5819 #undef FLD
5820 }
5821
5822 UINT
5823 sh5_compact_sh5_model::model_movl2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5824 {
5825 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5826   const sh5_compact_scache* abuf = sem;
5827   const sh5_compact_idesc* idesc = abuf->idesc;
5828   int cycles = 0;
5829   {
5830     INT in_usereg = -1;
5831     in_usereg = FLD (in_rm);
5832     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5833   }
5834   {
5835     INT in_usereg = -1;
5836     in_usereg = FLD (in_rn);
5837     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5838   }
5839   {
5840     cycles += model_u_exec_before (current_cpu, idesc, 2);
5841   }
5842   {
5843     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5844   }
5845   return cycles;
5846 #undef FLD
5847 }
5848
5849 UINT
5850 sh5_compact_sh5_model::model_movl2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5851 {
5852 #define FLD(f) abuf->fields.sfmt_macl_compact.f
5853   const sh5_compact_scache* abuf = sem;
5854   const sh5_compact_idesc* idesc = abuf->idesc;
5855   int cycles = 0;
5856   {
5857     int referenced = 0;
5858     unsigned long long insn_referenced = abuf->written;
5859     INT in_usereg = -1;
5860     in_usereg = FLD (in_rm);
5861     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5862   }
5863   {
5864     int referenced = 0;
5865     unsigned long long insn_referenced = abuf->written;
5866     INT in_usereg = -1;
5867     in_usereg = FLD (in_rn);
5868     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5869   }
5870   {
5871     int referenced = 0;
5872     unsigned long long insn_referenced = abuf->written;
5873     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
5874   }
5875   {
5876     int referenced = 0;
5877     unsigned long long insn_referenced = abuf->written;
5878     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
5879   }
5880   return cycles;
5881 #undef FLD
5882 }
5883
5884 UINT
5885 sh5_compact_sh5_model::model_movl3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5886 {
5887 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
5888   const sh5_compact_scache* abuf = sem;
5889   const sh5_compact_idesc* idesc = abuf->idesc;
5890   int cycles = 0;
5891   {
5892     INT in_usereg = -1;
5893     in_usereg = FLD (in_rm);
5894     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5895   }
5896   {
5897     INT in_usereg = -1;
5898     in_usereg = FLD (in_rn);
5899     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
5900   }
5901   {
5902     INT in_usereg = -1;
5903     in_usereg = FLD (in_r0);
5904     cycles += model_u_use_gr_before (current_cpu, idesc, 2, in_usereg);
5905   }
5906   {
5907     cycles += model_u_exec_before (current_cpu, idesc, 3);
5908   }
5909   {
5910     cycles += model_u_memory_access_before (current_cpu, idesc, 4);
5911   }
5912   return cycles;
5913 #undef FLD
5914 }
5915
5916 UINT
5917 sh5_compact_sh5_model::model_movl3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5918 {
5919 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
5920   const sh5_compact_scache* abuf = sem;
5921   const sh5_compact_idesc* idesc = abuf->idesc;
5922   int cycles = 0;
5923   {
5924     int referenced = 0;
5925     unsigned long long insn_referenced = abuf->written;
5926     INT in_usereg = -1;
5927     in_usereg = FLD (in_rm);
5928     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5929   }
5930   {
5931     int referenced = 0;
5932     unsigned long long insn_referenced = abuf->written;
5933     INT in_usereg = -1;
5934     in_usereg = FLD (in_rn);
5935     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
5936   }
5937   {
5938     int referenced = 0;
5939     unsigned long long insn_referenced = abuf->written;
5940     INT in_usereg = -1;
5941     in_usereg = FLD (in_r0);
5942     cycles += model_u_use_gr_after (current_cpu, idesc, 2, referenced, in_usereg);
5943   }
5944   {
5945     int referenced = 0;
5946     unsigned long long insn_referenced = abuf->written;
5947     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
5948   }
5949   {
5950     int referenced = 0;
5951     unsigned long long insn_referenced = abuf->written;
5952     cycles += model_u_memory_access_after (current_cpu, idesc, 4, referenced);
5953   }
5954   return cycles;
5955 #undef FLD
5956 }
5957
5958 UINT
5959 sh5_compact_sh5_model::model_movl4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5960 {
5961 #define FLD(f) abuf->fields.sfmt_movl4_compact.f
5962   const sh5_compact_scache* abuf = sem;
5963   const sh5_compact_idesc* idesc = abuf->idesc;
5964   int cycles = 0;
5965   {
5966     INT in_usereg = -1;
5967     in_usereg = FLD (in_r0);
5968     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
5969   }
5970   {
5971     cycles += model_u_exec_before (current_cpu, idesc, 1);
5972   }
5973   {
5974     cycles += model_u_sx_before (current_cpu, idesc, 2);
5975   }
5976   {
5977     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
5978   }
5979   return cycles;
5980 #undef FLD
5981 }
5982
5983 UINT
5984 sh5_compact_sh5_model::model_movl4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
5985 {
5986 #define FLD(f) abuf->fields.sfmt_movl4_compact.f
5987   const sh5_compact_scache* abuf = sem;
5988   const sh5_compact_idesc* idesc = abuf->idesc;
5989   int cycles = 0;
5990   {
5991     int referenced = 0;
5992     unsigned long long insn_referenced = abuf->written;
5993     INT in_usereg = -1;
5994     in_usereg = FLD (in_r0);
5995     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
5996   }
5997   {
5998     int referenced = 0;
5999     unsigned long long insn_referenced = abuf->written;
6000     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6001   }
6002   {
6003     int referenced = 0;
6004     unsigned long long insn_referenced = abuf->written;
6005     cycles += model_u_sx_after (current_cpu, idesc, 2, referenced);
6006   }
6007   {
6008     int referenced = 0;
6009     unsigned long long insn_referenced = abuf->written;
6010     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6011   }
6012   return cycles;
6013 #undef FLD
6014 }
6015
6016 UINT
6017 sh5_compact_sh5_model::model_movl5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6018 {
6019 #define FLD(f) abuf->fields.sfmt_movl5_compact.f
6020   const sh5_compact_scache* abuf = sem;
6021   const sh5_compact_idesc* idesc = abuf->idesc;
6022   int cycles = 0;
6023   {
6024     INT in_usereg = -1;
6025     in_usereg = FLD (in_rm);
6026     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6027   }
6028   {
6029     INT in_usereg = -1;
6030     in_usereg = FLD (in_rn);
6031     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
6032   }
6033   {
6034     cycles += model_u_exec_before (current_cpu, idesc, 2);
6035   }
6036   {
6037     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
6038   }
6039   return cycles;
6040 #undef FLD
6041 }
6042
6043 UINT
6044 sh5_compact_sh5_model::model_movl5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6045 {
6046 #define FLD(f) abuf->fields.sfmt_movl5_compact.f
6047   const sh5_compact_scache* abuf = sem;
6048   const sh5_compact_idesc* idesc = abuf->idesc;
6049   int cycles = 0;
6050   {
6051     int referenced = 0;
6052     unsigned long long insn_referenced = abuf->written;
6053     INT in_usereg = -1;
6054     in_usereg = FLD (in_rm);
6055     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6056   }
6057   {
6058     int referenced = 0;
6059     unsigned long long insn_referenced = abuf->written;
6060     INT in_usereg = -1;
6061     in_usereg = FLD (in_rn);
6062     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
6063   }
6064   {
6065     int referenced = 0;
6066     unsigned long long insn_referenced = abuf->written;
6067     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
6068   }
6069   {
6070     int referenced = 0;
6071     unsigned long long insn_referenced = abuf->written;
6072     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6073   }
6074   return cycles;
6075 #undef FLD
6076 }
6077
6078 UINT
6079 sh5_compact_sh5_model::model_movl6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6080 {
6081 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
6082   const sh5_compact_scache* abuf = sem;
6083   const sh5_compact_idesc* idesc = abuf->idesc;
6084   int cycles = 0;
6085   {
6086     INT in_usereg = -1;
6087     in_usereg = FLD (in_rm);
6088     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6089   }
6090   {
6091     cycles += model_u_exec_before (current_cpu, idesc, 1);
6092   }
6093   {
6094     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6095   }
6096   {
6097     INT out_loadreg = -1;
6098     out_loadreg = FLD (out_rn);
6099     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
6100   }
6101   return cycles;
6102 #undef FLD
6103 }
6104
6105 UINT
6106 sh5_compact_sh5_model::model_movl6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6107 {
6108 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
6109   const sh5_compact_scache* abuf = sem;
6110   const sh5_compact_idesc* idesc = abuf->idesc;
6111   int cycles = 0;
6112   {
6113     int referenced = 0;
6114     unsigned long long insn_referenced = abuf->written;
6115     INT in_usereg = -1;
6116     in_usereg = FLD (in_rm);
6117     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6118   }
6119   {
6120     int referenced = 0;
6121     unsigned long long insn_referenced = abuf->written;
6122     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6123   }
6124   {
6125     int referenced = 0;
6126     unsigned long long insn_referenced = abuf->written;
6127     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6128   }
6129   {
6130     int referenced = 0;
6131     unsigned long long insn_referenced = abuf->written;
6132     INT out_loadreg = -1;
6133     out_loadreg = FLD (out_rn);
6134     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
6135   }
6136   return cycles;
6137 #undef FLD
6138 }
6139
6140 UINT
6141 sh5_compact_sh5_model::model_movl7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6142 {
6143 #define FLD(f) abuf->fields.sfmt_macl_compact.f
6144   const sh5_compact_scache* abuf = sem;
6145   const sh5_compact_idesc* idesc = abuf->idesc;
6146   int cycles = 0;
6147   {
6148     INT in_usereg = -1;
6149     in_usereg = FLD (in_rm);
6150     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6151   }
6152   {
6153     cycles += model_u_exec_before (current_cpu, idesc, 1);
6154   }
6155   {
6156     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6157   }
6158   {
6159     INT out_loadreg = -1;
6160     out_loadreg = FLD (out_rn);
6161     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
6162   }
6163   return cycles;
6164 #undef FLD
6165 }
6166
6167 UINT
6168 sh5_compact_sh5_model::model_movl7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6169 {
6170 #define FLD(f) abuf->fields.sfmt_macl_compact.f
6171   const sh5_compact_scache* abuf = sem;
6172   const sh5_compact_idesc* idesc = abuf->idesc;
6173   int cycles = 0;
6174   {
6175     int referenced = 0;
6176     unsigned long long insn_referenced = abuf->written;
6177     INT in_usereg = -1;
6178     in_usereg = FLD (in_rm);
6179     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6180   }
6181   {
6182     int referenced = 0;
6183     unsigned long long insn_referenced = abuf->written;
6184     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6185   }
6186   {
6187     int referenced = 0;
6188     unsigned long long insn_referenced = abuf->written;
6189     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6190   }
6191   {
6192     int referenced = 0;
6193     unsigned long long insn_referenced = abuf->written;
6194     INT out_loadreg = -1;
6195     out_loadreg = FLD (out_rn);
6196     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
6197   }
6198   return cycles;
6199 #undef FLD
6200 }
6201
6202 UINT
6203 sh5_compact_sh5_model::model_movl8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6204 {
6205 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
6206   const sh5_compact_scache* abuf = sem;
6207   const sh5_compact_idesc* idesc = abuf->idesc;
6208   int cycles = 0;
6209   {
6210     INT in_usereg = -1;
6211     in_usereg = FLD (in_rm);
6212     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6213   }
6214   {
6215     INT in_usereg = -1;
6216     in_usereg = FLD (in_r0);
6217     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
6218   }
6219   {
6220     cycles += model_u_exec_before (current_cpu, idesc, 2);
6221   }
6222   {
6223     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
6224   }
6225   {
6226     INT out_loadreg = -1;
6227     out_loadreg = FLD (out_rn);
6228     cycles += model_u_load_gr_before (current_cpu, idesc, 4, out_loadreg);
6229   }
6230   return cycles;
6231 #undef FLD
6232 }
6233
6234 UINT
6235 sh5_compact_sh5_model::model_movl8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6236 {
6237 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
6238   const sh5_compact_scache* abuf = sem;
6239   const sh5_compact_idesc* idesc = abuf->idesc;
6240   int cycles = 0;
6241   {
6242     int referenced = 0;
6243     unsigned long long insn_referenced = abuf->written;
6244     INT in_usereg = -1;
6245     in_usereg = FLD (in_rm);
6246     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6247   }
6248   {
6249     int referenced = 0;
6250     unsigned long long insn_referenced = abuf->written;
6251     INT in_usereg = -1;
6252     in_usereg = FLD (in_r0);
6253     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
6254   }
6255   {
6256     int referenced = 0;
6257     unsigned long long insn_referenced = abuf->written;
6258     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
6259   }
6260   {
6261     int referenced = 0;
6262     unsigned long long insn_referenced = abuf->written;
6263     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6264   }
6265   {
6266     int referenced = 0;
6267     unsigned long long insn_referenced = abuf->written;
6268     INT out_loadreg = -1;
6269     out_loadreg = FLD (out_rn);
6270     cycles += model_u_load_gr_after (current_cpu, idesc, 4, referenced, out_loadreg);
6271   }
6272   return cycles;
6273 #undef FLD
6274 }
6275
6276 UINT
6277 sh5_compact_sh5_model::model_movl9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6278 {
6279 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
6280   const sh5_compact_scache* abuf = sem;
6281   const sh5_compact_idesc* idesc = abuf->idesc;
6282   int cycles = 0;
6283   {
6284     cycles += model_u_exec_before (current_cpu, idesc, 0);
6285   }
6286   {
6287     cycles += model_u_memory_access_before (current_cpu, idesc, 1);
6288   }
6289   {
6290     INT out_loadreg = -1;
6291     out_loadreg = FLD (out_r0);
6292     cycles += model_u_load_gr_before (current_cpu, idesc, 2, out_loadreg);
6293   }
6294   return cycles;
6295 #undef FLD
6296 }
6297
6298 UINT
6299 sh5_compact_sh5_model::model_movl9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6300 {
6301 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
6302   const sh5_compact_scache* abuf = sem;
6303   const sh5_compact_idesc* idesc = abuf->idesc;
6304   int cycles = 0;
6305   {
6306     int referenced = 0;
6307     unsigned long long insn_referenced = abuf->written;
6308     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
6309   }
6310   {
6311     int referenced = 0;
6312     unsigned long long insn_referenced = abuf->written;
6313     cycles += model_u_memory_access_after (current_cpu, idesc, 1, referenced);
6314   }
6315   {
6316     int referenced = 0;
6317     unsigned long long insn_referenced = abuf->written;
6318     INT out_loadreg = -1;
6319     out_loadreg = FLD (out_r0);
6320     cycles += model_u_load_gr_after (current_cpu, idesc, 2, referenced, out_loadreg);
6321   }
6322   return cycles;
6323 #undef FLD
6324 }
6325
6326 UINT
6327 sh5_compact_sh5_model::model_movl10_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6328 {
6329 #define FLD(f) abuf->fields.sfmt_movl10_compact.f
6330   const sh5_compact_scache* abuf = sem;
6331   const sh5_compact_idesc* idesc = abuf->idesc;
6332   int cycles = 0;
6333   {
6334     cycles += model_u_exec_before (current_cpu, idesc, 0);
6335   }
6336   {
6337     cycles += model_u_memory_access_before (current_cpu, idesc, 1);
6338   }
6339   {
6340     INT out_loadreg = -1;
6341     out_loadreg = FLD (out_rn);
6342     cycles += model_u_load_gr_before (current_cpu, idesc, 2, out_loadreg);
6343   }
6344   return cycles;
6345 #undef FLD
6346 }
6347
6348 UINT
6349 sh5_compact_sh5_model::model_movl10_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6350 {
6351 #define FLD(f) abuf->fields.sfmt_movl10_compact.f
6352   const sh5_compact_scache* abuf = sem;
6353   const sh5_compact_idesc* idesc = abuf->idesc;
6354   int cycles = 0;
6355   {
6356     int referenced = 0;
6357     unsigned long long insn_referenced = abuf->written;
6358     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
6359   }
6360   {
6361     int referenced = 0;
6362     unsigned long long insn_referenced = abuf->written;
6363     cycles += model_u_memory_access_after (current_cpu, idesc, 1, referenced);
6364   }
6365   {
6366     int referenced = 0;
6367     unsigned long long insn_referenced = abuf->written;
6368     INT out_loadreg = -1;
6369     out_loadreg = FLD (out_rn);
6370     cycles += model_u_load_gr_after (current_cpu, idesc, 2, referenced, out_loadreg);
6371   }
6372   return cycles;
6373 #undef FLD
6374 }
6375
6376 UINT
6377 sh5_compact_sh5_model::model_movl11_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6378 {
6379 #define FLD(f) abuf->fields.sfmt_movl11_compact.f
6380   const sh5_compact_scache* abuf = sem;
6381   const sh5_compact_idesc* idesc = abuf->idesc;
6382   int cycles = 0;
6383   {
6384     INT in_usereg = -1;
6385     in_usereg = FLD (in_rm);
6386     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6387   }
6388   {
6389     cycles += model_u_exec_before (current_cpu, idesc, 1);
6390   }
6391   {
6392     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6393   }
6394   {
6395     INT out_loadreg = -1;
6396     out_loadreg = FLD (out_rn);
6397     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
6398   }
6399   return cycles;
6400 #undef FLD
6401 }
6402
6403 UINT
6404 sh5_compact_sh5_model::model_movl11_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6405 {
6406 #define FLD(f) abuf->fields.sfmt_movl11_compact.f
6407   const sh5_compact_scache* abuf = sem;
6408   const sh5_compact_idesc* idesc = abuf->idesc;
6409   int cycles = 0;
6410   {
6411     int referenced = 0;
6412     unsigned long long insn_referenced = abuf->written;
6413     INT in_usereg = -1;
6414     in_usereg = FLD (in_rm);
6415     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6416   }
6417   {
6418     int referenced = 0;
6419     unsigned long long insn_referenced = abuf->written;
6420     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6421   }
6422   {
6423     int referenced = 0;
6424     unsigned long long insn_referenced = abuf->written;
6425     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6426   }
6427   {
6428     int referenced = 0;
6429     unsigned long long insn_referenced = abuf->written;
6430     INT out_loadreg = -1;
6431     out_loadreg = FLD (out_rn);
6432     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
6433   }
6434   return cycles;
6435 #undef FLD
6436 }
6437
6438 UINT
6439 sh5_compact_sh5_model::model_movl12_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6440 {
6441 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
6442   const sh5_compact_scache* abuf = sem;
6443   const sh5_compact_idesc* idesc = abuf->idesc;
6444   int cycles = 0;
6445   {
6446     INT in_usereg = -1;
6447     in_usereg = FLD (in_rm);
6448     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6449   }
6450   {
6451     cycles += model_u_exec_before (current_cpu, idesc, 1);
6452   }
6453   {
6454     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6455   }
6456   {
6457     INT out_loadreg = -1;
6458     out_loadreg = FLD (out_rn);
6459     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
6460   }
6461   return cycles;
6462 #undef FLD
6463 }
6464
6465 UINT
6466 sh5_compact_sh5_model::model_movl12_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6467 {
6468 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
6469   const sh5_compact_scache* abuf = sem;
6470   const sh5_compact_idesc* idesc = abuf->idesc;
6471   int cycles = 0;
6472   {
6473     int referenced = 0;
6474     unsigned long long insn_referenced = abuf->written;
6475     INT in_usereg = -1;
6476     in_usereg = FLD (in_rm);
6477     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6478   }
6479   {
6480     int referenced = 0;
6481     unsigned long long insn_referenced = abuf->written;
6482     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6483   }
6484   {
6485     int referenced = 0;
6486     unsigned long long insn_referenced = abuf->written;
6487     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6488   }
6489   {
6490     int referenced = 0;
6491     unsigned long long insn_referenced = abuf->written;
6492     INT out_loadreg = -1;
6493     out_loadreg = FLD (out_rn);
6494     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
6495   }
6496   return cycles;
6497 #undef FLD
6498 }
6499
6500 UINT
6501 sh5_compact_sh5_model::model_movl13_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6502 {
6503 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
6504   const sh5_compact_scache* abuf = sem;
6505   const sh5_compact_idesc* idesc = abuf->idesc;
6506   int cycles = 0;
6507   {
6508     INT in_usereg = -1;
6509     in_usereg = FLD (in_rm);
6510     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6511   }
6512   {
6513     cycles += model_u_exec_before (current_cpu, idesc, 1);
6514   }
6515   {
6516     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6517   }
6518   return cycles;
6519 #undef FLD
6520 }
6521
6522 UINT
6523 sh5_compact_sh5_model::model_movl13_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6524 {
6525 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
6526   const sh5_compact_scache* abuf = sem;
6527   const sh5_compact_idesc* idesc = abuf->idesc;
6528   int cycles = 0;
6529   {
6530     int referenced = 0;
6531     unsigned long long insn_referenced = abuf->written;
6532     INT in_usereg = -1;
6533     in_usereg = FLD (in_rm);
6534     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6535   }
6536   {
6537     int referenced = 0;
6538     unsigned long long insn_referenced = abuf->written;
6539     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6540   }
6541   {
6542     int referenced = 0;
6543     unsigned long long insn_referenced = abuf->written;
6544     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6545   }
6546   return cycles;
6547 #undef FLD
6548 }
6549
6550 UINT
6551 sh5_compact_sh5_model::model_movw1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6552 {
6553 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
6554   const sh5_compact_scache* abuf = sem;
6555   const sh5_compact_idesc* idesc = abuf->idesc;
6556   int cycles = 0;
6557   {
6558     INT in_usereg = -1;
6559     in_usereg = FLD (in_rm);
6560     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6561   }
6562   {
6563     INT in_usereg = -1;
6564     in_usereg = FLD (in_rn);
6565     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
6566   }
6567   {
6568     cycles += model_u_exec_before (current_cpu, idesc, 2);
6569   }
6570   {
6571     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
6572   }
6573   return cycles;
6574 #undef FLD
6575 }
6576
6577 UINT
6578 sh5_compact_sh5_model::model_movw1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6579 {
6580 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
6581   const sh5_compact_scache* abuf = sem;
6582   const sh5_compact_idesc* idesc = abuf->idesc;
6583   int cycles = 0;
6584   {
6585     int referenced = 0;
6586     unsigned long long insn_referenced = abuf->written;
6587     INT in_usereg = -1;
6588     in_usereg = FLD (in_rm);
6589     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6590   }
6591   {
6592     int referenced = 0;
6593     unsigned long long insn_referenced = abuf->written;
6594     INT in_usereg = -1;
6595     in_usereg = FLD (in_rn);
6596     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
6597   }
6598   {
6599     int referenced = 0;
6600     unsigned long long insn_referenced = abuf->written;
6601     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
6602   }
6603   {
6604     int referenced = 0;
6605     unsigned long long insn_referenced = abuf->written;
6606     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6607   }
6608   return cycles;
6609 #undef FLD
6610 }
6611
6612 UINT
6613 sh5_compact_sh5_model::model_movw2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6614 {
6615 #define FLD(f) abuf->fields.sfmt_macl_compact.f
6616   const sh5_compact_scache* abuf = sem;
6617   const sh5_compact_idesc* idesc = abuf->idesc;
6618   int cycles = 0;
6619   {
6620     INT in_usereg = -1;
6621     in_usereg = FLD (in_rm);
6622     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6623   }
6624   {
6625     INT in_usereg = -1;
6626     in_usereg = FLD (in_rn);
6627     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
6628   }
6629   {
6630     cycles += model_u_exec_before (current_cpu, idesc, 2);
6631   }
6632   {
6633     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
6634   }
6635   return cycles;
6636 #undef FLD
6637 }
6638
6639 UINT
6640 sh5_compact_sh5_model::model_movw2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6641 {
6642 #define FLD(f) abuf->fields.sfmt_macl_compact.f
6643   const sh5_compact_scache* abuf = sem;
6644   const sh5_compact_idesc* idesc = abuf->idesc;
6645   int cycles = 0;
6646   {
6647     int referenced = 0;
6648     unsigned long long insn_referenced = abuf->written;
6649     INT in_usereg = -1;
6650     in_usereg = FLD (in_rm);
6651     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6652   }
6653   {
6654     int referenced = 0;
6655     unsigned long long insn_referenced = abuf->written;
6656     INT in_usereg = -1;
6657     in_usereg = FLD (in_rn);
6658     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
6659   }
6660   {
6661     int referenced = 0;
6662     unsigned long long insn_referenced = abuf->written;
6663     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
6664   }
6665   {
6666     int referenced = 0;
6667     unsigned long long insn_referenced = abuf->written;
6668     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6669   }
6670   return cycles;
6671 #undef FLD
6672 }
6673
6674 UINT
6675 sh5_compact_sh5_model::model_movw3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6676 {
6677 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
6678   const sh5_compact_scache* abuf = sem;
6679   const sh5_compact_idesc* idesc = abuf->idesc;
6680   int cycles = 0;
6681   {
6682     INT in_usereg = -1;
6683     in_usereg = FLD (in_rm);
6684     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6685   }
6686   {
6687     INT in_usereg = -1;
6688     in_usereg = FLD (in_rn);
6689     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
6690   }
6691   {
6692     INT in_usereg = -1;
6693     in_usereg = FLD (in_r0);
6694     cycles += model_u_use_gr_before (current_cpu, idesc, 2, in_usereg);
6695   }
6696   {
6697     cycles += model_u_exec_before (current_cpu, idesc, 3);
6698   }
6699   {
6700     cycles += model_u_memory_access_before (current_cpu, idesc, 4);
6701   }
6702   return cycles;
6703 #undef FLD
6704 }
6705
6706 UINT
6707 sh5_compact_sh5_model::model_movw3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6708 {
6709 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
6710   const sh5_compact_scache* abuf = sem;
6711   const sh5_compact_idesc* idesc = abuf->idesc;
6712   int cycles = 0;
6713   {
6714     int referenced = 0;
6715     unsigned long long insn_referenced = abuf->written;
6716     INT in_usereg = -1;
6717     in_usereg = FLD (in_rm);
6718     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6719   }
6720   {
6721     int referenced = 0;
6722     unsigned long long insn_referenced = abuf->written;
6723     INT in_usereg = -1;
6724     in_usereg = FLD (in_rn);
6725     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
6726   }
6727   {
6728     int referenced = 0;
6729     unsigned long long insn_referenced = abuf->written;
6730     INT in_usereg = -1;
6731     in_usereg = FLD (in_r0);
6732     cycles += model_u_use_gr_after (current_cpu, idesc, 2, referenced, in_usereg);
6733   }
6734   {
6735     int referenced = 0;
6736     unsigned long long insn_referenced = abuf->written;
6737     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
6738   }
6739   {
6740     int referenced = 0;
6741     unsigned long long insn_referenced = abuf->written;
6742     cycles += model_u_memory_access_after (current_cpu, idesc, 4, referenced);
6743   }
6744   return cycles;
6745 #undef FLD
6746 }
6747
6748 UINT
6749 sh5_compact_sh5_model::model_movw4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6750 {
6751 #define FLD(f) abuf->fields.sfmt_movw4_compact.f
6752   const sh5_compact_scache* abuf = sem;
6753   const sh5_compact_idesc* idesc = abuf->idesc;
6754   int cycles = 0;
6755   {
6756     INT in_usereg = -1;
6757     in_usereg = FLD (in_r0);
6758     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6759   }
6760   {
6761     cycles += model_u_exec_before (current_cpu, idesc, 1);
6762   }
6763   {
6764     cycles += model_u_sx_before (current_cpu, idesc, 2);
6765   }
6766   {
6767     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
6768   }
6769   return cycles;
6770 #undef FLD
6771 }
6772
6773 UINT
6774 sh5_compact_sh5_model::model_movw4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6775 {
6776 #define FLD(f) abuf->fields.sfmt_movw4_compact.f
6777   const sh5_compact_scache* abuf = sem;
6778   const sh5_compact_idesc* idesc = abuf->idesc;
6779   int cycles = 0;
6780   {
6781     int referenced = 0;
6782     unsigned long long insn_referenced = abuf->written;
6783     INT in_usereg = -1;
6784     in_usereg = FLD (in_r0);
6785     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6786   }
6787   {
6788     int referenced = 0;
6789     unsigned long long insn_referenced = abuf->written;
6790     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6791   }
6792   {
6793     int referenced = 0;
6794     unsigned long long insn_referenced = abuf->written;
6795     cycles += model_u_sx_after (current_cpu, idesc, 2, referenced);
6796   }
6797   {
6798     int referenced = 0;
6799     unsigned long long insn_referenced = abuf->written;
6800     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6801   }
6802   return cycles;
6803 #undef FLD
6804 }
6805
6806 UINT
6807 sh5_compact_sh5_model::model_movw5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6808 {
6809 #define FLD(f) abuf->fields.sfmt_movw5_compact.f
6810   const sh5_compact_scache* abuf = sem;
6811   const sh5_compact_idesc* idesc = abuf->idesc;
6812   int cycles = 0;
6813   {
6814     INT in_usereg = -1;
6815     in_usereg = FLD (in_rm);
6816     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6817   }
6818   {
6819     INT in_usereg = -1;
6820     in_usereg = FLD (in_r0);
6821     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
6822   }
6823   {
6824     cycles += model_u_exec_before (current_cpu, idesc, 2);
6825   }
6826   {
6827     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
6828   }
6829   return cycles;
6830 #undef FLD
6831 }
6832
6833 UINT
6834 sh5_compact_sh5_model::model_movw5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6835 {
6836 #define FLD(f) abuf->fields.sfmt_movw5_compact.f
6837   const sh5_compact_scache* abuf = sem;
6838   const sh5_compact_idesc* idesc = abuf->idesc;
6839   int cycles = 0;
6840   {
6841     int referenced = 0;
6842     unsigned long long insn_referenced = abuf->written;
6843     INT in_usereg = -1;
6844     in_usereg = FLD (in_rm);
6845     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6846   }
6847   {
6848     int referenced = 0;
6849     unsigned long long insn_referenced = abuf->written;
6850     INT in_usereg = -1;
6851     in_usereg = FLD (in_r0);
6852     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
6853   }
6854   {
6855     int referenced = 0;
6856     unsigned long long insn_referenced = abuf->written;
6857     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
6858   }
6859   {
6860     int referenced = 0;
6861     unsigned long long insn_referenced = abuf->written;
6862     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
6863   }
6864   return cycles;
6865 #undef FLD
6866 }
6867
6868 UINT
6869 sh5_compact_sh5_model::model_movw6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6870 {
6871 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
6872   const sh5_compact_scache* abuf = sem;
6873   const sh5_compact_idesc* idesc = abuf->idesc;
6874   int cycles = 0;
6875   {
6876     INT in_usereg = -1;
6877     in_usereg = FLD (in_rm);
6878     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6879   }
6880   {
6881     cycles += model_u_exec_before (current_cpu, idesc, 1);
6882   }
6883   {
6884     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6885   }
6886   {
6887     INT out_loadreg = -1;
6888     out_loadreg = FLD (out_rn);
6889     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
6890   }
6891   return cycles;
6892 #undef FLD
6893 }
6894
6895 UINT
6896 sh5_compact_sh5_model::model_movw6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6897 {
6898 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
6899   const sh5_compact_scache* abuf = sem;
6900   const sh5_compact_idesc* idesc = abuf->idesc;
6901   int cycles = 0;
6902   {
6903     int referenced = 0;
6904     unsigned long long insn_referenced = abuf->written;
6905     INT in_usereg = -1;
6906     in_usereg = FLD (in_rm);
6907     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6908   }
6909   {
6910     int referenced = 0;
6911     unsigned long long insn_referenced = abuf->written;
6912     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6913   }
6914   {
6915     int referenced = 0;
6916     unsigned long long insn_referenced = abuf->written;
6917     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6918   }
6919   {
6920     int referenced = 0;
6921     unsigned long long insn_referenced = abuf->written;
6922     INT out_loadreg = -1;
6923     out_loadreg = FLD (out_rn);
6924     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
6925   }
6926   return cycles;
6927 #undef FLD
6928 }
6929
6930 UINT
6931 sh5_compact_sh5_model::model_movw7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6932 {
6933 #define FLD(f) abuf->fields.sfmt_macl_compact.f
6934   const sh5_compact_scache* abuf = sem;
6935   const sh5_compact_idesc* idesc = abuf->idesc;
6936   int cycles = 0;
6937   {
6938     INT in_usereg = -1;
6939     in_usereg = FLD (in_rm);
6940     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
6941   }
6942   {
6943     cycles += model_u_exec_before (current_cpu, idesc, 1);
6944   }
6945   {
6946     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
6947   }
6948   {
6949     INT out_loadreg = -1;
6950     out_loadreg = FLD (out_rn);
6951     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
6952   }
6953   return cycles;
6954 #undef FLD
6955 }
6956
6957 UINT
6958 sh5_compact_sh5_model::model_movw7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6959 {
6960 #define FLD(f) abuf->fields.sfmt_macl_compact.f
6961   const sh5_compact_scache* abuf = sem;
6962   const sh5_compact_idesc* idesc = abuf->idesc;
6963   int cycles = 0;
6964   {
6965     int referenced = 0;
6966     unsigned long long insn_referenced = abuf->written;
6967     INT in_usereg = -1;
6968     in_usereg = FLD (in_rm);
6969     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
6970   }
6971   {
6972     int referenced = 0;
6973     unsigned long long insn_referenced = abuf->written;
6974     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
6975   }
6976   {
6977     int referenced = 0;
6978     unsigned long long insn_referenced = abuf->written;
6979     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
6980   }
6981   {
6982     int referenced = 0;
6983     unsigned long long insn_referenced = abuf->written;
6984     INT out_loadreg = -1;
6985     out_loadreg = FLD (out_rn);
6986     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
6987   }
6988   return cycles;
6989 #undef FLD
6990 }
6991
6992 UINT
6993 sh5_compact_sh5_model::model_movw8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
6994 {
6995 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
6996   const sh5_compact_scache* abuf = sem;
6997   const sh5_compact_idesc* idesc = abuf->idesc;
6998   int cycles = 0;
6999   {
7000     INT in_usereg = -1;
7001     in_usereg = FLD (in_rm);
7002     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7003   }
7004   {
7005     INT in_usereg = -1;
7006     in_usereg = FLD (in_r0);
7007     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
7008   }
7009   {
7010     cycles += model_u_exec_before (current_cpu, idesc, 2);
7011   }
7012   {
7013     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
7014   }
7015   {
7016     INT out_loadreg = -1;
7017     out_loadreg = FLD (out_rn);
7018     cycles += model_u_load_gr_before (current_cpu, idesc, 4, out_loadreg);
7019   }
7020   return cycles;
7021 #undef FLD
7022 }
7023
7024 UINT
7025 sh5_compact_sh5_model::model_movw8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7026 {
7027 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
7028   const sh5_compact_scache* abuf = sem;
7029   const sh5_compact_idesc* idesc = abuf->idesc;
7030   int cycles = 0;
7031   {
7032     int referenced = 0;
7033     unsigned long long insn_referenced = abuf->written;
7034     INT in_usereg = -1;
7035     in_usereg = FLD (in_rm);
7036     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7037   }
7038   {
7039     int referenced = 0;
7040     unsigned long long insn_referenced = abuf->written;
7041     INT in_usereg = -1;
7042     in_usereg = FLD (in_r0);
7043     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
7044   }
7045   {
7046     int referenced = 0;
7047     unsigned long long insn_referenced = abuf->written;
7048     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
7049   }
7050   {
7051     int referenced = 0;
7052     unsigned long long insn_referenced = abuf->written;
7053     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
7054   }
7055   {
7056     int referenced = 0;
7057     unsigned long long insn_referenced = abuf->written;
7058     INT out_loadreg = -1;
7059     out_loadreg = FLD (out_rn);
7060     cycles += model_u_load_gr_after (current_cpu, idesc, 4, referenced, out_loadreg);
7061   }
7062   return cycles;
7063 #undef FLD
7064 }
7065
7066 UINT
7067 sh5_compact_sh5_model::model_movw9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7068 {
7069 #define FLD(f) abuf->fields.sfmt_movw9_compact.f
7070   const sh5_compact_scache* abuf = sem;
7071   const sh5_compact_idesc* idesc = abuf->idesc;
7072   int cycles = 0;
7073   {
7074     cycles += model_u_exec_before (current_cpu, idesc, 0);
7075   }
7076   {
7077     cycles += model_u_memory_access_before (current_cpu, idesc, 1);
7078   }
7079   {
7080     INT out_loadreg = -1;
7081     out_loadreg = FLD (out_r0);
7082     cycles += model_u_load_gr_before (current_cpu, idesc, 2, out_loadreg);
7083   }
7084   return cycles;
7085 #undef FLD
7086 }
7087
7088 UINT
7089 sh5_compact_sh5_model::model_movw9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7090 {
7091 #define FLD(f) abuf->fields.sfmt_movw9_compact.f
7092   const sh5_compact_scache* abuf = sem;
7093   const sh5_compact_idesc* idesc = abuf->idesc;
7094   int cycles = 0;
7095   {
7096     int referenced = 0;
7097     unsigned long long insn_referenced = abuf->written;
7098     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
7099   }
7100   {
7101     int referenced = 0;
7102     unsigned long long insn_referenced = abuf->written;
7103     cycles += model_u_memory_access_after (current_cpu, idesc, 1, referenced);
7104   }
7105   {
7106     int referenced = 0;
7107     unsigned long long insn_referenced = abuf->written;
7108     INT out_loadreg = -1;
7109     out_loadreg = FLD (out_r0);
7110     cycles += model_u_load_gr_after (current_cpu, idesc, 2, referenced, out_loadreg);
7111   }
7112   return cycles;
7113 #undef FLD
7114 }
7115
7116 UINT
7117 sh5_compact_sh5_model::model_movw10_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7118 {
7119 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
7120   const sh5_compact_scache* abuf = sem;
7121   const sh5_compact_idesc* idesc = abuf->idesc;
7122   int cycles = 0;
7123   {
7124     cycles += model_u_exec_before (current_cpu, idesc, 0);
7125   }
7126   {
7127     cycles += model_u_memory_access_before (current_cpu, idesc, 1);
7128   }
7129   {
7130     INT out_loadreg = -1;
7131     out_loadreg = FLD (out_rn);
7132     cycles += model_u_load_gr_before (current_cpu, idesc, 2, out_loadreg);
7133   }
7134   return cycles;
7135 #undef FLD
7136 }
7137
7138 UINT
7139 sh5_compact_sh5_model::model_movw10_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7140 {
7141 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
7142   const sh5_compact_scache* abuf = sem;
7143   const sh5_compact_idesc* idesc = abuf->idesc;
7144   int cycles = 0;
7145   {
7146     int referenced = 0;
7147     unsigned long long insn_referenced = abuf->written;
7148     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
7149   }
7150   {
7151     int referenced = 0;
7152     unsigned long long insn_referenced = abuf->written;
7153     cycles += model_u_memory_access_after (current_cpu, idesc, 1, referenced);
7154   }
7155   {
7156     int referenced = 0;
7157     unsigned long long insn_referenced = abuf->written;
7158     INT out_loadreg = -1;
7159     out_loadreg = FLD (out_rn);
7160     cycles += model_u_load_gr_after (current_cpu, idesc, 2, referenced, out_loadreg);
7161   }
7162   return cycles;
7163 #undef FLD
7164 }
7165
7166 UINT
7167 sh5_compact_sh5_model::model_movw11_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7168 {
7169 #define FLD(f) abuf->fields.sfmt_movw11_compact.f
7170   const sh5_compact_scache* abuf = sem;
7171   const sh5_compact_idesc* idesc = abuf->idesc;
7172   int cycles = 0;
7173   {
7174     INT in_usereg = -1;
7175     in_usereg = FLD (in_rm);
7176     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7177   }
7178   {
7179     cycles += model_u_exec_before (current_cpu, idesc, 1);
7180   }
7181   {
7182     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
7183   }
7184   {
7185     INT out_loadreg = -1;
7186     out_loadreg = FLD (out_r0);
7187     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
7188   }
7189   return cycles;
7190 #undef FLD
7191 }
7192
7193 UINT
7194 sh5_compact_sh5_model::model_movw11_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7195 {
7196 #define FLD(f) abuf->fields.sfmt_movw11_compact.f
7197   const sh5_compact_scache* abuf = sem;
7198   const sh5_compact_idesc* idesc = abuf->idesc;
7199   int cycles = 0;
7200   {
7201     int referenced = 0;
7202     unsigned long long insn_referenced = abuf->written;
7203     INT in_usereg = -1;
7204     in_usereg = FLD (in_rm);
7205     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7206   }
7207   {
7208     int referenced = 0;
7209     unsigned long long insn_referenced = abuf->written;
7210     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7211   }
7212   {
7213     int referenced = 0;
7214     unsigned long long insn_referenced = abuf->written;
7215     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
7216   }
7217   {
7218     int referenced = 0;
7219     unsigned long long insn_referenced = abuf->written;
7220     INT out_loadreg = -1;
7221     out_loadreg = FLD (out_r0);
7222     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
7223   }
7224   return cycles;
7225 #undef FLD
7226 }
7227
7228 UINT
7229 sh5_compact_sh5_model::model_mova_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7230 {
7231 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
7232   const sh5_compact_scache* abuf = sem;
7233   const sh5_compact_idesc* idesc = abuf->idesc;
7234   int cycles = 0;
7235   {
7236     cycles += model_u_exec_before (current_cpu, idesc, 0);
7237   }
7238   return cycles;
7239 #undef FLD
7240 }
7241
7242 UINT
7243 sh5_compact_sh5_model::model_mova_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7244 {
7245 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
7246   const sh5_compact_scache* abuf = sem;
7247   const sh5_compact_idesc* idesc = abuf->idesc;
7248   int cycles = 0;
7249   {
7250     int referenced = 0;
7251     unsigned long long insn_referenced = abuf->written;
7252     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
7253   }
7254   return cycles;
7255 #undef FLD
7256 }
7257
7258 UINT
7259 sh5_compact_sh5_model::model_movcal_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7260 {
7261 #define FLD(f) abuf->fields.sfmt_divu_compact.f
7262   const sh5_compact_scache* abuf = sem;
7263   const sh5_compact_idesc* idesc = abuf->idesc;
7264   int cycles = 0;
7265   {
7266     INT in_usereg = -1;
7267     in_usereg = FLD (in_rn);
7268     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7269   }
7270   {
7271     cycles += model_u_ocb_before (current_cpu, idesc, 1);
7272   }
7273   return cycles;
7274 #undef FLD
7275 }
7276
7277 UINT
7278 sh5_compact_sh5_model::model_movcal_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7279 {
7280 #define FLD(f) abuf->fields.sfmt_divu_compact.f
7281   const sh5_compact_scache* abuf = sem;
7282   const sh5_compact_idesc* idesc = abuf->idesc;
7283   int cycles = 0;
7284   {
7285     int referenced = 0;
7286     unsigned long long insn_referenced = abuf->written;
7287     INT in_usereg = -1;
7288     in_usereg = FLD (in_rn);
7289     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7290   }
7291   {
7292     int referenced = 0;
7293     unsigned long long insn_referenced = abuf->written;
7294     cycles += model_u_ocb_after (current_cpu, idesc, 1, referenced);
7295   }
7296   return cycles;
7297 #undef FLD
7298 }
7299
7300 UINT
7301 sh5_compact_sh5_model::model_movcol_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7302 {
7303 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7304   const sh5_compact_scache* abuf = sem;
7305   const sh5_compact_idesc* idesc = abuf->idesc;
7306   int cycles = 0;
7307   {
7308     INT in_usereg = -1;
7309     in_usereg = FLD (in_rn);
7310     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7311   }
7312   {
7313     cycles += model_u_exec_before (current_cpu, idesc, 1);
7314   }
7315   return cycles;
7316 #undef FLD
7317 }
7318
7319 UINT
7320 sh5_compact_sh5_model::model_movcol_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7321 {
7322 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7323   const sh5_compact_scache* abuf = sem;
7324   const sh5_compact_idesc* idesc = abuf->idesc;
7325   int cycles = 0;
7326   {
7327     int referenced = 0;
7328     unsigned long long insn_referenced = abuf->written;
7329     INT in_usereg = -1;
7330     in_usereg = FLD (in_rn);
7331     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7332   }
7333   {
7334     int referenced = 0;
7335     unsigned long long insn_referenced = abuf->written;
7336     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7337   }
7338   return cycles;
7339 #undef FLD
7340 }
7341
7342 UINT
7343 sh5_compact_sh5_model::model_movt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7344 {
7345 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
7346   const sh5_compact_scache* abuf = sem;
7347   const sh5_compact_idesc* idesc = abuf->idesc;
7348   int cycles = 0;
7349   {
7350     cycles += model_u_use_tbit_before (current_cpu, idesc, 0);
7351   }
7352   {
7353     cycles += model_u_exec_before (current_cpu, idesc, 1);
7354   }
7355   return cycles;
7356 #undef FLD
7357 }
7358
7359 UINT
7360 sh5_compact_sh5_model::model_movt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7361 {
7362 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
7363   const sh5_compact_scache* abuf = sem;
7364   const sh5_compact_idesc* idesc = abuf->idesc;
7365   int cycles = 0;
7366   {
7367     int referenced = 0;
7368     unsigned long long insn_referenced = abuf->written;
7369     cycles += model_u_use_tbit_after (current_cpu, idesc, 0, referenced);
7370   }
7371   {
7372     int referenced = 0;
7373     unsigned long long insn_referenced = abuf->written;
7374     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7375   }
7376   return cycles;
7377 #undef FLD
7378 }
7379
7380 UINT
7381 sh5_compact_sh5_model::model_movual_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7382 {
7383 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
7384   const sh5_compact_scache* abuf = sem;
7385   const sh5_compact_idesc* idesc = abuf->idesc;
7386   int cycles = 0;
7387   {
7388     INT in_usereg = -1;
7389     in_usereg = FLD (in_rn);
7390     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7391   }
7392   {
7393     cycles += model_u_exec_before (current_cpu, idesc, 1);
7394   }
7395   {
7396     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
7397   }
7398   {
7399     INT out_loadreg = -1;
7400     out_loadreg = FLD (out_r0);
7401     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
7402   }
7403   return cycles;
7404 #undef FLD
7405 }
7406
7407 UINT
7408 sh5_compact_sh5_model::model_movual_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7409 {
7410 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
7411   const sh5_compact_scache* abuf = sem;
7412   const sh5_compact_idesc* idesc = abuf->idesc;
7413   int cycles = 0;
7414   {
7415     int referenced = 0;
7416     unsigned long long insn_referenced = abuf->written;
7417     INT in_usereg = -1;
7418     in_usereg = FLD (in_rn);
7419     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7420   }
7421   {
7422     int referenced = 0;
7423     unsigned long long insn_referenced = abuf->written;
7424     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7425   }
7426   {
7427     int referenced = 0;
7428     unsigned long long insn_referenced = abuf->written;
7429     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
7430   }
7431   {
7432     int referenced = 0;
7433     unsigned long long insn_referenced = abuf->written;
7434     INT out_loadreg = -1;
7435     out_loadreg = FLD (out_r0);
7436     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
7437   }
7438   return cycles;
7439 #undef FLD
7440 }
7441
7442 UINT
7443 sh5_compact_sh5_model::model_movual2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7444 {
7445 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
7446   const sh5_compact_scache* abuf = sem;
7447   const sh5_compact_idesc* idesc = abuf->idesc;
7448   int cycles = 0;
7449   {
7450     INT in_usereg = -1;
7451     in_usereg = FLD (in_rn);
7452     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7453   }
7454   {
7455     cycles += model_u_exec_before (current_cpu, idesc, 1);
7456   }
7457   {
7458     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
7459   }
7460   {
7461     INT out_loadreg = -1;
7462     out_loadreg = FLD (out_r0);
7463     cycles += model_u_load_gr_before (current_cpu, idesc, 3, out_loadreg);
7464   }
7465   return cycles;
7466 #undef FLD
7467 }
7468
7469 UINT
7470 sh5_compact_sh5_model::model_movual2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7471 {
7472 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
7473   const sh5_compact_scache* abuf = sem;
7474   const sh5_compact_idesc* idesc = abuf->idesc;
7475   int cycles = 0;
7476   {
7477     int referenced = 0;
7478     unsigned long long insn_referenced = abuf->written;
7479     INT in_usereg = -1;
7480     in_usereg = FLD (in_rn);
7481     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7482   }
7483   {
7484     int referenced = 0;
7485     unsigned long long insn_referenced = abuf->written;
7486     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7487   }
7488   {
7489     int referenced = 0;
7490     unsigned long long insn_referenced = abuf->written;
7491     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
7492   }
7493   {
7494     int referenced = 0;
7495     unsigned long long insn_referenced = abuf->written;
7496     INT out_loadreg = -1;
7497     out_loadreg = FLD (out_r0);
7498     cycles += model_u_load_gr_after (current_cpu, idesc, 3, referenced, out_loadreg);
7499   }
7500   return cycles;
7501 #undef FLD
7502 }
7503
7504 UINT
7505 sh5_compact_sh5_model::model_mull_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7506 {
7507 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
7508   const sh5_compact_scache* abuf = sem;
7509   const sh5_compact_idesc* idesc = abuf->idesc;
7510   int cycles = 0;
7511   {
7512     INT in_usereg = -1;
7513     in_usereg = FLD (in_rn);
7514     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7515   }
7516   {
7517     INT in_usereg = -1;
7518     in_usereg = FLD (in_rm);
7519     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
7520   }
7521   {
7522     cycles += model_u_mull_before (current_cpu, idesc, 2);
7523   }
7524   return cycles;
7525 #undef FLD
7526 }
7527
7528 UINT
7529 sh5_compact_sh5_model::model_mull_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7530 {
7531 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
7532   const sh5_compact_scache* abuf = sem;
7533   const sh5_compact_idesc* idesc = abuf->idesc;
7534   int cycles = 0;
7535   {
7536     int referenced = 0;
7537     unsigned long long insn_referenced = abuf->written;
7538     INT in_usereg = -1;
7539     in_usereg = FLD (in_rn);
7540     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7541   }
7542   {
7543     int referenced = 0;
7544     unsigned long long insn_referenced = abuf->written;
7545     INT in_usereg = -1;
7546     in_usereg = FLD (in_rm);
7547     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
7548   }
7549   {
7550     int referenced = 0;
7551     unsigned long long insn_referenced = abuf->written;
7552     cycles += model_u_mull_after (current_cpu, idesc, 2, referenced);
7553   }
7554   return cycles;
7555 #undef FLD
7556 }
7557
7558 UINT
7559 sh5_compact_sh5_model::model_mulsw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7560 {
7561 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
7562   const sh5_compact_scache* abuf = sem;
7563   const sh5_compact_idesc* idesc = abuf->idesc;
7564   int cycles = 0;
7565   {
7566     INT in_usereg = -1;
7567     in_usereg = FLD (in_rn);
7568     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7569   }
7570   {
7571     INT in_usereg = -1;
7572     in_usereg = FLD (in_rm);
7573     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
7574   }
7575   {
7576     cycles += model_u_mulsw_before (current_cpu, idesc, 2);
7577   }
7578   {
7579     cycles += model_u_multiply_before (current_cpu, idesc, 3);
7580   }
7581   return cycles;
7582 #undef FLD
7583 }
7584
7585 UINT
7586 sh5_compact_sh5_model::model_mulsw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7587 {
7588 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
7589   const sh5_compact_scache* abuf = sem;
7590   const sh5_compact_idesc* idesc = abuf->idesc;
7591   int cycles = 0;
7592   {
7593     int referenced = 0;
7594     unsigned long long insn_referenced = abuf->written;
7595     INT in_usereg = -1;
7596     in_usereg = FLD (in_rn);
7597     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7598   }
7599   {
7600     int referenced = 0;
7601     unsigned long long insn_referenced = abuf->written;
7602     INT in_usereg = -1;
7603     in_usereg = FLD (in_rm);
7604     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
7605   }
7606   {
7607     int referenced = 0;
7608     unsigned long long insn_referenced = abuf->written;
7609     cycles += model_u_mulsw_after (current_cpu, idesc, 2, referenced);
7610   }
7611   {
7612     int referenced = 0;
7613     unsigned long long insn_referenced = abuf->written;
7614     cycles += model_u_multiply_after (current_cpu, idesc, 3, referenced);
7615   }
7616   return cycles;
7617 #undef FLD
7618 }
7619
7620 UINT
7621 sh5_compact_sh5_model::model_muluw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7622 {
7623 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
7624   const sh5_compact_scache* abuf = sem;
7625   const sh5_compact_idesc* idesc = abuf->idesc;
7626   int cycles = 0;
7627   {
7628     INT in_usereg = -1;
7629     in_usereg = FLD (in_rn);
7630     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7631   }
7632   {
7633     INT in_usereg = -1;
7634     in_usereg = FLD (in_rm);
7635     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
7636   }
7637   {
7638     cycles += model_u_mulsw_before (current_cpu, idesc, 2);
7639   }
7640   {
7641     cycles += model_u_multiply_before (current_cpu, idesc, 3);
7642   }
7643   return cycles;
7644 #undef FLD
7645 }
7646
7647 UINT
7648 sh5_compact_sh5_model::model_muluw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7649 {
7650 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
7651   const sh5_compact_scache* abuf = sem;
7652   const sh5_compact_idesc* idesc = abuf->idesc;
7653   int cycles = 0;
7654   {
7655     int referenced = 0;
7656     unsigned long long insn_referenced = abuf->written;
7657     INT in_usereg = -1;
7658     in_usereg = FLD (in_rn);
7659     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7660   }
7661   {
7662     int referenced = 0;
7663     unsigned long long insn_referenced = abuf->written;
7664     INT in_usereg = -1;
7665     in_usereg = FLD (in_rm);
7666     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
7667   }
7668   {
7669     int referenced = 0;
7670     unsigned long long insn_referenced = abuf->written;
7671     cycles += model_u_mulsw_after (current_cpu, idesc, 2, referenced);
7672   }
7673   {
7674     int referenced = 0;
7675     unsigned long long insn_referenced = abuf->written;
7676     cycles += model_u_multiply_after (current_cpu, idesc, 3, referenced);
7677   }
7678   return cycles;
7679 #undef FLD
7680 }
7681
7682 UINT
7683 sh5_compact_sh5_model::model_neg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7684 {
7685 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
7686   const sh5_compact_scache* abuf = sem;
7687   const sh5_compact_idesc* idesc = abuf->idesc;
7688   int cycles = 0;
7689   {
7690     INT in_usereg = -1;
7691     in_usereg = FLD (in_rm);
7692     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7693   }
7694   {
7695     cycles += model_u_exec_before (current_cpu, idesc, 1);
7696   }
7697   return cycles;
7698 #undef FLD
7699 }
7700
7701 UINT
7702 sh5_compact_sh5_model::model_neg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7703 {
7704 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
7705   const sh5_compact_scache* abuf = sem;
7706   const sh5_compact_idesc* idesc = abuf->idesc;
7707   int cycles = 0;
7708   {
7709     int referenced = 0;
7710     unsigned long long insn_referenced = abuf->written;
7711     INT in_usereg = -1;
7712     in_usereg = FLD (in_rm);
7713     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7714   }
7715   {
7716     int referenced = 0;
7717     unsigned long long insn_referenced = abuf->written;
7718     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7719   }
7720   return cycles;
7721 #undef FLD
7722 }
7723
7724 UINT
7725 sh5_compact_sh5_model::model_negc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7726 {
7727 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
7728   const sh5_compact_scache* abuf = sem;
7729   const sh5_compact_idesc* idesc = abuf->idesc;
7730   int cycles = 0;
7731   {
7732     INT in_usereg = -1;
7733     in_usereg = FLD (in_rm);
7734     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7735   }
7736   {
7737     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
7738   }
7739   {
7740     cycles += model_u_exec_before (current_cpu, idesc, 2);
7741   }
7742   {
7743     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
7744   }
7745   return cycles;
7746 #undef FLD
7747 }
7748
7749 UINT
7750 sh5_compact_sh5_model::model_negc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7751 {
7752 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
7753   const sh5_compact_scache* abuf = sem;
7754   const sh5_compact_idesc* idesc = abuf->idesc;
7755   int cycles = 0;
7756   {
7757     int referenced = 0;
7758     unsigned long long insn_referenced = abuf->written;
7759     INT in_usereg = -1;
7760     in_usereg = FLD (in_rm);
7761     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7762   }
7763   {
7764     int referenced = 0;
7765     unsigned long long insn_referenced = abuf->written;
7766     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
7767   }
7768   {
7769     int referenced = 0;
7770     unsigned long long insn_referenced = abuf->written;
7771     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
7772   }
7773   {
7774     int referenced = 0;
7775     unsigned long long insn_referenced = abuf->written;
7776     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
7777   }
7778   return cycles;
7779 #undef FLD
7780 }
7781
7782 UINT
7783 sh5_compact_sh5_model::model_nop_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7784 {
7785 #define FLD(f) abuf->fields.fmt_empty.f
7786   const sh5_compact_scache* abuf = sem;
7787   const sh5_compact_idesc* idesc = abuf->idesc;
7788   int cycles = 0;
7789   {
7790     cycles += model_u_exec_before (current_cpu, idesc, 0);
7791   }
7792   return cycles;
7793 #undef FLD
7794 }
7795
7796 UINT
7797 sh5_compact_sh5_model::model_nop_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7798 {
7799 #define FLD(f) abuf->fields.fmt_empty.f
7800   const sh5_compact_scache* abuf = sem;
7801   const sh5_compact_idesc* idesc = abuf->idesc;
7802   int cycles = 0;
7803   {
7804     int referenced = 0;
7805     unsigned long long insn_referenced = abuf->written;
7806     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
7807   }
7808   return cycles;
7809 #undef FLD
7810 }
7811
7812 UINT
7813 sh5_compact_sh5_model::model_not_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7814 {
7815 #define FLD(f) abuf->fields.sfmt_and_compact.f
7816   const sh5_compact_scache* abuf = sem;
7817   const sh5_compact_idesc* idesc = abuf->idesc;
7818   int cycles = 0;
7819   {
7820     INT in_usereg = -1;
7821     in_usereg = FLD (in_rm64);
7822     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7823   }
7824   {
7825     cycles += model_u_exec_before (current_cpu, idesc, 1);
7826   }
7827   return cycles;
7828 #undef FLD
7829 }
7830
7831 UINT
7832 sh5_compact_sh5_model::model_not_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7833 {
7834 #define FLD(f) abuf->fields.sfmt_and_compact.f
7835   const sh5_compact_scache* abuf = sem;
7836   const sh5_compact_idesc* idesc = abuf->idesc;
7837   int cycles = 0;
7838   {
7839     int referenced = 0;
7840     unsigned long long insn_referenced = abuf->written;
7841     INT in_usereg = -1;
7842     in_usereg = FLD (in_rm64);
7843     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7844   }
7845   {
7846     int referenced = 0;
7847     unsigned long long insn_referenced = abuf->written;
7848     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
7849   }
7850   return cycles;
7851 #undef FLD
7852 }
7853
7854 UINT
7855 sh5_compact_sh5_model::model_ocbi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7856 {
7857 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7858   const sh5_compact_scache* abuf = sem;
7859   const sh5_compact_idesc* idesc = abuf->idesc;
7860   int cycles = 0;
7861   {
7862     INT in_usereg = -1;
7863     in_usereg = FLD (in_rn);
7864     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7865   }
7866   {
7867     cycles += model_u_ocb_before (current_cpu, idesc, 1);
7868   }
7869   return cycles;
7870 #undef FLD
7871 }
7872
7873 UINT
7874 sh5_compact_sh5_model::model_ocbi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7875 {
7876 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7877   const sh5_compact_scache* abuf = sem;
7878   const sh5_compact_idesc* idesc = abuf->idesc;
7879   int cycles = 0;
7880   {
7881     int referenced = 0;
7882     unsigned long long insn_referenced = abuf->written;
7883     INT in_usereg = -1;
7884     in_usereg = FLD (in_rn);
7885     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7886   }
7887   {
7888     int referenced = 0;
7889     unsigned long long insn_referenced = abuf->written;
7890     cycles += model_u_ocb_after (current_cpu, idesc, 1, referenced);
7891   }
7892   return cycles;
7893 #undef FLD
7894 }
7895
7896 UINT
7897 sh5_compact_sh5_model::model_ocbp_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7898 {
7899 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7900   const sh5_compact_scache* abuf = sem;
7901   const sh5_compact_idesc* idesc = abuf->idesc;
7902   int cycles = 0;
7903   {
7904     INT in_usereg = -1;
7905     in_usereg = FLD (in_rn);
7906     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7907   }
7908   {
7909     cycles += model_u_ocb_before (current_cpu, idesc, 1);
7910   }
7911   return cycles;
7912 #undef FLD
7913 }
7914
7915 UINT
7916 sh5_compact_sh5_model::model_ocbp_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7917 {
7918 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7919   const sh5_compact_scache* abuf = sem;
7920   const sh5_compact_idesc* idesc = abuf->idesc;
7921   int cycles = 0;
7922   {
7923     int referenced = 0;
7924     unsigned long long insn_referenced = abuf->written;
7925     INT in_usereg = -1;
7926     in_usereg = FLD (in_rn);
7927     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7928   }
7929   {
7930     int referenced = 0;
7931     unsigned long long insn_referenced = abuf->written;
7932     cycles += model_u_ocb_after (current_cpu, idesc, 1, referenced);
7933   }
7934   return cycles;
7935 #undef FLD
7936 }
7937
7938 UINT
7939 sh5_compact_sh5_model::model_ocbwb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7940 {
7941 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7942   const sh5_compact_scache* abuf = sem;
7943   const sh5_compact_idesc* idesc = abuf->idesc;
7944   int cycles = 0;
7945   {
7946     INT in_usereg = -1;
7947     in_usereg = FLD (in_rn);
7948     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7949   }
7950   {
7951     cycles += model_u_ocb_before (current_cpu, idesc, 1);
7952   }
7953   return cycles;
7954 #undef FLD
7955 }
7956
7957 UINT
7958 sh5_compact_sh5_model::model_ocbwb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7959 {
7960 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
7961   const sh5_compact_scache* abuf = sem;
7962   const sh5_compact_idesc* idesc = abuf->idesc;
7963   int cycles = 0;
7964   {
7965     int referenced = 0;
7966     unsigned long long insn_referenced = abuf->written;
7967     INT in_usereg = -1;
7968     in_usereg = FLD (in_rn);
7969     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
7970   }
7971   {
7972     int referenced = 0;
7973     unsigned long long insn_referenced = abuf->written;
7974     cycles += model_u_ocb_after (current_cpu, idesc, 1, referenced);
7975   }
7976   return cycles;
7977 #undef FLD
7978 }
7979
7980 UINT
7981 sh5_compact_sh5_model::model_or_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
7982 {
7983 #define FLD(f) abuf->fields.sfmt_and_compact.f
7984   const sh5_compact_scache* abuf = sem;
7985   const sh5_compact_idesc* idesc = abuf->idesc;
7986   int cycles = 0;
7987   {
7988     INT in_usereg = -1;
7989     in_usereg = FLD (in_rm64);
7990     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
7991   }
7992   {
7993     INT in_usereg = -1;
7994     in_usereg = FLD (in_rn64);
7995     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
7996   }
7997   {
7998     cycles += model_u_exec_before (current_cpu, idesc, 2);
7999   }
8000   return cycles;
8001 #undef FLD
8002 }
8003
8004 UINT
8005 sh5_compact_sh5_model::model_or_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8006 {
8007 #define FLD(f) abuf->fields.sfmt_and_compact.f
8008   const sh5_compact_scache* abuf = sem;
8009   const sh5_compact_idesc* idesc = abuf->idesc;
8010   int cycles = 0;
8011   {
8012     int referenced = 0;
8013     unsigned long long insn_referenced = abuf->written;
8014     INT in_usereg = -1;
8015     in_usereg = FLD (in_rm64);
8016     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8017   }
8018   {
8019     int referenced = 0;
8020     unsigned long long insn_referenced = abuf->written;
8021     INT in_usereg = -1;
8022     in_usereg = FLD (in_rn64);
8023     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
8024   }
8025   {
8026     int referenced = 0;
8027     unsigned long long insn_referenced = abuf->written;
8028     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8029   }
8030   return cycles;
8031 #undef FLD
8032 }
8033
8034 UINT
8035 sh5_compact_sh5_model::model_ori_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8036 {
8037 #define FLD(f) abuf->fields.sfmt_andi_compact.f
8038   const sh5_compact_scache* abuf = sem;
8039   const sh5_compact_idesc* idesc = abuf->idesc;
8040   int cycles = 0;
8041   {
8042     INT in_usereg = -1;
8043     in_usereg = FLD (in_r0);
8044     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8045   }
8046   {
8047     cycles += model_u_exec_before (current_cpu, idesc, 1);
8048   }
8049   return cycles;
8050 #undef FLD
8051 }
8052
8053 UINT
8054 sh5_compact_sh5_model::model_ori_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8055 {
8056 #define FLD(f) abuf->fields.sfmt_andi_compact.f
8057   const sh5_compact_scache* abuf = sem;
8058   const sh5_compact_idesc* idesc = abuf->idesc;
8059   int cycles = 0;
8060   {
8061     int referenced = 0;
8062     unsigned long long insn_referenced = abuf->written;
8063     INT in_usereg = -1;
8064     in_usereg = FLD (in_r0);
8065     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8066   }
8067   {
8068     int referenced = 0;
8069     unsigned long long insn_referenced = abuf->written;
8070     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
8071   }
8072   return cycles;
8073 #undef FLD
8074 }
8075
8076 UINT
8077 sh5_compact_sh5_model::model_orb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8078 {
8079 #define FLD(f) abuf->fields.sfmt_andi_compact.f
8080   const sh5_compact_scache* abuf = sem;
8081   const sh5_compact_idesc* idesc = abuf->idesc;
8082   int cycles = 0;
8083   {
8084     INT in_usereg = -1;
8085     in_usereg = FLD (in_r0);
8086     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8087   }
8088   {
8089     cycles += model_u_logic_b_before (current_cpu, idesc, 1);
8090   }
8091   {
8092     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
8093   }
8094   return cycles;
8095 #undef FLD
8096 }
8097
8098 UINT
8099 sh5_compact_sh5_model::model_orb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8100 {
8101 #define FLD(f) abuf->fields.sfmt_andi_compact.f
8102   const sh5_compact_scache* abuf = sem;
8103   const sh5_compact_idesc* idesc = abuf->idesc;
8104   int cycles = 0;
8105   {
8106     int referenced = 0;
8107     unsigned long long insn_referenced = abuf->written;
8108     INT in_usereg = -1;
8109     in_usereg = FLD (in_r0);
8110     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8111   }
8112   {
8113     int referenced = 0;
8114     unsigned long long insn_referenced = abuf->written;
8115     cycles += model_u_logic_b_after (current_cpu, idesc, 1, referenced);
8116   }
8117   {
8118     int referenced = 0;
8119     unsigned long long insn_referenced = abuf->written;
8120     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
8121   }
8122   return cycles;
8123 #undef FLD
8124 }
8125
8126 UINT
8127 sh5_compact_sh5_model::model_pref_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8128 {
8129 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8130   const sh5_compact_scache* abuf = sem;
8131   const sh5_compact_idesc* idesc = abuf->idesc;
8132   int cycles = 0;
8133   {
8134     INT in_usereg = -1;
8135     in_usereg = FLD (in_rn);
8136     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8137   }
8138   {
8139     cycles += model_u_exec_before (current_cpu, idesc, 1);
8140   }
8141   {
8142     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
8143   }
8144   return cycles;
8145 #undef FLD
8146 }
8147
8148 UINT
8149 sh5_compact_sh5_model::model_pref_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8150 {
8151 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8152   const sh5_compact_scache* abuf = sem;
8153   const sh5_compact_idesc* idesc = abuf->idesc;
8154   int cycles = 0;
8155   {
8156     int referenced = 0;
8157     unsigned long long insn_referenced = abuf->written;
8158     INT in_usereg = -1;
8159     in_usereg = FLD (in_rn);
8160     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8161   }
8162   {
8163     int referenced = 0;
8164     unsigned long long insn_referenced = abuf->written;
8165     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
8166   }
8167   {
8168     int referenced = 0;
8169     unsigned long long insn_referenced = abuf->written;
8170     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
8171   }
8172   return cycles;
8173 #undef FLD
8174 }
8175
8176 UINT
8177 sh5_compact_sh5_model::model_rotcl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8178 {
8179 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8180   const sh5_compact_scache* abuf = sem;
8181   const sh5_compact_idesc* idesc = abuf->idesc;
8182   int cycles = 0;
8183   {
8184     INT in_usereg = -1;
8185     in_usereg = FLD (in_rn);
8186     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8187   }
8188   {
8189     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8190   }
8191   {
8192     cycles += model_u_exec_before (current_cpu, idesc, 2);
8193   }
8194   {
8195     cycles += model_u_shift_before (current_cpu, idesc, 3);
8196   }
8197   {
8198     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8199   }
8200   return cycles;
8201 #undef FLD
8202 }
8203
8204 UINT
8205 sh5_compact_sh5_model::model_rotcl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8206 {
8207 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8208   const sh5_compact_scache* abuf = sem;
8209   const sh5_compact_idesc* idesc = abuf->idesc;
8210   int cycles = 0;
8211   {
8212     int referenced = 0;
8213     unsigned long long insn_referenced = abuf->written;
8214     INT in_usereg = -1;
8215     in_usereg = FLD (in_rn);
8216     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8217   }
8218   {
8219     int referenced = 0;
8220     unsigned long long insn_referenced = abuf->written;
8221     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8222   }
8223   {
8224     int referenced = 0;
8225     unsigned long long insn_referenced = abuf->written;
8226     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8227   }
8228   {
8229     int referenced = 0;
8230     unsigned long long insn_referenced = abuf->written;
8231     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8232   }
8233   {
8234     int referenced = 0;
8235     unsigned long long insn_referenced = abuf->written;
8236     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8237   }
8238   return cycles;
8239 #undef FLD
8240 }
8241
8242 UINT
8243 sh5_compact_sh5_model::model_rotcr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8244 {
8245 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8246   const sh5_compact_scache* abuf = sem;
8247   const sh5_compact_idesc* idesc = abuf->idesc;
8248   int cycles = 0;
8249   {
8250     INT in_usereg = -1;
8251     in_usereg = FLD (in_rn);
8252     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8253   }
8254   {
8255     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8256   }
8257   {
8258     cycles += model_u_exec_before (current_cpu, idesc, 2);
8259   }
8260   {
8261     cycles += model_u_shift_before (current_cpu, idesc, 3);
8262   }
8263   {
8264     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8265   }
8266   return cycles;
8267 #undef FLD
8268 }
8269
8270 UINT
8271 sh5_compact_sh5_model::model_rotcr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8272 {
8273 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8274   const sh5_compact_scache* abuf = sem;
8275   const sh5_compact_idesc* idesc = abuf->idesc;
8276   int cycles = 0;
8277   {
8278     int referenced = 0;
8279     unsigned long long insn_referenced = abuf->written;
8280     INT in_usereg = -1;
8281     in_usereg = FLD (in_rn);
8282     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8283   }
8284   {
8285     int referenced = 0;
8286     unsigned long long insn_referenced = abuf->written;
8287     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8288   }
8289   {
8290     int referenced = 0;
8291     unsigned long long insn_referenced = abuf->written;
8292     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8293   }
8294   {
8295     int referenced = 0;
8296     unsigned long long insn_referenced = abuf->written;
8297     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8298   }
8299   {
8300     int referenced = 0;
8301     unsigned long long insn_referenced = abuf->written;
8302     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8303   }
8304   return cycles;
8305 #undef FLD
8306 }
8307
8308 UINT
8309 sh5_compact_sh5_model::model_rotl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8310 {
8311 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8312   const sh5_compact_scache* abuf = sem;
8313   const sh5_compact_idesc* idesc = abuf->idesc;
8314   int cycles = 0;
8315   {
8316     INT in_usereg = -1;
8317     in_usereg = FLD (in_rn);
8318     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8319   }
8320   {
8321     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8322   }
8323   {
8324     cycles += model_u_exec_before (current_cpu, idesc, 2);
8325   }
8326   {
8327     cycles += model_u_shift_before (current_cpu, idesc, 3);
8328   }
8329   {
8330     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8331   }
8332   return cycles;
8333 #undef FLD
8334 }
8335
8336 UINT
8337 sh5_compact_sh5_model::model_rotl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8338 {
8339 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8340   const sh5_compact_scache* abuf = sem;
8341   const sh5_compact_idesc* idesc = abuf->idesc;
8342   int cycles = 0;
8343   {
8344     int referenced = 0;
8345     unsigned long long insn_referenced = abuf->written;
8346     INT in_usereg = -1;
8347     in_usereg = FLD (in_rn);
8348     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8349   }
8350   {
8351     int referenced = 0;
8352     unsigned long long insn_referenced = abuf->written;
8353     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8354   }
8355   {
8356     int referenced = 0;
8357     unsigned long long insn_referenced = abuf->written;
8358     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8359   }
8360   {
8361     int referenced = 0;
8362     unsigned long long insn_referenced = abuf->written;
8363     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8364   }
8365   {
8366     int referenced = 0;
8367     unsigned long long insn_referenced = abuf->written;
8368     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8369   }
8370   return cycles;
8371 #undef FLD
8372 }
8373
8374 UINT
8375 sh5_compact_sh5_model::model_rotr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8376 {
8377 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8378   const sh5_compact_scache* abuf = sem;
8379   const sh5_compact_idesc* idesc = abuf->idesc;
8380   int cycles = 0;
8381   {
8382     INT in_usereg = -1;
8383     in_usereg = FLD (in_rn);
8384     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8385   }
8386   {
8387     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8388   }
8389   {
8390     cycles += model_u_exec_before (current_cpu, idesc, 2);
8391   }
8392   {
8393     cycles += model_u_shift_before (current_cpu, idesc, 3);
8394   }
8395   {
8396     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8397   }
8398   return cycles;
8399 #undef FLD
8400 }
8401
8402 UINT
8403 sh5_compact_sh5_model::model_rotr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8404 {
8405 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8406   const sh5_compact_scache* abuf = sem;
8407   const sh5_compact_idesc* idesc = abuf->idesc;
8408   int cycles = 0;
8409   {
8410     int referenced = 0;
8411     unsigned long long insn_referenced = abuf->written;
8412     INT in_usereg = -1;
8413     in_usereg = FLD (in_rn);
8414     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8415   }
8416   {
8417     int referenced = 0;
8418     unsigned long long insn_referenced = abuf->written;
8419     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8420   }
8421   {
8422     int referenced = 0;
8423     unsigned long long insn_referenced = abuf->written;
8424     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8425   }
8426   {
8427     int referenced = 0;
8428     unsigned long long insn_referenced = abuf->written;
8429     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8430   }
8431   {
8432     int referenced = 0;
8433     unsigned long long insn_referenced = abuf->written;
8434     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8435   }
8436   return cycles;
8437 #undef FLD
8438 }
8439
8440 UINT
8441 sh5_compact_sh5_model::model_rts_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8442 {
8443 #define FLD(f) abuf->fields.fmt_empty.f
8444   const sh5_compact_scache* abuf = sem;
8445   const sh5_compact_idesc* idesc = abuf->idesc;
8446   int cycles = 0;
8447   {
8448     cycles += model_u_jmp_before (current_cpu, idesc, 0);
8449   }
8450   return cycles;
8451 #undef FLD
8452 }
8453
8454 UINT
8455 sh5_compact_sh5_model::model_rts_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8456 {
8457 #define FLD(f) abuf->fields.fmt_empty.f
8458   const sh5_compact_scache* abuf = sem;
8459   const sh5_compact_idesc* idesc = abuf->idesc;
8460   int cycles = 0;
8461   {
8462     int referenced = 0;
8463     unsigned long long insn_referenced = abuf->written;
8464     referenced |= 1 << 0;
8465     cycles += model_u_jmp_after (current_cpu, idesc, 0, referenced);
8466   }
8467   return cycles;
8468 #undef FLD
8469 }
8470
8471 UINT
8472 sh5_compact_sh5_model::model_sets_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8473 {
8474 #define FLD(f) abuf->fields.fmt_empty.f
8475   const sh5_compact_scache* abuf = sem;
8476   const sh5_compact_idesc* idesc = abuf->idesc;
8477   int cycles = 0;
8478   {
8479     cycles += model_u_exec_before (current_cpu, idesc, 0);
8480   }
8481   {
8482     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 1);
8483   }
8484   return cycles;
8485 #undef FLD
8486 }
8487
8488 UINT
8489 sh5_compact_sh5_model::model_sets_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8490 {
8491 #define FLD(f) abuf->fields.fmt_empty.f
8492   const sh5_compact_scache* abuf = sem;
8493   const sh5_compact_idesc* idesc = abuf->idesc;
8494   int cycles = 0;
8495   {
8496     int referenced = 0;
8497     unsigned long long insn_referenced = abuf->written;
8498     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
8499   }
8500   {
8501     int referenced = 0;
8502     unsigned long long insn_referenced = abuf->written;
8503     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 1, referenced);
8504   }
8505   return cycles;
8506 #undef FLD
8507 }
8508
8509 UINT
8510 sh5_compact_sh5_model::model_sett_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8511 {
8512 #define FLD(f) abuf->fields.fmt_empty.f
8513   const sh5_compact_scache* abuf = sem;
8514   const sh5_compact_idesc* idesc = abuf->idesc;
8515   int cycles = 0;
8516   {
8517     cycles += model_u_exec_before (current_cpu, idesc, 0);
8518   }
8519   {
8520     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8521   }
8522   {
8523     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 2);
8524   }
8525   return cycles;
8526 #undef FLD
8527 }
8528
8529 UINT
8530 sh5_compact_sh5_model::model_sett_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8531 {
8532 #define FLD(f) abuf->fields.fmt_empty.f
8533   const sh5_compact_scache* abuf = sem;
8534   const sh5_compact_idesc* idesc = abuf->idesc;
8535   int cycles = 0;
8536   {
8537     int referenced = 0;
8538     unsigned long long insn_referenced = abuf->written;
8539     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
8540   }
8541   {
8542     int referenced = 0;
8543     unsigned long long insn_referenced = abuf->written;
8544     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8545   }
8546   {
8547     int referenced = 0;
8548     unsigned long long insn_referenced = abuf->written;
8549     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 2, referenced);
8550   }
8551   return cycles;
8552 #undef FLD
8553 }
8554
8555 UINT
8556 sh5_compact_sh5_model::model_shad_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8557 {
8558 #define FLD(f) abuf->fields.sfmt_macl_compact.f
8559   const sh5_compact_scache* abuf = sem;
8560   const sh5_compact_idesc* idesc = abuf->idesc;
8561   int cycles = 0;
8562   {
8563     INT in_usereg = -1;
8564     in_usereg = FLD (in_rn);
8565     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8566   }
8567   {
8568     INT in_usereg = -1;
8569     in_usereg = FLD (in_rm);
8570     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
8571   }
8572   {
8573     cycles += model_u_exec_before (current_cpu, idesc, 2);
8574   }
8575   {
8576     cycles += model_u_shift_before (current_cpu, idesc, 3);
8577   }
8578   return cycles;
8579 #undef FLD
8580 }
8581
8582 UINT
8583 sh5_compact_sh5_model::model_shad_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8584 {
8585 #define FLD(f) abuf->fields.sfmt_macl_compact.f
8586   const sh5_compact_scache* abuf = sem;
8587   const sh5_compact_idesc* idesc = abuf->idesc;
8588   int cycles = 0;
8589   {
8590     int referenced = 0;
8591     unsigned long long insn_referenced = abuf->written;
8592     INT in_usereg = -1;
8593     in_usereg = FLD (in_rn);
8594     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8595   }
8596   {
8597     int referenced = 0;
8598     unsigned long long insn_referenced = abuf->written;
8599     INT in_usereg = -1;
8600     in_usereg = FLD (in_rm);
8601     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
8602   }
8603   {
8604     int referenced = 0;
8605     unsigned long long insn_referenced = abuf->written;
8606     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8607   }
8608   {
8609     int referenced = 0;
8610     unsigned long long insn_referenced = abuf->written;
8611     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8612   }
8613   return cycles;
8614 #undef FLD
8615 }
8616
8617 UINT
8618 sh5_compact_sh5_model::model_shal_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8619 {
8620 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8621   const sh5_compact_scache* abuf = sem;
8622   const sh5_compact_idesc* idesc = abuf->idesc;
8623   int cycles = 0;
8624   {
8625     INT in_usereg = -1;
8626     in_usereg = FLD (in_rn);
8627     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8628   }
8629   {
8630     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8631   }
8632   {
8633     cycles += model_u_exec_before (current_cpu, idesc, 2);
8634   }
8635   {
8636     cycles += model_u_shift_before (current_cpu, idesc, 3);
8637   }
8638   {
8639     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8640   }
8641   return cycles;
8642 #undef FLD
8643 }
8644
8645 UINT
8646 sh5_compact_sh5_model::model_shal_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8647 {
8648 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8649   const sh5_compact_scache* abuf = sem;
8650   const sh5_compact_idesc* idesc = abuf->idesc;
8651   int cycles = 0;
8652   {
8653     int referenced = 0;
8654     unsigned long long insn_referenced = abuf->written;
8655     INT in_usereg = -1;
8656     in_usereg = FLD (in_rn);
8657     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8658   }
8659   {
8660     int referenced = 0;
8661     unsigned long long insn_referenced = abuf->written;
8662     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8663   }
8664   {
8665     int referenced = 0;
8666     unsigned long long insn_referenced = abuf->written;
8667     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8668   }
8669   {
8670     int referenced = 0;
8671     unsigned long long insn_referenced = abuf->written;
8672     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8673   }
8674   {
8675     int referenced = 0;
8676     unsigned long long insn_referenced = abuf->written;
8677     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8678   }
8679   return cycles;
8680 #undef FLD
8681 }
8682
8683 UINT
8684 sh5_compact_sh5_model::model_shar_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8685 {
8686 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8687   const sh5_compact_scache* abuf = sem;
8688   const sh5_compact_idesc* idesc = abuf->idesc;
8689   int cycles = 0;
8690   {
8691     INT in_usereg = -1;
8692     in_usereg = FLD (in_rn);
8693     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8694   }
8695   {
8696     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8697   }
8698   {
8699     cycles += model_u_exec_before (current_cpu, idesc, 2);
8700   }
8701   {
8702     cycles += model_u_shift_before (current_cpu, idesc, 3);
8703   }
8704   {
8705     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8706   }
8707   return cycles;
8708 #undef FLD
8709 }
8710
8711 UINT
8712 sh5_compact_sh5_model::model_shar_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8713 {
8714 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8715   const sh5_compact_scache* abuf = sem;
8716   const sh5_compact_idesc* idesc = abuf->idesc;
8717   int cycles = 0;
8718   {
8719     int referenced = 0;
8720     unsigned long long insn_referenced = abuf->written;
8721     INT in_usereg = -1;
8722     in_usereg = FLD (in_rn);
8723     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8724   }
8725   {
8726     int referenced = 0;
8727     unsigned long long insn_referenced = abuf->written;
8728     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8729   }
8730   {
8731     int referenced = 0;
8732     unsigned long long insn_referenced = abuf->written;
8733     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8734   }
8735   {
8736     int referenced = 0;
8737     unsigned long long insn_referenced = abuf->written;
8738     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8739   }
8740   {
8741     int referenced = 0;
8742     unsigned long long insn_referenced = abuf->written;
8743     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8744   }
8745   return cycles;
8746 #undef FLD
8747 }
8748
8749 UINT
8750 sh5_compact_sh5_model::model_shld_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8751 {
8752 #define FLD(f) abuf->fields.sfmt_macl_compact.f
8753   const sh5_compact_scache* abuf = sem;
8754   const sh5_compact_idesc* idesc = abuf->idesc;
8755   int cycles = 0;
8756   {
8757     INT in_usereg = -1;
8758     in_usereg = FLD (in_rn);
8759     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8760   }
8761   {
8762     cycles += model_u_exec_before (current_cpu, idesc, 1);
8763   }
8764   {
8765     cycles += model_u_shift_before (current_cpu, idesc, 2);
8766   }
8767   return cycles;
8768 #undef FLD
8769 }
8770
8771 UINT
8772 sh5_compact_sh5_model::model_shld_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8773 {
8774 #define FLD(f) abuf->fields.sfmt_macl_compact.f
8775   const sh5_compact_scache* abuf = sem;
8776   const sh5_compact_idesc* idesc = abuf->idesc;
8777   int cycles = 0;
8778   {
8779     int referenced = 0;
8780     unsigned long long insn_referenced = abuf->written;
8781     INT in_usereg = -1;
8782     in_usereg = FLD (in_rn);
8783     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8784   }
8785   {
8786     int referenced = 0;
8787     unsigned long long insn_referenced = abuf->written;
8788     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
8789   }
8790   {
8791     int referenced = 0;
8792     unsigned long long insn_referenced = abuf->written;
8793     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
8794   }
8795   return cycles;
8796 #undef FLD
8797 }
8798
8799 UINT
8800 sh5_compact_sh5_model::model_shll_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8801 {
8802 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8803   const sh5_compact_scache* abuf = sem;
8804   const sh5_compact_idesc* idesc = abuf->idesc;
8805   int cycles = 0;
8806   {
8807     INT in_usereg = -1;
8808     in_usereg = FLD (in_rn);
8809     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8810   }
8811   {
8812     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
8813   }
8814   {
8815     cycles += model_u_exec_before (current_cpu, idesc, 2);
8816   }
8817   {
8818     cycles += model_u_shift_before (current_cpu, idesc, 3);
8819   }
8820   {
8821     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
8822   }
8823   return cycles;
8824 #undef FLD
8825 }
8826
8827 UINT
8828 sh5_compact_sh5_model::model_shll_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8829 {
8830 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8831   const sh5_compact_scache* abuf = sem;
8832   const sh5_compact_idesc* idesc = abuf->idesc;
8833   int cycles = 0;
8834   {
8835     int referenced = 0;
8836     unsigned long long insn_referenced = abuf->written;
8837     INT in_usereg = -1;
8838     in_usereg = FLD (in_rn);
8839     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8840   }
8841   {
8842     int referenced = 0;
8843     unsigned long long insn_referenced = abuf->written;
8844     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
8845   }
8846   {
8847     int referenced = 0;
8848     unsigned long long insn_referenced = abuf->written;
8849     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
8850   }
8851   {
8852     int referenced = 0;
8853     unsigned long long insn_referenced = abuf->written;
8854     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
8855   }
8856   {
8857     int referenced = 0;
8858     unsigned long long insn_referenced = abuf->written;
8859     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
8860   }
8861   return cycles;
8862 #undef FLD
8863 }
8864
8865 UINT
8866 sh5_compact_sh5_model::model_shll2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8867 {
8868 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8869   const sh5_compact_scache* abuf = sem;
8870   const sh5_compact_idesc* idesc = abuf->idesc;
8871   int cycles = 0;
8872   {
8873     INT in_usereg = -1;
8874     in_usereg = FLD (in_rn);
8875     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8876   }
8877   {
8878     cycles += model_u_exec_before (current_cpu, idesc, 1);
8879   }
8880   {
8881     cycles += model_u_shift_before (current_cpu, idesc, 2);
8882   }
8883   return cycles;
8884 #undef FLD
8885 }
8886
8887 UINT
8888 sh5_compact_sh5_model::model_shll2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8889 {
8890 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8891   const sh5_compact_scache* abuf = sem;
8892   const sh5_compact_idesc* idesc = abuf->idesc;
8893   int cycles = 0;
8894   {
8895     int referenced = 0;
8896     unsigned long long insn_referenced = abuf->written;
8897     INT in_usereg = -1;
8898     in_usereg = FLD (in_rn);
8899     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8900   }
8901   {
8902     int referenced = 0;
8903     unsigned long long insn_referenced = abuf->written;
8904     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
8905   }
8906   {
8907     int referenced = 0;
8908     unsigned long long insn_referenced = abuf->written;
8909     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
8910   }
8911   return cycles;
8912 #undef FLD
8913 }
8914
8915 UINT
8916 sh5_compact_sh5_model::model_shll8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8917 {
8918 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8919   const sh5_compact_scache* abuf = sem;
8920   const sh5_compact_idesc* idesc = abuf->idesc;
8921   int cycles = 0;
8922   {
8923     INT in_usereg = -1;
8924     in_usereg = FLD (in_rn);
8925     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8926   }
8927   {
8928     cycles += model_u_exec_before (current_cpu, idesc, 1);
8929   }
8930   {
8931     cycles += model_u_shift_before (current_cpu, idesc, 2);
8932   }
8933   return cycles;
8934 #undef FLD
8935 }
8936
8937 UINT
8938 sh5_compact_sh5_model::model_shll8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8939 {
8940 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8941   const sh5_compact_scache* abuf = sem;
8942   const sh5_compact_idesc* idesc = abuf->idesc;
8943   int cycles = 0;
8944   {
8945     int referenced = 0;
8946     unsigned long long insn_referenced = abuf->written;
8947     INT in_usereg = -1;
8948     in_usereg = FLD (in_rn);
8949     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
8950   }
8951   {
8952     int referenced = 0;
8953     unsigned long long insn_referenced = abuf->written;
8954     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
8955   }
8956   {
8957     int referenced = 0;
8958     unsigned long long insn_referenced = abuf->written;
8959     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
8960   }
8961   return cycles;
8962 #undef FLD
8963 }
8964
8965 UINT
8966 sh5_compact_sh5_model::model_shll16_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8967 {
8968 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8969   const sh5_compact_scache* abuf = sem;
8970   const sh5_compact_idesc* idesc = abuf->idesc;
8971   int cycles = 0;
8972   {
8973     INT in_usereg = -1;
8974     in_usereg = FLD (in_rn);
8975     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
8976   }
8977   {
8978     cycles += model_u_exec_before (current_cpu, idesc, 1);
8979   }
8980   {
8981     cycles += model_u_shift_before (current_cpu, idesc, 2);
8982   }
8983   return cycles;
8984 #undef FLD
8985 }
8986
8987 UINT
8988 sh5_compact_sh5_model::model_shll16_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
8989 {
8990 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
8991   const sh5_compact_scache* abuf = sem;
8992   const sh5_compact_idesc* idesc = abuf->idesc;
8993   int cycles = 0;
8994   {
8995     int referenced = 0;
8996     unsigned long long insn_referenced = abuf->written;
8997     INT in_usereg = -1;
8998     in_usereg = FLD (in_rn);
8999     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9000   }
9001   {
9002     int referenced = 0;
9003     unsigned long long insn_referenced = abuf->written;
9004     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
9005   }
9006   {
9007     int referenced = 0;
9008     unsigned long long insn_referenced = abuf->written;
9009     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
9010   }
9011   return cycles;
9012 #undef FLD
9013 }
9014
9015 UINT
9016 sh5_compact_sh5_model::model_shlr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9017 {
9018 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9019   const sh5_compact_scache* abuf = sem;
9020   const sh5_compact_idesc* idesc = abuf->idesc;
9021   int cycles = 0;
9022   {
9023     INT in_usereg = -1;
9024     in_usereg = FLD (in_rn);
9025     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9026   }
9027   {
9028     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
9029   }
9030   {
9031     cycles += model_u_exec_before (current_cpu, idesc, 2);
9032   }
9033   {
9034     cycles += model_u_shift_before (current_cpu, idesc, 3);
9035   }
9036   {
9037     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
9038   }
9039   return cycles;
9040 #undef FLD
9041 }
9042
9043 UINT
9044 sh5_compact_sh5_model::model_shlr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9045 {
9046 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9047   const sh5_compact_scache* abuf = sem;
9048   const sh5_compact_idesc* idesc = abuf->idesc;
9049   int cycles = 0;
9050   {
9051     int referenced = 0;
9052     unsigned long long insn_referenced = abuf->written;
9053     INT in_usereg = -1;
9054     in_usereg = FLD (in_rn);
9055     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9056   }
9057   {
9058     int referenced = 0;
9059     unsigned long long insn_referenced = abuf->written;
9060     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
9061   }
9062   {
9063     int referenced = 0;
9064     unsigned long long insn_referenced = abuf->written;
9065     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
9066   }
9067   {
9068     int referenced = 0;
9069     unsigned long long insn_referenced = abuf->written;
9070     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
9071   }
9072   {
9073     int referenced = 0;
9074     unsigned long long insn_referenced = abuf->written;
9075     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
9076   }
9077   return cycles;
9078 #undef FLD
9079 }
9080
9081 UINT
9082 sh5_compact_sh5_model::model_shlr2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9083 {
9084 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9085   const sh5_compact_scache* abuf = sem;
9086   const sh5_compact_idesc* idesc = abuf->idesc;
9087   int cycles = 0;
9088   {
9089     INT in_usereg = -1;
9090     in_usereg = FLD (in_rn);
9091     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9092   }
9093   {
9094     cycles += model_u_exec_before (current_cpu, idesc, 1);
9095   }
9096   {
9097     cycles += model_u_shift_before (current_cpu, idesc, 2);
9098   }
9099   return cycles;
9100 #undef FLD
9101 }
9102
9103 UINT
9104 sh5_compact_sh5_model::model_shlr2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9105 {
9106 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9107   const sh5_compact_scache* abuf = sem;
9108   const sh5_compact_idesc* idesc = abuf->idesc;
9109   int cycles = 0;
9110   {
9111     int referenced = 0;
9112     unsigned long long insn_referenced = abuf->written;
9113     INT in_usereg = -1;
9114     in_usereg = FLD (in_rn);
9115     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9116   }
9117   {
9118     int referenced = 0;
9119     unsigned long long insn_referenced = abuf->written;
9120     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
9121   }
9122   {
9123     int referenced = 0;
9124     unsigned long long insn_referenced = abuf->written;
9125     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
9126   }
9127   return cycles;
9128 #undef FLD
9129 }
9130
9131 UINT
9132 sh5_compact_sh5_model::model_shlr8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9133 {
9134 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9135   const sh5_compact_scache* abuf = sem;
9136   const sh5_compact_idesc* idesc = abuf->idesc;
9137   int cycles = 0;
9138   {
9139     INT in_usereg = -1;
9140     in_usereg = FLD (in_rn);
9141     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9142   }
9143   {
9144     cycles += model_u_exec_before (current_cpu, idesc, 1);
9145   }
9146   {
9147     cycles += model_u_shift_before (current_cpu, idesc, 2);
9148   }
9149   return cycles;
9150 #undef FLD
9151 }
9152
9153 UINT
9154 sh5_compact_sh5_model::model_shlr8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9155 {
9156 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9157   const sh5_compact_scache* abuf = sem;
9158   const sh5_compact_idesc* idesc = abuf->idesc;
9159   int cycles = 0;
9160   {
9161     int referenced = 0;
9162     unsigned long long insn_referenced = abuf->written;
9163     INT in_usereg = -1;
9164     in_usereg = FLD (in_rn);
9165     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9166   }
9167   {
9168     int referenced = 0;
9169     unsigned long long insn_referenced = abuf->written;
9170     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
9171   }
9172   {
9173     int referenced = 0;
9174     unsigned long long insn_referenced = abuf->written;
9175     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
9176   }
9177   return cycles;
9178 #undef FLD
9179 }
9180
9181 UINT
9182 sh5_compact_sh5_model::model_shlr16_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9183 {
9184 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9185   const sh5_compact_scache* abuf = sem;
9186   const sh5_compact_idesc* idesc = abuf->idesc;
9187   int cycles = 0;
9188   {
9189     INT in_usereg = -1;
9190     in_usereg = FLD (in_rn);
9191     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9192   }
9193   {
9194     cycles += model_u_exec_before (current_cpu, idesc, 1);
9195   }
9196   {
9197     cycles += model_u_shift_before (current_cpu, idesc, 2);
9198   }
9199   return cycles;
9200 #undef FLD
9201 }
9202
9203 UINT
9204 sh5_compact_sh5_model::model_shlr16_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9205 {
9206 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9207   const sh5_compact_scache* abuf = sem;
9208   const sh5_compact_idesc* idesc = abuf->idesc;
9209   int cycles = 0;
9210   {
9211     int referenced = 0;
9212     unsigned long long insn_referenced = abuf->written;
9213     INT in_usereg = -1;
9214     in_usereg = FLD (in_rn);
9215     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9216   }
9217   {
9218     int referenced = 0;
9219     unsigned long long insn_referenced = abuf->written;
9220     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
9221   }
9222   {
9223     int referenced = 0;
9224     unsigned long long insn_referenced = abuf->written;
9225     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
9226   }
9227   return cycles;
9228 #undef FLD
9229 }
9230
9231 UINT
9232 sh5_compact_sh5_model::model_stc_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9233 {
9234 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9235   const sh5_compact_scache* abuf = sem;
9236   const sh5_compact_idesc* idesc = abuf->idesc;
9237   int cycles = 0;
9238   {
9239     cycles += model_u_exec_before (current_cpu, idesc, 0);
9240   }
9241   return cycles;
9242 #undef FLD
9243 }
9244
9245 UINT
9246 sh5_compact_sh5_model::model_stc_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9247 {
9248 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9249   const sh5_compact_scache* abuf = sem;
9250   const sh5_compact_idesc* idesc = abuf->idesc;
9251   int cycles = 0;
9252   {
9253     int referenced = 0;
9254     unsigned long long insn_referenced = abuf->written;
9255     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
9256   }
9257   return cycles;
9258 #undef FLD
9259 }
9260
9261 UINT
9262 sh5_compact_sh5_model::model_stc_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9263 {
9264 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9265   const sh5_compact_scache* abuf = sem;
9266   const sh5_compact_idesc* idesc = abuf->idesc;
9267   int cycles = 0;
9268   {
9269     cycles += model_u_stc_vbr_before (current_cpu, idesc, 0);
9270   }
9271   return cycles;
9272 #undef FLD
9273 }
9274
9275 UINT
9276 sh5_compact_sh5_model::model_stc_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9277 {
9278 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9279   const sh5_compact_scache* abuf = sem;
9280   const sh5_compact_idesc* idesc = abuf->idesc;
9281   int cycles = 0;
9282   {
9283     int referenced = 0;
9284     unsigned long long insn_referenced = abuf->written;
9285     cycles += model_u_stc_vbr_after (current_cpu, idesc, 0, referenced);
9286   }
9287   return cycles;
9288 #undef FLD
9289 }
9290
9291 UINT
9292 sh5_compact_sh5_model::model_stcl_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9293 {
9294 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9295   const sh5_compact_scache* abuf = sem;
9296   const sh5_compact_idesc* idesc = abuf->idesc;
9297   int cycles = 0;
9298   {
9299     INT in_usereg = -1;
9300     in_usereg = FLD (in_rn);
9301     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9302   }
9303   {
9304     cycles += model_u_ldcl_before (current_cpu, idesc, 1);
9305   }
9306   {
9307     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
9308   }
9309   return cycles;
9310 #undef FLD
9311 }
9312
9313 UINT
9314 sh5_compact_sh5_model::model_stcl_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9315 {
9316 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9317   const sh5_compact_scache* abuf = sem;
9318   const sh5_compact_idesc* idesc = abuf->idesc;
9319   int cycles = 0;
9320   {
9321     int referenced = 0;
9322     unsigned long long insn_referenced = abuf->written;
9323     INT in_usereg = -1;
9324     in_usereg = FLD (in_rn);
9325     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9326   }
9327   {
9328     int referenced = 0;
9329     unsigned long long insn_referenced = abuf->written;
9330     cycles += model_u_ldcl_after (current_cpu, idesc, 1, referenced);
9331   }
9332   {
9333     int referenced = 0;
9334     unsigned long long insn_referenced = abuf->written;
9335     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
9336   }
9337   return cycles;
9338 #undef FLD
9339 }
9340
9341 UINT
9342 sh5_compact_sh5_model::model_stcl_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9343 {
9344 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9345   const sh5_compact_scache* abuf = sem;
9346   const sh5_compact_idesc* idesc = abuf->idesc;
9347   int cycles = 0;
9348   {
9349     INT in_usereg = -1;
9350     in_usereg = FLD (in_rn);
9351     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9352   }
9353   {
9354     cycles += model_u_ldcl_before (current_cpu, idesc, 1);
9355   }
9356   {
9357     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
9358   }
9359   return cycles;
9360 #undef FLD
9361 }
9362
9363 UINT
9364 sh5_compact_sh5_model::model_stcl_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9365 {
9366 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9367   const sh5_compact_scache* abuf = sem;
9368   const sh5_compact_idesc* idesc = abuf->idesc;
9369   int cycles = 0;
9370   {
9371     int referenced = 0;
9372     unsigned long long insn_referenced = abuf->written;
9373     INT in_usereg = -1;
9374     in_usereg = FLD (in_rn);
9375     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9376   }
9377   {
9378     int referenced = 0;
9379     unsigned long long insn_referenced = abuf->written;
9380     cycles += model_u_ldcl_after (current_cpu, idesc, 1, referenced);
9381   }
9382   {
9383     int referenced = 0;
9384     unsigned long long insn_referenced = abuf->written;
9385     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
9386   }
9387   return cycles;
9388 #undef FLD
9389 }
9390
9391 UINT
9392 sh5_compact_sh5_model::model_sts_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9393 {
9394 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9395   const sh5_compact_scache* abuf = sem;
9396   const sh5_compact_idesc* idesc = abuf->idesc;
9397   int cycles = 0;
9398   {
9399     cycles += model_u_use_fpscr_before (current_cpu, idesc, 0);
9400   }
9401   {
9402     cycles += model_u_exec_before (current_cpu, idesc, 1);
9403   }
9404   {
9405     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
9406   }
9407   {
9408     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
9409   }
9410   {
9411     INT out_loadreg = -1;
9412     out_loadreg = FLD (out_rn);
9413     cycles += model_u_fpu_load_gr_before (current_cpu, idesc, 4, out_loadreg);
9414   }
9415   return cycles;
9416 #undef FLD
9417 }
9418
9419 UINT
9420 sh5_compact_sh5_model::model_sts_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9421 {
9422 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9423   const sh5_compact_scache* abuf = sem;
9424   const sh5_compact_idesc* idesc = abuf->idesc;
9425   int cycles = 0;
9426   {
9427     int referenced = 0;
9428     unsigned long long insn_referenced = abuf->written;
9429     cycles += model_u_use_fpscr_after (current_cpu, idesc, 0, referenced);
9430   }
9431   {
9432     int referenced = 0;
9433     unsigned long long insn_referenced = abuf->written;
9434     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
9435   }
9436   {
9437     int referenced = 0;
9438     unsigned long long insn_referenced = abuf->written;
9439     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
9440   }
9441   {
9442     int referenced = 0;
9443     unsigned long long insn_referenced = abuf->written;
9444     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
9445   }
9446   {
9447     int referenced = 0;
9448     unsigned long long insn_referenced = abuf->written;
9449     INT out_loadreg = -1;
9450     out_loadreg = FLD (out_rn);
9451     cycles += model_u_fpu_load_gr_after (current_cpu, idesc, 4, referenced, out_loadreg);
9452   }
9453   return cycles;
9454 #undef FLD
9455 }
9456
9457 UINT
9458 sh5_compact_sh5_model::model_stsl_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9459 {
9460 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9461   const sh5_compact_scache* abuf = sem;
9462   const sh5_compact_idesc* idesc = abuf->idesc;
9463   int cycles = 0;
9464   {
9465     INT in_usereg = -1;
9466     in_usereg = FLD (in_rn);
9467     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9468   }
9469   {
9470     cycles += model_u_use_fpscr_before (current_cpu, idesc, 1);
9471   }
9472   {
9473     cycles += model_u_exec_before (current_cpu, idesc, 2);
9474   }
9475   {
9476     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 3);
9477   }
9478   {
9479     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 4);
9480   }
9481   return cycles;
9482 #undef FLD
9483 }
9484
9485 UINT
9486 sh5_compact_sh5_model::model_stsl_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9487 {
9488 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9489   const sh5_compact_scache* abuf = sem;
9490   const sh5_compact_idesc* idesc = abuf->idesc;
9491   int cycles = 0;
9492   {
9493     int referenced = 0;
9494     unsigned long long insn_referenced = abuf->written;
9495     INT in_usereg = -1;
9496     in_usereg = FLD (in_rn);
9497     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9498   }
9499   {
9500     int referenced = 0;
9501     unsigned long long insn_referenced = abuf->written;
9502     cycles += model_u_use_fpscr_after (current_cpu, idesc, 1, referenced);
9503   }
9504   {
9505     int referenced = 0;
9506     unsigned long long insn_referenced = abuf->written;
9507     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
9508   }
9509   {
9510     int referenced = 0;
9511     unsigned long long insn_referenced = abuf->written;
9512     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 3, referenced);
9513   }
9514   {
9515     int referenced = 0;
9516     unsigned long long insn_referenced = abuf->written;
9517     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 4, referenced);
9518   }
9519   return cycles;
9520 #undef FLD
9521 }
9522
9523 UINT
9524 sh5_compact_sh5_model::model_sts_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9525 {
9526 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9527   const sh5_compact_scache* abuf = sem;
9528   const sh5_compact_idesc* idesc = abuf->idesc;
9529   int cycles = 0;
9530   {
9531     cycles += model_u_use_fpul_before (current_cpu, idesc, 0);
9532   }
9533   {
9534     cycles += model_u_exec_before (current_cpu, idesc, 1);
9535   }
9536   {
9537     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 2);
9538   }
9539   {
9540     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 3);
9541   }
9542   {
9543     INT out_loadreg = -1;
9544     out_loadreg = FLD (out_rn);
9545     cycles += model_u_fpu_load_gr_before (current_cpu, idesc, 4, out_loadreg);
9546   }
9547   return cycles;
9548 #undef FLD
9549 }
9550
9551 UINT
9552 sh5_compact_sh5_model::model_sts_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9553 {
9554 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9555   const sh5_compact_scache* abuf = sem;
9556   const sh5_compact_idesc* idesc = abuf->idesc;
9557   int cycles = 0;
9558   {
9559     int referenced = 0;
9560     unsigned long long insn_referenced = abuf->written;
9561     cycles += model_u_use_fpul_after (current_cpu, idesc, 0, referenced);
9562   }
9563   {
9564     int referenced = 0;
9565     unsigned long long insn_referenced = abuf->written;
9566     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
9567   }
9568   {
9569     int referenced = 0;
9570     unsigned long long insn_referenced = abuf->written;
9571     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 2, referenced);
9572   }
9573   {
9574     int referenced = 0;
9575     unsigned long long insn_referenced = abuf->written;
9576     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 3, referenced);
9577   }
9578   {
9579     int referenced = 0;
9580     unsigned long long insn_referenced = abuf->written;
9581     INT out_loadreg = -1;
9582     out_loadreg = FLD (out_rn);
9583     cycles += model_u_fpu_load_gr_after (current_cpu, idesc, 4, referenced, out_loadreg);
9584   }
9585   return cycles;
9586 #undef FLD
9587 }
9588
9589 UINT
9590 sh5_compact_sh5_model::model_stsl_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9591 {
9592 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9593   const sh5_compact_scache* abuf = sem;
9594   const sh5_compact_idesc* idesc = abuf->idesc;
9595   int cycles = 0;
9596   {
9597     cycles += model_u_use_fpul_before (current_cpu, idesc, 0);
9598   }
9599   {
9600     INT in_usereg = -1;
9601     in_usereg = FLD (in_rn);
9602     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
9603   }
9604   {
9605     cycles += model_u_exec_before (current_cpu, idesc, 2);
9606   }
9607   {
9608     cycles += model_u_maybe_fpu_before (current_cpu, idesc, 3);
9609   }
9610   {
9611     cycles += model_u_fpu_memory_access_before (current_cpu, idesc, 4);
9612   }
9613   return cycles;
9614 #undef FLD
9615 }
9616
9617 UINT
9618 sh5_compact_sh5_model::model_stsl_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9619 {
9620 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9621   const sh5_compact_scache* abuf = sem;
9622   const sh5_compact_idesc* idesc = abuf->idesc;
9623   int cycles = 0;
9624   {
9625     int referenced = 0;
9626     unsigned long long insn_referenced = abuf->written;
9627     cycles += model_u_use_fpul_after (current_cpu, idesc, 0, referenced);
9628   }
9629   {
9630     int referenced = 0;
9631     unsigned long long insn_referenced = abuf->written;
9632     INT in_usereg = -1;
9633     in_usereg = FLD (in_rn);
9634     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
9635   }
9636   {
9637     int referenced = 0;
9638     unsigned long long insn_referenced = abuf->written;
9639     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
9640   }
9641   {
9642     int referenced = 0;
9643     unsigned long long insn_referenced = abuf->written;
9644     cycles += model_u_maybe_fpu_after (current_cpu, idesc, 3, referenced);
9645   }
9646   {
9647     int referenced = 0;
9648     unsigned long long insn_referenced = abuf->written;
9649     cycles += model_u_fpu_memory_access_after (current_cpu, idesc, 4, referenced);
9650   }
9651   return cycles;
9652 #undef FLD
9653 }
9654
9655 UINT
9656 sh5_compact_sh5_model::model_sts_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9657 {
9658 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9659   const sh5_compact_scache* abuf = sem;
9660   const sh5_compact_idesc* idesc = abuf->idesc;
9661   int cycles = 0;
9662   {
9663     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 0);
9664   }
9665   {
9666     cycles += model_u_write_back_before (current_cpu, idesc, 1);
9667   }
9668   {
9669     cycles += model_u_exec_before (current_cpu, idesc, 2);
9670   }
9671   {
9672     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
9673   }
9674   return cycles;
9675 #undef FLD
9676 }
9677
9678 UINT
9679 sh5_compact_sh5_model::model_sts_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9680 {
9681 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9682   const sh5_compact_scache* abuf = sem;
9683   const sh5_compact_idesc* idesc = abuf->idesc;
9684   int cycles = 0;
9685   {
9686     int referenced = 0;
9687     unsigned long long insn_referenced = abuf->written;
9688     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 0, referenced);
9689   }
9690   {
9691     int referenced = 0;
9692     unsigned long long insn_referenced = abuf->written;
9693     cycles += model_u_write_back_after (current_cpu, idesc, 1, referenced);
9694   }
9695   {
9696     int referenced = 0;
9697     unsigned long long insn_referenced = abuf->written;
9698     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
9699   }
9700   {
9701     int referenced = 0;
9702     unsigned long long insn_referenced = abuf->written;
9703     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
9704   }
9705   return cycles;
9706 #undef FLD
9707 }
9708
9709 UINT
9710 sh5_compact_sh5_model::model_stsl_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9711 {
9712 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9713   const sh5_compact_scache* abuf = sem;
9714   const sh5_compact_idesc* idesc = abuf->idesc;
9715   int cycles = 0;
9716   {
9717     INT in_usereg = -1;
9718     in_usereg = FLD (in_rn);
9719     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9720   }
9721   {
9722     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 1);
9723   }
9724   {
9725     cycles += model_u_write_back_before (current_cpu, idesc, 2);
9726   }
9727   {
9728     cycles += model_u_exec_before (current_cpu, idesc, 3);
9729   }
9730   {
9731     cycles += model_u_memory_access_before (current_cpu, idesc, 4);
9732   }
9733   return cycles;
9734 #undef FLD
9735 }
9736
9737 UINT
9738 sh5_compact_sh5_model::model_stsl_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9739 {
9740 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9741   const sh5_compact_scache* abuf = sem;
9742   const sh5_compact_idesc* idesc = abuf->idesc;
9743   int cycles = 0;
9744   {
9745     int referenced = 0;
9746     unsigned long long insn_referenced = abuf->written;
9747     INT in_usereg = -1;
9748     in_usereg = FLD (in_rn);
9749     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9750   }
9751   {
9752     int referenced = 0;
9753     unsigned long long insn_referenced = abuf->written;
9754     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 1, referenced);
9755   }
9756   {
9757     int referenced = 0;
9758     unsigned long long insn_referenced = abuf->written;
9759     cycles += model_u_write_back_after (current_cpu, idesc, 2, referenced);
9760   }
9761   {
9762     int referenced = 0;
9763     unsigned long long insn_referenced = abuf->written;
9764     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
9765   }
9766   {
9767     int referenced = 0;
9768     unsigned long long insn_referenced = abuf->written;
9769     cycles += model_u_memory_access_after (current_cpu, idesc, 4, referenced);
9770   }
9771   return cycles;
9772 #undef FLD
9773 }
9774
9775 UINT
9776 sh5_compact_sh5_model::model_sts_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9777 {
9778 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9779   const sh5_compact_scache* abuf = sem;
9780   const sh5_compact_idesc* idesc = abuf->idesc;
9781   int cycles = 0;
9782   {
9783     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 0);
9784   }
9785   {
9786     cycles += model_u_write_back_before (current_cpu, idesc, 1);
9787   }
9788   {
9789     cycles += model_u_exec_before (current_cpu, idesc, 2);
9790   }
9791   {
9792     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
9793   }
9794   return cycles;
9795 #undef FLD
9796 }
9797
9798 UINT
9799 sh5_compact_sh5_model::model_sts_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9800 {
9801 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9802   const sh5_compact_scache* abuf = sem;
9803   const sh5_compact_idesc* idesc = abuf->idesc;
9804   int cycles = 0;
9805   {
9806     int referenced = 0;
9807     unsigned long long insn_referenced = abuf->written;
9808     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 0, referenced);
9809   }
9810   {
9811     int referenced = 0;
9812     unsigned long long insn_referenced = abuf->written;
9813     cycles += model_u_write_back_after (current_cpu, idesc, 1, referenced);
9814   }
9815   {
9816     int referenced = 0;
9817     unsigned long long insn_referenced = abuf->written;
9818     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
9819   }
9820   {
9821     int referenced = 0;
9822     unsigned long long insn_referenced = abuf->written;
9823     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
9824   }
9825   return cycles;
9826 #undef FLD
9827 }
9828
9829 UINT
9830 sh5_compact_sh5_model::model_stsl_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9831 {
9832 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9833   const sh5_compact_scache* abuf = sem;
9834   const sh5_compact_idesc* idesc = abuf->idesc;
9835   int cycles = 0;
9836   {
9837     INT in_usereg = -1;
9838     in_usereg = FLD (in_rn);
9839     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9840   }
9841   {
9842     cycles += model_u_use_multiply_result_before (current_cpu, idesc, 1);
9843   }
9844   {
9845     cycles += model_u_write_back_before (current_cpu, idesc, 2);
9846   }
9847   {
9848     cycles += model_u_exec_before (current_cpu, idesc, 3);
9849   }
9850   {
9851     cycles += model_u_memory_access_before (current_cpu, idesc, 4);
9852   }
9853   return cycles;
9854 #undef FLD
9855 }
9856
9857 UINT
9858 sh5_compact_sh5_model::model_stsl_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9859 {
9860 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9861   const sh5_compact_scache* abuf = sem;
9862   const sh5_compact_idesc* idesc = abuf->idesc;
9863   int cycles = 0;
9864   {
9865     int referenced = 0;
9866     unsigned long long insn_referenced = abuf->written;
9867     INT in_usereg = -1;
9868     in_usereg = FLD (in_rn);
9869     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9870   }
9871   {
9872     int referenced = 0;
9873     unsigned long long insn_referenced = abuf->written;
9874     cycles += model_u_use_multiply_result_after (current_cpu, idesc, 1, referenced);
9875   }
9876   {
9877     int referenced = 0;
9878     unsigned long long insn_referenced = abuf->written;
9879     cycles += model_u_write_back_after (current_cpu, idesc, 2, referenced);
9880   }
9881   {
9882     int referenced = 0;
9883     unsigned long long insn_referenced = abuf->written;
9884     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
9885   }
9886   {
9887     int referenced = 0;
9888     unsigned long long insn_referenced = abuf->written;
9889     cycles += model_u_memory_access_after (current_cpu, idesc, 4, referenced);
9890   }
9891   return cycles;
9892 #undef FLD
9893 }
9894
9895 UINT
9896 sh5_compact_sh5_model::model_sts_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9897 {
9898 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9899   const sh5_compact_scache* abuf = sem;
9900   const sh5_compact_idesc* idesc = abuf->idesc;
9901   int cycles = 0;
9902   {
9903     cycles += model_u_use_pr_before (current_cpu, idesc, 0);
9904   }
9905   {
9906     cycles += model_u_sts_pr_before (current_cpu, idesc, 1);
9907   }
9908   return cycles;
9909 #undef FLD
9910 }
9911
9912 UINT
9913 sh5_compact_sh5_model::model_sts_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9914 {
9915 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
9916   const sh5_compact_scache* abuf = sem;
9917   const sh5_compact_idesc* idesc = abuf->idesc;
9918   int cycles = 0;
9919   {
9920     int referenced = 0;
9921     unsigned long long insn_referenced = abuf->written;
9922     cycles += model_u_use_pr_after (current_cpu, idesc, 0, referenced);
9923   }
9924   {
9925     int referenced = 0;
9926     unsigned long long insn_referenced = abuf->written;
9927     cycles += model_u_sts_pr_after (current_cpu, idesc, 1, referenced);
9928   }
9929   return cycles;
9930 #undef FLD
9931 }
9932
9933 UINT
9934 sh5_compact_sh5_model::model_stsl_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9935 {
9936 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9937   const sh5_compact_scache* abuf = sem;
9938   const sh5_compact_idesc* idesc = abuf->idesc;
9939   int cycles = 0;
9940   {
9941     INT in_usereg = -1;
9942     in_usereg = FLD (in_rn);
9943     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
9944   }
9945   {
9946     cycles += model_u_use_pr_before (current_cpu, idesc, 1);
9947   }
9948   {
9949     cycles += model_u_sts_pr_before (current_cpu, idesc, 2);
9950   }
9951   {
9952     cycles += model_u_memory_access_before (current_cpu, idesc, 3);
9953   }
9954   return cycles;
9955 #undef FLD
9956 }
9957
9958 UINT
9959 sh5_compact_sh5_model::model_stsl_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9960 {
9961 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
9962   const sh5_compact_scache* abuf = sem;
9963   const sh5_compact_idesc* idesc = abuf->idesc;
9964   int cycles = 0;
9965   {
9966     int referenced = 0;
9967     unsigned long long insn_referenced = abuf->written;
9968     INT in_usereg = -1;
9969     in_usereg = FLD (in_rn);
9970     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
9971   }
9972   {
9973     int referenced = 0;
9974     unsigned long long insn_referenced = abuf->written;
9975     cycles += model_u_use_pr_after (current_cpu, idesc, 1, referenced);
9976   }
9977   {
9978     int referenced = 0;
9979     unsigned long long insn_referenced = abuf->written;
9980     cycles += model_u_sts_pr_after (current_cpu, idesc, 2, referenced);
9981   }
9982   {
9983     int referenced = 0;
9984     unsigned long long insn_referenced = abuf->written;
9985     cycles += model_u_memory_access_after (current_cpu, idesc, 3, referenced);
9986   }
9987   return cycles;
9988 #undef FLD
9989 }
9990
9991 UINT
9992 sh5_compact_sh5_model::model_sub_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
9993 {
9994 #define FLD(f) abuf->fields.sfmt_macl_compact.f
9995   const sh5_compact_scache* abuf = sem;
9996   const sh5_compact_idesc* idesc = abuf->idesc;
9997   int cycles = 0;
9998   {
9999     INT in_usereg = -1;
10000     in_usereg = FLD (in_rn);
10001     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10002   }
10003   {
10004     INT in_usereg = -1;
10005     in_usereg = FLD (in_rm);
10006     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
10007   }
10008   {
10009     cycles += model_u_exec_before (current_cpu, idesc, 2);
10010   }
10011   return cycles;
10012 #undef FLD
10013 }
10014
10015 UINT
10016 sh5_compact_sh5_model::model_sub_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10017 {
10018 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10019   const sh5_compact_scache* abuf = sem;
10020   const sh5_compact_idesc* idesc = abuf->idesc;
10021   int cycles = 0;
10022   {
10023     int referenced = 0;
10024     unsigned long long insn_referenced = abuf->written;
10025     INT in_usereg = -1;
10026     in_usereg = FLD (in_rn);
10027     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10028   }
10029   {
10030     int referenced = 0;
10031     unsigned long long insn_referenced = abuf->written;
10032     INT in_usereg = -1;
10033     in_usereg = FLD (in_rm);
10034     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
10035   }
10036   {
10037     int referenced = 0;
10038     unsigned long long insn_referenced = abuf->written;
10039     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
10040   }
10041   return cycles;
10042 #undef FLD
10043 }
10044
10045 UINT
10046 sh5_compact_sh5_model::model_subc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10047 {
10048 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10049   const sh5_compact_scache* abuf = sem;
10050   const sh5_compact_idesc* idesc = abuf->idesc;
10051   int cycles = 0;
10052   {
10053     INT in_usereg = -1;
10054     in_usereg = FLD (in_rn);
10055     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10056   }
10057   {
10058     INT in_usereg = -1;
10059     in_usereg = FLD (in_rm);
10060     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
10061   }
10062   {
10063     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
10064   }
10065   {
10066     cycles += model_u_exec_before (current_cpu, idesc, 3);
10067   }
10068   return cycles;
10069 #undef FLD
10070 }
10071
10072 UINT
10073 sh5_compact_sh5_model::model_subc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10074 {
10075 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10076   const sh5_compact_scache* abuf = sem;
10077   const sh5_compact_idesc* idesc = abuf->idesc;
10078   int cycles = 0;
10079   {
10080     int referenced = 0;
10081     unsigned long long insn_referenced = abuf->written;
10082     INT in_usereg = -1;
10083     in_usereg = FLD (in_rn);
10084     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10085   }
10086   {
10087     int referenced = 0;
10088     unsigned long long insn_referenced = abuf->written;
10089     INT in_usereg = -1;
10090     in_usereg = FLD (in_rm);
10091     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
10092   }
10093   {
10094     int referenced = 0;
10095     unsigned long long insn_referenced = abuf->written;
10096     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
10097   }
10098   {
10099     int referenced = 0;
10100     unsigned long long insn_referenced = abuf->written;
10101     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
10102   }
10103   return cycles;
10104 #undef FLD
10105 }
10106
10107 UINT
10108 sh5_compact_sh5_model::model_subv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10109 {
10110 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10111   const sh5_compact_scache* abuf = sem;
10112   const sh5_compact_idesc* idesc = abuf->idesc;
10113   int cycles = 0;
10114   {
10115     INT in_usereg = -1;
10116     in_usereg = FLD (in_rn);
10117     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10118   }
10119   {
10120     INT in_usereg = -1;
10121     in_usereg = FLD (in_rm);
10122     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
10123   }
10124   {
10125     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
10126   }
10127   {
10128     cycles += model_u_exec_before (current_cpu, idesc, 3);
10129   }
10130   {
10131     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
10132   }
10133   return cycles;
10134 #undef FLD
10135 }
10136
10137 UINT
10138 sh5_compact_sh5_model::model_subv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10139 {
10140 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10141   const sh5_compact_scache* abuf = sem;
10142   const sh5_compact_idesc* idesc = abuf->idesc;
10143   int cycles = 0;
10144   {
10145     int referenced = 0;
10146     unsigned long long insn_referenced = abuf->written;
10147     INT in_usereg = -1;
10148     in_usereg = FLD (in_rn);
10149     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10150   }
10151   {
10152     int referenced = 0;
10153     unsigned long long insn_referenced = abuf->written;
10154     INT in_usereg = -1;
10155     in_usereg = FLD (in_rm);
10156     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
10157   }
10158   {
10159     int referenced = 0;
10160     unsigned long long insn_referenced = abuf->written;
10161     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
10162   }
10163   {
10164     int referenced = 0;
10165     unsigned long long insn_referenced = abuf->written;
10166     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
10167   }
10168   {
10169     int referenced = 0;
10170     unsigned long long insn_referenced = abuf->written;
10171     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
10172   }
10173   return cycles;
10174 #undef FLD
10175 }
10176
10177 UINT
10178 sh5_compact_sh5_model::model_swapb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10179 {
10180 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
10181   const sh5_compact_scache* abuf = sem;
10182   const sh5_compact_idesc* idesc = abuf->idesc;
10183   int cycles = 0;
10184   {
10185     INT in_usereg = -1;
10186     in_usereg = FLD (in_rm);
10187     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10188   }
10189   {
10190     cycles += model_u_exec_before (current_cpu, idesc, 1);
10191   }
10192   {
10193     cycles += model_u_shift_before (current_cpu, idesc, 2);
10194   }
10195   return cycles;
10196 #undef FLD
10197 }
10198
10199 UINT
10200 sh5_compact_sh5_model::model_swapb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10201 {
10202 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
10203   const sh5_compact_scache* abuf = sem;
10204   const sh5_compact_idesc* idesc = abuf->idesc;
10205   int cycles = 0;
10206   {
10207     int referenced = 0;
10208     unsigned long long insn_referenced = abuf->written;
10209     INT in_usereg = -1;
10210     in_usereg = FLD (in_rm);
10211     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10212   }
10213   {
10214     int referenced = 0;
10215     unsigned long long insn_referenced = abuf->written;
10216     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
10217   }
10218   {
10219     int referenced = 0;
10220     unsigned long long insn_referenced = abuf->written;
10221     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
10222   }
10223   return cycles;
10224 #undef FLD
10225 }
10226
10227 UINT
10228 sh5_compact_sh5_model::model_swapw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10229 {
10230 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
10231   const sh5_compact_scache* abuf = sem;
10232   const sh5_compact_idesc* idesc = abuf->idesc;
10233   int cycles = 0;
10234   {
10235     INT in_usereg = -1;
10236     in_usereg = FLD (in_rm);
10237     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10238   }
10239   {
10240     cycles += model_u_exec_before (current_cpu, idesc, 1);
10241   }
10242   {
10243     cycles += model_u_shift_before (current_cpu, idesc, 2);
10244   }
10245   return cycles;
10246 #undef FLD
10247 }
10248
10249 UINT
10250 sh5_compact_sh5_model::model_swapw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10251 {
10252 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
10253   const sh5_compact_scache* abuf = sem;
10254   const sh5_compact_idesc* idesc = abuf->idesc;
10255   int cycles = 0;
10256   {
10257     int referenced = 0;
10258     unsigned long long insn_referenced = abuf->written;
10259     INT in_usereg = -1;
10260     in_usereg = FLD (in_rm);
10261     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10262   }
10263   {
10264     int referenced = 0;
10265     unsigned long long insn_referenced = abuf->written;
10266     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
10267   }
10268   {
10269     int referenced = 0;
10270     unsigned long long insn_referenced = abuf->written;
10271     cycles += model_u_shift_after (current_cpu, idesc, 2, referenced);
10272   }
10273   return cycles;
10274 #undef FLD
10275 }
10276
10277 UINT
10278 sh5_compact_sh5_model::model_tasb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10279 {
10280 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
10281   const sh5_compact_scache* abuf = sem;
10282   const sh5_compact_idesc* idesc = abuf->idesc;
10283   int cycles = 0;
10284   {
10285     INT in_usereg = -1;
10286     in_usereg = FLD (in_rn);
10287     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10288   }
10289   {
10290     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
10291   }
10292   {
10293     cycles += model_u_tas_before (current_cpu, idesc, 2);
10294   }
10295   {
10296     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
10297   }
10298   {
10299     cycles += model_u_memory_access_before (current_cpu, idesc, 4);
10300   }
10301   return cycles;
10302 #undef FLD
10303 }
10304
10305 UINT
10306 sh5_compact_sh5_model::model_tasb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10307 {
10308 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
10309   const sh5_compact_scache* abuf = sem;
10310   const sh5_compact_idesc* idesc = abuf->idesc;
10311   int cycles = 0;
10312   {
10313     int referenced = 0;
10314     unsigned long long insn_referenced = abuf->written;
10315     INT in_usereg = -1;
10316     in_usereg = FLD (in_rn);
10317     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10318   }
10319   {
10320     int referenced = 0;
10321     unsigned long long insn_referenced = abuf->written;
10322     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
10323   }
10324   {
10325     int referenced = 0;
10326     unsigned long long insn_referenced = abuf->written;
10327     cycles += model_u_tas_after (current_cpu, idesc, 2, referenced);
10328   }
10329   {
10330     int referenced = 0;
10331     unsigned long long insn_referenced = abuf->written;
10332     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
10333   }
10334   {
10335     int referenced = 0;
10336     unsigned long long insn_referenced = abuf->written;
10337     cycles += model_u_memory_access_after (current_cpu, idesc, 4, referenced);
10338   }
10339   return cycles;
10340 #undef FLD
10341 }
10342
10343 UINT
10344 sh5_compact_sh5_model::model_trapa_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10345 {
10346 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10347   const sh5_compact_scache* abuf = sem;
10348   const sh5_compact_idesc* idesc = abuf->idesc;
10349   int cycles = 0;
10350   {
10351     cycles += model_u_trap_before (current_cpu, idesc, 0);
10352   }
10353   return cycles;
10354 #undef FLD
10355 }
10356
10357 UINT
10358 sh5_compact_sh5_model::model_trapa_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10359 {
10360 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10361   const sh5_compact_scache* abuf = sem;
10362   const sh5_compact_idesc* idesc = abuf->idesc;
10363   int cycles = 0;
10364   {
10365     int referenced = 0;
10366     unsigned long long insn_referenced = abuf->written;
10367     cycles += model_u_trap_after (current_cpu, idesc, 0, referenced);
10368   }
10369   return cycles;
10370 #undef FLD
10371 }
10372
10373 UINT
10374 sh5_compact_sh5_model::model_tst_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10375 {
10376 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
10377   const sh5_compact_scache* abuf = sem;
10378   const sh5_compact_idesc* idesc = abuf->idesc;
10379   int cycles = 0;
10380   {
10381     INT in_usereg = -1;
10382     in_usereg = FLD (in_rn);
10383     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10384   }
10385   {
10386     INT in_usereg = -1;
10387     in_usereg = FLD (in_rm);
10388     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
10389   }
10390   {
10391     cycles += model_u_use_tbit_before (current_cpu, idesc, 2);
10392   }
10393   {
10394     cycles += model_u_exec_before (current_cpu, idesc, 3);
10395   }
10396   {
10397     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
10398   }
10399   return cycles;
10400 #undef FLD
10401 }
10402
10403 UINT
10404 sh5_compact_sh5_model::model_tst_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10405 {
10406 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
10407   const sh5_compact_scache* abuf = sem;
10408   const sh5_compact_idesc* idesc = abuf->idesc;
10409   int cycles = 0;
10410   {
10411     int referenced = 0;
10412     unsigned long long insn_referenced = abuf->written;
10413     INT in_usereg = -1;
10414     in_usereg = FLD (in_rn);
10415     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10416   }
10417   {
10418     int referenced = 0;
10419     unsigned long long insn_referenced = abuf->written;
10420     INT in_usereg = -1;
10421     in_usereg = FLD (in_rm);
10422     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
10423   }
10424   {
10425     int referenced = 0;
10426     unsigned long long insn_referenced = abuf->written;
10427     cycles += model_u_use_tbit_after (current_cpu, idesc, 2, referenced);
10428   }
10429   {
10430     int referenced = 0;
10431     unsigned long long insn_referenced = abuf->written;
10432     cycles += model_u_exec_after (current_cpu, idesc, 3, referenced);
10433   }
10434   {
10435     int referenced = 0;
10436     unsigned long long insn_referenced = abuf->written;
10437     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
10438   }
10439   return cycles;
10440 #undef FLD
10441 }
10442
10443 UINT
10444 sh5_compact_sh5_model::model_tsti_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10445 {
10446 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10447   const sh5_compact_scache* abuf = sem;
10448   const sh5_compact_idesc* idesc = abuf->idesc;
10449   int cycles = 0;
10450   {
10451     INT in_usereg = -1;
10452     in_usereg = FLD (in_r0);
10453     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10454   }
10455   {
10456     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
10457   }
10458   {
10459     cycles += model_u_exec_before (current_cpu, idesc, 2);
10460   }
10461   {
10462     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 3);
10463   }
10464   return cycles;
10465 #undef FLD
10466 }
10467
10468 UINT
10469 sh5_compact_sh5_model::model_tsti_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10470 {
10471 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10472   const sh5_compact_scache* abuf = sem;
10473   const sh5_compact_idesc* idesc = abuf->idesc;
10474   int cycles = 0;
10475   {
10476     int referenced = 0;
10477     unsigned long long insn_referenced = abuf->written;
10478     INT in_usereg = -1;
10479     in_usereg = FLD (in_r0);
10480     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10481   }
10482   {
10483     int referenced = 0;
10484     unsigned long long insn_referenced = abuf->written;
10485     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
10486   }
10487   {
10488     int referenced = 0;
10489     unsigned long long insn_referenced = abuf->written;
10490     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
10491   }
10492   {
10493     int referenced = 0;
10494     unsigned long long insn_referenced = abuf->written;
10495     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 3, referenced);
10496   }
10497   return cycles;
10498 #undef FLD
10499 }
10500
10501 UINT
10502 sh5_compact_sh5_model::model_tstb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10503 {
10504 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10505   const sh5_compact_scache* abuf = sem;
10506   const sh5_compact_idesc* idesc = abuf->idesc;
10507   int cycles = 0;
10508   {
10509     INT in_usereg = -1;
10510     in_usereg = FLD (in_r0);
10511     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10512   }
10513   {
10514     cycles += model_u_use_tbit_before (current_cpu, idesc, 1);
10515   }
10516   {
10517     cycles += model_u_exec_before (current_cpu, idesc, 2);
10518   }
10519   {
10520     cycles += model_u_sx_before (current_cpu, idesc, 3);
10521   }
10522   {
10523     cycles += model_u_set_sr_bit_before (current_cpu, idesc, 4);
10524   }
10525   {
10526     cycles += model_u_memory_access_before (current_cpu, idesc, 5);
10527   }
10528   return cycles;
10529 #undef FLD
10530 }
10531
10532 UINT
10533 sh5_compact_sh5_model::model_tstb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10534 {
10535 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10536   const sh5_compact_scache* abuf = sem;
10537   const sh5_compact_idesc* idesc = abuf->idesc;
10538   int cycles = 0;
10539   {
10540     int referenced = 0;
10541     unsigned long long insn_referenced = abuf->written;
10542     INT in_usereg = -1;
10543     in_usereg = FLD (in_r0);
10544     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10545   }
10546   {
10547     int referenced = 0;
10548     unsigned long long insn_referenced = abuf->written;
10549     cycles += model_u_use_tbit_after (current_cpu, idesc, 1, referenced);
10550   }
10551   {
10552     int referenced = 0;
10553     unsigned long long insn_referenced = abuf->written;
10554     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
10555   }
10556   {
10557     int referenced = 0;
10558     unsigned long long insn_referenced = abuf->written;
10559     cycles += model_u_sx_after (current_cpu, idesc, 3, referenced);
10560   }
10561   {
10562     int referenced = 0;
10563     unsigned long long insn_referenced = abuf->written;
10564     cycles += model_u_set_sr_bit_after (current_cpu, idesc, 4, referenced);
10565   }
10566   {
10567     int referenced = 0;
10568     unsigned long long insn_referenced = abuf->written;
10569     cycles += model_u_memory_access_after (current_cpu, idesc, 5, referenced);
10570   }
10571   return cycles;
10572 #undef FLD
10573 }
10574
10575 UINT
10576 sh5_compact_sh5_model::model_xor_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10577 {
10578 #define FLD(f) abuf->fields.sfmt_and_compact.f
10579   const sh5_compact_scache* abuf = sem;
10580   const sh5_compact_idesc* idesc = abuf->idesc;
10581   int cycles = 0;
10582   {
10583     INT in_usereg = -1;
10584     in_usereg = FLD (in_rn64);
10585     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10586   }
10587   {
10588     INT in_usereg = -1;
10589     in_usereg = FLD (in_rm64);
10590     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
10591   }
10592   {
10593     cycles += model_u_exec_before (current_cpu, idesc, 2);
10594   }
10595   return cycles;
10596 #undef FLD
10597 }
10598
10599 UINT
10600 sh5_compact_sh5_model::model_xor_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10601 {
10602 #define FLD(f) abuf->fields.sfmt_and_compact.f
10603   const sh5_compact_scache* abuf = sem;
10604   const sh5_compact_idesc* idesc = abuf->idesc;
10605   int cycles = 0;
10606   {
10607     int referenced = 0;
10608     unsigned long long insn_referenced = abuf->written;
10609     INT in_usereg = -1;
10610     in_usereg = FLD (in_rn64);
10611     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10612   }
10613   {
10614     int referenced = 0;
10615     unsigned long long insn_referenced = abuf->written;
10616     INT in_usereg = -1;
10617     in_usereg = FLD (in_rm64);
10618     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
10619   }
10620   {
10621     int referenced = 0;
10622     unsigned long long insn_referenced = abuf->written;
10623     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
10624   }
10625   return cycles;
10626 #undef FLD
10627 }
10628
10629 UINT
10630 sh5_compact_sh5_model::model_xori_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10631 {
10632 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10633   const sh5_compact_scache* abuf = sem;
10634   const sh5_compact_idesc* idesc = abuf->idesc;
10635   int cycles = 0;
10636   {
10637     INT in_usereg = -1;
10638     in_usereg = FLD (in_r0);
10639     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10640   }
10641   {
10642     cycles += model_u_exec_before (current_cpu, idesc, 1);
10643   }
10644   return cycles;
10645 #undef FLD
10646 }
10647
10648 UINT
10649 sh5_compact_sh5_model::model_xori_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10650 {
10651 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10652   const sh5_compact_scache* abuf = sem;
10653   const sh5_compact_idesc* idesc = abuf->idesc;
10654   int cycles = 0;
10655   {
10656     int referenced = 0;
10657     unsigned long long insn_referenced = abuf->written;
10658     INT in_usereg = -1;
10659     in_usereg = FLD (in_r0);
10660     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10661   }
10662   {
10663     int referenced = 0;
10664     unsigned long long insn_referenced = abuf->written;
10665     cycles += model_u_exec_after (current_cpu, idesc, 1, referenced);
10666   }
10667   return cycles;
10668 #undef FLD
10669 }
10670
10671 UINT
10672 sh5_compact_sh5_model::model_xorb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10673 {
10674 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10675   const sh5_compact_scache* abuf = sem;
10676   const sh5_compact_idesc* idesc = abuf->idesc;
10677   int cycles = 0;
10678   {
10679     INT in_usereg = -1;
10680     in_usereg = FLD (in_r0);
10681     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10682   }
10683   {
10684     cycles += model_u_logic_b_before (current_cpu, idesc, 1);
10685   }
10686   {
10687     cycles += model_u_memory_access_before (current_cpu, idesc, 2);
10688   }
10689   return cycles;
10690 #undef FLD
10691 }
10692
10693 UINT
10694 sh5_compact_sh5_model::model_xorb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10695 {
10696 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10697   const sh5_compact_scache* abuf = sem;
10698   const sh5_compact_idesc* idesc = abuf->idesc;
10699   int cycles = 0;
10700   {
10701     int referenced = 0;
10702     unsigned long long insn_referenced = abuf->written;
10703     INT in_usereg = -1;
10704     in_usereg = FLD (in_r0);
10705     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10706   }
10707   {
10708     int referenced = 0;
10709     unsigned long long insn_referenced = abuf->written;
10710     cycles += model_u_logic_b_after (current_cpu, idesc, 1, referenced);
10711   }
10712   {
10713     int referenced = 0;
10714     unsigned long long insn_referenced = abuf->written;
10715     cycles += model_u_memory_access_after (current_cpu, idesc, 2, referenced);
10716   }
10717   return cycles;
10718 #undef FLD
10719 }
10720
10721 UINT
10722 sh5_compact_sh5_model::model_xtrct_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10723 {
10724 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10725   const sh5_compact_scache* abuf = sem;
10726   const sh5_compact_idesc* idesc = abuf->idesc;
10727   int cycles = 0;
10728   {
10729     INT in_usereg = -1;
10730     in_usereg = FLD (in_rn);
10731     cycles += model_u_use_gr_before (current_cpu, idesc, 0, in_usereg);
10732   }
10733   {
10734     INT in_usereg = -1;
10735     in_usereg = FLD (in_rm);
10736     cycles += model_u_use_gr_before (current_cpu, idesc, 1, in_usereg);
10737   }
10738   {
10739     cycles += model_u_exec_before (current_cpu, idesc, 2);
10740   }
10741   {
10742     cycles += model_u_shift_before (current_cpu, idesc, 3);
10743   }
10744   return cycles;
10745 #undef FLD
10746 }
10747
10748 UINT
10749 sh5_compact_sh5_model::model_xtrct_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10750 {
10751 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10752   const sh5_compact_scache* abuf = sem;
10753   const sh5_compact_idesc* idesc = abuf->idesc;
10754   int cycles = 0;
10755   {
10756     int referenced = 0;
10757     unsigned long long insn_referenced = abuf->written;
10758     INT in_usereg = -1;
10759     in_usereg = FLD (in_rn);
10760     cycles += model_u_use_gr_after (current_cpu, idesc, 0, referenced, in_usereg);
10761   }
10762   {
10763     int referenced = 0;
10764     unsigned long long insn_referenced = abuf->written;
10765     INT in_usereg = -1;
10766     in_usereg = FLD (in_rm);
10767     cycles += model_u_use_gr_after (current_cpu, idesc, 1, referenced, in_usereg);
10768   }
10769   {
10770     int referenced = 0;
10771     unsigned long long insn_referenced = abuf->written;
10772     cycles += model_u_exec_after (current_cpu, idesc, 2, referenced);
10773   }
10774   {
10775     int referenced = 0;
10776     unsigned long long insn_referenced = abuf->written;
10777     cycles += model_u_shift_after (current_cpu, idesc, 3, referenced);
10778   }
10779   return cycles;
10780 #undef FLD
10781 }
10782
10783 sh5_compact_sh5_media_model::sh5_compact_sh5_media_model (sh5_cpu *cpu)
10784   : cgen_model (cpu)
10785 {
10786 }
10787
10788 UINT
10789 sh5_compact_sh5_media_model::model_add_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10790 {
10791 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10792   const sh5_compact_scache* abuf = sem;
10793   const sh5_compact_idesc* idesc = abuf->idesc;
10794   int cycles = 0;
10795   {
10796     cycles += model_u_exec_before (current_cpu, idesc, 0);
10797   }
10798   return cycles;
10799 #undef FLD
10800 }
10801
10802 UINT
10803 sh5_compact_sh5_media_model::model_add_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10804 {
10805 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10806   const sh5_compact_scache* abuf = sem;
10807   const sh5_compact_idesc* idesc = abuf->idesc;
10808   int cycles = 0;
10809   {
10810     int referenced = 0;
10811     unsigned long long insn_referenced = abuf->written;
10812     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10813   }
10814   return cycles;
10815 #undef FLD
10816 }
10817
10818 UINT
10819 sh5_compact_sh5_media_model::model_addi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10820 {
10821 #define FLD(f) abuf->fields.sfmt_addi_compact.f
10822   const sh5_compact_scache* abuf = sem;
10823   const sh5_compact_idesc* idesc = abuf->idesc;
10824   int cycles = 0;
10825   {
10826     cycles += model_u_exec_before (current_cpu, idesc, 0);
10827   }
10828   return cycles;
10829 #undef FLD
10830 }
10831
10832 UINT
10833 sh5_compact_sh5_media_model::model_addi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10834 {
10835 #define FLD(f) abuf->fields.sfmt_addi_compact.f
10836   const sh5_compact_scache* abuf = sem;
10837   const sh5_compact_idesc* idesc = abuf->idesc;
10838   int cycles = 0;
10839   {
10840     int referenced = 0;
10841     unsigned long long insn_referenced = abuf->written;
10842     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10843   }
10844   return cycles;
10845 #undef FLD
10846 }
10847
10848 UINT
10849 sh5_compact_sh5_media_model::model_addc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10850 {
10851 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10852   const sh5_compact_scache* abuf = sem;
10853   const sh5_compact_idesc* idesc = abuf->idesc;
10854   int cycles = 0;
10855   {
10856     cycles += model_u_exec_before (current_cpu, idesc, 0);
10857   }
10858   return cycles;
10859 #undef FLD
10860 }
10861
10862 UINT
10863 sh5_compact_sh5_media_model::model_addc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10864 {
10865 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10866   const sh5_compact_scache* abuf = sem;
10867   const sh5_compact_idesc* idesc = abuf->idesc;
10868   int cycles = 0;
10869   {
10870     int referenced = 0;
10871     unsigned long long insn_referenced = abuf->written;
10872     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10873   }
10874   return cycles;
10875 #undef FLD
10876 }
10877
10878 UINT
10879 sh5_compact_sh5_media_model::model_addv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10880 {
10881 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10882   const sh5_compact_scache* abuf = sem;
10883   const sh5_compact_idesc* idesc = abuf->idesc;
10884   int cycles = 0;
10885   {
10886     cycles += model_u_exec_before (current_cpu, idesc, 0);
10887   }
10888   return cycles;
10889 #undef FLD
10890 }
10891
10892 UINT
10893 sh5_compact_sh5_media_model::model_addv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10894 {
10895 #define FLD(f) abuf->fields.sfmt_macl_compact.f
10896   const sh5_compact_scache* abuf = sem;
10897   const sh5_compact_idesc* idesc = abuf->idesc;
10898   int cycles = 0;
10899   {
10900     int referenced = 0;
10901     unsigned long long insn_referenced = abuf->written;
10902     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10903   }
10904   return cycles;
10905 #undef FLD
10906 }
10907
10908 UINT
10909 sh5_compact_sh5_media_model::model_and_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10910 {
10911 #define FLD(f) abuf->fields.sfmt_and_compact.f
10912   const sh5_compact_scache* abuf = sem;
10913   const sh5_compact_idesc* idesc = abuf->idesc;
10914   int cycles = 0;
10915   {
10916     cycles += model_u_exec_before (current_cpu, idesc, 0);
10917   }
10918   return cycles;
10919 #undef FLD
10920 }
10921
10922 UINT
10923 sh5_compact_sh5_media_model::model_and_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10924 {
10925 #define FLD(f) abuf->fields.sfmt_and_compact.f
10926   const sh5_compact_scache* abuf = sem;
10927   const sh5_compact_idesc* idesc = abuf->idesc;
10928   int cycles = 0;
10929   {
10930     int referenced = 0;
10931     unsigned long long insn_referenced = abuf->written;
10932     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10933   }
10934   return cycles;
10935 #undef FLD
10936 }
10937
10938 UINT
10939 sh5_compact_sh5_media_model::model_andi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10940 {
10941 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10942   const sh5_compact_scache* abuf = sem;
10943   const sh5_compact_idesc* idesc = abuf->idesc;
10944   int cycles = 0;
10945   {
10946     cycles += model_u_exec_before (current_cpu, idesc, 0);
10947   }
10948   return cycles;
10949 #undef FLD
10950 }
10951
10952 UINT
10953 sh5_compact_sh5_media_model::model_andi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10954 {
10955 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10956   const sh5_compact_scache* abuf = sem;
10957   const sh5_compact_idesc* idesc = abuf->idesc;
10958   int cycles = 0;
10959   {
10960     int referenced = 0;
10961     unsigned long long insn_referenced = abuf->written;
10962     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10963   }
10964   return cycles;
10965 #undef FLD
10966 }
10967
10968 UINT
10969 sh5_compact_sh5_media_model::model_andb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10970 {
10971 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10972   const sh5_compact_scache* abuf = sem;
10973   const sh5_compact_idesc* idesc = abuf->idesc;
10974   int cycles = 0;
10975   {
10976     cycles += model_u_exec_before (current_cpu, idesc, 0);
10977   }
10978   return cycles;
10979 #undef FLD
10980 }
10981
10982 UINT
10983 sh5_compact_sh5_media_model::model_andb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
10984 {
10985 #define FLD(f) abuf->fields.sfmt_andi_compact.f
10986   const sh5_compact_scache* abuf = sem;
10987   const sh5_compact_idesc* idesc = abuf->idesc;
10988   int cycles = 0;
10989   {
10990     int referenced = 0;
10991     unsigned long long insn_referenced = abuf->written;
10992     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
10993   }
10994   return cycles;
10995 #undef FLD
10996 }
10997
10998 UINT
10999 sh5_compact_sh5_media_model::model_bf_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11000 {
11001 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11002   const sh5_compact_scache* abuf = sem;
11003   const sh5_compact_idesc* idesc = abuf->idesc;
11004   int cycles = 0;
11005   {
11006     cycles += model_u_exec_before (current_cpu, idesc, 0);
11007   }
11008   return cycles;
11009 #undef FLD
11010 }
11011
11012 UINT
11013 sh5_compact_sh5_media_model::model_bf_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11014 {
11015 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11016   const sh5_compact_scache* abuf = sem;
11017   const sh5_compact_idesc* idesc = abuf->idesc;
11018   int cycles = 0;
11019   {
11020     int referenced = 0;
11021     unsigned long long insn_referenced = abuf->written;
11022     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11023   }
11024   return cycles;
11025 #undef FLD
11026 }
11027
11028 UINT
11029 sh5_compact_sh5_media_model::model_bfs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11030 {
11031 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11032   const sh5_compact_scache* abuf = sem;
11033   const sh5_compact_idesc* idesc = abuf->idesc;
11034   int cycles = 0;
11035   {
11036     cycles += model_u_exec_before (current_cpu, idesc, 0);
11037   }
11038   return cycles;
11039 #undef FLD
11040 }
11041
11042 UINT
11043 sh5_compact_sh5_media_model::model_bfs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11044 {
11045 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11046   const sh5_compact_scache* abuf = sem;
11047   const sh5_compact_idesc* idesc = abuf->idesc;
11048   int cycles = 0;
11049   {
11050     int referenced = 0;
11051     unsigned long long insn_referenced = abuf->written;
11052     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11053   }
11054   return cycles;
11055 #undef FLD
11056 }
11057
11058 UINT
11059 sh5_compact_sh5_media_model::model_bra_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11060 {
11061 #define FLD(f) abuf->fields.sfmt_bra_compact.f
11062   const sh5_compact_scache* abuf = sem;
11063   const sh5_compact_idesc* idesc = abuf->idesc;
11064   int cycles = 0;
11065   {
11066     cycles += model_u_exec_before (current_cpu, idesc, 0);
11067   }
11068   return cycles;
11069 #undef FLD
11070 }
11071
11072 UINT
11073 sh5_compact_sh5_media_model::model_bra_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11074 {
11075 #define FLD(f) abuf->fields.sfmt_bra_compact.f
11076   const sh5_compact_scache* abuf = sem;
11077   const sh5_compact_idesc* idesc = abuf->idesc;
11078   int cycles = 0;
11079   {
11080     int referenced = 0;
11081     unsigned long long insn_referenced = abuf->written;
11082     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11083   }
11084   return cycles;
11085 #undef FLD
11086 }
11087
11088 UINT
11089 sh5_compact_sh5_media_model::model_braf_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11090 {
11091 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11092   const sh5_compact_scache* abuf = sem;
11093   const sh5_compact_idesc* idesc = abuf->idesc;
11094   int cycles = 0;
11095   {
11096     cycles += model_u_exec_before (current_cpu, idesc, 0);
11097   }
11098   return cycles;
11099 #undef FLD
11100 }
11101
11102 UINT
11103 sh5_compact_sh5_media_model::model_braf_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11104 {
11105 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11106   const sh5_compact_scache* abuf = sem;
11107   const sh5_compact_idesc* idesc = abuf->idesc;
11108   int cycles = 0;
11109   {
11110     int referenced = 0;
11111     unsigned long long insn_referenced = abuf->written;
11112     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11113   }
11114   return cycles;
11115 #undef FLD
11116 }
11117
11118 UINT
11119 sh5_compact_sh5_media_model::model_brk_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11120 {
11121 #define FLD(f) abuf->fields.fmt_empty.f
11122   const sh5_compact_scache* abuf = sem;
11123   const sh5_compact_idesc* idesc = abuf->idesc;
11124   int cycles = 0;
11125   {
11126     cycles += model_u_exec_before (current_cpu, idesc, 0);
11127   }
11128   return cycles;
11129 #undef FLD
11130 }
11131
11132 UINT
11133 sh5_compact_sh5_media_model::model_brk_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11134 {
11135 #define FLD(f) abuf->fields.fmt_empty.f
11136   const sh5_compact_scache* abuf = sem;
11137   const sh5_compact_idesc* idesc = abuf->idesc;
11138   int cycles = 0;
11139   {
11140     int referenced = 0;
11141     unsigned long long insn_referenced = abuf->written;
11142     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11143   }
11144   return cycles;
11145 #undef FLD
11146 }
11147
11148 UINT
11149 sh5_compact_sh5_media_model::model_bsr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11150 {
11151 #define FLD(f) abuf->fields.sfmt_bra_compact.f
11152   const sh5_compact_scache* abuf = sem;
11153   const sh5_compact_idesc* idesc = abuf->idesc;
11154   int cycles = 0;
11155   {
11156     cycles += model_u_exec_before (current_cpu, idesc, 0);
11157   }
11158   return cycles;
11159 #undef FLD
11160 }
11161
11162 UINT
11163 sh5_compact_sh5_media_model::model_bsr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11164 {
11165 #define FLD(f) abuf->fields.sfmt_bra_compact.f
11166   const sh5_compact_scache* abuf = sem;
11167   const sh5_compact_idesc* idesc = abuf->idesc;
11168   int cycles = 0;
11169   {
11170     int referenced = 0;
11171     unsigned long long insn_referenced = abuf->written;
11172     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11173   }
11174   return cycles;
11175 #undef FLD
11176 }
11177
11178 UINT
11179 sh5_compact_sh5_media_model::model_bsrf_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11180 {
11181 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11182   const sh5_compact_scache* abuf = sem;
11183   const sh5_compact_idesc* idesc = abuf->idesc;
11184   int cycles = 0;
11185   {
11186     cycles += model_u_exec_before (current_cpu, idesc, 0);
11187   }
11188   return cycles;
11189 #undef FLD
11190 }
11191
11192 UINT
11193 sh5_compact_sh5_media_model::model_bsrf_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11194 {
11195 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11196   const sh5_compact_scache* abuf = sem;
11197   const sh5_compact_idesc* idesc = abuf->idesc;
11198   int cycles = 0;
11199   {
11200     int referenced = 0;
11201     unsigned long long insn_referenced = abuf->written;
11202     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11203   }
11204   return cycles;
11205 #undef FLD
11206 }
11207
11208 UINT
11209 sh5_compact_sh5_media_model::model_bt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11210 {
11211 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11212   const sh5_compact_scache* abuf = sem;
11213   const sh5_compact_idesc* idesc = abuf->idesc;
11214   int cycles = 0;
11215   {
11216     cycles += model_u_exec_before (current_cpu, idesc, 0);
11217   }
11218   return cycles;
11219 #undef FLD
11220 }
11221
11222 UINT
11223 sh5_compact_sh5_media_model::model_bt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11224 {
11225 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11226   const sh5_compact_scache* abuf = sem;
11227   const sh5_compact_idesc* idesc = abuf->idesc;
11228   int cycles = 0;
11229   {
11230     int referenced = 0;
11231     unsigned long long insn_referenced = abuf->written;
11232     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11233   }
11234   return cycles;
11235 #undef FLD
11236 }
11237
11238 UINT
11239 sh5_compact_sh5_media_model::model_bts_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11240 {
11241 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11242   const sh5_compact_scache* abuf = sem;
11243   const sh5_compact_idesc* idesc = abuf->idesc;
11244   int cycles = 0;
11245   {
11246     cycles += model_u_exec_before (current_cpu, idesc, 0);
11247   }
11248   return cycles;
11249 #undef FLD
11250 }
11251
11252 UINT
11253 sh5_compact_sh5_media_model::model_bts_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11254 {
11255 #define FLD(f) abuf->fields.sfmt_bf_compact.f
11256   const sh5_compact_scache* abuf = sem;
11257   const sh5_compact_idesc* idesc = abuf->idesc;
11258   int cycles = 0;
11259   {
11260     int referenced = 0;
11261     unsigned long long insn_referenced = abuf->written;
11262     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11263   }
11264   return cycles;
11265 #undef FLD
11266 }
11267
11268 UINT
11269 sh5_compact_sh5_media_model::model_clrmac_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11270 {
11271 #define FLD(f) abuf->fields.fmt_empty.f
11272   const sh5_compact_scache* abuf = sem;
11273   const sh5_compact_idesc* idesc = abuf->idesc;
11274   int cycles = 0;
11275   {
11276     cycles += model_u_exec_before (current_cpu, idesc, 0);
11277   }
11278   return cycles;
11279 #undef FLD
11280 }
11281
11282 UINT
11283 sh5_compact_sh5_media_model::model_clrmac_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11284 {
11285 #define FLD(f) abuf->fields.fmt_empty.f
11286   const sh5_compact_scache* abuf = sem;
11287   const sh5_compact_idesc* idesc = abuf->idesc;
11288   int cycles = 0;
11289   {
11290     int referenced = 0;
11291     unsigned long long insn_referenced = abuf->written;
11292     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11293   }
11294   return cycles;
11295 #undef FLD
11296 }
11297
11298 UINT
11299 sh5_compact_sh5_media_model::model_clrs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11300 {
11301 #define FLD(f) abuf->fields.fmt_empty.f
11302   const sh5_compact_scache* abuf = sem;
11303   const sh5_compact_idesc* idesc = abuf->idesc;
11304   int cycles = 0;
11305   {
11306     cycles += model_u_exec_before (current_cpu, idesc, 0);
11307   }
11308   return cycles;
11309 #undef FLD
11310 }
11311
11312 UINT
11313 sh5_compact_sh5_media_model::model_clrs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11314 {
11315 #define FLD(f) abuf->fields.fmt_empty.f
11316   const sh5_compact_scache* abuf = sem;
11317   const sh5_compact_idesc* idesc = abuf->idesc;
11318   int cycles = 0;
11319   {
11320     int referenced = 0;
11321     unsigned long long insn_referenced = abuf->written;
11322     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11323   }
11324   return cycles;
11325 #undef FLD
11326 }
11327
11328 UINT
11329 sh5_compact_sh5_media_model::model_clrt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11330 {
11331 #define FLD(f) abuf->fields.fmt_empty.f
11332   const sh5_compact_scache* abuf = sem;
11333   const sh5_compact_idesc* idesc = abuf->idesc;
11334   int cycles = 0;
11335   {
11336     cycles += model_u_exec_before (current_cpu, idesc, 0);
11337   }
11338   return cycles;
11339 #undef FLD
11340 }
11341
11342 UINT
11343 sh5_compact_sh5_media_model::model_clrt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11344 {
11345 #define FLD(f) abuf->fields.fmt_empty.f
11346   const sh5_compact_scache* abuf = sem;
11347   const sh5_compact_idesc* idesc = abuf->idesc;
11348   int cycles = 0;
11349   {
11350     int referenced = 0;
11351     unsigned long long insn_referenced = abuf->written;
11352     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11353   }
11354   return cycles;
11355 #undef FLD
11356 }
11357
11358 UINT
11359 sh5_compact_sh5_media_model::model_cmpeq_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11360 {
11361 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11362   const sh5_compact_scache* abuf = sem;
11363   const sh5_compact_idesc* idesc = abuf->idesc;
11364   int cycles = 0;
11365   {
11366     cycles += model_u_exec_before (current_cpu, idesc, 0);
11367   }
11368   return cycles;
11369 #undef FLD
11370 }
11371
11372 UINT
11373 sh5_compact_sh5_media_model::model_cmpeq_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11374 {
11375 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11376   const sh5_compact_scache* abuf = sem;
11377   const sh5_compact_idesc* idesc = abuf->idesc;
11378   int cycles = 0;
11379   {
11380     int referenced = 0;
11381     unsigned long long insn_referenced = abuf->written;
11382     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11383   }
11384   return cycles;
11385 #undef FLD
11386 }
11387
11388 UINT
11389 sh5_compact_sh5_media_model::model_cmpeqi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11390 {
11391 #define FLD(f) abuf->fields.sfmt_andi_compact.f
11392   const sh5_compact_scache* abuf = sem;
11393   const sh5_compact_idesc* idesc = abuf->idesc;
11394   int cycles = 0;
11395   {
11396     cycles += model_u_exec_before (current_cpu, idesc, 0);
11397   }
11398   return cycles;
11399 #undef FLD
11400 }
11401
11402 UINT
11403 sh5_compact_sh5_media_model::model_cmpeqi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11404 {
11405 #define FLD(f) abuf->fields.sfmt_andi_compact.f
11406   const sh5_compact_scache* abuf = sem;
11407   const sh5_compact_idesc* idesc = abuf->idesc;
11408   int cycles = 0;
11409   {
11410     int referenced = 0;
11411     unsigned long long insn_referenced = abuf->written;
11412     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11413   }
11414   return cycles;
11415 #undef FLD
11416 }
11417
11418 UINT
11419 sh5_compact_sh5_media_model::model_cmpge_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11420 {
11421 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11422   const sh5_compact_scache* abuf = sem;
11423   const sh5_compact_idesc* idesc = abuf->idesc;
11424   int cycles = 0;
11425   {
11426     cycles += model_u_exec_before (current_cpu, idesc, 0);
11427   }
11428   return cycles;
11429 #undef FLD
11430 }
11431
11432 UINT
11433 sh5_compact_sh5_media_model::model_cmpge_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11434 {
11435 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11436   const sh5_compact_scache* abuf = sem;
11437   const sh5_compact_idesc* idesc = abuf->idesc;
11438   int cycles = 0;
11439   {
11440     int referenced = 0;
11441     unsigned long long insn_referenced = abuf->written;
11442     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11443   }
11444   return cycles;
11445 #undef FLD
11446 }
11447
11448 UINT
11449 sh5_compact_sh5_media_model::model_cmpgt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11450 {
11451 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11452   const sh5_compact_scache* abuf = sem;
11453   const sh5_compact_idesc* idesc = abuf->idesc;
11454   int cycles = 0;
11455   {
11456     cycles += model_u_exec_before (current_cpu, idesc, 0);
11457   }
11458   return cycles;
11459 #undef FLD
11460 }
11461
11462 UINT
11463 sh5_compact_sh5_media_model::model_cmpgt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11464 {
11465 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11466   const sh5_compact_scache* abuf = sem;
11467   const sh5_compact_idesc* idesc = abuf->idesc;
11468   int cycles = 0;
11469   {
11470     int referenced = 0;
11471     unsigned long long insn_referenced = abuf->written;
11472     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11473   }
11474   return cycles;
11475 #undef FLD
11476 }
11477
11478 UINT
11479 sh5_compact_sh5_media_model::model_cmphi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11480 {
11481 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11482   const sh5_compact_scache* abuf = sem;
11483   const sh5_compact_idesc* idesc = abuf->idesc;
11484   int cycles = 0;
11485   {
11486     cycles += model_u_exec_before (current_cpu, idesc, 0);
11487   }
11488   return cycles;
11489 #undef FLD
11490 }
11491
11492 UINT
11493 sh5_compact_sh5_media_model::model_cmphi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11494 {
11495 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11496   const sh5_compact_scache* abuf = sem;
11497   const sh5_compact_idesc* idesc = abuf->idesc;
11498   int cycles = 0;
11499   {
11500     int referenced = 0;
11501     unsigned long long insn_referenced = abuf->written;
11502     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11503   }
11504   return cycles;
11505 #undef FLD
11506 }
11507
11508 UINT
11509 sh5_compact_sh5_media_model::model_cmphs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11510 {
11511 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11512   const sh5_compact_scache* abuf = sem;
11513   const sh5_compact_idesc* idesc = abuf->idesc;
11514   int cycles = 0;
11515   {
11516     cycles += model_u_exec_before (current_cpu, idesc, 0);
11517   }
11518   return cycles;
11519 #undef FLD
11520 }
11521
11522 UINT
11523 sh5_compact_sh5_media_model::model_cmphs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11524 {
11525 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11526   const sh5_compact_scache* abuf = sem;
11527   const sh5_compact_idesc* idesc = abuf->idesc;
11528   int cycles = 0;
11529   {
11530     int referenced = 0;
11531     unsigned long long insn_referenced = abuf->written;
11532     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11533   }
11534   return cycles;
11535 #undef FLD
11536 }
11537
11538 UINT
11539 sh5_compact_sh5_media_model::model_cmppl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11540 {
11541 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11542   const sh5_compact_scache* abuf = sem;
11543   const sh5_compact_idesc* idesc = abuf->idesc;
11544   int cycles = 0;
11545   {
11546     cycles += model_u_exec_before (current_cpu, idesc, 0);
11547   }
11548   return cycles;
11549 #undef FLD
11550 }
11551
11552 UINT
11553 sh5_compact_sh5_media_model::model_cmppl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11554 {
11555 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11556   const sh5_compact_scache* abuf = sem;
11557   const sh5_compact_idesc* idesc = abuf->idesc;
11558   int cycles = 0;
11559   {
11560     int referenced = 0;
11561     unsigned long long insn_referenced = abuf->written;
11562     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11563   }
11564   return cycles;
11565 #undef FLD
11566 }
11567
11568 UINT
11569 sh5_compact_sh5_media_model::model_cmppz_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11570 {
11571 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11572   const sh5_compact_scache* abuf = sem;
11573   const sh5_compact_idesc* idesc = abuf->idesc;
11574   int cycles = 0;
11575   {
11576     cycles += model_u_exec_before (current_cpu, idesc, 0);
11577   }
11578   return cycles;
11579 #undef FLD
11580 }
11581
11582 UINT
11583 sh5_compact_sh5_media_model::model_cmppz_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11584 {
11585 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11586   const sh5_compact_scache* abuf = sem;
11587   const sh5_compact_idesc* idesc = abuf->idesc;
11588   int cycles = 0;
11589   {
11590     int referenced = 0;
11591     unsigned long long insn_referenced = abuf->written;
11592     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11593   }
11594   return cycles;
11595 #undef FLD
11596 }
11597
11598 UINT
11599 sh5_compact_sh5_media_model::model_cmpstr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11600 {
11601 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11602   const sh5_compact_scache* abuf = sem;
11603   const sh5_compact_idesc* idesc = abuf->idesc;
11604   int cycles = 0;
11605   {
11606     cycles += model_u_exec_before (current_cpu, idesc, 0);
11607   }
11608   return cycles;
11609 #undef FLD
11610 }
11611
11612 UINT
11613 sh5_compact_sh5_media_model::model_cmpstr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11614 {
11615 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11616   const sh5_compact_scache* abuf = sem;
11617   const sh5_compact_idesc* idesc = abuf->idesc;
11618   int cycles = 0;
11619   {
11620     int referenced = 0;
11621     unsigned long long insn_referenced = abuf->written;
11622     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11623   }
11624   return cycles;
11625 #undef FLD
11626 }
11627
11628 UINT
11629 sh5_compact_sh5_media_model::model_div0s_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11630 {
11631 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11632   const sh5_compact_scache* abuf = sem;
11633   const sh5_compact_idesc* idesc = abuf->idesc;
11634   int cycles = 0;
11635   {
11636     cycles += model_u_exec_before (current_cpu, idesc, 0);
11637   }
11638   return cycles;
11639 #undef FLD
11640 }
11641
11642 UINT
11643 sh5_compact_sh5_media_model::model_div0s_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11644 {
11645 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11646   const sh5_compact_scache* abuf = sem;
11647   const sh5_compact_idesc* idesc = abuf->idesc;
11648   int cycles = 0;
11649   {
11650     int referenced = 0;
11651     unsigned long long insn_referenced = abuf->written;
11652     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11653   }
11654   return cycles;
11655 #undef FLD
11656 }
11657
11658 UINT
11659 sh5_compact_sh5_media_model::model_div0u_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11660 {
11661 #define FLD(f) abuf->fields.fmt_empty.f
11662   const sh5_compact_scache* abuf = sem;
11663   const sh5_compact_idesc* idesc = abuf->idesc;
11664   int cycles = 0;
11665   {
11666     cycles += model_u_exec_before (current_cpu, idesc, 0);
11667   }
11668   return cycles;
11669 #undef FLD
11670 }
11671
11672 UINT
11673 sh5_compact_sh5_media_model::model_div0u_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11674 {
11675 #define FLD(f) abuf->fields.fmt_empty.f
11676   const sh5_compact_scache* abuf = sem;
11677   const sh5_compact_idesc* idesc = abuf->idesc;
11678   int cycles = 0;
11679   {
11680     int referenced = 0;
11681     unsigned long long insn_referenced = abuf->written;
11682     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11683   }
11684   return cycles;
11685 #undef FLD
11686 }
11687
11688 UINT
11689 sh5_compact_sh5_media_model::model_div1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11690 {
11691 #define FLD(f) abuf->fields.sfmt_macl_compact.f
11692   const sh5_compact_scache* abuf = sem;
11693   const sh5_compact_idesc* idesc = abuf->idesc;
11694   int cycles = 0;
11695   {
11696     cycles += model_u_exec_before (current_cpu, idesc, 0);
11697   }
11698   return cycles;
11699 #undef FLD
11700 }
11701
11702 UINT
11703 sh5_compact_sh5_media_model::model_div1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11704 {
11705 #define FLD(f) abuf->fields.sfmt_macl_compact.f
11706   const sh5_compact_scache* abuf = sem;
11707   const sh5_compact_idesc* idesc = abuf->idesc;
11708   int cycles = 0;
11709   {
11710     int referenced = 0;
11711     unsigned long long insn_referenced = abuf->written;
11712     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11713   }
11714   return cycles;
11715 #undef FLD
11716 }
11717
11718 UINT
11719 sh5_compact_sh5_media_model::model_divu_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11720 {
11721 #define FLD(f) abuf->fields.sfmt_divu_compact.f
11722   const sh5_compact_scache* abuf = sem;
11723   const sh5_compact_idesc* idesc = abuf->idesc;
11724   int cycles = 0;
11725   {
11726     cycles += model_u_exec_before (current_cpu, idesc, 0);
11727   }
11728   return cycles;
11729 #undef FLD
11730 }
11731
11732 UINT
11733 sh5_compact_sh5_media_model::model_divu_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11734 {
11735 #define FLD(f) abuf->fields.sfmt_divu_compact.f
11736   const sh5_compact_scache* abuf = sem;
11737   const sh5_compact_idesc* idesc = abuf->idesc;
11738   int cycles = 0;
11739   {
11740     int referenced = 0;
11741     unsigned long long insn_referenced = abuf->written;
11742     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11743   }
11744   return cycles;
11745 #undef FLD
11746 }
11747
11748 UINT
11749 sh5_compact_sh5_media_model::model_mulr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11750 {
11751 #define FLD(f) abuf->fields.sfmt_divu_compact.f
11752   const sh5_compact_scache* abuf = sem;
11753   const sh5_compact_idesc* idesc = abuf->idesc;
11754   int cycles = 0;
11755   {
11756     cycles += model_u_exec_before (current_cpu, idesc, 0);
11757   }
11758   return cycles;
11759 #undef FLD
11760 }
11761
11762 UINT
11763 sh5_compact_sh5_media_model::model_mulr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11764 {
11765 #define FLD(f) abuf->fields.sfmt_divu_compact.f
11766   const sh5_compact_scache* abuf = sem;
11767   const sh5_compact_idesc* idesc = abuf->idesc;
11768   int cycles = 0;
11769   {
11770     int referenced = 0;
11771     unsigned long long insn_referenced = abuf->written;
11772     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11773   }
11774   return cycles;
11775 #undef FLD
11776 }
11777
11778 UINT
11779 sh5_compact_sh5_media_model::model_dmulsl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11780 {
11781 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11782   const sh5_compact_scache* abuf = sem;
11783   const sh5_compact_idesc* idesc = abuf->idesc;
11784   int cycles = 0;
11785   {
11786     cycles += model_u_exec_before (current_cpu, idesc, 0);
11787   }
11788   return cycles;
11789 #undef FLD
11790 }
11791
11792 UINT
11793 sh5_compact_sh5_media_model::model_dmulsl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11794 {
11795 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11796   const sh5_compact_scache* abuf = sem;
11797   const sh5_compact_idesc* idesc = abuf->idesc;
11798   int cycles = 0;
11799   {
11800     int referenced = 0;
11801     unsigned long long insn_referenced = abuf->written;
11802     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11803   }
11804   return cycles;
11805 #undef FLD
11806 }
11807
11808 UINT
11809 sh5_compact_sh5_media_model::model_dmulul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11810 {
11811 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11812   const sh5_compact_scache* abuf = sem;
11813   const sh5_compact_idesc* idesc = abuf->idesc;
11814   int cycles = 0;
11815   {
11816     cycles += model_u_exec_before (current_cpu, idesc, 0);
11817   }
11818   return cycles;
11819 #undef FLD
11820 }
11821
11822 UINT
11823 sh5_compact_sh5_media_model::model_dmulul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11824 {
11825 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
11826   const sh5_compact_scache* abuf = sem;
11827   const sh5_compact_idesc* idesc = abuf->idesc;
11828   int cycles = 0;
11829   {
11830     int referenced = 0;
11831     unsigned long long insn_referenced = abuf->written;
11832     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11833   }
11834   return cycles;
11835 #undef FLD
11836 }
11837
11838 UINT
11839 sh5_compact_sh5_media_model::model_dt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11840 {
11841 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11842   const sh5_compact_scache* abuf = sem;
11843   const sh5_compact_idesc* idesc = abuf->idesc;
11844   int cycles = 0;
11845   {
11846     cycles += model_u_exec_before (current_cpu, idesc, 0);
11847   }
11848   return cycles;
11849 #undef FLD
11850 }
11851
11852 UINT
11853 sh5_compact_sh5_media_model::model_dt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11854 {
11855 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
11856   const sh5_compact_scache* abuf = sem;
11857   const sh5_compact_idesc* idesc = abuf->idesc;
11858   int cycles = 0;
11859   {
11860     int referenced = 0;
11861     unsigned long long insn_referenced = abuf->written;
11862     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11863   }
11864   return cycles;
11865 #undef FLD
11866 }
11867
11868 UINT
11869 sh5_compact_sh5_media_model::model_extsb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11870 {
11871 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11872   const sh5_compact_scache* abuf = sem;
11873   const sh5_compact_idesc* idesc = abuf->idesc;
11874   int cycles = 0;
11875   {
11876     cycles += model_u_exec_before (current_cpu, idesc, 0);
11877   }
11878   return cycles;
11879 #undef FLD
11880 }
11881
11882 UINT
11883 sh5_compact_sh5_media_model::model_extsb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11884 {
11885 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11886   const sh5_compact_scache* abuf = sem;
11887   const sh5_compact_idesc* idesc = abuf->idesc;
11888   int cycles = 0;
11889   {
11890     int referenced = 0;
11891     unsigned long long insn_referenced = abuf->written;
11892     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11893   }
11894   return cycles;
11895 #undef FLD
11896 }
11897
11898 UINT
11899 sh5_compact_sh5_media_model::model_extsw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11900 {
11901 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11902   const sh5_compact_scache* abuf = sem;
11903   const sh5_compact_idesc* idesc = abuf->idesc;
11904   int cycles = 0;
11905   {
11906     cycles += model_u_exec_before (current_cpu, idesc, 0);
11907   }
11908   return cycles;
11909 #undef FLD
11910 }
11911
11912 UINT
11913 sh5_compact_sh5_media_model::model_extsw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11914 {
11915 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11916   const sh5_compact_scache* abuf = sem;
11917   const sh5_compact_idesc* idesc = abuf->idesc;
11918   int cycles = 0;
11919   {
11920     int referenced = 0;
11921     unsigned long long insn_referenced = abuf->written;
11922     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11923   }
11924   return cycles;
11925 #undef FLD
11926 }
11927
11928 UINT
11929 sh5_compact_sh5_media_model::model_extub_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11930 {
11931 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11932   const sh5_compact_scache* abuf = sem;
11933   const sh5_compact_idesc* idesc = abuf->idesc;
11934   int cycles = 0;
11935   {
11936     cycles += model_u_exec_before (current_cpu, idesc, 0);
11937   }
11938   return cycles;
11939 #undef FLD
11940 }
11941
11942 UINT
11943 sh5_compact_sh5_media_model::model_extub_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11944 {
11945 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11946   const sh5_compact_scache* abuf = sem;
11947   const sh5_compact_idesc* idesc = abuf->idesc;
11948   int cycles = 0;
11949   {
11950     int referenced = 0;
11951     unsigned long long insn_referenced = abuf->written;
11952     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11953   }
11954   return cycles;
11955 #undef FLD
11956 }
11957
11958 UINT
11959 sh5_compact_sh5_media_model::model_extuw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11960 {
11961 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11962   const sh5_compact_scache* abuf = sem;
11963   const sh5_compact_idesc* idesc = abuf->idesc;
11964   int cycles = 0;
11965   {
11966     cycles += model_u_exec_before (current_cpu, idesc, 0);
11967   }
11968   return cycles;
11969 #undef FLD
11970 }
11971
11972 UINT
11973 sh5_compact_sh5_media_model::model_extuw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11974 {
11975 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
11976   const sh5_compact_scache* abuf = sem;
11977   const sh5_compact_idesc* idesc = abuf->idesc;
11978   int cycles = 0;
11979   {
11980     int referenced = 0;
11981     unsigned long long insn_referenced = abuf->written;
11982     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
11983   }
11984   return cycles;
11985 #undef FLD
11986 }
11987
11988 UINT
11989 sh5_compact_sh5_media_model::model_fabs_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
11990 {
11991 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
11992   const sh5_compact_scache* abuf = sem;
11993   const sh5_compact_idesc* idesc = abuf->idesc;
11994   int cycles = 0;
11995   {
11996     cycles += model_u_exec_before (current_cpu, idesc, 0);
11997   }
11998   return cycles;
11999 #undef FLD
12000 }
12001
12002 UINT
12003 sh5_compact_sh5_media_model::model_fabs_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12004 {
12005 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12006   const sh5_compact_scache* abuf = sem;
12007   const sh5_compact_idesc* idesc = abuf->idesc;
12008   int cycles = 0;
12009   {
12010     int referenced = 0;
12011     unsigned long long insn_referenced = abuf->written;
12012     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12013   }
12014   return cycles;
12015 #undef FLD
12016 }
12017
12018 UINT
12019 sh5_compact_sh5_media_model::model_fadd_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12020 {
12021 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12022   const sh5_compact_scache* abuf = sem;
12023   const sh5_compact_idesc* idesc = abuf->idesc;
12024   int cycles = 0;
12025   {
12026     cycles += model_u_exec_before (current_cpu, idesc, 0);
12027   }
12028   return cycles;
12029 #undef FLD
12030 }
12031
12032 UINT
12033 sh5_compact_sh5_media_model::model_fadd_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12034 {
12035 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12036   const sh5_compact_scache* abuf = sem;
12037   const sh5_compact_idesc* idesc = abuf->idesc;
12038   int cycles = 0;
12039   {
12040     int referenced = 0;
12041     unsigned long long insn_referenced = abuf->written;
12042     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12043   }
12044   return cycles;
12045 #undef FLD
12046 }
12047
12048 UINT
12049 sh5_compact_sh5_media_model::model_fcmpeq_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12050 {
12051 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12052   const sh5_compact_scache* abuf = sem;
12053   const sh5_compact_idesc* idesc = abuf->idesc;
12054   int cycles = 0;
12055   {
12056     cycles += model_u_exec_before (current_cpu, idesc, 0);
12057   }
12058   return cycles;
12059 #undef FLD
12060 }
12061
12062 UINT
12063 sh5_compact_sh5_media_model::model_fcmpeq_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12064 {
12065 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12066   const sh5_compact_scache* abuf = sem;
12067   const sh5_compact_idesc* idesc = abuf->idesc;
12068   int cycles = 0;
12069   {
12070     int referenced = 0;
12071     unsigned long long insn_referenced = abuf->written;
12072     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12073   }
12074   return cycles;
12075 #undef FLD
12076 }
12077
12078 UINT
12079 sh5_compact_sh5_media_model::model_fcmpgt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12080 {
12081 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12082   const sh5_compact_scache* abuf = sem;
12083   const sh5_compact_idesc* idesc = abuf->idesc;
12084   int cycles = 0;
12085   {
12086     cycles += model_u_exec_before (current_cpu, idesc, 0);
12087   }
12088   return cycles;
12089 #undef FLD
12090 }
12091
12092 UINT
12093 sh5_compact_sh5_media_model::model_fcmpgt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12094 {
12095 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12096   const sh5_compact_scache* abuf = sem;
12097   const sh5_compact_idesc* idesc = abuf->idesc;
12098   int cycles = 0;
12099   {
12100     int referenced = 0;
12101     unsigned long long insn_referenced = abuf->written;
12102     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12103   }
12104   return cycles;
12105 #undef FLD
12106 }
12107
12108 UINT
12109 sh5_compact_sh5_media_model::model_fcnvds_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12110 {
12111 #define FLD(f) abuf->fields.sfmt_fcnvds_compact.f
12112   const sh5_compact_scache* abuf = sem;
12113   const sh5_compact_idesc* idesc = abuf->idesc;
12114   int cycles = 0;
12115   {
12116     cycles += model_u_exec_before (current_cpu, idesc, 0);
12117   }
12118   return cycles;
12119 #undef FLD
12120 }
12121
12122 UINT
12123 sh5_compact_sh5_media_model::model_fcnvds_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12124 {
12125 #define FLD(f) abuf->fields.sfmt_fcnvds_compact.f
12126   const sh5_compact_scache* abuf = sem;
12127   const sh5_compact_idesc* idesc = abuf->idesc;
12128   int cycles = 0;
12129   {
12130     int referenced = 0;
12131     unsigned long long insn_referenced = abuf->written;
12132     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12133   }
12134   return cycles;
12135 #undef FLD
12136 }
12137
12138 UINT
12139 sh5_compact_sh5_media_model::model_fcnvsd_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12140 {
12141 #define FLD(f) abuf->fields.sfmt_fcnvsd_compact.f
12142   const sh5_compact_scache* abuf = sem;
12143   const sh5_compact_idesc* idesc = abuf->idesc;
12144   int cycles = 0;
12145   {
12146     cycles += model_u_exec_before (current_cpu, idesc, 0);
12147   }
12148   return cycles;
12149 #undef FLD
12150 }
12151
12152 UINT
12153 sh5_compact_sh5_media_model::model_fcnvsd_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12154 {
12155 #define FLD(f) abuf->fields.sfmt_fcnvsd_compact.f
12156   const sh5_compact_scache* abuf = sem;
12157   const sh5_compact_idesc* idesc = abuf->idesc;
12158   int cycles = 0;
12159   {
12160     int referenced = 0;
12161     unsigned long long insn_referenced = abuf->written;
12162     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12163   }
12164   return cycles;
12165 #undef FLD
12166 }
12167
12168 UINT
12169 sh5_compact_sh5_media_model::model_fdiv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12170 {
12171 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12172   const sh5_compact_scache* abuf = sem;
12173   const sh5_compact_idesc* idesc = abuf->idesc;
12174   int cycles = 0;
12175   {
12176     cycles += model_u_exec_before (current_cpu, idesc, 0);
12177   }
12178   return cycles;
12179 #undef FLD
12180 }
12181
12182 UINT
12183 sh5_compact_sh5_media_model::model_fdiv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12184 {
12185 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12186   const sh5_compact_scache* abuf = sem;
12187   const sh5_compact_idesc* idesc = abuf->idesc;
12188   int cycles = 0;
12189   {
12190     int referenced = 0;
12191     unsigned long long insn_referenced = abuf->written;
12192     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12193   }
12194   return cycles;
12195 #undef FLD
12196 }
12197
12198 UINT
12199 sh5_compact_sh5_media_model::model_fipr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12200 {
12201 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
12202   const sh5_compact_scache* abuf = sem;
12203   const sh5_compact_idesc* idesc = abuf->idesc;
12204   int cycles = 0;
12205   {
12206     cycles += model_u_exec_before (current_cpu, idesc, 0);
12207   }
12208   return cycles;
12209 #undef FLD
12210 }
12211
12212 UINT
12213 sh5_compact_sh5_media_model::model_fipr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12214 {
12215 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
12216   const sh5_compact_scache* abuf = sem;
12217   const sh5_compact_idesc* idesc = abuf->idesc;
12218   int cycles = 0;
12219   {
12220     int referenced = 0;
12221     unsigned long long insn_referenced = abuf->written;
12222     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12223   }
12224   return cycles;
12225 #undef FLD
12226 }
12227
12228 UINT
12229 sh5_compact_sh5_media_model::model_flds_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12230 {
12231 #define FLD(f) abuf->fields.sfmt_flds_compact.f
12232   const sh5_compact_scache* abuf = sem;
12233   const sh5_compact_idesc* idesc = abuf->idesc;
12234   int cycles = 0;
12235   {
12236     cycles += model_u_exec_before (current_cpu, idesc, 0);
12237   }
12238   return cycles;
12239 #undef FLD
12240 }
12241
12242 UINT
12243 sh5_compact_sh5_media_model::model_flds_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12244 {
12245 #define FLD(f) abuf->fields.sfmt_flds_compact.f
12246   const sh5_compact_scache* abuf = sem;
12247   const sh5_compact_idesc* idesc = abuf->idesc;
12248   int cycles = 0;
12249   {
12250     int referenced = 0;
12251     unsigned long long insn_referenced = abuf->written;
12252     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12253   }
12254   return cycles;
12255 #undef FLD
12256 }
12257
12258 UINT
12259 sh5_compact_sh5_media_model::model_fldi0_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12260 {
12261 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
12262   const sh5_compact_scache* abuf = sem;
12263   const sh5_compact_idesc* idesc = abuf->idesc;
12264   int cycles = 0;
12265   {
12266     cycles += model_u_exec_before (current_cpu, idesc, 0);
12267   }
12268   return cycles;
12269 #undef FLD
12270 }
12271
12272 UINT
12273 sh5_compact_sh5_media_model::model_fldi0_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12274 {
12275 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
12276   const sh5_compact_scache* abuf = sem;
12277   const sh5_compact_idesc* idesc = abuf->idesc;
12278   int cycles = 0;
12279   {
12280     int referenced = 0;
12281     unsigned long long insn_referenced = abuf->written;
12282     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12283   }
12284   return cycles;
12285 #undef FLD
12286 }
12287
12288 UINT
12289 sh5_compact_sh5_media_model::model_fldi1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12290 {
12291 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
12292   const sh5_compact_scache* abuf = sem;
12293   const sh5_compact_idesc* idesc = abuf->idesc;
12294   int cycles = 0;
12295   {
12296     cycles += model_u_exec_before (current_cpu, idesc, 0);
12297   }
12298   return cycles;
12299 #undef FLD
12300 }
12301
12302 UINT
12303 sh5_compact_sh5_media_model::model_fldi1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12304 {
12305 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
12306   const sh5_compact_scache* abuf = sem;
12307   const sh5_compact_idesc* idesc = abuf->idesc;
12308   int cycles = 0;
12309   {
12310     int referenced = 0;
12311     unsigned long long insn_referenced = abuf->written;
12312     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12313   }
12314   return cycles;
12315 #undef FLD
12316 }
12317
12318 UINT
12319 sh5_compact_sh5_media_model::model_float_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12320 {
12321 #define FLD(f) abuf->fields.sfmt_float_compact.f
12322   const sh5_compact_scache* abuf = sem;
12323   const sh5_compact_idesc* idesc = abuf->idesc;
12324   int cycles = 0;
12325   {
12326     cycles += model_u_exec_before (current_cpu, idesc, 0);
12327   }
12328   return cycles;
12329 #undef FLD
12330 }
12331
12332 UINT
12333 sh5_compact_sh5_media_model::model_float_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12334 {
12335 #define FLD(f) abuf->fields.sfmt_float_compact.f
12336   const sh5_compact_scache* abuf = sem;
12337   const sh5_compact_idesc* idesc = abuf->idesc;
12338   int cycles = 0;
12339   {
12340     int referenced = 0;
12341     unsigned long long insn_referenced = abuf->written;
12342     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12343   }
12344   return cycles;
12345 #undef FLD
12346 }
12347
12348 UINT
12349 sh5_compact_sh5_media_model::model_fmac_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12350 {
12351 #define FLD(f) abuf->fields.sfmt_fmac_compact.f
12352   const sh5_compact_scache* abuf = sem;
12353   const sh5_compact_idesc* idesc = abuf->idesc;
12354   int cycles = 0;
12355   {
12356     cycles += model_u_exec_before (current_cpu, idesc, 0);
12357   }
12358   return cycles;
12359 #undef FLD
12360 }
12361
12362 UINT
12363 sh5_compact_sh5_media_model::model_fmac_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12364 {
12365 #define FLD(f) abuf->fields.sfmt_fmac_compact.f
12366   const sh5_compact_scache* abuf = sem;
12367   const sh5_compact_idesc* idesc = abuf->idesc;
12368   int cycles = 0;
12369   {
12370     int referenced = 0;
12371     unsigned long long insn_referenced = abuf->written;
12372     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12373   }
12374   return cycles;
12375 #undef FLD
12376 }
12377
12378 UINT
12379 sh5_compact_sh5_media_model::model_fmov1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12380 {
12381 #define FLD(f) abuf->fields.sfmt_fmov1_compact.f
12382   const sh5_compact_scache* abuf = sem;
12383   const sh5_compact_idesc* idesc = abuf->idesc;
12384   int cycles = 0;
12385   {
12386     cycles += model_u_exec_before (current_cpu, idesc, 0);
12387   }
12388   return cycles;
12389 #undef FLD
12390 }
12391
12392 UINT
12393 sh5_compact_sh5_media_model::model_fmov1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12394 {
12395 #define FLD(f) abuf->fields.sfmt_fmov1_compact.f
12396   const sh5_compact_scache* abuf = sem;
12397   const sh5_compact_idesc* idesc = abuf->idesc;
12398   int cycles = 0;
12399   {
12400     int referenced = 0;
12401     unsigned long long insn_referenced = abuf->written;
12402     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12403   }
12404   return cycles;
12405 #undef FLD
12406 }
12407
12408 UINT
12409 sh5_compact_sh5_media_model::model_fmov2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12410 {
12411 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
12412   const sh5_compact_scache* abuf = sem;
12413   const sh5_compact_idesc* idesc = abuf->idesc;
12414   int cycles = 0;
12415   {
12416     cycles += model_u_exec_before (current_cpu, idesc, 0);
12417   }
12418   return cycles;
12419 #undef FLD
12420 }
12421
12422 UINT
12423 sh5_compact_sh5_media_model::model_fmov2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12424 {
12425 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
12426   const sh5_compact_scache* abuf = sem;
12427   const sh5_compact_idesc* idesc = abuf->idesc;
12428   int cycles = 0;
12429   {
12430     int referenced = 0;
12431     unsigned long long insn_referenced = abuf->written;
12432     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12433   }
12434   return cycles;
12435 #undef FLD
12436 }
12437
12438 UINT
12439 sh5_compact_sh5_media_model::model_fmov3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12440 {
12441 #define FLD(f) abuf->fields.sfmt_fmov3_compact.f
12442   const sh5_compact_scache* abuf = sem;
12443   const sh5_compact_idesc* idesc = abuf->idesc;
12444   int cycles = 0;
12445   {
12446     cycles += model_u_exec_before (current_cpu, idesc, 0);
12447   }
12448   return cycles;
12449 #undef FLD
12450 }
12451
12452 UINT
12453 sh5_compact_sh5_media_model::model_fmov3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12454 {
12455 #define FLD(f) abuf->fields.sfmt_fmov3_compact.f
12456   const sh5_compact_scache* abuf = sem;
12457   const sh5_compact_idesc* idesc = abuf->idesc;
12458   int cycles = 0;
12459   {
12460     int referenced = 0;
12461     unsigned long long insn_referenced = abuf->written;
12462     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12463   }
12464   return cycles;
12465 #undef FLD
12466 }
12467
12468 UINT
12469 sh5_compact_sh5_media_model::model_fmov4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12470 {
12471 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
12472   const sh5_compact_scache* abuf = sem;
12473   const sh5_compact_idesc* idesc = abuf->idesc;
12474   int cycles = 0;
12475   {
12476     cycles += model_u_exec_before (current_cpu, idesc, 0);
12477   }
12478   return cycles;
12479 #undef FLD
12480 }
12481
12482 UINT
12483 sh5_compact_sh5_media_model::model_fmov4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12484 {
12485 #define FLD(f) abuf->fields.sfmt_fmov4_compact.f
12486   const sh5_compact_scache* abuf = sem;
12487   const sh5_compact_idesc* idesc = abuf->idesc;
12488   int cycles = 0;
12489   {
12490     int referenced = 0;
12491     unsigned long long insn_referenced = abuf->written;
12492     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12493   }
12494   return cycles;
12495 #undef FLD
12496 }
12497
12498 UINT
12499 sh5_compact_sh5_media_model::model_fmov5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12500 {
12501 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
12502   const sh5_compact_scache* abuf = sem;
12503   const sh5_compact_idesc* idesc = abuf->idesc;
12504   int cycles = 0;
12505   {
12506     cycles += model_u_exec_before (current_cpu, idesc, 0);
12507   }
12508   return cycles;
12509 #undef FLD
12510 }
12511
12512 UINT
12513 sh5_compact_sh5_media_model::model_fmov5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12514 {
12515 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
12516   const sh5_compact_scache* abuf = sem;
12517   const sh5_compact_idesc* idesc = abuf->idesc;
12518   int cycles = 0;
12519   {
12520     int referenced = 0;
12521     unsigned long long insn_referenced = abuf->written;
12522     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12523   }
12524   return cycles;
12525 #undef FLD
12526 }
12527
12528 UINT
12529 sh5_compact_sh5_media_model::model_fmov6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12530 {
12531 #define FLD(f) abuf->fields.sfmt_fmov6_compact.f
12532   const sh5_compact_scache* abuf = sem;
12533   const sh5_compact_idesc* idesc = abuf->idesc;
12534   int cycles = 0;
12535   {
12536     cycles += model_u_exec_before (current_cpu, idesc, 0);
12537   }
12538   return cycles;
12539 #undef FLD
12540 }
12541
12542 UINT
12543 sh5_compact_sh5_media_model::model_fmov6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12544 {
12545 #define FLD(f) abuf->fields.sfmt_fmov6_compact.f
12546   const sh5_compact_scache* abuf = sem;
12547   const sh5_compact_idesc* idesc = abuf->idesc;
12548   int cycles = 0;
12549   {
12550     int referenced = 0;
12551     unsigned long long insn_referenced = abuf->written;
12552     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12553   }
12554   return cycles;
12555 #undef FLD
12556 }
12557
12558 UINT
12559 sh5_compact_sh5_media_model::model_fmov7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12560 {
12561 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
12562   const sh5_compact_scache* abuf = sem;
12563   const sh5_compact_idesc* idesc = abuf->idesc;
12564   int cycles = 0;
12565   {
12566     cycles += model_u_exec_before (current_cpu, idesc, 0);
12567   }
12568   return cycles;
12569 #undef FLD
12570 }
12571
12572 UINT
12573 sh5_compact_sh5_media_model::model_fmov7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12574 {
12575 #define FLD(f) abuf->fields.sfmt_fmov7_compact.f
12576   const sh5_compact_scache* abuf = sem;
12577   const sh5_compact_idesc* idesc = abuf->idesc;
12578   int cycles = 0;
12579   {
12580     int referenced = 0;
12581     unsigned long long insn_referenced = abuf->written;
12582     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12583   }
12584   return cycles;
12585 #undef FLD
12586 }
12587
12588 UINT
12589 sh5_compact_sh5_media_model::model_fmov8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12590 {
12591 #define FLD(f) abuf->fields.sfmt_fmov8_compact.f
12592   const sh5_compact_scache* abuf = sem;
12593   const sh5_compact_idesc* idesc = abuf->idesc;
12594   int cycles = 0;
12595   {
12596     cycles += model_u_exec_before (current_cpu, idesc, 0);
12597   }
12598   return cycles;
12599 #undef FLD
12600 }
12601
12602 UINT
12603 sh5_compact_sh5_media_model::model_fmov8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12604 {
12605 #define FLD(f) abuf->fields.sfmt_fmov8_compact.f
12606   const sh5_compact_scache* abuf = sem;
12607   const sh5_compact_idesc* idesc = abuf->idesc;
12608   int cycles = 0;
12609   {
12610     int referenced = 0;
12611     unsigned long long insn_referenced = abuf->written;
12612     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12613   }
12614   return cycles;
12615 #undef FLD
12616 }
12617
12618 UINT
12619 sh5_compact_sh5_media_model::model_fmov9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12620 {
12621 #define FLD(f) abuf->fields.sfmt_fmov9_compact.f
12622   const sh5_compact_scache* abuf = sem;
12623   const sh5_compact_idesc* idesc = abuf->idesc;
12624   int cycles = 0;
12625   {
12626     cycles += model_u_exec_before (current_cpu, idesc, 0);
12627   }
12628   return cycles;
12629 #undef FLD
12630 }
12631
12632 UINT
12633 sh5_compact_sh5_media_model::model_fmov9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12634 {
12635 #define FLD(f) abuf->fields.sfmt_fmov9_compact.f
12636   const sh5_compact_scache* abuf = sem;
12637   const sh5_compact_idesc* idesc = abuf->idesc;
12638   int cycles = 0;
12639   {
12640     int referenced = 0;
12641     unsigned long long insn_referenced = abuf->written;
12642     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12643   }
12644   return cycles;
12645 #undef FLD
12646 }
12647
12648 UINT
12649 sh5_compact_sh5_media_model::model_fmul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12650 {
12651 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12652   const sh5_compact_scache* abuf = sem;
12653   const sh5_compact_idesc* idesc = abuf->idesc;
12654   int cycles = 0;
12655   {
12656     cycles += model_u_exec_before (current_cpu, idesc, 0);
12657   }
12658   return cycles;
12659 #undef FLD
12660 }
12661
12662 UINT
12663 sh5_compact_sh5_media_model::model_fmul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12664 {
12665 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12666   const sh5_compact_scache* abuf = sem;
12667   const sh5_compact_idesc* idesc = abuf->idesc;
12668   int cycles = 0;
12669   {
12670     int referenced = 0;
12671     unsigned long long insn_referenced = abuf->written;
12672     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12673   }
12674   return cycles;
12675 #undef FLD
12676 }
12677
12678 UINT
12679 sh5_compact_sh5_media_model::model_fneg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12680 {
12681 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12682   const sh5_compact_scache* abuf = sem;
12683   const sh5_compact_idesc* idesc = abuf->idesc;
12684   int cycles = 0;
12685   {
12686     cycles += model_u_exec_before (current_cpu, idesc, 0);
12687   }
12688   return cycles;
12689 #undef FLD
12690 }
12691
12692 UINT
12693 sh5_compact_sh5_media_model::model_fneg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12694 {
12695 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12696   const sh5_compact_scache* abuf = sem;
12697   const sh5_compact_idesc* idesc = abuf->idesc;
12698   int cycles = 0;
12699   {
12700     int referenced = 0;
12701     unsigned long long insn_referenced = abuf->written;
12702     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12703   }
12704   return cycles;
12705 #undef FLD
12706 }
12707
12708 UINT
12709 sh5_compact_sh5_media_model::model_frchg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12710 {
12711 #define FLD(f) abuf->fields.fmt_empty.f
12712   const sh5_compact_scache* abuf = sem;
12713   const sh5_compact_idesc* idesc = abuf->idesc;
12714   int cycles = 0;
12715   {
12716     cycles += model_u_exec_before (current_cpu, idesc, 0);
12717   }
12718   return cycles;
12719 #undef FLD
12720 }
12721
12722 UINT
12723 sh5_compact_sh5_media_model::model_frchg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12724 {
12725 #define FLD(f) abuf->fields.fmt_empty.f
12726   const sh5_compact_scache* abuf = sem;
12727   const sh5_compact_idesc* idesc = abuf->idesc;
12728   int cycles = 0;
12729   {
12730     int referenced = 0;
12731     unsigned long long insn_referenced = abuf->written;
12732     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12733   }
12734   return cycles;
12735 #undef FLD
12736 }
12737
12738 UINT
12739 sh5_compact_sh5_media_model::model_fschg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12740 {
12741 #define FLD(f) abuf->fields.fmt_empty.f
12742   const sh5_compact_scache* abuf = sem;
12743   const sh5_compact_idesc* idesc = abuf->idesc;
12744   int cycles = 0;
12745   {
12746     cycles += model_u_exec_before (current_cpu, idesc, 0);
12747   }
12748   return cycles;
12749 #undef FLD
12750 }
12751
12752 UINT
12753 sh5_compact_sh5_media_model::model_fschg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12754 {
12755 #define FLD(f) abuf->fields.fmt_empty.f
12756   const sh5_compact_scache* abuf = sem;
12757   const sh5_compact_idesc* idesc = abuf->idesc;
12758   int cycles = 0;
12759   {
12760     int referenced = 0;
12761     unsigned long long insn_referenced = abuf->written;
12762     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12763   }
12764   return cycles;
12765 #undef FLD
12766 }
12767
12768 UINT
12769 sh5_compact_sh5_media_model::model_fsqrt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12770 {
12771 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12772   const sh5_compact_scache* abuf = sem;
12773   const sh5_compact_idesc* idesc = abuf->idesc;
12774   int cycles = 0;
12775   {
12776     cycles += model_u_exec_before (current_cpu, idesc, 0);
12777   }
12778   return cycles;
12779 #undef FLD
12780 }
12781
12782 UINT
12783 sh5_compact_sh5_media_model::model_fsqrt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12784 {
12785 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12786   const sh5_compact_scache* abuf = sem;
12787   const sh5_compact_idesc* idesc = abuf->idesc;
12788   int cycles = 0;
12789   {
12790     int referenced = 0;
12791     unsigned long long insn_referenced = abuf->written;
12792     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12793   }
12794   return cycles;
12795 #undef FLD
12796 }
12797
12798 UINT
12799 sh5_compact_sh5_media_model::model_fsts_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12800 {
12801 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
12802   const sh5_compact_scache* abuf = sem;
12803   const sh5_compact_idesc* idesc = abuf->idesc;
12804   int cycles = 0;
12805   {
12806     cycles += model_u_exec_before (current_cpu, idesc, 0);
12807   }
12808   return cycles;
12809 #undef FLD
12810 }
12811
12812 UINT
12813 sh5_compact_sh5_media_model::model_fsts_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12814 {
12815 #define FLD(f) abuf->fields.sfmt_fsts_compact.f
12816   const sh5_compact_scache* abuf = sem;
12817   const sh5_compact_idesc* idesc = abuf->idesc;
12818   int cycles = 0;
12819   {
12820     int referenced = 0;
12821     unsigned long long insn_referenced = abuf->written;
12822     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12823   }
12824   return cycles;
12825 #undef FLD
12826 }
12827
12828 UINT
12829 sh5_compact_sh5_media_model::model_fsub_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12830 {
12831 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12832   const sh5_compact_scache* abuf = sem;
12833   const sh5_compact_idesc* idesc = abuf->idesc;
12834   int cycles = 0;
12835   {
12836     cycles += model_u_exec_before (current_cpu, idesc, 0);
12837   }
12838   return cycles;
12839 #undef FLD
12840 }
12841
12842 UINT
12843 sh5_compact_sh5_media_model::model_fsub_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12844 {
12845 #define FLD(f) abuf->fields.sfmt_fadd_compact.f
12846   const sh5_compact_scache* abuf = sem;
12847   const sh5_compact_idesc* idesc = abuf->idesc;
12848   int cycles = 0;
12849   {
12850     int referenced = 0;
12851     unsigned long long insn_referenced = abuf->written;
12852     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12853   }
12854   return cycles;
12855 #undef FLD
12856 }
12857
12858 UINT
12859 sh5_compact_sh5_media_model::model_ftrc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12860 {
12861 #define FLD(f) abuf->fields.sfmt_ftrc_compact.f
12862   const sh5_compact_scache* abuf = sem;
12863   const sh5_compact_idesc* idesc = abuf->idesc;
12864   int cycles = 0;
12865   {
12866     cycles += model_u_exec_before (current_cpu, idesc, 0);
12867   }
12868   return cycles;
12869 #undef FLD
12870 }
12871
12872 UINT
12873 sh5_compact_sh5_media_model::model_ftrc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12874 {
12875 #define FLD(f) abuf->fields.sfmt_ftrc_compact.f
12876   const sh5_compact_scache* abuf = sem;
12877   const sh5_compact_idesc* idesc = abuf->idesc;
12878   int cycles = 0;
12879   {
12880     int referenced = 0;
12881     unsigned long long insn_referenced = abuf->written;
12882     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12883   }
12884   return cycles;
12885 #undef FLD
12886 }
12887
12888 UINT
12889 sh5_compact_sh5_media_model::model_ftrv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12890 {
12891 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
12892   const sh5_compact_scache* abuf = sem;
12893   const sh5_compact_idesc* idesc = abuf->idesc;
12894   int cycles = 0;
12895   {
12896     cycles += model_u_exec_before (current_cpu, idesc, 0);
12897   }
12898   return cycles;
12899 #undef FLD
12900 }
12901
12902 UINT
12903 sh5_compact_sh5_media_model::model_ftrv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12904 {
12905 #define FLD(f) abuf->fields.sfmt_fipr_compact.f
12906   const sh5_compact_scache* abuf = sem;
12907   const sh5_compact_idesc* idesc = abuf->idesc;
12908   int cycles = 0;
12909   {
12910     int referenced = 0;
12911     unsigned long long insn_referenced = abuf->written;
12912     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12913   }
12914   return cycles;
12915 #undef FLD
12916 }
12917
12918 UINT
12919 sh5_compact_sh5_media_model::model_jmp_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12920 {
12921 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
12922   const sh5_compact_scache* abuf = sem;
12923   const sh5_compact_idesc* idesc = abuf->idesc;
12924   int cycles = 0;
12925   {
12926     cycles += model_u_exec_before (current_cpu, idesc, 0);
12927   }
12928   return cycles;
12929 #undef FLD
12930 }
12931
12932 UINT
12933 sh5_compact_sh5_media_model::model_jmp_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12934 {
12935 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
12936   const sh5_compact_scache* abuf = sem;
12937   const sh5_compact_idesc* idesc = abuf->idesc;
12938   int cycles = 0;
12939   {
12940     int referenced = 0;
12941     unsigned long long insn_referenced = abuf->written;
12942     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12943   }
12944   return cycles;
12945 #undef FLD
12946 }
12947
12948 UINT
12949 sh5_compact_sh5_media_model::model_jsr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12950 {
12951 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
12952   const sh5_compact_scache* abuf = sem;
12953   const sh5_compact_idesc* idesc = abuf->idesc;
12954   int cycles = 0;
12955   {
12956     cycles += model_u_exec_before (current_cpu, idesc, 0);
12957   }
12958   return cycles;
12959 #undef FLD
12960 }
12961
12962 UINT
12963 sh5_compact_sh5_media_model::model_jsr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12964 {
12965 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
12966   const sh5_compact_scache* abuf = sem;
12967   const sh5_compact_idesc* idesc = abuf->idesc;
12968   int cycles = 0;
12969   {
12970     int referenced = 0;
12971     unsigned long long insn_referenced = abuf->written;
12972     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
12973   }
12974   return cycles;
12975 #undef FLD
12976 }
12977
12978 UINT
12979 sh5_compact_sh5_media_model::model_ldc_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12980 {
12981 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
12982   const sh5_compact_scache* abuf = sem;
12983   const sh5_compact_idesc* idesc = abuf->idesc;
12984   int cycles = 0;
12985   {
12986     cycles += model_u_exec_before (current_cpu, idesc, 0);
12987   }
12988   return cycles;
12989 #undef FLD
12990 }
12991
12992 UINT
12993 sh5_compact_sh5_media_model::model_ldc_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
12994 {
12995 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
12996   const sh5_compact_scache* abuf = sem;
12997   const sh5_compact_idesc* idesc = abuf->idesc;
12998   int cycles = 0;
12999   {
13000     int referenced = 0;
13001     unsigned long long insn_referenced = abuf->written;
13002     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13003   }
13004   return cycles;
13005 #undef FLD
13006 }
13007
13008 UINT
13009 sh5_compact_sh5_media_model::model_ldc_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13010 {
13011 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13012   const sh5_compact_scache* abuf = sem;
13013   const sh5_compact_idesc* idesc = abuf->idesc;
13014   int cycles = 0;
13015   {
13016     cycles += model_u_exec_before (current_cpu, idesc, 0);
13017   }
13018   return cycles;
13019 #undef FLD
13020 }
13021
13022 UINT
13023 sh5_compact_sh5_media_model::model_ldc_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13024 {
13025 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13026   const sh5_compact_scache* abuf = sem;
13027   const sh5_compact_idesc* idesc = abuf->idesc;
13028   int cycles = 0;
13029   {
13030     int referenced = 0;
13031     unsigned long long insn_referenced = abuf->written;
13032     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13033   }
13034   return cycles;
13035 #undef FLD
13036 }
13037
13038 UINT
13039 sh5_compact_sh5_media_model::model_ldc_sr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13040 {
13041 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13042   const sh5_compact_scache* abuf = sem;
13043   const sh5_compact_idesc* idesc = abuf->idesc;
13044   int cycles = 0;
13045   {
13046     cycles += model_u_exec_before (current_cpu, idesc, 0);
13047   }
13048   return cycles;
13049 #undef FLD
13050 }
13051
13052 UINT
13053 sh5_compact_sh5_media_model::model_ldc_sr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13054 {
13055 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13056   const sh5_compact_scache* abuf = sem;
13057   const sh5_compact_idesc* idesc = abuf->idesc;
13058   int cycles = 0;
13059   {
13060     int referenced = 0;
13061     unsigned long long insn_referenced = abuf->written;
13062     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13063   }
13064   return cycles;
13065 #undef FLD
13066 }
13067
13068 UINT
13069 sh5_compact_sh5_media_model::model_ldcl_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13070 {
13071 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13072   const sh5_compact_scache* abuf = sem;
13073   const sh5_compact_idesc* idesc = abuf->idesc;
13074   int cycles = 0;
13075   {
13076     cycles += model_u_exec_before (current_cpu, idesc, 0);
13077   }
13078   return cycles;
13079 #undef FLD
13080 }
13081
13082 UINT
13083 sh5_compact_sh5_media_model::model_ldcl_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13084 {
13085 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13086   const sh5_compact_scache* abuf = sem;
13087   const sh5_compact_idesc* idesc = abuf->idesc;
13088   int cycles = 0;
13089   {
13090     int referenced = 0;
13091     unsigned long long insn_referenced = abuf->written;
13092     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13093   }
13094   return cycles;
13095 #undef FLD
13096 }
13097
13098 UINT
13099 sh5_compact_sh5_media_model::model_ldcl_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13100 {
13101 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13102   const sh5_compact_scache* abuf = sem;
13103   const sh5_compact_idesc* idesc = abuf->idesc;
13104   int cycles = 0;
13105   {
13106     cycles += model_u_exec_before (current_cpu, idesc, 0);
13107   }
13108   return cycles;
13109 #undef FLD
13110 }
13111
13112 UINT
13113 sh5_compact_sh5_media_model::model_ldcl_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13114 {
13115 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13116   const sh5_compact_scache* abuf = sem;
13117   const sh5_compact_idesc* idesc = abuf->idesc;
13118   int cycles = 0;
13119   {
13120     int referenced = 0;
13121     unsigned long long insn_referenced = abuf->written;
13122     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13123   }
13124   return cycles;
13125 #undef FLD
13126 }
13127
13128 UINT
13129 sh5_compact_sh5_media_model::model_lds_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13130 {
13131 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13132   const sh5_compact_scache* abuf = sem;
13133   const sh5_compact_idesc* idesc = abuf->idesc;
13134   int cycles = 0;
13135   {
13136     cycles += model_u_exec_before (current_cpu, idesc, 0);
13137   }
13138   return cycles;
13139 #undef FLD
13140 }
13141
13142 UINT
13143 sh5_compact_sh5_media_model::model_lds_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13144 {
13145 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13146   const sh5_compact_scache* abuf = sem;
13147   const sh5_compact_idesc* idesc = abuf->idesc;
13148   int cycles = 0;
13149   {
13150     int referenced = 0;
13151     unsigned long long insn_referenced = abuf->written;
13152     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13153   }
13154   return cycles;
13155 #undef FLD
13156 }
13157
13158 UINT
13159 sh5_compact_sh5_media_model::model_ldsl_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13160 {
13161 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13162   const sh5_compact_scache* abuf = sem;
13163   const sh5_compact_idesc* idesc = abuf->idesc;
13164   int cycles = 0;
13165   {
13166     cycles += model_u_exec_before (current_cpu, idesc, 0);
13167   }
13168   return cycles;
13169 #undef FLD
13170 }
13171
13172 UINT
13173 sh5_compact_sh5_media_model::model_ldsl_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13174 {
13175 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13176   const sh5_compact_scache* abuf = sem;
13177   const sh5_compact_idesc* idesc = abuf->idesc;
13178   int cycles = 0;
13179   {
13180     int referenced = 0;
13181     unsigned long long insn_referenced = abuf->written;
13182     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13183   }
13184   return cycles;
13185 #undef FLD
13186 }
13187
13188 UINT
13189 sh5_compact_sh5_media_model::model_lds_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13190 {
13191 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
13192   const sh5_compact_scache* abuf = sem;
13193   const sh5_compact_idesc* idesc = abuf->idesc;
13194   int cycles = 0;
13195   {
13196     cycles += model_u_exec_before (current_cpu, idesc, 0);
13197   }
13198   return cycles;
13199 #undef FLD
13200 }
13201
13202 UINT
13203 sh5_compact_sh5_media_model::model_lds_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13204 {
13205 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
13206   const sh5_compact_scache* abuf = sem;
13207   const sh5_compact_idesc* idesc = abuf->idesc;
13208   int cycles = 0;
13209   {
13210     int referenced = 0;
13211     unsigned long long insn_referenced = abuf->written;
13212     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13213   }
13214   return cycles;
13215 #undef FLD
13216 }
13217
13218 UINT
13219 sh5_compact_sh5_media_model::model_ldsl_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13220 {
13221 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
13222   const sh5_compact_scache* abuf = sem;
13223   const sh5_compact_idesc* idesc = abuf->idesc;
13224   int cycles = 0;
13225   {
13226     cycles += model_u_exec_before (current_cpu, idesc, 0);
13227   }
13228   return cycles;
13229 #undef FLD
13230 }
13231
13232 UINT
13233 sh5_compact_sh5_media_model::model_ldsl_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13234 {
13235 #define FLD(f) abuf->fields.sfmt_ldsl_fpul_compact.f
13236   const sh5_compact_scache* abuf = sem;
13237   const sh5_compact_idesc* idesc = abuf->idesc;
13238   int cycles = 0;
13239   {
13240     int referenced = 0;
13241     unsigned long long insn_referenced = abuf->written;
13242     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13243   }
13244   return cycles;
13245 #undef FLD
13246 }
13247
13248 UINT
13249 sh5_compact_sh5_media_model::model_lds_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13250 {
13251 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13252   const sh5_compact_scache* abuf = sem;
13253   const sh5_compact_idesc* idesc = abuf->idesc;
13254   int cycles = 0;
13255   {
13256     cycles += model_u_exec_before (current_cpu, idesc, 0);
13257   }
13258   return cycles;
13259 #undef FLD
13260 }
13261
13262 UINT
13263 sh5_compact_sh5_media_model::model_lds_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13264 {
13265 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13266   const sh5_compact_scache* abuf = sem;
13267   const sh5_compact_idesc* idesc = abuf->idesc;
13268   int cycles = 0;
13269   {
13270     int referenced = 0;
13271     unsigned long long insn_referenced = abuf->written;
13272     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13273   }
13274   return cycles;
13275 #undef FLD
13276 }
13277
13278 UINT
13279 sh5_compact_sh5_media_model::model_ldsl_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13280 {
13281 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13282   const sh5_compact_scache* abuf = sem;
13283   const sh5_compact_idesc* idesc = abuf->idesc;
13284   int cycles = 0;
13285   {
13286     cycles += model_u_exec_before (current_cpu, idesc, 0);
13287   }
13288   return cycles;
13289 #undef FLD
13290 }
13291
13292 UINT
13293 sh5_compact_sh5_media_model::model_ldsl_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13294 {
13295 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13296   const sh5_compact_scache* abuf = sem;
13297   const sh5_compact_idesc* idesc = abuf->idesc;
13298   int cycles = 0;
13299   {
13300     int referenced = 0;
13301     unsigned long long insn_referenced = abuf->written;
13302     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13303   }
13304   return cycles;
13305 #undef FLD
13306 }
13307
13308 UINT
13309 sh5_compact_sh5_media_model::model_lds_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13310 {
13311 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13312   const sh5_compact_scache* abuf = sem;
13313   const sh5_compact_idesc* idesc = abuf->idesc;
13314   int cycles = 0;
13315   {
13316     cycles += model_u_exec_before (current_cpu, idesc, 0);
13317   }
13318   return cycles;
13319 #undef FLD
13320 }
13321
13322 UINT
13323 sh5_compact_sh5_media_model::model_lds_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13324 {
13325 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13326   const sh5_compact_scache* abuf = sem;
13327   const sh5_compact_idesc* idesc = abuf->idesc;
13328   int cycles = 0;
13329   {
13330     int referenced = 0;
13331     unsigned long long insn_referenced = abuf->written;
13332     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13333   }
13334   return cycles;
13335 #undef FLD
13336 }
13337
13338 UINT
13339 sh5_compact_sh5_media_model::model_ldsl_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13340 {
13341 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13342   const sh5_compact_scache* abuf = sem;
13343   const sh5_compact_idesc* idesc = abuf->idesc;
13344   int cycles = 0;
13345   {
13346     cycles += model_u_exec_before (current_cpu, idesc, 0);
13347   }
13348   return cycles;
13349 #undef FLD
13350 }
13351
13352 UINT
13353 sh5_compact_sh5_media_model::model_ldsl_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13354 {
13355 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13356   const sh5_compact_scache* abuf = sem;
13357   const sh5_compact_idesc* idesc = abuf->idesc;
13358   int cycles = 0;
13359   {
13360     int referenced = 0;
13361     unsigned long long insn_referenced = abuf->written;
13362     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13363   }
13364   return cycles;
13365 #undef FLD
13366 }
13367
13368 UINT
13369 sh5_compact_sh5_media_model::model_lds_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13370 {
13371 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13372   const sh5_compact_scache* abuf = sem;
13373   const sh5_compact_idesc* idesc = abuf->idesc;
13374   int cycles = 0;
13375   {
13376     cycles += model_u_exec_before (current_cpu, idesc, 0);
13377   }
13378   return cycles;
13379 #undef FLD
13380 }
13381
13382 UINT
13383 sh5_compact_sh5_media_model::model_lds_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13384 {
13385 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13386   const sh5_compact_scache* abuf = sem;
13387   const sh5_compact_idesc* idesc = abuf->idesc;
13388   int cycles = 0;
13389   {
13390     int referenced = 0;
13391     unsigned long long insn_referenced = abuf->written;
13392     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13393   }
13394   return cycles;
13395 #undef FLD
13396 }
13397
13398 UINT
13399 sh5_compact_sh5_media_model::model_ldsl_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13400 {
13401 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13402   const sh5_compact_scache* abuf = sem;
13403   const sh5_compact_idesc* idesc = abuf->idesc;
13404   int cycles = 0;
13405   {
13406     cycles += model_u_exec_before (current_cpu, idesc, 0);
13407   }
13408   return cycles;
13409 #undef FLD
13410 }
13411
13412 UINT
13413 sh5_compact_sh5_media_model::model_ldsl_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13414 {
13415 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
13416   const sh5_compact_scache* abuf = sem;
13417   const sh5_compact_idesc* idesc = abuf->idesc;
13418   int cycles = 0;
13419   {
13420     int referenced = 0;
13421     unsigned long long insn_referenced = abuf->written;
13422     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13423   }
13424   return cycles;
13425 #undef FLD
13426 }
13427
13428 UINT
13429 sh5_compact_sh5_media_model::model_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13430 {
13431 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13432   const sh5_compact_scache* abuf = sem;
13433   const sh5_compact_idesc* idesc = abuf->idesc;
13434   int cycles = 0;
13435   {
13436     cycles += model_u_exec_before (current_cpu, idesc, 0);
13437   }
13438   return cycles;
13439 #undef FLD
13440 }
13441
13442 UINT
13443 sh5_compact_sh5_media_model::model_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13444 {
13445 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13446   const sh5_compact_scache* abuf = sem;
13447   const sh5_compact_idesc* idesc = abuf->idesc;
13448   int cycles = 0;
13449   {
13450     int referenced = 0;
13451     unsigned long long insn_referenced = abuf->written;
13452     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13453   }
13454   return cycles;
13455 #undef FLD
13456 }
13457
13458 UINT
13459 sh5_compact_sh5_media_model::model_macw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13460 {
13461 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13462   const sh5_compact_scache* abuf = sem;
13463   const sh5_compact_idesc* idesc = abuf->idesc;
13464   int cycles = 0;
13465   {
13466     cycles += model_u_exec_before (current_cpu, idesc, 0);
13467   }
13468   return cycles;
13469 #undef FLD
13470 }
13471
13472 UINT
13473 sh5_compact_sh5_media_model::model_macw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13474 {
13475 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13476   const sh5_compact_scache* abuf = sem;
13477   const sh5_compact_idesc* idesc = abuf->idesc;
13478   int cycles = 0;
13479   {
13480     int referenced = 0;
13481     unsigned long long insn_referenced = abuf->written;
13482     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13483   }
13484   return cycles;
13485 #undef FLD
13486 }
13487
13488 UINT
13489 sh5_compact_sh5_media_model::model_mov_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13490 {
13491 #define FLD(f) abuf->fields.sfmt_and_compact.f
13492   const sh5_compact_scache* abuf = sem;
13493   const sh5_compact_idesc* idesc = abuf->idesc;
13494   int cycles = 0;
13495   {
13496     cycles += model_u_exec_before (current_cpu, idesc, 0);
13497   }
13498   return cycles;
13499 #undef FLD
13500 }
13501
13502 UINT
13503 sh5_compact_sh5_media_model::model_mov_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13504 {
13505 #define FLD(f) abuf->fields.sfmt_and_compact.f
13506   const sh5_compact_scache* abuf = sem;
13507   const sh5_compact_idesc* idesc = abuf->idesc;
13508   int cycles = 0;
13509   {
13510     int referenced = 0;
13511     unsigned long long insn_referenced = abuf->written;
13512     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13513   }
13514   return cycles;
13515 #undef FLD
13516 }
13517
13518 UINT
13519 sh5_compact_sh5_media_model::model_movi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13520 {
13521 #define FLD(f) abuf->fields.sfmt_addi_compact.f
13522   const sh5_compact_scache* abuf = sem;
13523   const sh5_compact_idesc* idesc = abuf->idesc;
13524   int cycles = 0;
13525   {
13526     cycles += model_u_exec_before (current_cpu, idesc, 0);
13527   }
13528   return cycles;
13529 #undef FLD
13530 }
13531
13532 UINT
13533 sh5_compact_sh5_media_model::model_movi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13534 {
13535 #define FLD(f) abuf->fields.sfmt_addi_compact.f
13536   const sh5_compact_scache* abuf = sem;
13537   const sh5_compact_idesc* idesc = abuf->idesc;
13538   int cycles = 0;
13539   {
13540     int referenced = 0;
13541     unsigned long long insn_referenced = abuf->written;
13542     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13543   }
13544   return cycles;
13545 #undef FLD
13546 }
13547
13548 UINT
13549 sh5_compact_sh5_media_model::model_movi20_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13550 {
13551 #define FLD(f) abuf->fields.sfmt_movi20_compact.f
13552   const sh5_compact_scache* abuf = sem;
13553   const sh5_compact_idesc* idesc = abuf->idesc;
13554   int cycles = 0;
13555   {
13556     cycles += model_u_exec_before (current_cpu, idesc, 0);
13557   }
13558   return cycles;
13559 #undef FLD
13560 }
13561
13562 UINT
13563 sh5_compact_sh5_media_model::model_movi20_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13564 {
13565 #define FLD(f) abuf->fields.sfmt_movi20_compact.f
13566   const sh5_compact_scache* abuf = sem;
13567   const sh5_compact_idesc* idesc = abuf->idesc;
13568   int cycles = 0;
13569   {
13570     int referenced = 0;
13571     unsigned long long insn_referenced = abuf->written;
13572     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13573   }
13574   return cycles;
13575 #undef FLD
13576 }
13577
13578 UINT
13579 sh5_compact_sh5_media_model::model_movb1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13580 {
13581 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
13582   const sh5_compact_scache* abuf = sem;
13583   const sh5_compact_idesc* idesc = abuf->idesc;
13584   int cycles = 0;
13585   {
13586     cycles += model_u_exec_before (current_cpu, idesc, 0);
13587   }
13588   return cycles;
13589 #undef FLD
13590 }
13591
13592 UINT
13593 sh5_compact_sh5_media_model::model_movb1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13594 {
13595 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
13596   const sh5_compact_scache* abuf = sem;
13597   const sh5_compact_idesc* idesc = abuf->idesc;
13598   int cycles = 0;
13599   {
13600     int referenced = 0;
13601     unsigned long long insn_referenced = abuf->written;
13602     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13603   }
13604   return cycles;
13605 #undef FLD
13606 }
13607
13608 UINT
13609 sh5_compact_sh5_media_model::model_movb2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13610 {
13611 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13612   const sh5_compact_scache* abuf = sem;
13613   const sh5_compact_idesc* idesc = abuf->idesc;
13614   int cycles = 0;
13615   {
13616     cycles += model_u_exec_before (current_cpu, idesc, 0);
13617   }
13618   return cycles;
13619 #undef FLD
13620 }
13621
13622 UINT
13623 sh5_compact_sh5_media_model::model_movb2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13624 {
13625 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13626   const sh5_compact_scache* abuf = sem;
13627   const sh5_compact_idesc* idesc = abuf->idesc;
13628   int cycles = 0;
13629   {
13630     int referenced = 0;
13631     unsigned long long insn_referenced = abuf->written;
13632     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13633   }
13634   return cycles;
13635 #undef FLD
13636 }
13637
13638 UINT
13639 sh5_compact_sh5_media_model::model_movb3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13640 {
13641 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
13642   const sh5_compact_scache* abuf = sem;
13643   const sh5_compact_idesc* idesc = abuf->idesc;
13644   int cycles = 0;
13645   {
13646     cycles += model_u_exec_before (current_cpu, idesc, 0);
13647   }
13648   return cycles;
13649 #undef FLD
13650 }
13651
13652 UINT
13653 sh5_compact_sh5_media_model::model_movb3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13654 {
13655 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
13656   const sh5_compact_scache* abuf = sem;
13657   const sh5_compact_idesc* idesc = abuf->idesc;
13658   int cycles = 0;
13659   {
13660     int referenced = 0;
13661     unsigned long long insn_referenced = abuf->written;
13662     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13663   }
13664   return cycles;
13665 #undef FLD
13666 }
13667
13668 UINT
13669 sh5_compact_sh5_media_model::model_movb4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13670 {
13671 #define FLD(f) abuf->fields.sfmt_andi_compact.f
13672   const sh5_compact_scache* abuf = sem;
13673   const sh5_compact_idesc* idesc = abuf->idesc;
13674   int cycles = 0;
13675   {
13676     cycles += model_u_exec_before (current_cpu, idesc, 0);
13677   }
13678   return cycles;
13679 #undef FLD
13680 }
13681
13682 UINT
13683 sh5_compact_sh5_media_model::model_movb4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13684 {
13685 #define FLD(f) abuf->fields.sfmt_andi_compact.f
13686   const sh5_compact_scache* abuf = sem;
13687   const sh5_compact_idesc* idesc = abuf->idesc;
13688   int cycles = 0;
13689   {
13690     int referenced = 0;
13691     unsigned long long insn_referenced = abuf->written;
13692     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13693   }
13694   return cycles;
13695 #undef FLD
13696 }
13697
13698 UINT
13699 sh5_compact_sh5_media_model::model_movb5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13700 {
13701 #define FLD(f) abuf->fields.sfmt_movb5_compact.f
13702   const sh5_compact_scache* abuf = sem;
13703   const sh5_compact_idesc* idesc = abuf->idesc;
13704   int cycles = 0;
13705   {
13706     cycles += model_u_exec_before (current_cpu, idesc, 0);
13707   }
13708   return cycles;
13709 #undef FLD
13710 }
13711
13712 UINT
13713 sh5_compact_sh5_media_model::model_movb5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13714 {
13715 #define FLD(f) abuf->fields.sfmt_movb5_compact.f
13716   const sh5_compact_scache* abuf = sem;
13717   const sh5_compact_idesc* idesc = abuf->idesc;
13718   int cycles = 0;
13719   {
13720     int referenced = 0;
13721     unsigned long long insn_referenced = abuf->written;
13722     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13723   }
13724   return cycles;
13725 #undef FLD
13726 }
13727
13728 UINT
13729 sh5_compact_sh5_media_model::model_movb6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13730 {
13731 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
13732   const sh5_compact_scache* abuf = sem;
13733   const sh5_compact_idesc* idesc = abuf->idesc;
13734   int cycles = 0;
13735   {
13736     cycles += model_u_exec_before (current_cpu, idesc, 0);
13737   }
13738   return cycles;
13739 #undef FLD
13740 }
13741
13742 UINT
13743 sh5_compact_sh5_media_model::model_movb6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13744 {
13745 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
13746   const sh5_compact_scache* abuf = sem;
13747   const sh5_compact_idesc* idesc = abuf->idesc;
13748   int cycles = 0;
13749   {
13750     int referenced = 0;
13751     unsigned long long insn_referenced = abuf->written;
13752     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13753   }
13754   return cycles;
13755 #undef FLD
13756 }
13757
13758 UINT
13759 sh5_compact_sh5_media_model::model_movb7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13760 {
13761 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13762   const sh5_compact_scache* abuf = sem;
13763   const sh5_compact_idesc* idesc = abuf->idesc;
13764   int cycles = 0;
13765   {
13766     cycles += model_u_exec_before (current_cpu, idesc, 0);
13767   }
13768   return cycles;
13769 #undef FLD
13770 }
13771
13772 UINT
13773 sh5_compact_sh5_media_model::model_movb7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13774 {
13775 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13776   const sh5_compact_scache* abuf = sem;
13777   const sh5_compact_idesc* idesc = abuf->idesc;
13778   int cycles = 0;
13779   {
13780     int referenced = 0;
13781     unsigned long long insn_referenced = abuf->written;
13782     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13783   }
13784   return cycles;
13785 #undef FLD
13786 }
13787
13788 UINT
13789 sh5_compact_sh5_media_model::model_movb8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13790 {
13791 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
13792   const sh5_compact_scache* abuf = sem;
13793   const sh5_compact_idesc* idesc = abuf->idesc;
13794   int cycles = 0;
13795   {
13796     cycles += model_u_exec_before (current_cpu, idesc, 0);
13797   }
13798   return cycles;
13799 #undef FLD
13800 }
13801
13802 UINT
13803 sh5_compact_sh5_media_model::model_movb8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13804 {
13805 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
13806   const sh5_compact_scache* abuf = sem;
13807   const sh5_compact_idesc* idesc = abuf->idesc;
13808   int cycles = 0;
13809   {
13810     int referenced = 0;
13811     unsigned long long insn_referenced = abuf->written;
13812     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13813   }
13814   return cycles;
13815 #undef FLD
13816 }
13817
13818 UINT
13819 sh5_compact_sh5_media_model::model_movb9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13820 {
13821 #define FLD(f) abuf->fields.sfmt_andi_compact.f
13822   const sh5_compact_scache* abuf = sem;
13823   const sh5_compact_idesc* idesc = abuf->idesc;
13824   int cycles = 0;
13825   {
13826     cycles += model_u_exec_before (current_cpu, idesc, 0);
13827   }
13828   return cycles;
13829 #undef FLD
13830 }
13831
13832 UINT
13833 sh5_compact_sh5_media_model::model_movb9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13834 {
13835 #define FLD(f) abuf->fields.sfmt_andi_compact.f
13836   const sh5_compact_scache* abuf = sem;
13837   const sh5_compact_idesc* idesc = abuf->idesc;
13838   int cycles = 0;
13839   {
13840     int referenced = 0;
13841     unsigned long long insn_referenced = abuf->written;
13842     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13843   }
13844   return cycles;
13845 #undef FLD
13846 }
13847
13848 UINT
13849 sh5_compact_sh5_media_model::model_movb10_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13850 {
13851 #define FLD(f) abuf->fields.sfmt_movb10_compact.f
13852   const sh5_compact_scache* abuf = sem;
13853   const sh5_compact_idesc* idesc = abuf->idesc;
13854   int cycles = 0;
13855   {
13856     cycles += model_u_exec_before (current_cpu, idesc, 0);
13857   }
13858   return cycles;
13859 #undef FLD
13860 }
13861
13862 UINT
13863 sh5_compact_sh5_media_model::model_movb10_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13864 {
13865 #define FLD(f) abuf->fields.sfmt_movb10_compact.f
13866   const sh5_compact_scache* abuf = sem;
13867   const sh5_compact_idesc* idesc = abuf->idesc;
13868   int cycles = 0;
13869   {
13870     int referenced = 0;
13871     unsigned long long insn_referenced = abuf->written;
13872     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13873   }
13874   return cycles;
13875 #undef FLD
13876 }
13877
13878 UINT
13879 sh5_compact_sh5_media_model::model_movl1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13880 {
13881 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
13882   const sh5_compact_scache* abuf = sem;
13883   const sh5_compact_idesc* idesc = abuf->idesc;
13884   int cycles = 0;
13885   {
13886     cycles += model_u_exec_before (current_cpu, idesc, 0);
13887   }
13888   return cycles;
13889 #undef FLD
13890 }
13891
13892 UINT
13893 sh5_compact_sh5_media_model::model_movl1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13894 {
13895 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
13896   const sh5_compact_scache* abuf = sem;
13897   const sh5_compact_idesc* idesc = abuf->idesc;
13898   int cycles = 0;
13899   {
13900     int referenced = 0;
13901     unsigned long long insn_referenced = abuf->written;
13902     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13903   }
13904   return cycles;
13905 #undef FLD
13906 }
13907
13908 UINT
13909 sh5_compact_sh5_media_model::model_movl2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13910 {
13911 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13912   const sh5_compact_scache* abuf = sem;
13913   const sh5_compact_idesc* idesc = abuf->idesc;
13914   int cycles = 0;
13915   {
13916     cycles += model_u_exec_before (current_cpu, idesc, 0);
13917   }
13918   return cycles;
13919 #undef FLD
13920 }
13921
13922 UINT
13923 sh5_compact_sh5_media_model::model_movl2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13924 {
13925 #define FLD(f) abuf->fields.sfmt_macl_compact.f
13926   const sh5_compact_scache* abuf = sem;
13927   const sh5_compact_idesc* idesc = abuf->idesc;
13928   int cycles = 0;
13929   {
13930     int referenced = 0;
13931     unsigned long long insn_referenced = abuf->written;
13932     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13933   }
13934   return cycles;
13935 #undef FLD
13936 }
13937
13938 UINT
13939 sh5_compact_sh5_media_model::model_movl3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13940 {
13941 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
13942   const sh5_compact_scache* abuf = sem;
13943   const sh5_compact_idesc* idesc = abuf->idesc;
13944   int cycles = 0;
13945   {
13946     cycles += model_u_exec_before (current_cpu, idesc, 0);
13947   }
13948   return cycles;
13949 #undef FLD
13950 }
13951
13952 UINT
13953 sh5_compact_sh5_media_model::model_movl3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13954 {
13955 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
13956   const sh5_compact_scache* abuf = sem;
13957   const sh5_compact_idesc* idesc = abuf->idesc;
13958   int cycles = 0;
13959   {
13960     int referenced = 0;
13961     unsigned long long insn_referenced = abuf->written;
13962     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13963   }
13964   return cycles;
13965 #undef FLD
13966 }
13967
13968 UINT
13969 sh5_compact_sh5_media_model::model_movl4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13970 {
13971 #define FLD(f) abuf->fields.sfmt_movl4_compact.f
13972   const sh5_compact_scache* abuf = sem;
13973   const sh5_compact_idesc* idesc = abuf->idesc;
13974   int cycles = 0;
13975   {
13976     cycles += model_u_exec_before (current_cpu, idesc, 0);
13977   }
13978   return cycles;
13979 #undef FLD
13980 }
13981
13982 UINT
13983 sh5_compact_sh5_media_model::model_movl4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
13984 {
13985 #define FLD(f) abuf->fields.sfmt_movl4_compact.f
13986   const sh5_compact_scache* abuf = sem;
13987   const sh5_compact_idesc* idesc = abuf->idesc;
13988   int cycles = 0;
13989   {
13990     int referenced = 0;
13991     unsigned long long insn_referenced = abuf->written;
13992     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
13993   }
13994   return cycles;
13995 #undef FLD
13996 }
13997
13998 UINT
13999 sh5_compact_sh5_media_model::model_movl5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14000 {
14001 #define FLD(f) abuf->fields.sfmt_movl5_compact.f
14002   const sh5_compact_scache* abuf = sem;
14003   const sh5_compact_idesc* idesc = abuf->idesc;
14004   int cycles = 0;
14005   {
14006     cycles += model_u_exec_before (current_cpu, idesc, 0);
14007   }
14008   return cycles;
14009 #undef FLD
14010 }
14011
14012 UINT
14013 sh5_compact_sh5_media_model::model_movl5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14014 {
14015 #define FLD(f) abuf->fields.sfmt_movl5_compact.f
14016   const sh5_compact_scache* abuf = sem;
14017   const sh5_compact_idesc* idesc = abuf->idesc;
14018   int cycles = 0;
14019   {
14020     int referenced = 0;
14021     unsigned long long insn_referenced = abuf->written;
14022     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14023   }
14024   return cycles;
14025 #undef FLD
14026 }
14027
14028 UINT
14029 sh5_compact_sh5_media_model::model_movl6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14030 {
14031 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14032   const sh5_compact_scache* abuf = sem;
14033   const sh5_compact_idesc* idesc = abuf->idesc;
14034   int cycles = 0;
14035   {
14036     cycles += model_u_exec_before (current_cpu, idesc, 0);
14037   }
14038   return cycles;
14039 #undef FLD
14040 }
14041
14042 UINT
14043 sh5_compact_sh5_media_model::model_movl6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14044 {
14045 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14046   const sh5_compact_scache* abuf = sem;
14047   const sh5_compact_idesc* idesc = abuf->idesc;
14048   int cycles = 0;
14049   {
14050     int referenced = 0;
14051     unsigned long long insn_referenced = abuf->written;
14052     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14053   }
14054   return cycles;
14055 #undef FLD
14056 }
14057
14058 UINT
14059 sh5_compact_sh5_media_model::model_movl7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14060 {
14061 #define FLD(f) abuf->fields.sfmt_macl_compact.f
14062   const sh5_compact_scache* abuf = sem;
14063   const sh5_compact_idesc* idesc = abuf->idesc;
14064   int cycles = 0;
14065   {
14066     cycles += model_u_exec_before (current_cpu, idesc, 0);
14067   }
14068   return cycles;
14069 #undef FLD
14070 }
14071
14072 UINT
14073 sh5_compact_sh5_media_model::model_movl7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14074 {
14075 #define FLD(f) abuf->fields.sfmt_macl_compact.f
14076   const sh5_compact_scache* abuf = sem;
14077   const sh5_compact_idesc* idesc = abuf->idesc;
14078   int cycles = 0;
14079   {
14080     int referenced = 0;
14081     unsigned long long insn_referenced = abuf->written;
14082     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14083   }
14084   return cycles;
14085 #undef FLD
14086 }
14087
14088 UINT
14089 sh5_compact_sh5_media_model::model_movl8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14090 {
14091 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
14092   const sh5_compact_scache* abuf = sem;
14093   const sh5_compact_idesc* idesc = abuf->idesc;
14094   int cycles = 0;
14095   {
14096     cycles += model_u_exec_before (current_cpu, idesc, 0);
14097   }
14098   return cycles;
14099 #undef FLD
14100 }
14101
14102 UINT
14103 sh5_compact_sh5_media_model::model_movl8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14104 {
14105 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
14106   const sh5_compact_scache* abuf = sem;
14107   const sh5_compact_idesc* idesc = abuf->idesc;
14108   int cycles = 0;
14109   {
14110     int referenced = 0;
14111     unsigned long long insn_referenced = abuf->written;
14112     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14113   }
14114   return cycles;
14115 #undef FLD
14116 }
14117
14118 UINT
14119 sh5_compact_sh5_media_model::model_movl9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14120 {
14121 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
14122   const sh5_compact_scache* abuf = sem;
14123   const sh5_compact_idesc* idesc = abuf->idesc;
14124   int cycles = 0;
14125   {
14126     cycles += model_u_exec_before (current_cpu, idesc, 0);
14127   }
14128   return cycles;
14129 #undef FLD
14130 }
14131
14132 UINT
14133 sh5_compact_sh5_media_model::model_movl9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14134 {
14135 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
14136   const sh5_compact_scache* abuf = sem;
14137   const sh5_compact_idesc* idesc = abuf->idesc;
14138   int cycles = 0;
14139   {
14140     int referenced = 0;
14141     unsigned long long insn_referenced = abuf->written;
14142     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14143   }
14144   return cycles;
14145 #undef FLD
14146 }
14147
14148 UINT
14149 sh5_compact_sh5_media_model::model_movl10_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14150 {
14151 #define FLD(f) abuf->fields.sfmt_movl10_compact.f
14152   const sh5_compact_scache* abuf = sem;
14153   const sh5_compact_idesc* idesc = abuf->idesc;
14154   int cycles = 0;
14155   {
14156     cycles += model_u_exec_before (current_cpu, idesc, 0);
14157   }
14158   return cycles;
14159 #undef FLD
14160 }
14161
14162 UINT
14163 sh5_compact_sh5_media_model::model_movl10_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14164 {
14165 #define FLD(f) abuf->fields.sfmt_movl10_compact.f
14166   const sh5_compact_scache* abuf = sem;
14167   const sh5_compact_idesc* idesc = abuf->idesc;
14168   int cycles = 0;
14169   {
14170     int referenced = 0;
14171     unsigned long long insn_referenced = abuf->written;
14172     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14173   }
14174   return cycles;
14175 #undef FLD
14176 }
14177
14178 UINT
14179 sh5_compact_sh5_media_model::model_movl11_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14180 {
14181 #define FLD(f) abuf->fields.sfmt_movl11_compact.f
14182   const sh5_compact_scache* abuf = sem;
14183   const sh5_compact_idesc* idesc = abuf->idesc;
14184   int cycles = 0;
14185   {
14186     cycles += model_u_exec_before (current_cpu, idesc, 0);
14187   }
14188   return cycles;
14189 #undef FLD
14190 }
14191
14192 UINT
14193 sh5_compact_sh5_media_model::model_movl11_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14194 {
14195 #define FLD(f) abuf->fields.sfmt_movl11_compact.f
14196   const sh5_compact_scache* abuf = sem;
14197   const sh5_compact_idesc* idesc = abuf->idesc;
14198   int cycles = 0;
14199   {
14200     int referenced = 0;
14201     unsigned long long insn_referenced = abuf->written;
14202     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14203   }
14204   return cycles;
14205 #undef FLD
14206 }
14207
14208 UINT
14209 sh5_compact_sh5_media_model::model_movl12_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14210 {
14211 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14212   const sh5_compact_scache* abuf = sem;
14213   const sh5_compact_idesc* idesc = abuf->idesc;
14214   int cycles = 0;
14215   {
14216     cycles += model_u_exec_before (current_cpu, idesc, 0);
14217   }
14218   return cycles;
14219 #undef FLD
14220 }
14221
14222 UINT
14223 sh5_compact_sh5_media_model::model_movl12_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14224 {
14225 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14226   const sh5_compact_scache* abuf = sem;
14227   const sh5_compact_idesc* idesc = abuf->idesc;
14228   int cycles = 0;
14229   {
14230     int referenced = 0;
14231     unsigned long long insn_referenced = abuf->written;
14232     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14233   }
14234   return cycles;
14235 #undef FLD
14236 }
14237
14238 UINT
14239 sh5_compact_sh5_media_model::model_movl13_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14240 {
14241 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14242   const sh5_compact_scache* abuf = sem;
14243   const sh5_compact_idesc* idesc = abuf->idesc;
14244   int cycles = 0;
14245   {
14246     cycles += model_u_exec_before (current_cpu, idesc, 0);
14247   }
14248   return cycles;
14249 #undef FLD
14250 }
14251
14252 UINT
14253 sh5_compact_sh5_media_model::model_movl13_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14254 {
14255 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14256   const sh5_compact_scache* abuf = sem;
14257   const sh5_compact_idesc* idesc = abuf->idesc;
14258   int cycles = 0;
14259   {
14260     int referenced = 0;
14261     unsigned long long insn_referenced = abuf->written;
14262     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14263   }
14264   return cycles;
14265 #undef FLD
14266 }
14267
14268 UINT
14269 sh5_compact_sh5_media_model::model_movw1_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14270 {
14271 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14272   const sh5_compact_scache* abuf = sem;
14273   const sh5_compact_idesc* idesc = abuf->idesc;
14274   int cycles = 0;
14275   {
14276     cycles += model_u_exec_before (current_cpu, idesc, 0);
14277   }
14278   return cycles;
14279 #undef FLD
14280 }
14281
14282 UINT
14283 sh5_compact_sh5_media_model::model_movw1_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14284 {
14285 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14286   const sh5_compact_scache* abuf = sem;
14287   const sh5_compact_idesc* idesc = abuf->idesc;
14288   int cycles = 0;
14289   {
14290     int referenced = 0;
14291     unsigned long long insn_referenced = abuf->written;
14292     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14293   }
14294   return cycles;
14295 #undef FLD
14296 }
14297
14298 UINT
14299 sh5_compact_sh5_media_model::model_movw2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14300 {
14301 #define FLD(f) abuf->fields.sfmt_macl_compact.f
14302   const sh5_compact_scache* abuf = sem;
14303   const sh5_compact_idesc* idesc = abuf->idesc;
14304   int cycles = 0;
14305   {
14306     cycles += model_u_exec_before (current_cpu, idesc, 0);
14307   }
14308   return cycles;
14309 #undef FLD
14310 }
14311
14312 UINT
14313 sh5_compact_sh5_media_model::model_movw2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14314 {
14315 #define FLD(f) abuf->fields.sfmt_macl_compact.f
14316   const sh5_compact_scache* abuf = sem;
14317   const sh5_compact_idesc* idesc = abuf->idesc;
14318   int cycles = 0;
14319   {
14320     int referenced = 0;
14321     unsigned long long insn_referenced = abuf->written;
14322     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14323   }
14324   return cycles;
14325 #undef FLD
14326 }
14327
14328 UINT
14329 sh5_compact_sh5_media_model::model_movw3_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14330 {
14331 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
14332   const sh5_compact_scache* abuf = sem;
14333   const sh5_compact_idesc* idesc = abuf->idesc;
14334   int cycles = 0;
14335   {
14336     cycles += model_u_exec_before (current_cpu, idesc, 0);
14337   }
14338   return cycles;
14339 #undef FLD
14340 }
14341
14342 UINT
14343 sh5_compact_sh5_media_model::model_movw3_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14344 {
14345 #define FLD(f) abuf->fields.sfmt_movb3_compact.f
14346   const sh5_compact_scache* abuf = sem;
14347   const sh5_compact_idesc* idesc = abuf->idesc;
14348   int cycles = 0;
14349   {
14350     int referenced = 0;
14351     unsigned long long insn_referenced = abuf->written;
14352     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14353   }
14354   return cycles;
14355 #undef FLD
14356 }
14357
14358 UINT
14359 sh5_compact_sh5_media_model::model_movw4_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14360 {
14361 #define FLD(f) abuf->fields.sfmt_movw4_compact.f
14362   const sh5_compact_scache* abuf = sem;
14363   const sh5_compact_idesc* idesc = abuf->idesc;
14364   int cycles = 0;
14365   {
14366     cycles += model_u_exec_before (current_cpu, idesc, 0);
14367   }
14368   return cycles;
14369 #undef FLD
14370 }
14371
14372 UINT
14373 sh5_compact_sh5_media_model::model_movw4_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14374 {
14375 #define FLD(f) abuf->fields.sfmt_movw4_compact.f
14376   const sh5_compact_scache* abuf = sem;
14377   const sh5_compact_idesc* idesc = abuf->idesc;
14378   int cycles = 0;
14379   {
14380     int referenced = 0;
14381     unsigned long long insn_referenced = abuf->written;
14382     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14383   }
14384   return cycles;
14385 #undef FLD
14386 }
14387
14388 UINT
14389 sh5_compact_sh5_media_model::model_movw5_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14390 {
14391 #define FLD(f) abuf->fields.sfmt_movw5_compact.f
14392   const sh5_compact_scache* abuf = sem;
14393   const sh5_compact_idesc* idesc = abuf->idesc;
14394   int cycles = 0;
14395   {
14396     cycles += model_u_exec_before (current_cpu, idesc, 0);
14397   }
14398   return cycles;
14399 #undef FLD
14400 }
14401
14402 UINT
14403 sh5_compact_sh5_media_model::model_movw5_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14404 {
14405 #define FLD(f) abuf->fields.sfmt_movw5_compact.f
14406   const sh5_compact_scache* abuf = sem;
14407   const sh5_compact_idesc* idesc = abuf->idesc;
14408   int cycles = 0;
14409   {
14410     int referenced = 0;
14411     unsigned long long insn_referenced = abuf->written;
14412     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14413   }
14414   return cycles;
14415 #undef FLD
14416 }
14417
14418 UINT
14419 sh5_compact_sh5_media_model::model_movw6_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14420 {
14421 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14422   const sh5_compact_scache* abuf = sem;
14423   const sh5_compact_idesc* idesc = abuf->idesc;
14424   int cycles = 0;
14425   {
14426     cycles += model_u_exec_before (current_cpu, idesc, 0);
14427   }
14428   return cycles;
14429 #undef FLD
14430 }
14431
14432 UINT
14433 sh5_compact_sh5_media_model::model_movw6_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14434 {
14435 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14436   const sh5_compact_scache* abuf = sem;
14437   const sh5_compact_idesc* idesc = abuf->idesc;
14438   int cycles = 0;
14439   {
14440     int referenced = 0;
14441     unsigned long long insn_referenced = abuf->written;
14442     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14443   }
14444   return cycles;
14445 #undef FLD
14446 }
14447
14448 UINT
14449 sh5_compact_sh5_media_model::model_movw7_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14450 {
14451 #define FLD(f) abuf->fields.sfmt_macl_compact.f
14452   const sh5_compact_scache* abuf = sem;
14453   const sh5_compact_idesc* idesc = abuf->idesc;
14454   int cycles = 0;
14455   {
14456     cycles += model_u_exec_before (current_cpu, idesc, 0);
14457   }
14458   return cycles;
14459 #undef FLD
14460 }
14461
14462 UINT
14463 sh5_compact_sh5_media_model::model_movw7_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14464 {
14465 #define FLD(f) abuf->fields.sfmt_macl_compact.f
14466   const sh5_compact_scache* abuf = sem;
14467   const sh5_compact_idesc* idesc = abuf->idesc;
14468   int cycles = 0;
14469   {
14470     int referenced = 0;
14471     unsigned long long insn_referenced = abuf->written;
14472     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14473   }
14474   return cycles;
14475 #undef FLD
14476 }
14477
14478 UINT
14479 sh5_compact_sh5_media_model::model_movw8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14480 {
14481 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
14482   const sh5_compact_scache* abuf = sem;
14483   const sh5_compact_idesc* idesc = abuf->idesc;
14484   int cycles = 0;
14485   {
14486     cycles += model_u_exec_before (current_cpu, idesc, 0);
14487   }
14488   return cycles;
14489 #undef FLD
14490 }
14491
14492 UINT
14493 sh5_compact_sh5_media_model::model_movw8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14494 {
14495 #define FLD(f) abuf->fields.sfmt_movb8_compact.f
14496   const sh5_compact_scache* abuf = sem;
14497   const sh5_compact_idesc* idesc = abuf->idesc;
14498   int cycles = 0;
14499   {
14500     int referenced = 0;
14501     unsigned long long insn_referenced = abuf->written;
14502     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14503   }
14504   return cycles;
14505 #undef FLD
14506 }
14507
14508 UINT
14509 sh5_compact_sh5_media_model::model_movw9_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14510 {
14511 #define FLD(f) abuf->fields.sfmt_movw9_compact.f
14512   const sh5_compact_scache* abuf = sem;
14513   const sh5_compact_idesc* idesc = abuf->idesc;
14514   int cycles = 0;
14515   {
14516     cycles += model_u_exec_before (current_cpu, idesc, 0);
14517   }
14518   return cycles;
14519 #undef FLD
14520 }
14521
14522 UINT
14523 sh5_compact_sh5_media_model::model_movw9_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14524 {
14525 #define FLD(f) abuf->fields.sfmt_movw9_compact.f
14526   const sh5_compact_scache* abuf = sem;
14527   const sh5_compact_idesc* idesc = abuf->idesc;
14528   int cycles = 0;
14529   {
14530     int referenced = 0;
14531     unsigned long long insn_referenced = abuf->written;
14532     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14533   }
14534   return cycles;
14535 #undef FLD
14536 }
14537
14538 UINT
14539 sh5_compact_sh5_media_model::model_movw10_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14540 {
14541 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
14542   const sh5_compact_scache* abuf = sem;
14543   const sh5_compact_idesc* idesc = abuf->idesc;
14544   int cycles = 0;
14545   {
14546     cycles += model_u_exec_before (current_cpu, idesc, 0);
14547   }
14548   return cycles;
14549 #undef FLD
14550 }
14551
14552 UINT
14553 sh5_compact_sh5_media_model::model_movw10_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14554 {
14555 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
14556   const sh5_compact_scache* abuf = sem;
14557   const sh5_compact_idesc* idesc = abuf->idesc;
14558   int cycles = 0;
14559   {
14560     int referenced = 0;
14561     unsigned long long insn_referenced = abuf->written;
14562     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14563   }
14564   return cycles;
14565 #undef FLD
14566 }
14567
14568 UINT
14569 sh5_compact_sh5_media_model::model_movw11_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14570 {
14571 #define FLD(f) abuf->fields.sfmt_movw11_compact.f
14572   const sh5_compact_scache* abuf = sem;
14573   const sh5_compact_idesc* idesc = abuf->idesc;
14574   int cycles = 0;
14575   {
14576     cycles += model_u_exec_before (current_cpu, idesc, 0);
14577   }
14578   return cycles;
14579 #undef FLD
14580 }
14581
14582 UINT
14583 sh5_compact_sh5_media_model::model_movw11_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14584 {
14585 #define FLD(f) abuf->fields.sfmt_movw11_compact.f
14586   const sh5_compact_scache* abuf = sem;
14587   const sh5_compact_idesc* idesc = abuf->idesc;
14588   int cycles = 0;
14589   {
14590     int referenced = 0;
14591     unsigned long long insn_referenced = abuf->written;
14592     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14593   }
14594   return cycles;
14595 #undef FLD
14596 }
14597
14598 UINT
14599 sh5_compact_sh5_media_model::model_mova_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14600 {
14601 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
14602   const sh5_compact_scache* abuf = sem;
14603   const sh5_compact_idesc* idesc = abuf->idesc;
14604   int cycles = 0;
14605   {
14606     cycles += model_u_exec_before (current_cpu, idesc, 0);
14607   }
14608   return cycles;
14609 #undef FLD
14610 }
14611
14612 UINT
14613 sh5_compact_sh5_media_model::model_mova_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14614 {
14615 #define FLD(f) abuf->fields.sfmt_movl9_compact.f
14616   const sh5_compact_scache* abuf = sem;
14617   const sh5_compact_idesc* idesc = abuf->idesc;
14618   int cycles = 0;
14619   {
14620     int referenced = 0;
14621     unsigned long long insn_referenced = abuf->written;
14622     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14623   }
14624   return cycles;
14625 #undef FLD
14626 }
14627
14628 UINT
14629 sh5_compact_sh5_media_model::model_movcal_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14630 {
14631 #define FLD(f) abuf->fields.sfmt_divu_compact.f
14632   const sh5_compact_scache* abuf = sem;
14633   const sh5_compact_idesc* idesc = abuf->idesc;
14634   int cycles = 0;
14635   {
14636     cycles += model_u_exec_before (current_cpu, idesc, 0);
14637   }
14638   return cycles;
14639 #undef FLD
14640 }
14641
14642 UINT
14643 sh5_compact_sh5_media_model::model_movcal_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14644 {
14645 #define FLD(f) abuf->fields.sfmt_divu_compact.f
14646   const sh5_compact_scache* abuf = sem;
14647   const sh5_compact_idesc* idesc = abuf->idesc;
14648   int cycles = 0;
14649   {
14650     int referenced = 0;
14651     unsigned long long insn_referenced = abuf->written;
14652     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14653   }
14654   return cycles;
14655 #undef FLD
14656 }
14657
14658 UINT
14659 sh5_compact_sh5_media_model::model_movcol_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14660 {
14661 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
14662   const sh5_compact_scache* abuf = sem;
14663   const sh5_compact_idesc* idesc = abuf->idesc;
14664   int cycles = 0;
14665   {
14666     cycles += model_u_exec_before (current_cpu, idesc, 0);
14667   }
14668   return cycles;
14669 #undef FLD
14670 }
14671
14672 UINT
14673 sh5_compact_sh5_media_model::model_movcol_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14674 {
14675 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
14676   const sh5_compact_scache* abuf = sem;
14677   const sh5_compact_idesc* idesc = abuf->idesc;
14678   int cycles = 0;
14679   {
14680     int referenced = 0;
14681     unsigned long long insn_referenced = abuf->written;
14682     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14683   }
14684   return cycles;
14685 #undef FLD
14686 }
14687
14688 UINT
14689 sh5_compact_sh5_media_model::model_movt_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14690 {
14691 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
14692   const sh5_compact_scache* abuf = sem;
14693   const sh5_compact_idesc* idesc = abuf->idesc;
14694   int cycles = 0;
14695   {
14696     cycles += model_u_exec_before (current_cpu, idesc, 0);
14697   }
14698   return cycles;
14699 #undef FLD
14700 }
14701
14702 UINT
14703 sh5_compact_sh5_media_model::model_movt_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14704 {
14705 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
14706   const sh5_compact_scache* abuf = sem;
14707   const sh5_compact_idesc* idesc = abuf->idesc;
14708   int cycles = 0;
14709   {
14710     int referenced = 0;
14711     unsigned long long insn_referenced = abuf->written;
14712     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14713   }
14714   return cycles;
14715 #undef FLD
14716 }
14717
14718 UINT
14719 sh5_compact_sh5_media_model::model_movual_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14720 {
14721 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
14722   const sh5_compact_scache* abuf = sem;
14723   const sh5_compact_idesc* idesc = abuf->idesc;
14724   int cycles = 0;
14725   {
14726     cycles += model_u_exec_before (current_cpu, idesc, 0);
14727   }
14728   return cycles;
14729 #undef FLD
14730 }
14731
14732 UINT
14733 sh5_compact_sh5_media_model::model_movual_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14734 {
14735 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
14736   const sh5_compact_scache* abuf = sem;
14737   const sh5_compact_idesc* idesc = abuf->idesc;
14738   int cycles = 0;
14739   {
14740     int referenced = 0;
14741     unsigned long long insn_referenced = abuf->written;
14742     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14743   }
14744   return cycles;
14745 #undef FLD
14746 }
14747
14748 UINT
14749 sh5_compact_sh5_media_model::model_movual2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14750 {
14751 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
14752   const sh5_compact_scache* abuf = sem;
14753   const sh5_compact_idesc* idesc = abuf->idesc;
14754   int cycles = 0;
14755   {
14756     cycles += model_u_exec_before (current_cpu, idesc, 0);
14757   }
14758   return cycles;
14759 #undef FLD
14760 }
14761
14762 UINT
14763 sh5_compact_sh5_media_model::model_movual2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14764 {
14765 #define FLD(f) abuf->fields.sfmt_movual2_compact.f
14766   const sh5_compact_scache* abuf = sem;
14767   const sh5_compact_idesc* idesc = abuf->idesc;
14768   int cycles = 0;
14769   {
14770     int referenced = 0;
14771     unsigned long long insn_referenced = abuf->written;
14772     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14773   }
14774   return cycles;
14775 #undef FLD
14776 }
14777
14778 UINT
14779 sh5_compact_sh5_media_model::model_mull_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14780 {
14781 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14782   const sh5_compact_scache* abuf = sem;
14783   const sh5_compact_idesc* idesc = abuf->idesc;
14784   int cycles = 0;
14785   {
14786     cycles += model_u_exec_before (current_cpu, idesc, 0);
14787   }
14788   return cycles;
14789 #undef FLD
14790 }
14791
14792 UINT
14793 sh5_compact_sh5_media_model::model_mull_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14794 {
14795 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14796   const sh5_compact_scache* abuf = sem;
14797   const sh5_compact_idesc* idesc = abuf->idesc;
14798   int cycles = 0;
14799   {
14800     int referenced = 0;
14801     unsigned long long insn_referenced = abuf->written;
14802     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14803   }
14804   return cycles;
14805 #undef FLD
14806 }
14807
14808 UINT
14809 sh5_compact_sh5_media_model::model_mulsw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14810 {
14811 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14812   const sh5_compact_scache* abuf = sem;
14813   const sh5_compact_idesc* idesc = abuf->idesc;
14814   int cycles = 0;
14815   {
14816     cycles += model_u_exec_before (current_cpu, idesc, 0);
14817   }
14818   return cycles;
14819 #undef FLD
14820 }
14821
14822 UINT
14823 sh5_compact_sh5_media_model::model_mulsw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14824 {
14825 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14826   const sh5_compact_scache* abuf = sem;
14827   const sh5_compact_idesc* idesc = abuf->idesc;
14828   int cycles = 0;
14829   {
14830     int referenced = 0;
14831     unsigned long long insn_referenced = abuf->written;
14832     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14833   }
14834   return cycles;
14835 #undef FLD
14836 }
14837
14838 UINT
14839 sh5_compact_sh5_media_model::model_muluw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14840 {
14841 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14842   const sh5_compact_scache* abuf = sem;
14843   const sh5_compact_idesc* idesc = abuf->idesc;
14844   int cycles = 0;
14845   {
14846     cycles += model_u_exec_before (current_cpu, idesc, 0);
14847   }
14848   return cycles;
14849 #undef FLD
14850 }
14851
14852 UINT
14853 sh5_compact_sh5_media_model::model_muluw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14854 {
14855 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
14856   const sh5_compact_scache* abuf = sem;
14857   const sh5_compact_idesc* idesc = abuf->idesc;
14858   int cycles = 0;
14859   {
14860     int referenced = 0;
14861     unsigned long long insn_referenced = abuf->written;
14862     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14863   }
14864   return cycles;
14865 #undef FLD
14866 }
14867
14868 UINT
14869 sh5_compact_sh5_media_model::model_neg_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14870 {
14871 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14872   const sh5_compact_scache* abuf = sem;
14873   const sh5_compact_idesc* idesc = abuf->idesc;
14874   int cycles = 0;
14875   {
14876     cycles += model_u_exec_before (current_cpu, idesc, 0);
14877   }
14878   return cycles;
14879 #undef FLD
14880 }
14881
14882 UINT
14883 sh5_compact_sh5_media_model::model_neg_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14884 {
14885 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14886   const sh5_compact_scache* abuf = sem;
14887   const sh5_compact_idesc* idesc = abuf->idesc;
14888   int cycles = 0;
14889   {
14890     int referenced = 0;
14891     unsigned long long insn_referenced = abuf->written;
14892     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14893   }
14894   return cycles;
14895 #undef FLD
14896 }
14897
14898 UINT
14899 sh5_compact_sh5_media_model::model_negc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14900 {
14901 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14902   const sh5_compact_scache* abuf = sem;
14903   const sh5_compact_idesc* idesc = abuf->idesc;
14904   int cycles = 0;
14905   {
14906     cycles += model_u_exec_before (current_cpu, idesc, 0);
14907   }
14908   return cycles;
14909 #undef FLD
14910 }
14911
14912 UINT
14913 sh5_compact_sh5_media_model::model_negc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14914 {
14915 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
14916   const sh5_compact_scache* abuf = sem;
14917   const sh5_compact_idesc* idesc = abuf->idesc;
14918   int cycles = 0;
14919   {
14920     int referenced = 0;
14921     unsigned long long insn_referenced = abuf->written;
14922     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14923   }
14924   return cycles;
14925 #undef FLD
14926 }
14927
14928 UINT
14929 sh5_compact_sh5_media_model::model_nop_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14930 {
14931 #define FLD(f) abuf->fields.fmt_empty.f
14932   const sh5_compact_scache* abuf = sem;
14933   const sh5_compact_idesc* idesc = abuf->idesc;
14934   int cycles = 0;
14935   {
14936     cycles += model_u_exec_before (current_cpu, idesc, 0);
14937   }
14938   return cycles;
14939 #undef FLD
14940 }
14941
14942 UINT
14943 sh5_compact_sh5_media_model::model_nop_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14944 {
14945 #define FLD(f) abuf->fields.fmt_empty.f
14946   const sh5_compact_scache* abuf = sem;
14947   const sh5_compact_idesc* idesc = abuf->idesc;
14948   int cycles = 0;
14949   {
14950     int referenced = 0;
14951     unsigned long long insn_referenced = abuf->written;
14952     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14953   }
14954   return cycles;
14955 #undef FLD
14956 }
14957
14958 UINT
14959 sh5_compact_sh5_media_model::model_not_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14960 {
14961 #define FLD(f) abuf->fields.sfmt_and_compact.f
14962   const sh5_compact_scache* abuf = sem;
14963   const sh5_compact_idesc* idesc = abuf->idesc;
14964   int cycles = 0;
14965   {
14966     cycles += model_u_exec_before (current_cpu, idesc, 0);
14967   }
14968   return cycles;
14969 #undef FLD
14970 }
14971
14972 UINT
14973 sh5_compact_sh5_media_model::model_not_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14974 {
14975 #define FLD(f) abuf->fields.sfmt_and_compact.f
14976   const sh5_compact_scache* abuf = sem;
14977   const sh5_compact_idesc* idesc = abuf->idesc;
14978   int cycles = 0;
14979   {
14980     int referenced = 0;
14981     unsigned long long insn_referenced = abuf->written;
14982     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
14983   }
14984   return cycles;
14985 #undef FLD
14986 }
14987
14988 UINT
14989 sh5_compact_sh5_media_model::model_ocbi_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
14990 {
14991 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
14992   const sh5_compact_scache* abuf = sem;
14993   const sh5_compact_idesc* idesc = abuf->idesc;
14994   int cycles = 0;
14995   {
14996     cycles += model_u_exec_before (current_cpu, idesc, 0);
14997   }
14998   return cycles;
14999 #undef FLD
15000 }
15001
15002 UINT
15003 sh5_compact_sh5_media_model::model_ocbi_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15004 {
15005 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15006   const sh5_compact_scache* abuf = sem;
15007   const sh5_compact_idesc* idesc = abuf->idesc;
15008   int cycles = 0;
15009   {
15010     int referenced = 0;
15011     unsigned long long insn_referenced = abuf->written;
15012     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15013   }
15014   return cycles;
15015 #undef FLD
15016 }
15017
15018 UINT
15019 sh5_compact_sh5_media_model::model_ocbp_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15020 {
15021 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15022   const sh5_compact_scache* abuf = sem;
15023   const sh5_compact_idesc* idesc = abuf->idesc;
15024   int cycles = 0;
15025   {
15026     cycles += model_u_exec_before (current_cpu, idesc, 0);
15027   }
15028   return cycles;
15029 #undef FLD
15030 }
15031
15032 UINT
15033 sh5_compact_sh5_media_model::model_ocbp_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15034 {
15035 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15036   const sh5_compact_scache* abuf = sem;
15037   const sh5_compact_idesc* idesc = abuf->idesc;
15038   int cycles = 0;
15039   {
15040     int referenced = 0;
15041     unsigned long long insn_referenced = abuf->written;
15042     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15043   }
15044   return cycles;
15045 #undef FLD
15046 }
15047
15048 UINT
15049 sh5_compact_sh5_media_model::model_ocbwb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15050 {
15051 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15052   const sh5_compact_scache* abuf = sem;
15053   const sh5_compact_idesc* idesc = abuf->idesc;
15054   int cycles = 0;
15055   {
15056     cycles += model_u_exec_before (current_cpu, idesc, 0);
15057   }
15058   return cycles;
15059 #undef FLD
15060 }
15061
15062 UINT
15063 sh5_compact_sh5_media_model::model_ocbwb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15064 {
15065 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15066   const sh5_compact_scache* abuf = sem;
15067   const sh5_compact_idesc* idesc = abuf->idesc;
15068   int cycles = 0;
15069   {
15070     int referenced = 0;
15071     unsigned long long insn_referenced = abuf->written;
15072     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15073   }
15074   return cycles;
15075 #undef FLD
15076 }
15077
15078 UINT
15079 sh5_compact_sh5_media_model::model_or_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15080 {
15081 #define FLD(f) abuf->fields.sfmt_and_compact.f
15082   const sh5_compact_scache* abuf = sem;
15083   const sh5_compact_idesc* idesc = abuf->idesc;
15084   int cycles = 0;
15085   {
15086     cycles += model_u_exec_before (current_cpu, idesc, 0);
15087   }
15088   return cycles;
15089 #undef FLD
15090 }
15091
15092 UINT
15093 sh5_compact_sh5_media_model::model_or_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15094 {
15095 #define FLD(f) abuf->fields.sfmt_and_compact.f
15096   const sh5_compact_scache* abuf = sem;
15097   const sh5_compact_idesc* idesc = abuf->idesc;
15098   int cycles = 0;
15099   {
15100     int referenced = 0;
15101     unsigned long long insn_referenced = abuf->written;
15102     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15103   }
15104   return cycles;
15105 #undef FLD
15106 }
15107
15108 UINT
15109 sh5_compact_sh5_media_model::model_ori_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15110 {
15111 #define FLD(f) abuf->fields.sfmt_andi_compact.f
15112   const sh5_compact_scache* abuf = sem;
15113   const sh5_compact_idesc* idesc = abuf->idesc;
15114   int cycles = 0;
15115   {
15116     cycles += model_u_exec_before (current_cpu, idesc, 0);
15117   }
15118   return cycles;
15119 #undef FLD
15120 }
15121
15122 UINT
15123 sh5_compact_sh5_media_model::model_ori_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15124 {
15125 #define FLD(f) abuf->fields.sfmt_andi_compact.f
15126   const sh5_compact_scache* abuf = sem;
15127   const sh5_compact_idesc* idesc = abuf->idesc;
15128   int cycles = 0;
15129   {
15130     int referenced = 0;
15131     unsigned long long insn_referenced = abuf->written;
15132     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15133   }
15134   return cycles;
15135 #undef FLD
15136 }
15137
15138 UINT
15139 sh5_compact_sh5_media_model::model_orb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15140 {
15141 #define FLD(f) abuf->fields.sfmt_andi_compact.f
15142   const sh5_compact_scache* abuf = sem;
15143   const sh5_compact_idesc* idesc = abuf->idesc;
15144   int cycles = 0;
15145   {
15146     cycles += model_u_exec_before (current_cpu, idesc, 0);
15147   }
15148   return cycles;
15149 #undef FLD
15150 }
15151
15152 UINT
15153 sh5_compact_sh5_media_model::model_orb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15154 {
15155 #define FLD(f) abuf->fields.sfmt_andi_compact.f
15156   const sh5_compact_scache* abuf = sem;
15157   const sh5_compact_idesc* idesc = abuf->idesc;
15158   int cycles = 0;
15159   {
15160     int referenced = 0;
15161     unsigned long long insn_referenced = abuf->written;
15162     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15163   }
15164   return cycles;
15165 #undef FLD
15166 }
15167
15168 UINT
15169 sh5_compact_sh5_media_model::model_pref_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15170 {
15171 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15172   const sh5_compact_scache* abuf = sem;
15173   const sh5_compact_idesc* idesc = abuf->idesc;
15174   int cycles = 0;
15175   {
15176     cycles += model_u_exec_before (current_cpu, idesc, 0);
15177   }
15178   return cycles;
15179 #undef FLD
15180 }
15181
15182 UINT
15183 sh5_compact_sh5_media_model::model_pref_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15184 {
15185 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15186   const sh5_compact_scache* abuf = sem;
15187   const sh5_compact_idesc* idesc = abuf->idesc;
15188   int cycles = 0;
15189   {
15190     int referenced = 0;
15191     unsigned long long insn_referenced = abuf->written;
15192     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15193   }
15194   return cycles;
15195 #undef FLD
15196 }
15197
15198 UINT
15199 sh5_compact_sh5_media_model::model_rotcl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15200 {
15201 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15202   const sh5_compact_scache* abuf = sem;
15203   const sh5_compact_idesc* idesc = abuf->idesc;
15204   int cycles = 0;
15205   {
15206     cycles += model_u_exec_before (current_cpu, idesc, 0);
15207   }
15208   return cycles;
15209 #undef FLD
15210 }
15211
15212 UINT
15213 sh5_compact_sh5_media_model::model_rotcl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15214 {
15215 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15216   const sh5_compact_scache* abuf = sem;
15217   const sh5_compact_idesc* idesc = abuf->idesc;
15218   int cycles = 0;
15219   {
15220     int referenced = 0;
15221     unsigned long long insn_referenced = abuf->written;
15222     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15223   }
15224   return cycles;
15225 #undef FLD
15226 }
15227
15228 UINT
15229 sh5_compact_sh5_media_model::model_rotcr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15230 {
15231 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15232   const sh5_compact_scache* abuf = sem;
15233   const sh5_compact_idesc* idesc = abuf->idesc;
15234   int cycles = 0;
15235   {
15236     cycles += model_u_exec_before (current_cpu, idesc, 0);
15237   }
15238   return cycles;
15239 #undef FLD
15240 }
15241
15242 UINT
15243 sh5_compact_sh5_media_model::model_rotcr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15244 {
15245 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15246   const sh5_compact_scache* abuf = sem;
15247   const sh5_compact_idesc* idesc = abuf->idesc;
15248   int cycles = 0;
15249   {
15250     int referenced = 0;
15251     unsigned long long insn_referenced = abuf->written;
15252     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15253   }
15254   return cycles;
15255 #undef FLD
15256 }
15257
15258 UINT
15259 sh5_compact_sh5_media_model::model_rotl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15260 {
15261 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15262   const sh5_compact_scache* abuf = sem;
15263   const sh5_compact_idesc* idesc = abuf->idesc;
15264   int cycles = 0;
15265   {
15266     cycles += model_u_exec_before (current_cpu, idesc, 0);
15267   }
15268   return cycles;
15269 #undef FLD
15270 }
15271
15272 UINT
15273 sh5_compact_sh5_media_model::model_rotl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15274 {
15275 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15276   const sh5_compact_scache* abuf = sem;
15277   const sh5_compact_idesc* idesc = abuf->idesc;
15278   int cycles = 0;
15279   {
15280     int referenced = 0;
15281     unsigned long long insn_referenced = abuf->written;
15282     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15283   }
15284   return cycles;
15285 #undef FLD
15286 }
15287
15288 UINT
15289 sh5_compact_sh5_media_model::model_rotr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15290 {
15291 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15292   const sh5_compact_scache* abuf = sem;
15293   const sh5_compact_idesc* idesc = abuf->idesc;
15294   int cycles = 0;
15295   {
15296     cycles += model_u_exec_before (current_cpu, idesc, 0);
15297   }
15298   return cycles;
15299 #undef FLD
15300 }
15301
15302 UINT
15303 sh5_compact_sh5_media_model::model_rotr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15304 {
15305 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15306   const sh5_compact_scache* abuf = sem;
15307   const sh5_compact_idesc* idesc = abuf->idesc;
15308   int cycles = 0;
15309   {
15310     int referenced = 0;
15311     unsigned long long insn_referenced = abuf->written;
15312     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15313   }
15314   return cycles;
15315 #undef FLD
15316 }
15317
15318 UINT
15319 sh5_compact_sh5_media_model::model_rts_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15320 {
15321 #define FLD(f) abuf->fields.fmt_empty.f
15322   const sh5_compact_scache* abuf = sem;
15323   const sh5_compact_idesc* idesc = abuf->idesc;
15324   int cycles = 0;
15325   {
15326     cycles += model_u_exec_before (current_cpu, idesc, 0);
15327   }
15328   return cycles;
15329 #undef FLD
15330 }
15331
15332 UINT
15333 sh5_compact_sh5_media_model::model_rts_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15334 {
15335 #define FLD(f) abuf->fields.fmt_empty.f
15336   const sh5_compact_scache* abuf = sem;
15337   const sh5_compact_idesc* idesc = abuf->idesc;
15338   int cycles = 0;
15339   {
15340     int referenced = 0;
15341     unsigned long long insn_referenced = abuf->written;
15342     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15343   }
15344   return cycles;
15345 #undef FLD
15346 }
15347
15348 UINT
15349 sh5_compact_sh5_media_model::model_sets_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15350 {
15351 #define FLD(f) abuf->fields.fmt_empty.f
15352   const sh5_compact_scache* abuf = sem;
15353   const sh5_compact_idesc* idesc = abuf->idesc;
15354   int cycles = 0;
15355   {
15356     cycles += model_u_exec_before (current_cpu, idesc, 0);
15357   }
15358   return cycles;
15359 #undef FLD
15360 }
15361
15362 UINT
15363 sh5_compact_sh5_media_model::model_sets_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15364 {
15365 #define FLD(f) abuf->fields.fmt_empty.f
15366   const sh5_compact_scache* abuf = sem;
15367   const sh5_compact_idesc* idesc = abuf->idesc;
15368   int cycles = 0;
15369   {
15370     int referenced = 0;
15371     unsigned long long insn_referenced = abuf->written;
15372     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15373   }
15374   return cycles;
15375 #undef FLD
15376 }
15377
15378 UINT
15379 sh5_compact_sh5_media_model::model_sett_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15380 {
15381 #define FLD(f) abuf->fields.fmt_empty.f
15382   const sh5_compact_scache* abuf = sem;
15383   const sh5_compact_idesc* idesc = abuf->idesc;
15384   int cycles = 0;
15385   {
15386     cycles += model_u_exec_before (current_cpu, idesc, 0);
15387   }
15388   return cycles;
15389 #undef FLD
15390 }
15391
15392 UINT
15393 sh5_compact_sh5_media_model::model_sett_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15394 {
15395 #define FLD(f) abuf->fields.fmt_empty.f
15396   const sh5_compact_scache* abuf = sem;
15397   const sh5_compact_idesc* idesc = abuf->idesc;
15398   int cycles = 0;
15399   {
15400     int referenced = 0;
15401     unsigned long long insn_referenced = abuf->written;
15402     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15403   }
15404   return cycles;
15405 #undef FLD
15406 }
15407
15408 UINT
15409 sh5_compact_sh5_media_model::model_shad_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15410 {
15411 #define FLD(f) abuf->fields.sfmt_macl_compact.f
15412   const sh5_compact_scache* abuf = sem;
15413   const sh5_compact_idesc* idesc = abuf->idesc;
15414   int cycles = 0;
15415   {
15416     cycles += model_u_exec_before (current_cpu, idesc, 0);
15417   }
15418   return cycles;
15419 #undef FLD
15420 }
15421
15422 UINT
15423 sh5_compact_sh5_media_model::model_shad_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15424 {
15425 #define FLD(f) abuf->fields.sfmt_macl_compact.f
15426   const sh5_compact_scache* abuf = sem;
15427   const sh5_compact_idesc* idesc = abuf->idesc;
15428   int cycles = 0;
15429   {
15430     int referenced = 0;
15431     unsigned long long insn_referenced = abuf->written;
15432     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15433   }
15434   return cycles;
15435 #undef FLD
15436 }
15437
15438 UINT
15439 sh5_compact_sh5_media_model::model_shal_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15440 {
15441 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15442   const sh5_compact_scache* abuf = sem;
15443   const sh5_compact_idesc* idesc = abuf->idesc;
15444   int cycles = 0;
15445   {
15446     cycles += model_u_exec_before (current_cpu, idesc, 0);
15447   }
15448   return cycles;
15449 #undef FLD
15450 }
15451
15452 UINT
15453 sh5_compact_sh5_media_model::model_shal_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15454 {
15455 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15456   const sh5_compact_scache* abuf = sem;
15457   const sh5_compact_idesc* idesc = abuf->idesc;
15458   int cycles = 0;
15459   {
15460     int referenced = 0;
15461     unsigned long long insn_referenced = abuf->written;
15462     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15463   }
15464   return cycles;
15465 #undef FLD
15466 }
15467
15468 UINT
15469 sh5_compact_sh5_media_model::model_shar_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15470 {
15471 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15472   const sh5_compact_scache* abuf = sem;
15473   const sh5_compact_idesc* idesc = abuf->idesc;
15474   int cycles = 0;
15475   {
15476     cycles += model_u_exec_before (current_cpu, idesc, 0);
15477   }
15478   return cycles;
15479 #undef FLD
15480 }
15481
15482 UINT
15483 sh5_compact_sh5_media_model::model_shar_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15484 {
15485 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15486   const sh5_compact_scache* abuf = sem;
15487   const sh5_compact_idesc* idesc = abuf->idesc;
15488   int cycles = 0;
15489   {
15490     int referenced = 0;
15491     unsigned long long insn_referenced = abuf->written;
15492     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15493   }
15494   return cycles;
15495 #undef FLD
15496 }
15497
15498 UINT
15499 sh5_compact_sh5_media_model::model_shld_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15500 {
15501 #define FLD(f) abuf->fields.sfmt_macl_compact.f
15502   const sh5_compact_scache* abuf = sem;
15503   const sh5_compact_idesc* idesc = abuf->idesc;
15504   int cycles = 0;
15505   {
15506     cycles += model_u_exec_before (current_cpu, idesc, 0);
15507   }
15508   return cycles;
15509 #undef FLD
15510 }
15511
15512 UINT
15513 sh5_compact_sh5_media_model::model_shld_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15514 {
15515 #define FLD(f) abuf->fields.sfmt_macl_compact.f
15516   const sh5_compact_scache* abuf = sem;
15517   const sh5_compact_idesc* idesc = abuf->idesc;
15518   int cycles = 0;
15519   {
15520     int referenced = 0;
15521     unsigned long long insn_referenced = abuf->written;
15522     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15523   }
15524   return cycles;
15525 #undef FLD
15526 }
15527
15528 UINT
15529 sh5_compact_sh5_media_model::model_shll_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15530 {
15531 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15532   const sh5_compact_scache* abuf = sem;
15533   const sh5_compact_idesc* idesc = abuf->idesc;
15534   int cycles = 0;
15535   {
15536     cycles += model_u_exec_before (current_cpu, idesc, 0);
15537   }
15538   return cycles;
15539 #undef FLD
15540 }
15541
15542 UINT
15543 sh5_compact_sh5_media_model::model_shll_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15544 {
15545 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15546   const sh5_compact_scache* abuf = sem;
15547   const sh5_compact_idesc* idesc = abuf->idesc;
15548   int cycles = 0;
15549   {
15550     int referenced = 0;
15551     unsigned long long insn_referenced = abuf->written;
15552     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15553   }
15554   return cycles;
15555 #undef FLD
15556 }
15557
15558 UINT
15559 sh5_compact_sh5_media_model::model_shll2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15560 {
15561 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15562   const sh5_compact_scache* abuf = sem;
15563   const sh5_compact_idesc* idesc = abuf->idesc;
15564   int cycles = 0;
15565   {
15566     cycles += model_u_exec_before (current_cpu, idesc, 0);
15567   }
15568   return cycles;
15569 #undef FLD
15570 }
15571
15572 UINT
15573 sh5_compact_sh5_media_model::model_shll2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15574 {
15575 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15576   const sh5_compact_scache* abuf = sem;
15577   const sh5_compact_idesc* idesc = abuf->idesc;
15578   int cycles = 0;
15579   {
15580     int referenced = 0;
15581     unsigned long long insn_referenced = abuf->written;
15582     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15583   }
15584   return cycles;
15585 #undef FLD
15586 }
15587
15588 UINT
15589 sh5_compact_sh5_media_model::model_shll8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15590 {
15591 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15592   const sh5_compact_scache* abuf = sem;
15593   const sh5_compact_idesc* idesc = abuf->idesc;
15594   int cycles = 0;
15595   {
15596     cycles += model_u_exec_before (current_cpu, idesc, 0);
15597   }
15598   return cycles;
15599 #undef FLD
15600 }
15601
15602 UINT
15603 sh5_compact_sh5_media_model::model_shll8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15604 {
15605 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15606   const sh5_compact_scache* abuf = sem;
15607   const sh5_compact_idesc* idesc = abuf->idesc;
15608   int cycles = 0;
15609   {
15610     int referenced = 0;
15611     unsigned long long insn_referenced = abuf->written;
15612     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15613   }
15614   return cycles;
15615 #undef FLD
15616 }
15617
15618 UINT
15619 sh5_compact_sh5_media_model::model_shll16_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15620 {
15621 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15622   const sh5_compact_scache* abuf = sem;
15623   const sh5_compact_idesc* idesc = abuf->idesc;
15624   int cycles = 0;
15625   {
15626     cycles += model_u_exec_before (current_cpu, idesc, 0);
15627   }
15628   return cycles;
15629 #undef FLD
15630 }
15631
15632 UINT
15633 sh5_compact_sh5_media_model::model_shll16_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15634 {
15635 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15636   const sh5_compact_scache* abuf = sem;
15637   const sh5_compact_idesc* idesc = abuf->idesc;
15638   int cycles = 0;
15639   {
15640     int referenced = 0;
15641     unsigned long long insn_referenced = abuf->written;
15642     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15643   }
15644   return cycles;
15645 #undef FLD
15646 }
15647
15648 UINT
15649 sh5_compact_sh5_media_model::model_shlr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15650 {
15651 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15652   const sh5_compact_scache* abuf = sem;
15653   const sh5_compact_idesc* idesc = abuf->idesc;
15654   int cycles = 0;
15655   {
15656     cycles += model_u_exec_before (current_cpu, idesc, 0);
15657   }
15658   return cycles;
15659 #undef FLD
15660 }
15661
15662 UINT
15663 sh5_compact_sh5_media_model::model_shlr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15664 {
15665 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15666   const sh5_compact_scache* abuf = sem;
15667   const sh5_compact_idesc* idesc = abuf->idesc;
15668   int cycles = 0;
15669   {
15670     int referenced = 0;
15671     unsigned long long insn_referenced = abuf->written;
15672     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15673   }
15674   return cycles;
15675 #undef FLD
15676 }
15677
15678 UINT
15679 sh5_compact_sh5_media_model::model_shlr2_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15680 {
15681 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15682   const sh5_compact_scache* abuf = sem;
15683   const sh5_compact_idesc* idesc = abuf->idesc;
15684   int cycles = 0;
15685   {
15686     cycles += model_u_exec_before (current_cpu, idesc, 0);
15687   }
15688   return cycles;
15689 #undef FLD
15690 }
15691
15692 UINT
15693 sh5_compact_sh5_media_model::model_shlr2_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15694 {
15695 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15696   const sh5_compact_scache* abuf = sem;
15697   const sh5_compact_idesc* idesc = abuf->idesc;
15698   int cycles = 0;
15699   {
15700     int referenced = 0;
15701     unsigned long long insn_referenced = abuf->written;
15702     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15703   }
15704   return cycles;
15705 #undef FLD
15706 }
15707
15708 UINT
15709 sh5_compact_sh5_media_model::model_shlr8_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15710 {
15711 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15712   const sh5_compact_scache* abuf = sem;
15713   const sh5_compact_idesc* idesc = abuf->idesc;
15714   int cycles = 0;
15715   {
15716     cycles += model_u_exec_before (current_cpu, idesc, 0);
15717   }
15718   return cycles;
15719 #undef FLD
15720 }
15721
15722 UINT
15723 sh5_compact_sh5_media_model::model_shlr8_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15724 {
15725 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15726   const sh5_compact_scache* abuf = sem;
15727   const sh5_compact_idesc* idesc = abuf->idesc;
15728   int cycles = 0;
15729   {
15730     int referenced = 0;
15731     unsigned long long insn_referenced = abuf->written;
15732     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15733   }
15734   return cycles;
15735 #undef FLD
15736 }
15737
15738 UINT
15739 sh5_compact_sh5_media_model::model_shlr16_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15740 {
15741 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15742   const sh5_compact_scache* abuf = sem;
15743   const sh5_compact_idesc* idesc = abuf->idesc;
15744   int cycles = 0;
15745   {
15746     cycles += model_u_exec_before (current_cpu, idesc, 0);
15747   }
15748   return cycles;
15749 #undef FLD
15750 }
15751
15752 UINT
15753 sh5_compact_sh5_media_model::model_shlr16_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15754 {
15755 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15756   const sh5_compact_scache* abuf = sem;
15757   const sh5_compact_idesc* idesc = abuf->idesc;
15758   int cycles = 0;
15759   {
15760     int referenced = 0;
15761     unsigned long long insn_referenced = abuf->written;
15762     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15763   }
15764   return cycles;
15765 #undef FLD
15766 }
15767
15768 UINT
15769 sh5_compact_sh5_media_model::model_stc_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15770 {
15771 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
15772   const sh5_compact_scache* abuf = sem;
15773   const sh5_compact_idesc* idesc = abuf->idesc;
15774   int cycles = 0;
15775   {
15776     cycles += model_u_exec_before (current_cpu, idesc, 0);
15777   }
15778   return cycles;
15779 #undef FLD
15780 }
15781
15782 UINT
15783 sh5_compact_sh5_media_model::model_stc_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15784 {
15785 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
15786   const sh5_compact_scache* abuf = sem;
15787   const sh5_compact_idesc* idesc = abuf->idesc;
15788   int cycles = 0;
15789   {
15790     int referenced = 0;
15791     unsigned long long insn_referenced = abuf->written;
15792     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15793   }
15794   return cycles;
15795 #undef FLD
15796 }
15797
15798 UINT
15799 sh5_compact_sh5_media_model::model_stc_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15800 {
15801 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
15802   const sh5_compact_scache* abuf = sem;
15803   const sh5_compact_idesc* idesc = abuf->idesc;
15804   int cycles = 0;
15805   {
15806     cycles += model_u_exec_before (current_cpu, idesc, 0);
15807   }
15808   return cycles;
15809 #undef FLD
15810 }
15811
15812 UINT
15813 sh5_compact_sh5_media_model::model_stc_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15814 {
15815 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
15816   const sh5_compact_scache* abuf = sem;
15817   const sh5_compact_idesc* idesc = abuf->idesc;
15818   int cycles = 0;
15819   {
15820     int referenced = 0;
15821     unsigned long long insn_referenced = abuf->written;
15822     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15823   }
15824   return cycles;
15825 #undef FLD
15826 }
15827
15828 UINT
15829 sh5_compact_sh5_media_model::model_stcl_gbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15830 {
15831 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15832   const sh5_compact_scache* abuf = sem;
15833   const sh5_compact_idesc* idesc = abuf->idesc;
15834   int cycles = 0;
15835   {
15836     cycles += model_u_exec_before (current_cpu, idesc, 0);
15837   }
15838   return cycles;
15839 #undef FLD
15840 }
15841
15842 UINT
15843 sh5_compact_sh5_media_model::model_stcl_gbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15844 {
15845 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15846   const sh5_compact_scache* abuf = sem;
15847   const sh5_compact_idesc* idesc = abuf->idesc;
15848   int cycles = 0;
15849   {
15850     int referenced = 0;
15851     unsigned long long insn_referenced = abuf->written;
15852     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15853   }
15854   return cycles;
15855 #undef FLD
15856 }
15857
15858 UINT
15859 sh5_compact_sh5_media_model::model_stcl_vbr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15860 {
15861 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15862   const sh5_compact_scache* abuf = sem;
15863   const sh5_compact_idesc* idesc = abuf->idesc;
15864   int cycles = 0;
15865   {
15866     cycles += model_u_exec_before (current_cpu, idesc, 0);
15867   }
15868   return cycles;
15869 #undef FLD
15870 }
15871
15872 UINT
15873 sh5_compact_sh5_media_model::model_stcl_vbr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15874 {
15875 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15876   const sh5_compact_scache* abuf = sem;
15877   const sh5_compact_idesc* idesc = abuf->idesc;
15878   int cycles = 0;
15879   {
15880     int referenced = 0;
15881     unsigned long long insn_referenced = abuf->written;
15882     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15883   }
15884   return cycles;
15885 #undef FLD
15886 }
15887
15888 UINT
15889 sh5_compact_sh5_media_model::model_sts_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15890 {
15891 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
15892   const sh5_compact_scache* abuf = sem;
15893   const sh5_compact_idesc* idesc = abuf->idesc;
15894   int cycles = 0;
15895   {
15896     cycles += model_u_exec_before (current_cpu, idesc, 0);
15897   }
15898   return cycles;
15899 #undef FLD
15900 }
15901
15902 UINT
15903 sh5_compact_sh5_media_model::model_sts_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15904 {
15905 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
15906   const sh5_compact_scache* abuf = sem;
15907   const sh5_compact_idesc* idesc = abuf->idesc;
15908   int cycles = 0;
15909   {
15910     int referenced = 0;
15911     unsigned long long insn_referenced = abuf->written;
15912     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15913   }
15914   return cycles;
15915 #undef FLD
15916 }
15917
15918 UINT
15919 sh5_compact_sh5_media_model::model_stsl_fpscr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15920 {
15921 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15922   const sh5_compact_scache* abuf = sem;
15923   const sh5_compact_idesc* idesc = abuf->idesc;
15924   int cycles = 0;
15925   {
15926     cycles += model_u_exec_before (current_cpu, idesc, 0);
15927   }
15928   return cycles;
15929 #undef FLD
15930 }
15931
15932 UINT
15933 sh5_compact_sh5_media_model::model_stsl_fpscr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15934 {
15935 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15936   const sh5_compact_scache* abuf = sem;
15937   const sh5_compact_idesc* idesc = abuf->idesc;
15938   int cycles = 0;
15939   {
15940     int referenced = 0;
15941     unsigned long long insn_referenced = abuf->written;
15942     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15943   }
15944   return cycles;
15945 #undef FLD
15946 }
15947
15948 UINT
15949 sh5_compact_sh5_media_model::model_sts_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15950 {
15951 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15952   const sh5_compact_scache* abuf = sem;
15953   const sh5_compact_idesc* idesc = abuf->idesc;
15954   int cycles = 0;
15955   {
15956     cycles += model_u_exec_before (current_cpu, idesc, 0);
15957   }
15958   return cycles;
15959 #undef FLD
15960 }
15961
15962 UINT
15963 sh5_compact_sh5_media_model::model_sts_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15964 {
15965 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15966   const sh5_compact_scache* abuf = sem;
15967   const sh5_compact_idesc* idesc = abuf->idesc;
15968   int cycles = 0;
15969   {
15970     int referenced = 0;
15971     unsigned long long insn_referenced = abuf->written;
15972     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
15973   }
15974   return cycles;
15975 #undef FLD
15976 }
15977
15978 UINT
15979 sh5_compact_sh5_media_model::model_stsl_fpul_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15980 {
15981 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15982   const sh5_compact_scache* abuf = sem;
15983   const sh5_compact_idesc* idesc = abuf->idesc;
15984   int cycles = 0;
15985   {
15986     cycles += model_u_exec_before (current_cpu, idesc, 0);
15987   }
15988   return cycles;
15989 #undef FLD
15990 }
15991
15992 UINT
15993 sh5_compact_sh5_media_model::model_stsl_fpul_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
15994 {
15995 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
15996   const sh5_compact_scache* abuf = sem;
15997   const sh5_compact_idesc* idesc = abuf->idesc;
15998   int cycles = 0;
15999   {
16000     int referenced = 0;
16001     unsigned long long insn_referenced = abuf->written;
16002     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16003   }
16004   return cycles;
16005 #undef FLD
16006 }
16007
16008 UINT
16009 sh5_compact_sh5_media_model::model_sts_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16010 {
16011 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
16012   const sh5_compact_scache* abuf = sem;
16013   const sh5_compact_idesc* idesc = abuf->idesc;
16014   int cycles = 0;
16015   {
16016     cycles += model_u_exec_before (current_cpu, idesc, 0);
16017   }
16018   return cycles;
16019 #undef FLD
16020 }
16021
16022 UINT
16023 sh5_compact_sh5_media_model::model_sts_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16024 {
16025 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
16026   const sh5_compact_scache* abuf = sem;
16027   const sh5_compact_idesc* idesc = abuf->idesc;
16028   int cycles = 0;
16029   {
16030     int referenced = 0;
16031     unsigned long long insn_referenced = abuf->written;
16032     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16033   }
16034   return cycles;
16035 #undef FLD
16036 }
16037
16038 UINT
16039 sh5_compact_sh5_media_model::model_stsl_mach_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16040 {
16041 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16042   const sh5_compact_scache* abuf = sem;
16043   const sh5_compact_idesc* idesc = abuf->idesc;
16044   int cycles = 0;
16045   {
16046     cycles += model_u_exec_before (current_cpu, idesc, 0);
16047   }
16048   return cycles;
16049 #undef FLD
16050 }
16051
16052 UINT
16053 sh5_compact_sh5_media_model::model_stsl_mach_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16054 {
16055 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16056   const sh5_compact_scache* abuf = sem;
16057   const sh5_compact_idesc* idesc = abuf->idesc;
16058   int cycles = 0;
16059   {
16060     int referenced = 0;
16061     unsigned long long insn_referenced = abuf->written;
16062     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16063   }
16064   return cycles;
16065 #undef FLD
16066 }
16067
16068 UINT
16069 sh5_compact_sh5_media_model::model_sts_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16070 {
16071 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
16072   const sh5_compact_scache* abuf = sem;
16073   const sh5_compact_idesc* idesc = abuf->idesc;
16074   int cycles = 0;
16075   {
16076     cycles += model_u_exec_before (current_cpu, idesc, 0);
16077   }
16078   return cycles;
16079 #undef FLD
16080 }
16081
16082 UINT
16083 sh5_compact_sh5_media_model::model_sts_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16084 {
16085 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
16086   const sh5_compact_scache* abuf = sem;
16087   const sh5_compact_idesc* idesc = abuf->idesc;
16088   int cycles = 0;
16089   {
16090     int referenced = 0;
16091     unsigned long long insn_referenced = abuf->written;
16092     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16093   }
16094   return cycles;
16095 #undef FLD
16096 }
16097
16098 UINT
16099 sh5_compact_sh5_media_model::model_stsl_macl_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16100 {
16101 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16102   const sh5_compact_scache* abuf = sem;
16103   const sh5_compact_idesc* idesc = abuf->idesc;
16104   int cycles = 0;
16105   {
16106     cycles += model_u_exec_before (current_cpu, idesc, 0);
16107   }
16108   return cycles;
16109 #undef FLD
16110 }
16111
16112 UINT
16113 sh5_compact_sh5_media_model::model_stsl_macl_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16114 {
16115 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16116   const sh5_compact_scache* abuf = sem;
16117   const sh5_compact_idesc* idesc = abuf->idesc;
16118   int cycles = 0;
16119   {
16120     int referenced = 0;
16121     unsigned long long insn_referenced = abuf->written;
16122     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16123   }
16124   return cycles;
16125 #undef FLD
16126 }
16127
16128 UINT
16129 sh5_compact_sh5_media_model::model_sts_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16130 {
16131 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
16132   const sh5_compact_scache* abuf = sem;
16133   const sh5_compact_idesc* idesc = abuf->idesc;
16134   int cycles = 0;
16135   {
16136     cycles += model_u_exec_before (current_cpu, idesc, 0);
16137   }
16138   return cycles;
16139 #undef FLD
16140 }
16141
16142 UINT
16143 sh5_compact_sh5_media_model::model_sts_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16144 {
16145 #define FLD(f) abuf->fields.sfmt_movw10_compact.f
16146   const sh5_compact_scache* abuf = sem;
16147   const sh5_compact_idesc* idesc = abuf->idesc;
16148   int cycles = 0;
16149   {
16150     int referenced = 0;
16151     unsigned long long insn_referenced = abuf->written;
16152     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16153   }
16154   return cycles;
16155 #undef FLD
16156 }
16157
16158 UINT
16159 sh5_compact_sh5_media_model::model_stsl_pr_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16160 {
16161 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16162   const sh5_compact_scache* abuf = sem;
16163   const sh5_compact_idesc* idesc = abuf->idesc;
16164   int cycles = 0;
16165   {
16166     cycles += model_u_exec_before (current_cpu, idesc, 0);
16167   }
16168   return cycles;
16169 #undef FLD
16170 }
16171
16172 UINT
16173 sh5_compact_sh5_media_model::model_stsl_pr_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16174 {
16175 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16176   const sh5_compact_scache* abuf = sem;
16177   const sh5_compact_idesc* idesc = abuf->idesc;
16178   int cycles = 0;
16179   {
16180     int referenced = 0;
16181     unsigned long long insn_referenced = abuf->written;
16182     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16183   }
16184   return cycles;
16185 #undef FLD
16186 }
16187
16188 UINT
16189 sh5_compact_sh5_media_model::model_sub_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16190 {
16191 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16192   const sh5_compact_scache* abuf = sem;
16193   const sh5_compact_idesc* idesc = abuf->idesc;
16194   int cycles = 0;
16195   {
16196     cycles += model_u_exec_before (current_cpu, idesc, 0);
16197   }
16198   return cycles;
16199 #undef FLD
16200 }
16201
16202 UINT
16203 sh5_compact_sh5_media_model::model_sub_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16204 {
16205 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16206   const sh5_compact_scache* abuf = sem;
16207   const sh5_compact_idesc* idesc = abuf->idesc;
16208   int cycles = 0;
16209   {
16210     int referenced = 0;
16211     unsigned long long insn_referenced = abuf->written;
16212     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16213   }
16214   return cycles;
16215 #undef FLD
16216 }
16217
16218 UINT
16219 sh5_compact_sh5_media_model::model_subc_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16220 {
16221 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16222   const sh5_compact_scache* abuf = sem;
16223   const sh5_compact_idesc* idesc = abuf->idesc;
16224   int cycles = 0;
16225   {
16226     cycles += model_u_exec_before (current_cpu, idesc, 0);
16227   }
16228   return cycles;
16229 #undef FLD
16230 }
16231
16232 UINT
16233 sh5_compact_sh5_media_model::model_subc_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16234 {
16235 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16236   const sh5_compact_scache* abuf = sem;
16237   const sh5_compact_idesc* idesc = abuf->idesc;
16238   int cycles = 0;
16239   {
16240     int referenced = 0;
16241     unsigned long long insn_referenced = abuf->written;
16242     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16243   }
16244   return cycles;
16245 #undef FLD
16246 }
16247
16248 UINT
16249 sh5_compact_sh5_media_model::model_subv_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16250 {
16251 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16252   const sh5_compact_scache* abuf = sem;
16253   const sh5_compact_idesc* idesc = abuf->idesc;
16254   int cycles = 0;
16255   {
16256     cycles += model_u_exec_before (current_cpu, idesc, 0);
16257   }
16258   return cycles;
16259 #undef FLD
16260 }
16261
16262 UINT
16263 sh5_compact_sh5_media_model::model_subv_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16264 {
16265 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16266   const sh5_compact_scache* abuf = sem;
16267   const sh5_compact_idesc* idesc = abuf->idesc;
16268   int cycles = 0;
16269   {
16270     int referenced = 0;
16271     unsigned long long insn_referenced = abuf->written;
16272     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16273   }
16274   return cycles;
16275 #undef FLD
16276 }
16277
16278 UINT
16279 sh5_compact_sh5_media_model::model_swapb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16280 {
16281 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
16282   const sh5_compact_scache* abuf = sem;
16283   const sh5_compact_idesc* idesc = abuf->idesc;
16284   int cycles = 0;
16285   {
16286     cycles += model_u_exec_before (current_cpu, idesc, 0);
16287   }
16288   return cycles;
16289 #undef FLD
16290 }
16291
16292 UINT
16293 sh5_compact_sh5_media_model::model_swapb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16294 {
16295 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
16296   const sh5_compact_scache* abuf = sem;
16297   const sh5_compact_idesc* idesc = abuf->idesc;
16298   int cycles = 0;
16299   {
16300     int referenced = 0;
16301     unsigned long long insn_referenced = abuf->written;
16302     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16303   }
16304   return cycles;
16305 #undef FLD
16306 }
16307
16308 UINT
16309 sh5_compact_sh5_media_model::model_swapw_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16310 {
16311 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
16312   const sh5_compact_scache* abuf = sem;
16313   const sh5_compact_idesc* idesc = abuf->idesc;
16314   int cycles = 0;
16315   {
16316     cycles += model_u_exec_before (current_cpu, idesc, 0);
16317   }
16318   return cycles;
16319 #undef FLD
16320 }
16321
16322 UINT
16323 sh5_compact_sh5_media_model::model_swapw_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16324 {
16325 #define FLD(f) abuf->fields.sfmt_movl12_compact.f
16326   const sh5_compact_scache* abuf = sem;
16327   const sh5_compact_idesc* idesc = abuf->idesc;
16328   int cycles = 0;
16329   {
16330     int referenced = 0;
16331     unsigned long long insn_referenced = abuf->written;
16332     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16333   }
16334   return cycles;
16335 #undef FLD
16336 }
16337
16338 UINT
16339 sh5_compact_sh5_media_model::model_tasb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16340 {
16341 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16342   const sh5_compact_scache* abuf = sem;
16343   const sh5_compact_idesc* idesc = abuf->idesc;
16344   int cycles = 0;
16345   {
16346     cycles += model_u_exec_before (current_cpu, idesc, 0);
16347   }
16348   return cycles;
16349 #undef FLD
16350 }
16351
16352 UINT
16353 sh5_compact_sh5_media_model::model_tasb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16354 {
16355 #define FLD(f) abuf->fields.sfmt_stsl_fpul_compact.f
16356   const sh5_compact_scache* abuf = sem;
16357   const sh5_compact_idesc* idesc = abuf->idesc;
16358   int cycles = 0;
16359   {
16360     int referenced = 0;
16361     unsigned long long insn_referenced = abuf->written;
16362     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16363   }
16364   return cycles;
16365 #undef FLD
16366 }
16367
16368 UINT
16369 sh5_compact_sh5_media_model::model_trapa_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16370 {
16371 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16372   const sh5_compact_scache* abuf = sem;
16373   const sh5_compact_idesc* idesc = abuf->idesc;
16374   int cycles = 0;
16375   {
16376     cycles += model_u_exec_before (current_cpu, idesc, 0);
16377   }
16378   return cycles;
16379 #undef FLD
16380 }
16381
16382 UINT
16383 sh5_compact_sh5_media_model::model_trapa_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16384 {
16385 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16386   const sh5_compact_scache* abuf = sem;
16387   const sh5_compact_idesc* idesc = abuf->idesc;
16388   int cycles = 0;
16389   {
16390     int referenced = 0;
16391     unsigned long long insn_referenced = abuf->written;
16392     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16393   }
16394   return cycles;
16395 #undef FLD
16396 }
16397
16398 UINT
16399 sh5_compact_sh5_media_model::model_tst_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16400 {
16401 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
16402   const sh5_compact_scache* abuf = sem;
16403   const sh5_compact_idesc* idesc = abuf->idesc;
16404   int cycles = 0;
16405   {
16406     cycles += model_u_exec_before (current_cpu, idesc, 0);
16407   }
16408   return cycles;
16409 #undef FLD
16410 }
16411
16412 UINT
16413 sh5_compact_sh5_media_model::model_tst_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16414 {
16415 #define FLD(f) abuf->fields.sfmt_movl13_compact.f
16416   const sh5_compact_scache* abuf = sem;
16417   const sh5_compact_idesc* idesc = abuf->idesc;
16418   int cycles = 0;
16419   {
16420     int referenced = 0;
16421     unsigned long long insn_referenced = abuf->written;
16422     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16423   }
16424   return cycles;
16425 #undef FLD
16426 }
16427
16428 UINT
16429 sh5_compact_sh5_media_model::model_tsti_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16430 {
16431 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16432   const sh5_compact_scache* abuf = sem;
16433   const sh5_compact_idesc* idesc = abuf->idesc;
16434   int cycles = 0;
16435   {
16436     cycles += model_u_exec_before (current_cpu, idesc, 0);
16437   }
16438   return cycles;
16439 #undef FLD
16440 }
16441
16442 UINT
16443 sh5_compact_sh5_media_model::model_tsti_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16444 {
16445 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16446   const sh5_compact_scache* abuf = sem;
16447   const sh5_compact_idesc* idesc = abuf->idesc;
16448   int cycles = 0;
16449   {
16450     int referenced = 0;
16451     unsigned long long insn_referenced = abuf->written;
16452     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16453   }
16454   return cycles;
16455 #undef FLD
16456 }
16457
16458 UINT
16459 sh5_compact_sh5_media_model::model_tstb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16460 {
16461 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16462   const sh5_compact_scache* abuf = sem;
16463   const sh5_compact_idesc* idesc = abuf->idesc;
16464   int cycles = 0;
16465   {
16466     cycles += model_u_exec_before (current_cpu, idesc, 0);
16467   }
16468   return cycles;
16469 #undef FLD
16470 }
16471
16472 UINT
16473 sh5_compact_sh5_media_model::model_tstb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16474 {
16475 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16476   const sh5_compact_scache* abuf = sem;
16477   const sh5_compact_idesc* idesc = abuf->idesc;
16478   int cycles = 0;
16479   {
16480     int referenced = 0;
16481     unsigned long long insn_referenced = abuf->written;
16482     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16483   }
16484   return cycles;
16485 #undef FLD
16486 }
16487
16488 UINT
16489 sh5_compact_sh5_media_model::model_xor_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16490 {
16491 #define FLD(f) abuf->fields.sfmt_and_compact.f
16492   const sh5_compact_scache* abuf = sem;
16493   const sh5_compact_idesc* idesc = abuf->idesc;
16494   int cycles = 0;
16495   {
16496     cycles += model_u_exec_before (current_cpu, idesc, 0);
16497   }
16498   return cycles;
16499 #undef FLD
16500 }
16501
16502 UINT
16503 sh5_compact_sh5_media_model::model_xor_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16504 {
16505 #define FLD(f) abuf->fields.sfmt_and_compact.f
16506   const sh5_compact_scache* abuf = sem;
16507   const sh5_compact_idesc* idesc = abuf->idesc;
16508   int cycles = 0;
16509   {
16510     int referenced = 0;
16511     unsigned long long insn_referenced = abuf->written;
16512     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16513   }
16514   return cycles;
16515 #undef FLD
16516 }
16517
16518 UINT
16519 sh5_compact_sh5_media_model::model_xori_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16520 {
16521 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16522   const sh5_compact_scache* abuf = sem;
16523   const sh5_compact_idesc* idesc = abuf->idesc;
16524   int cycles = 0;
16525   {
16526     cycles += model_u_exec_before (current_cpu, idesc, 0);
16527   }
16528   return cycles;
16529 #undef FLD
16530 }
16531
16532 UINT
16533 sh5_compact_sh5_media_model::model_xori_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16534 {
16535 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16536   const sh5_compact_scache* abuf = sem;
16537   const sh5_compact_idesc* idesc = abuf->idesc;
16538   int cycles = 0;
16539   {
16540     int referenced = 0;
16541     unsigned long long insn_referenced = abuf->written;
16542     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16543   }
16544   return cycles;
16545 #undef FLD
16546 }
16547
16548 UINT
16549 sh5_compact_sh5_media_model::model_xorb_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16550 {
16551 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16552   const sh5_compact_scache* abuf = sem;
16553   const sh5_compact_idesc* idesc = abuf->idesc;
16554   int cycles = 0;
16555   {
16556     cycles += model_u_exec_before (current_cpu, idesc, 0);
16557   }
16558   return cycles;
16559 #undef FLD
16560 }
16561
16562 UINT
16563 sh5_compact_sh5_media_model::model_xorb_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16564 {
16565 #define FLD(f) abuf->fields.sfmt_andi_compact.f
16566   const sh5_compact_scache* abuf = sem;
16567   const sh5_compact_idesc* idesc = abuf->idesc;
16568   int cycles = 0;
16569   {
16570     int referenced = 0;
16571     unsigned long long insn_referenced = abuf->written;
16572     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16573   }
16574   return cycles;
16575 #undef FLD
16576 }
16577
16578 UINT
16579 sh5_compact_sh5_media_model::model_xtrct_compact_before (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16580 {
16581 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16582   const sh5_compact_scache* abuf = sem;
16583   const sh5_compact_idesc* idesc = abuf->idesc;
16584   int cycles = 0;
16585   {
16586     cycles += model_u_exec_before (current_cpu, idesc, 0);
16587   }
16588   return cycles;
16589 #undef FLD
16590 }
16591
16592 UINT
16593 sh5_compact_sh5_media_model::model_xtrct_compact_after (sh5_cpu *current_cpu, sh5_compact_scache *sem)
16594 {
16595 #define FLD(f) abuf->fields.sfmt_macl_compact.f
16596   const sh5_compact_scache* abuf = sem;
16597   const sh5_compact_idesc* idesc = abuf->idesc;
16598   int cycles = 0;
16599   {
16600     int referenced = 0;
16601     unsigned long long insn_referenced = abuf->written;
16602     cycles += model_u_exec_after (current_cpu, idesc, 0, referenced);
16603   }
16604   return cycles;
16605 #undef FLD
16606 }
16607
16608 /* We assume UNIT_NONE == 0 because the tables don't always terminate
16609    entries with it.  */
16610
16611 /* Model timing data for `sh5'.  */
16612
16613 const sh5_compact_sh5_model::insn_timing sh5_compact_sh5_model::timing[] = {
16614   { SH5_COMPACT_INSN_X_INVALID, 0, 0, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16615   { SH5_COMPACT_INSN_ADD_COMPACT, & sh5_compact_sh5_model::model_add_compact_before, & sh5_compact_sh5_model::model_add_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16616   { SH5_COMPACT_INSN_ADDI_COMPACT, & sh5_compact_sh5_model::model_addi_compact_before, & sh5_compact_sh5_model::model_addi_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16617   { SH5_COMPACT_INSN_ADDC_COMPACT, & sh5_compact_sh5_model::model_addc_compact_before, & sh5_compact_sh5_model::model_addc_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16618   { SH5_COMPACT_INSN_ADDV_COMPACT, & sh5_compact_sh5_model::model_addv_compact_before, & sh5_compact_sh5_model::model_addv_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16619   { SH5_COMPACT_INSN_AND_COMPACT, & sh5_compact_sh5_model::model_and_compact_before, & sh5_compact_sh5_model::model_and_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16620   { SH5_COMPACT_INSN_ANDI_COMPACT, & sh5_compact_sh5_model::model_andi_compact_before, & sh5_compact_sh5_model::model_andi_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16621   { SH5_COMPACT_INSN_ANDB_COMPACT, & sh5_compact_sh5_model::model_andb_compact_before, & sh5_compact_sh5_model::model_andb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOGIC_B, 0, 3 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16622   { SH5_COMPACT_INSN_BF_COMPACT, & sh5_compact_sh5_model::model_bf_compact_before, & sh5_compact_sh5_model::model_bf_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_BRANCH, 0, 3 } } },
16623   { SH5_COMPACT_INSN_BFS_COMPACT, & sh5_compact_sh5_model::model_bfs_compact_before, & sh5_compact_sh5_model::model_bfs_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_BRANCH, 0, 2 } } },
16624   { SH5_COMPACT_INSN_BRA_COMPACT, & sh5_compact_sh5_model::model_bra_compact_before, & sh5_compact_sh5_model::model_bra_compact_after, { { sh5_compact_sh5_model::UNIT_U_BRANCH, 0, 2 } } },
16625   { SH5_COMPACT_INSN_BRAF_COMPACT, & sh5_compact_sh5_model::model_braf_compact_before, & sh5_compact_sh5_model::model_braf_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_JMP, 0, 2 } } },
16626   { SH5_COMPACT_INSN_BRK_COMPACT, & sh5_compact_sh5_model::model_brk_compact_before, & sh5_compact_sh5_model::model_brk_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16627   { SH5_COMPACT_INSN_BSR_COMPACT, & sh5_compact_sh5_model::model_bsr_compact_before, & sh5_compact_sh5_model::model_bsr_compact_after, { { sh5_compact_sh5_model::UNIT_U_BRANCH, 0, 2 } } },
16628   { SH5_COMPACT_INSN_BSRF_COMPACT, & sh5_compact_sh5_model::model_bsrf_compact_before, & sh5_compact_sh5_model::model_bsrf_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_JSR, 0, 2 } } },
16629   { SH5_COMPACT_INSN_BT_COMPACT, & sh5_compact_sh5_model::model_bt_compact_before, & sh5_compact_sh5_model::model_bt_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_BRANCH, 0, 3 } } },
16630   { SH5_COMPACT_INSN_BTS_COMPACT, & sh5_compact_sh5_model::model_bts_compact_before, & sh5_compact_sh5_model::model_bts_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_BRANCH, 0, 2 } } },
16631   { SH5_COMPACT_INSN_CLRMAC_COMPACT, & sh5_compact_sh5_model::model_clrmac_compact_before, & sh5_compact_sh5_model::model_clrmac_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_MAC, 0, 0 } } },
16632   { SH5_COMPACT_INSN_CLRS_COMPACT, & sh5_compact_sh5_model::model_clrs_compact_before, & sh5_compact_sh5_model::model_clrs_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16633   { SH5_COMPACT_INSN_CLRT_COMPACT, & sh5_compact_sh5_model::model_clrt_compact_before, & sh5_compact_sh5_model::model_clrt_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16634   { SH5_COMPACT_INSN_CMPEQ_COMPACT, & sh5_compact_sh5_model::model_cmpeq_compact_before, & sh5_compact_sh5_model::model_cmpeq_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16635   { SH5_COMPACT_INSN_CMPEQI_COMPACT, & sh5_compact_sh5_model::model_cmpeqi_compact_before, & sh5_compact_sh5_model::model_cmpeqi_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16636   { SH5_COMPACT_INSN_CMPGE_COMPACT, & sh5_compact_sh5_model::model_cmpge_compact_before, & sh5_compact_sh5_model::model_cmpge_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16637   { SH5_COMPACT_INSN_CMPGT_COMPACT, & sh5_compact_sh5_model::model_cmpgt_compact_before, & sh5_compact_sh5_model::model_cmpgt_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16638   { SH5_COMPACT_INSN_CMPHI_COMPACT, & sh5_compact_sh5_model::model_cmphi_compact_before, & sh5_compact_sh5_model::model_cmphi_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16639   { SH5_COMPACT_INSN_CMPHS_COMPACT, & sh5_compact_sh5_model::model_cmphs_compact_before, & sh5_compact_sh5_model::model_cmphs_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16640   { SH5_COMPACT_INSN_CMPPL_COMPACT, & sh5_compact_sh5_model::model_cmppl_compact_before, & sh5_compact_sh5_model::model_cmppl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16641   { SH5_COMPACT_INSN_CMPPZ_COMPACT, & sh5_compact_sh5_model::model_cmppz_compact_before, & sh5_compact_sh5_model::model_cmppz_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16642   { SH5_COMPACT_INSN_CMPSTR_COMPACT, & sh5_compact_sh5_model::model_cmpstr_compact_before, & sh5_compact_sh5_model::model_cmpstr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16643   { SH5_COMPACT_INSN_DIV0S_COMPACT, & sh5_compact_sh5_model::model_div0s_compact_before, & sh5_compact_sh5_model::model_div0s_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16644   { SH5_COMPACT_INSN_DIV0U_COMPACT, & sh5_compact_sh5_model::model_div0u_compact_before, & sh5_compact_sh5_model::model_div0u_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16645   { SH5_COMPACT_INSN_DIV1_COMPACT, & sh5_compact_sh5_model::model_div1_compact_before, & sh5_compact_sh5_model::model_div1_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16646   { SH5_COMPACT_INSN_DIVU_COMPACT, & sh5_compact_sh5_model::model_divu_compact_before, & sh5_compact_sh5_model::model_divu_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 34 } } },
16647   { SH5_COMPACT_INSN_MULR_COMPACT, & sh5_compact_sh5_model::model_mulr_compact_before, & sh5_compact_sh5_model::model_mulr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MULR, 1, 2 }, { sh5_compact_sh5_model::UNIT_U_MULR_GR, 0, 0 } } },
16648   { SH5_COMPACT_INSN_DMULSL_COMPACT, & sh5_compact_sh5_model::model_dmulsl_compact_before, & sh5_compact_sh5_model::model_dmulsl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_DMUL, 1, 2 } } },
16649   { SH5_COMPACT_INSN_DMULUL_COMPACT, & sh5_compact_sh5_model::model_dmulul_compact_before, & sh5_compact_sh5_model::model_dmulul_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_DMUL, 1, 2 } } },
16650   { SH5_COMPACT_INSN_DT_COMPACT, & sh5_compact_sh5_model::model_dt_compact_before, & sh5_compact_sh5_model::model_dt_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16651   { SH5_COMPACT_INSN_EXTSB_COMPACT, & sh5_compact_sh5_model::model_extsb_compact_before, & sh5_compact_sh5_model::model_extsb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16652   { SH5_COMPACT_INSN_EXTSW_COMPACT, & sh5_compact_sh5_model::model_extsw_compact_before, & sh5_compact_sh5_model::model_extsw_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16653   { SH5_COMPACT_INSN_EXTUB_COMPACT, & sh5_compact_sh5_model::model_extub_compact_before, & sh5_compact_sh5_model::model_extub_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16654   { SH5_COMPACT_INSN_EXTUW_COMPACT, & sh5_compact_sh5_model::model_extuw_compact_before, & sh5_compact_sh5_model::model_extuw_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16655   { SH5_COMPACT_INSN_FABS_COMPACT, & sh5_compact_sh5_model::model_fabs_compact_before, & sh5_compact_sh5_model::model_fabs_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR_0, 0, 0 } } },
16656   { SH5_COMPACT_INSN_FADD_COMPACT, & sh5_compact_sh5_model::model_fadd_compact_before, & sh5_compact_sh5_model::model_fadd_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR, 0, 0 } } },
16657   { SH5_COMPACT_INSN_FCMPEQ_COMPACT, & sh5_compact_sh5_model::model_fcmpeq_compact_before, & sh5_compact_sh5_model::model_fcmpeq_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FCMP, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 } } },
16658   { SH5_COMPACT_INSN_FCMPGT_COMPACT, & sh5_compact_sh5_model::model_fcmpgt_compact_before, & sh5_compact_sh5_model::model_fcmpgt_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FCMP, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 } } },
16659   { SH5_COMPACT_INSN_FCNVDS_COMPACT, & sh5_compact_sh5_model::model_fcnvds_compact_before, & sh5_compact_sh5_model::model_fcnvds_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_DR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FCNV, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FPUL, 0, 0 } } },
16660   { SH5_COMPACT_INSN_FCNVSD_COMPACT, & sh5_compact_sh5_model::model_fcnvsd_compact_before, & sh5_compact_sh5_model::model_fcnvsd_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FPUL, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FCNV, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_DR, 0, 0 } } },
16661   { SH5_COMPACT_INSN_FDIV_COMPACT, & sh5_compact_sh5_model::model_fdiv_compact_before, & sh5_compact_sh5_model::model_fdiv_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FDIV, 0, 0 } } },
16662   { SH5_COMPACT_INSN_FIPR_COMPACT, & sh5_compact_sh5_model::model_fipr_compact_before, & sh5_compact_sh5_model::model_fipr_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FIPR, 0, 0 } } },
16663   { SH5_COMPACT_INSN_FLDS_COMPACT, & sh5_compact_sh5_model::model_flds_compact_before, & sh5_compact_sh5_model::model_flds_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FLDS_FPUL, 0, 0 } } },
16664   { SH5_COMPACT_INSN_FLDI0_COMPACT, & sh5_compact_sh5_model::model_fldi0_compact_before, & sh5_compact_sh5_model::model_fldi0_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR_0, 0, 0 } } },
16665   { SH5_COMPACT_INSN_FLDI1_COMPACT, & sh5_compact_sh5_model::model_fldi1_compact_before, & sh5_compact_sh5_model::model_fldi1_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR_0, 0, 0 } } },
16666   { SH5_COMPACT_INSN_FLOAT_COMPACT, & sh5_compact_sh5_model::model_float_compact_before, & sh5_compact_sh5_model::model_float_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FPUL, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR, 0, 0 } } },
16667   { SH5_COMPACT_INSN_FMAC_COMPACT, & sh5_compact_sh5_model::model_fmac_compact_before, & sh5_compact_sh5_model::model_fmac_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR, 0, 0 } } },
16668   { SH5_COMPACT_INSN_FMOV1_COMPACT, & sh5_compact_sh5_model::model_fmov1_compact_before, & sh5_compact_sh5_model::model_fmov1_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR_0, 0, 0 } } },
16669   { SH5_COMPACT_INSN_FMOV2_COMPACT, & sh5_compact_sh5_model::model_fmov2_compact_before, & sh5_compact_sh5_model::model_fmov2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_FR, 0, 0 } } },
16670   { SH5_COMPACT_INSN_FMOV3_COMPACT, & sh5_compact_sh5_model::model_fmov3_compact_before, & sh5_compact_sh5_model::model_fmov3_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_FR, 0, 0 } } },
16671   { SH5_COMPACT_INSN_FMOV4_COMPACT, & sh5_compact_sh5_model::model_fmov4_compact_before, & sh5_compact_sh5_model::model_fmov4_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_FR, 0, 0 } } },
16672   { SH5_COMPACT_INSN_FMOV5_COMPACT, & sh5_compact_sh5_model::model_fmov5_compact_before, & sh5_compact_sh5_model::model_fmov5_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 } } },
16673   { SH5_COMPACT_INSN_FMOV6_COMPACT, & sh5_compact_sh5_model::model_fmov6_compact_before, & sh5_compact_sh5_model::model_fmov6_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 } } },
16674   { SH5_COMPACT_INSN_FMOV7_COMPACT, & sh5_compact_sh5_model::model_fmov7_compact_before, & sh5_compact_sh5_model::model_fmov7_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 } } },
16675   { SH5_COMPACT_INSN_FMOV8_COMPACT, & sh5_compact_sh5_model::model_fmov8_compact_before, & sh5_compact_sh5_model::model_fmov8_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 1 }, { sh5_compact_sh5_model::UNIT_U_LOAD_DR, 0, 0 } } },
16676   { SH5_COMPACT_INSN_FMOV9_COMPACT, & sh5_compact_sh5_model::model_fmov9_compact_before, & sh5_compact_sh5_model::model_fmov9_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 1 } } },
16677   { SH5_COMPACT_INSN_FMUL_COMPACT, & sh5_compact_sh5_model::model_fmul_compact_before, & sh5_compact_sh5_model::model_fmul_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR, 0, 0 } } },
16678   { SH5_COMPACT_INSN_FNEG_COMPACT, & sh5_compact_sh5_model::model_fneg_compact_before, & sh5_compact_sh5_model::model_fneg_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR_0, 0, 0 } } },
16679   { SH5_COMPACT_INSN_FRCHG_COMPACT, & sh5_compact_sh5_model::model_frchg_compact_before, & sh5_compact_sh5_model::model_frchg_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16680   { SH5_COMPACT_INSN_FSCHG_COMPACT, & sh5_compact_sh5_model::model_fschg_compact_before, & sh5_compact_sh5_model::model_fschg_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16681   { SH5_COMPACT_INSN_FSQRT_COMPACT, & sh5_compact_sh5_model::model_fsqrt_compact_before, & sh5_compact_sh5_model::model_fsqrt_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FSQRT, 0, 0 } } },
16682   { SH5_COMPACT_INSN_FSTS_COMPACT, & sh5_compact_sh5_model::model_fsts_compact_before, & sh5_compact_sh5_model::model_fsts_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FPUL, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR_0, 0, 0 } } },
16683   { SH5_COMPACT_INSN_FSUB_COMPACT, & sh5_compact_sh5_model::model_fsub_compact_before, & sh5_compact_sh5_model::model_fsub_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FR, 0, 0 } } },
16684   { SH5_COMPACT_INSN_FTRC_COMPACT, & sh5_compact_sh5_model::model_ftrc_compact_before, & sh5_compact_sh5_model::model_ftrc_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_FPUL, 0, 0 } } },
16685   { SH5_COMPACT_INSN_FTRV_COMPACT, & sh5_compact_sh5_model::model_ftrv_compact_before, & sh5_compact_sh5_model::model_ftrv_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_FTRV, 0, 0 } } },
16686   { SH5_COMPACT_INSN_JMP_COMPACT, & sh5_compact_sh5_model::model_jmp_compact_before, & sh5_compact_sh5_model::model_jmp_compact_after, { { sh5_compact_sh5_model::UNIT_U_JMP, 0, 2 } } },
16687   { SH5_COMPACT_INSN_JSR_COMPACT, & sh5_compact_sh5_model::model_jsr_compact_before, & sh5_compact_sh5_model::model_jsr_compact_after, { { sh5_compact_sh5_model::UNIT_U_JSR, 0, 2 } } },
16688   { SH5_COMPACT_INSN_LDC_GBR_COMPACT, & sh5_compact_sh5_model::model_ldc_gbr_compact_before, & sh5_compact_sh5_model::model_ldc_gbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDC_GBR, 0, 1 } } },
16689   { SH5_COMPACT_INSN_LDC_VBR_COMPACT, & sh5_compact_sh5_model::model_ldc_vbr_compact_before, & sh5_compact_sh5_model::model_ldc_vbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16690   { SH5_COMPACT_INSN_LDC_SR_COMPACT, & sh5_compact_sh5_model::model_ldc_sr_compact_before, & sh5_compact_sh5_model::model_ldc_sr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDC_SR, 0, 1 } } },
16691   { SH5_COMPACT_INSN_LDCL_GBR_COMPACT, & sh5_compact_sh5_model::model_ldcl_gbr_compact_before, & sh5_compact_sh5_model::model_ldcl_gbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDCL, 0, 3 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GBR, 0, 0 } } },
16692   { SH5_COMPACT_INSN_LDCL_VBR_COMPACT, & sh5_compact_sh5_model::model_ldcl_vbr_compact_before, & sh5_compact_sh5_model::model_ldcl_vbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDCL_VBR, 0, 3 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_VBR, 0, 0 } } },
16693   { SH5_COMPACT_INSN_LDS_FPSCR_COMPACT, & sh5_compact_sh5_model::model_lds_fpscr_compact_before, & sh5_compact_sh5_model::model_lds_fpscr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDS_FPSCR, 0, 3 } } },
16694   { SH5_COMPACT_INSN_LDSL_FPSCR_COMPACT, & sh5_compact_sh5_model::model_ldsl_fpscr_compact_before, & sh5_compact_sh5_model::model_ldsl_fpscr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDS_FPSCR, 0, 3 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDSL_FPSCR, 0, 0 } } },
16695   { SH5_COMPACT_INSN_LDS_FPUL_COMPACT, & sh5_compact_sh5_model::model_lds_fpul_compact_before, & sh5_compact_sh5_model::model_lds_fpul_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_FPUL, 0, 0 } } },
16696   { SH5_COMPACT_INSN_LDSL_FPUL_COMPACT, & sh5_compact_sh5_model::model_ldsl_fpul_compact_before, & sh5_compact_sh5_model::model_ldsl_fpul_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_FPUL, 0, 0 } } },
16697   { SH5_COMPACT_INSN_LDS_MACH_COMPACT, & sh5_compact_sh5_model::model_lds_mach_compact_before, & sh5_compact_sh5_model::model_lds_mach_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_MAC, 0, 0 } } },
16698   { SH5_COMPACT_INSN_LDSL_MACH_COMPACT, & sh5_compact_sh5_model::model_ldsl_mach_compact_before, & sh5_compact_sh5_model::model_ldsl_mach_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_MAC, 0, 0 } } },
16699   { SH5_COMPACT_INSN_LDS_MACL_COMPACT, & sh5_compact_sh5_model::model_lds_macl_compact_before, & sh5_compact_sh5_model::model_lds_macl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_MAC, 0, 0 } } },
16700   { SH5_COMPACT_INSN_LDSL_MACL_COMPACT, & sh5_compact_sh5_model::model_ldsl_macl_compact_before, & sh5_compact_sh5_model::model_ldsl_macl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_MAC, 0, 0 } } },
16701   { SH5_COMPACT_INSN_LDS_PR_COMPACT, & sh5_compact_sh5_model::model_lds_pr_compact_before, & sh5_compact_sh5_model::model_lds_pr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDS_PR, 0, 1 } } },
16702   { SH5_COMPACT_INSN_LDSL_PR_COMPACT, & sh5_compact_sh5_model::model_ldsl_pr_compact_before, & sh5_compact_sh5_model::model_ldsl_pr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDS_PR, 0, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_PR, 0, 0 } } },
16703   { SH5_COMPACT_INSN_MACL_COMPACT, & sh5_compact_sh5_model::model_macl_compact_before, & sh5_compact_sh5_model::model_macl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MACL, 1, 2 } } },
16704   { SH5_COMPACT_INSN_MACW_COMPACT, & sh5_compact_sh5_model::model_macw_compact_before, & sh5_compact_sh5_model::model_macw_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MACW, 1, 2 } } },
16705   { SH5_COMPACT_INSN_MOV_COMPACT, & sh5_compact_sh5_model::model_mov_compact_before, & sh5_compact_sh5_model::model_mov_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16706   { SH5_COMPACT_INSN_MOVI_COMPACT, & sh5_compact_sh5_model::model_movi_compact_before, & sh5_compact_sh5_model::model_movi_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16707   { SH5_COMPACT_INSN_MOVI20_COMPACT, & sh5_compact_sh5_model::model_movi20_compact_before, & sh5_compact_sh5_model::model_movi20_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16708   { SH5_COMPACT_INSN_MOVB1_COMPACT, & sh5_compact_sh5_model::model_movb1_compact_before, & sh5_compact_sh5_model::model_movb1_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16709   { SH5_COMPACT_INSN_MOVB2_COMPACT, & sh5_compact_sh5_model::model_movb2_compact_before, & sh5_compact_sh5_model::model_movb2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16710   { SH5_COMPACT_INSN_MOVB3_COMPACT, & sh5_compact_sh5_model::model_movb3_compact_before, & sh5_compact_sh5_model::model_movb3_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16711   { SH5_COMPACT_INSN_MOVB4_COMPACT, & sh5_compact_sh5_model::model_movb4_compact_before, & sh5_compact_sh5_model::model_movb4_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SX, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16712   { SH5_COMPACT_INSN_MOVB5_COMPACT, & sh5_compact_sh5_model::model_movb5_compact_before, & sh5_compact_sh5_model::model_movb5_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16713   { SH5_COMPACT_INSN_MOVB6_COMPACT, & sh5_compact_sh5_model::model_movb6_compact_before, & sh5_compact_sh5_model::model_movb6_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16714   { SH5_COMPACT_INSN_MOVB7_COMPACT, & sh5_compact_sh5_model::model_movb7_compact_before, & sh5_compact_sh5_model::model_movb7_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16715   { SH5_COMPACT_INSN_MOVB8_COMPACT, & sh5_compact_sh5_model::model_movb8_compact_before, & sh5_compact_sh5_model::model_movb8_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16716   { SH5_COMPACT_INSN_MOVB9_COMPACT, & sh5_compact_sh5_model::model_movb9_compact_before, & sh5_compact_sh5_model::model_movb9_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16717   { SH5_COMPACT_INSN_MOVB10_COMPACT, & sh5_compact_sh5_model::model_movb10_compact_before, & sh5_compact_sh5_model::model_movb10_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16718   { SH5_COMPACT_INSN_MOVL1_COMPACT, & sh5_compact_sh5_model::model_movl1_compact_before, & sh5_compact_sh5_model::model_movl1_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16719   { SH5_COMPACT_INSN_MOVL2_COMPACT, & sh5_compact_sh5_model::model_movl2_compact_before, & sh5_compact_sh5_model::model_movl2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16720   { SH5_COMPACT_INSN_MOVL3_COMPACT, & sh5_compact_sh5_model::model_movl3_compact_before, & sh5_compact_sh5_model::model_movl3_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16721   { SH5_COMPACT_INSN_MOVL4_COMPACT, & sh5_compact_sh5_model::model_movl4_compact_before, & sh5_compact_sh5_model::model_movl4_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SX, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16722   { SH5_COMPACT_INSN_MOVL5_COMPACT, & sh5_compact_sh5_model::model_movl5_compact_before, & sh5_compact_sh5_model::model_movl5_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16723   { SH5_COMPACT_INSN_MOVL6_COMPACT, & sh5_compact_sh5_model::model_movl6_compact_before, & sh5_compact_sh5_model::model_movl6_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16724   { SH5_COMPACT_INSN_MOVL7_COMPACT, & sh5_compact_sh5_model::model_movl7_compact_before, & sh5_compact_sh5_model::model_movl7_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16725   { SH5_COMPACT_INSN_MOVL8_COMPACT, & sh5_compact_sh5_model::model_movl8_compact_before, & sh5_compact_sh5_model::model_movl8_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16726   { SH5_COMPACT_INSN_MOVL9_COMPACT, & sh5_compact_sh5_model::model_movl9_compact_before, & sh5_compact_sh5_model::model_movl9_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16727   { SH5_COMPACT_INSN_MOVL10_COMPACT, & sh5_compact_sh5_model::model_movl10_compact_before, & sh5_compact_sh5_model::model_movl10_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16728   { SH5_COMPACT_INSN_MOVL11_COMPACT, & sh5_compact_sh5_model::model_movl11_compact_before, & sh5_compact_sh5_model::model_movl11_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16729   { SH5_COMPACT_INSN_MOVL12_COMPACT, & sh5_compact_sh5_model::model_movl12_compact_before, & sh5_compact_sh5_model::model_movl12_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16730   { SH5_COMPACT_INSN_MOVL13_COMPACT, & sh5_compact_sh5_model::model_movl13_compact_before, & sh5_compact_sh5_model::model_movl13_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16731   { SH5_COMPACT_INSN_MOVW1_COMPACT, & sh5_compact_sh5_model::model_movw1_compact_before, & sh5_compact_sh5_model::model_movw1_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16732   { SH5_COMPACT_INSN_MOVW2_COMPACT, & sh5_compact_sh5_model::model_movw2_compact_before, & sh5_compact_sh5_model::model_movw2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16733   { SH5_COMPACT_INSN_MOVW3_COMPACT, & sh5_compact_sh5_model::model_movw3_compact_before, & sh5_compact_sh5_model::model_movw3_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16734   { SH5_COMPACT_INSN_MOVW4_COMPACT, & sh5_compact_sh5_model::model_movw4_compact_before, & sh5_compact_sh5_model::model_movw4_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SX, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16735   { SH5_COMPACT_INSN_MOVW5_COMPACT, & sh5_compact_sh5_model::model_movw5_compact_before, & sh5_compact_sh5_model::model_movw5_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16736   { SH5_COMPACT_INSN_MOVW6_COMPACT, & sh5_compact_sh5_model::model_movw6_compact_before, & sh5_compact_sh5_model::model_movw6_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16737   { SH5_COMPACT_INSN_MOVW7_COMPACT, & sh5_compact_sh5_model::model_movw7_compact_before, & sh5_compact_sh5_model::model_movw7_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16738   { SH5_COMPACT_INSN_MOVW8_COMPACT, & sh5_compact_sh5_model::model_movw8_compact_before, & sh5_compact_sh5_model::model_movw8_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16739   { SH5_COMPACT_INSN_MOVW9_COMPACT, & sh5_compact_sh5_model::model_movw9_compact_before, & sh5_compact_sh5_model::model_movw9_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16740   { SH5_COMPACT_INSN_MOVW10_COMPACT, & sh5_compact_sh5_model::model_movw10_compact_before, & sh5_compact_sh5_model::model_movw10_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16741   { SH5_COMPACT_INSN_MOVW11_COMPACT, & sh5_compact_sh5_model::model_movw11_compact_before, & sh5_compact_sh5_model::model_movw11_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16742   { SH5_COMPACT_INSN_MOVA_COMPACT, & sh5_compact_sh5_model::model_mova_compact_before, & sh5_compact_sh5_model::model_mova_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16743   { SH5_COMPACT_INSN_MOVCAL_COMPACT, & sh5_compact_sh5_model::model_movcal_compact_before, & sh5_compact_sh5_model::model_movcal_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_OCB, 0, 6 } } },
16744   { SH5_COMPACT_INSN_MOVCOL_COMPACT, & sh5_compact_sh5_model::model_movcol_compact_before, & sh5_compact_sh5_model::model_movcol_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16745   { SH5_COMPACT_INSN_MOVT_COMPACT, & sh5_compact_sh5_model::model_movt_compact_before, & sh5_compact_sh5_model::model_movt_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16746   { SH5_COMPACT_INSN_MOVUAL_COMPACT, & sh5_compact_sh5_model::model_movual_compact_before, & sh5_compact_sh5_model::model_movual_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 1 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16747   { SH5_COMPACT_INSN_MOVUAL2_COMPACT, & sh5_compact_sh5_model::model_movual2_compact_before, & sh5_compact_sh5_model::model_movual2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 1 }, { sh5_compact_sh5_model::UNIT_U_LOAD_GR, 0, 0 } } },
16748   { SH5_COMPACT_INSN_MULL_COMPACT, & sh5_compact_sh5_model::model_mull_compact_before, & sh5_compact_sh5_model::model_mull_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MULL, 1, 2 } } },
16749   { SH5_COMPACT_INSN_MULSW_COMPACT, & sh5_compact_sh5_model::model_mulsw_compact_before, & sh5_compact_sh5_model::model_mulsw_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MULSW, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MULTIPLY, 1, 2 } } },
16750   { SH5_COMPACT_INSN_MULUW_COMPACT, & sh5_compact_sh5_model::model_muluw_compact_before, & sh5_compact_sh5_model::model_muluw_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MULSW, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MULTIPLY, 1, 2 } } },
16751   { SH5_COMPACT_INSN_NEG_COMPACT, & sh5_compact_sh5_model::model_neg_compact_before, & sh5_compact_sh5_model::model_neg_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16752   { SH5_COMPACT_INSN_NEGC_COMPACT, & sh5_compact_sh5_model::model_negc_compact_before, & sh5_compact_sh5_model::model_negc_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16753   { SH5_COMPACT_INSN_NOP_COMPACT, & sh5_compact_sh5_model::model_nop_compact_before, & sh5_compact_sh5_model::model_nop_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16754   { SH5_COMPACT_INSN_NOT_COMPACT, & sh5_compact_sh5_model::model_not_compact_before, & sh5_compact_sh5_model::model_not_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16755   { SH5_COMPACT_INSN_OCBI_COMPACT, & sh5_compact_sh5_model::model_ocbi_compact_before, & sh5_compact_sh5_model::model_ocbi_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_OCB, 0, 1 } } },
16756   { SH5_COMPACT_INSN_OCBP_COMPACT, & sh5_compact_sh5_model::model_ocbp_compact_before, & sh5_compact_sh5_model::model_ocbp_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_OCB, 0, 4 } } },
16757   { SH5_COMPACT_INSN_OCBWB_COMPACT, & sh5_compact_sh5_model::model_ocbwb_compact_before, & sh5_compact_sh5_model::model_ocbwb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_OCB, 0, 4 } } },
16758   { SH5_COMPACT_INSN_OR_COMPACT, & sh5_compact_sh5_model::model_or_compact_before, & sh5_compact_sh5_model::model_or_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16759   { SH5_COMPACT_INSN_ORI_COMPACT, & sh5_compact_sh5_model::model_ori_compact_before, & sh5_compact_sh5_model::model_ori_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16760   { SH5_COMPACT_INSN_ORB_COMPACT, & sh5_compact_sh5_model::model_orb_compact_before, & sh5_compact_sh5_model::model_orb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOGIC_B, 0, 3 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16761   { SH5_COMPACT_INSN_PREF_COMPACT, & sh5_compact_sh5_model::model_pref_compact_before, & sh5_compact_sh5_model::model_pref_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16762   { SH5_COMPACT_INSN_ROTCL_COMPACT, & sh5_compact_sh5_model::model_rotcl_compact_before, & sh5_compact_sh5_model::model_rotcl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16763   { SH5_COMPACT_INSN_ROTCR_COMPACT, & sh5_compact_sh5_model::model_rotcr_compact_before, & sh5_compact_sh5_model::model_rotcr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16764   { SH5_COMPACT_INSN_ROTL_COMPACT, & sh5_compact_sh5_model::model_rotl_compact_before, & sh5_compact_sh5_model::model_rotl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16765   { SH5_COMPACT_INSN_ROTR_COMPACT, & sh5_compact_sh5_model::model_rotr_compact_before, & sh5_compact_sh5_model::model_rotr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16766   { SH5_COMPACT_INSN_RTS_COMPACT, & sh5_compact_sh5_model::model_rts_compact_before, & sh5_compact_sh5_model::model_rts_compact_after, { { sh5_compact_sh5_model::UNIT_U_JMP, 0, 2 } } },
16767   { SH5_COMPACT_INSN_SETS_COMPACT, & sh5_compact_sh5_model::model_sets_compact_before, & sh5_compact_sh5_model::model_sets_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16768   { SH5_COMPACT_INSN_SETT_COMPACT, & sh5_compact_sh5_model::model_sett_compact_before, & sh5_compact_sh5_model::model_sett_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16769   { SH5_COMPACT_INSN_SHAD_COMPACT, & sh5_compact_sh5_model::model_shad_compact_before, & sh5_compact_sh5_model::model_shad_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16770   { SH5_COMPACT_INSN_SHAL_COMPACT, & sh5_compact_sh5_model::model_shal_compact_before, & sh5_compact_sh5_model::model_shal_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16771   { SH5_COMPACT_INSN_SHAR_COMPACT, & sh5_compact_sh5_model::model_shar_compact_before, & sh5_compact_sh5_model::model_shar_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16772   { SH5_COMPACT_INSN_SHLD_COMPACT, & sh5_compact_sh5_model::model_shld_compact_before, & sh5_compact_sh5_model::model_shld_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16773   { SH5_COMPACT_INSN_SHLL_COMPACT, & sh5_compact_sh5_model::model_shll_compact_before, & sh5_compact_sh5_model::model_shll_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16774   { SH5_COMPACT_INSN_SHLL2_COMPACT, & sh5_compact_sh5_model::model_shll2_compact_before, & sh5_compact_sh5_model::model_shll2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16775   { SH5_COMPACT_INSN_SHLL8_COMPACT, & sh5_compact_sh5_model::model_shll8_compact_before, & sh5_compact_sh5_model::model_shll8_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16776   { SH5_COMPACT_INSN_SHLL16_COMPACT, & sh5_compact_sh5_model::model_shll16_compact_before, & sh5_compact_sh5_model::model_shll16_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16777   { SH5_COMPACT_INSN_SHLR_COMPACT, & sh5_compact_sh5_model::model_shlr_compact_before, & sh5_compact_sh5_model::model_shlr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16778   { SH5_COMPACT_INSN_SHLR2_COMPACT, & sh5_compact_sh5_model::model_shlr2_compact_before, & sh5_compact_sh5_model::model_shlr2_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16779   { SH5_COMPACT_INSN_SHLR8_COMPACT, & sh5_compact_sh5_model::model_shlr8_compact_before, & sh5_compact_sh5_model::model_shlr8_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16780   { SH5_COMPACT_INSN_SHLR16_COMPACT, & sh5_compact_sh5_model::model_shlr16_compact_before, & sh5_compact_sh5_model::model_shlr16_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16781   { SH5_COMPACT_INSN_STC_GBR_COMPACT, & sh5_compact_sh5_model::model_stc_gbr_compact_before, & sh5_compact_sh5_model::model_stc_gbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16782   { SH5_COMPACT_INSN_STC_VBR_COMPACT, & sh5_compact_sh5_model::model_stc_vbr_compact_before, & sh5_compact_sh5_model::model_stc_vbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_STC_VBR, 0, 1 } } },
16783   { SH5_COMPACT_INSN_STCL_GBR_COMPACT, & sh5_compact_sh5_model::model_stcl_gbr_compact_before, & sh5_compact_sh5_model::model_stcl_gbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDCL, 0, 2 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16784   { SH5_COMPACT_INSN_STCL_VBR_COMPACT, & sh5_compact_sh5_model::model_stcl_vbr_compact_before, & sh5_compact_sh5_model::model_stcl_vbr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LDCL, 0, 2 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16785   { SH5_COMPACT_INSN_STS_FPSCR_COMPACT, & sh5_compact_sh5_model::model_sts_fpscr_compact_before, & sh5_compact_sh5_model::model_sts_fpscr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FPSCR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_LOAD_GR, 0, 0 } } },
16786   { SH5_COMPACT_INSN_STSL_FPSCR_COMPACT, & sh5_compact_sh5_model::model_stsl_fpscr_compact_before, & sh5_compact_sh5_model::model_stsl_fpscr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_FPSCR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 } } },
16787   { SH5_COMPACT_INSN_STS_FPUL_COMPACT, & sh5_compact_sh5_model::model_sts_fpul_compact_before, & sh5_compact_sh5_model::model_sts_fpul_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FPUL, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_LOAD_GR, 0, 0 } } },
16788   { SH5_COMPACT_INSN_STSL_FPUL_COMPACT, & sh5_compact_sh5_model::model_stsl_fpul_compact_before, & sh5_compact_sh5_model::model_stsl_fpul_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_FPUL, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MAYBE_FPU, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_FPU_MEMORY_ACCESS, 0, 0 } } },
16789   { SH5_COMPACT_INSN_STS_MACH_COMPACT, & sh5_compact_sh5_model::model_sts_mach_compact_before, & sh5_compact_sh5_model::model_sts_mach_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_WRITE_BACK, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16790   { SH5_COMPACT_INSN_STSL_MACH_COMPACT, & sh5_compact_sh5_model::model_stsl_mach_compact_before, & sh5_compact_sh5_model::model_stsl_mach_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_WRITE_BACK, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16791   { SH5_COMPACT_INSN_STS_MACL_COMPACT, & sh5_compact_sh5_model::model_sts_macl_compact_before, & sh5_compact_sh5_model::model_sts_macl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_WRITE_BACK, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16792   { SH5_COMPACT_INSN_STSL_MACL_COMPACT, & sh5_compact_sh5_model::model_stsl_macl_compact_before, & sh5_compact_sh5_model::model_stsl_macl_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_MULTIPLY_RESULT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_WRITE_BACK, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16793   { SH5_COMPACT_INSN_STS_PR_COMPACT, & sh5_compact_sh5_model::model_sts_pr_compact_before, & sh5_compact_sh5_model::model_sts_pr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_PR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_STS_PR, 0, 1 } } },
16794   { SH5_COMPACT_INSN_STSL_PR_COMPACT, & sh5_compact_sh5_model::model_stsl_pr_compact_before, & sh5_compact_sh5_model::model_stsl_pr_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_PR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_STS_PR, 0, 1 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16795   { SH5_COMPACT_INSN_SUB_COMPACT, & sh5_compact_sh5_model::model_sub_compact_before, & sh5_compact_sh5_model::model_sub_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16796   { SH5_COMPACT_INSN_SUBC_COMPACT, & sh5_compact_sh5_model::model_subc_compact_before, & sh5_compact_sh5_model::model_subc_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16797   { SH5_COMPACT_INSN_SUBV_COMPACT, & sh5_compact_sh5_model::model_subv_compact_before, & sh5_compact_sh5_model::model_subv_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16798   { SH5_COMPACT_INSN_SWAPB_COMPACT, & sh5_compact_sh5_model::model_swapb_compact_before, & sh5_compact_sh5_model::model_swapb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16799   { SH5_COMPACT_INSN_SWAPW_COMPACT, & sh5_compact_sh5_model::model_swapw_compact_before, & sh5_compact_sh5_model::model_swapw_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16800   { SH5_COMPACT_INSN_TASB_COMPACT, & sh5_compact_sh5_model::model_tasb_compact_before, & sh5_compact_sh5_model::model_tasb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_TAS, 1, 4 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16801   { SH5_COMPACT_INSN_TRAPA_COMPACT, & sh5_compact_sh5_model::model_trapa_compact_before, & sh5_compact_sh5_model::model_trapa_compact_after, { { sh5_compact_sh5_model::UNIT_U_TRAP, 0, 8 } } },
16802   { SH5_COMPACT_INSN_TST_COMPACT, & sh5_compact_sh5_model::model_tst_compact_before, & sh5_compact_sh5_model::model_tst_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16803   { SH5_COMPACT_INSN_TSTI_COMPACT, & sh5_compact_sh5_model::model_tsti_compact_before, & sh5_compact_sh5_model::model_tsti_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 } } },
16804   { SH5_COMPACT_INSN_TSTB_COMPACT, & sh5_compact_sh5_model::model_tstb_compact_before, & sh5_compact_sh5_model::model_tstb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_TBIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 3 }, { sh5_compact_sh5_model::UNIT_U_SX, 1, 3 }, { sh5_compact_sh5_model::UNIT_U_SET_SR_BIT, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16805   { SH5_COMPACT_INSN_XOR_COMPACT, & sh5_compact_sh5_model::model_xor_compact_before, & sh5_compact_sh5_model::model_xor_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16806   { SH5_COMPACT_INSN_XORI_COMPACT, & sh5_compact_sh5_model::model_xori_compact_before, & sh5_compact_sh5_model::model_xori_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 } } },
16807   { SH5_COMPACT_INSN_XORB_COMPACT, & sh5_compact_sh5_model::model_xorb_compact_before, & sh5_compact_sh5_model::model_xorb_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_LOGIC_B, 0, 3 }, { sh5_compact_sh5_model::UNIT_U_MEMORY_ACCESS, 0, 0 } } },
16808   { SH5_COMPACT_INSN_XTRCT_COMPACT, & sh5_compact_sh5_model::model_xtrct_compact_before, & sh5_compact_sh5_model::model_xtrct_compact_after, { { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_USE_GR, 0, 0 }, { sh5_compact_sh5_model::UNIT_U_EXEC, 1, 1 }, { sh5_compact_sh5_model::UNIT_U_SHIFT, 0, 0 } } },
16809 };
16810
16811 /* Model timing data for `sh5-media'.  */
16812
16813 const sh5_compact_sh5_media_model::insn_timing sh5_compact_sh5_media_model::timing[] = {
16814   { SH5_COMPACT_INSN_X_INVALID, 0, 0, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16815   { SH5_COMPACT_INSN_ADD_COMPACT, & sh5_compact_sh5_media_model::model_add_compact_before, & sh5_compact_sh5_media_model::model_add_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16816   { SH5_COMPACT_INSN_ADDI_COMPACT, & sh5_compact_sh5_media_model::model_addi_compact_before, & sh5_compact_sh5_media_model::model_addi_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16817   { SH5_COMPACT_INSN_ADDC_COMPACT, & sh5_compact_sh5_media_model::model_addc_compact_before, & sh5_compact_sh5_media_model::model_addc_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16818   { SH5_COMPACT_INSN_ADDV_COMPACT, & sh5_compact_sh5_media_model::model_addv_compact_before, & sh5_compact_sh5_media_model::model_addv_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16819   { SH5_COMPACT_INSN_AND_COMPACT, & sh5_compact_sh5_media_model::model_and_compact_before, & sh5_compact_sh5_media_model::model_and_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16820   { SH5_COMPACT_INSN_ANDI_COMPACT, & sh5_compact_sh5_media_model::model_andi_compact_before, & sh5_compact_sh5_media_model::model_andi_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16821   { SH5_COMPACT_INSN_ANDB_COMPACT, & sh5_compact_sh5_media_model::model_andb_compact_before, & sh5_compact_sh5_media_model::model_andb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16822   { SH5_COMPACT_INSN_BF_COMPACT, & sh5_compact_sh5_media_model::model_bf_compact_before, & sh5_compact_sh5_media_model::model_bf_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16823   { SH5_COMPACT_INSN_BFS_COMPACT, & sh5_compact_sh5_media_model::model_bfs_compact_before, & sh5_compact_sh5_media_model::model_bfs_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16824   { SH5_COMPACT_INSN_BRA_COMPACT, & sh5_compact_sh5_media_model::model_bra_compact_before, & sh5_compact_sh5_media_model::model_bra_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16825   { SH5_COMPACT_INSN_BRAF_COMPACT, & sh5_compact_sh5_media_model::model_braf_compact_before, & sh5_compact_sh5_media_model::model_braf_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16826   { SH5_COMPACT_INSN_BRK_COMPACT, & sh5_compact_sh5_media_model::model_brk_compact_before, & sh5_compact_sh5_media_model::model_brk_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16827   { SH5_COMPACT_INSN_BSR_COMPACT, & sh5_compact_sh5_media_model::model_bsr_compact_before, & sh5_compact_sh5_media_model::model_bsr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16828   { SH5_COMPACT_INSN_BSRF_COMPACT, & sh5_compact_sh5_media_model::model_bsrf_compact_before, & sh5_compact_sh5_media_model::model_bsrf_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16829   { SH5_COMPACT_INSN_BT_COMPACT, & sh5_compact_sh5_media_model::model_bt_compact_before, & sh5_compact_sh5_media_model::model_bt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16830   { SH5_COMPACT_INSN_BTS_COMPACT, & sh5_compact_sh5_media_model::model_bts_compact_before, & sh5_compact_sh5_media_model::model_bts_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16831   { SH5_COMPACT_INSN_CLRMAC_COMPACT, & sh5_compact_sh5_media_model::model_clrmac_compact_before, & sh5_compact_sh5_media_model::model_clrmac_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16832   { SH5_COMPACT_INSN_CLRS_COMPACT, & sh5_compact_sh5_media_model::model_clrs_compact_before, & sh5_compact_sh5_media_model::model_clrs_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16833   { SH5_COMPACT_INSN_CLRT_COMPACT, & sh5_compact_sh5_media_model::model_clrt_compact_before, & sh5_compact_sh5_media_model::model_clrt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16834   { SH5_COMPACT_INSN_CMPEQ_COMPACT, & sh5_compact_sh5_media_model::model_cmpeq_compact_before, & sh5_compact_sh5_media_model::model_cmpeq_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16835   { SH5_COMPACT_INSN_CMPEQI_COMPACT, & sh5_compact_sh5_media_model::model_cmpeqi_compact_before, & sh5_compact_sh5_media_model::model_cmpeqi_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16836   { SH5_COMPACT_INSN_CMPGE_COMPACT, & sh5_compact_sh5_media_model::model_cmpge_compact_before, & sh5_compact_sh5_media_model::model_cmpge_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16837   { SH5_COMPACT_INSN_CMPGT_COMPACT, & sh5_compact_sh5_media_model::model_cmpgt_compact_before, & sh5_compact_sh5_media_model::model_cmpgt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16838   { SH5_COMPACT_INSN_CMPHI_COMPACT, & sh5_compact_sh5_media_model::model_cmphi_compact_before, & sh5_compact_sh5_media_model::model_cmphi_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16839   { SH5_COMPACT_INSN_CMPHS_COMPACT, & sh5_compact_sh5_media_model::model_cmphs_compact_before, & sh5_compact_sh5_media_model::model_cmphs_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16840   { SH5_COMPACT_INSN_CMPPL_COMPACT, & sh5_compact_sh5_media_model::model_cmppl_compact_before, & sh5_compact_sh5_media_model::model_cmppl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16841   { SH5_COMPACT_INSN_CMPPZ_COMPACT, & sh5_compact_sh5_media_model::model_cmppz_compact_before, & sh5_compact_sh5_media_model::model_cmppz_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16842   { SH5_COMPACT_INSN_CMPSTR_COMPACT, & sh5_compact_sh5_media_model::model_cmpstr_compact_before, & sh5_compact_sh5_media_model::model_cmpstr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16843   { SH5_COMPACT_INSN_DIV0S_COMPACT, & sh5_compact_sh5_media_model::model_div0s_compact_before, & sh5_compact_sh5_media_model::model_div0s_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16844   { SH5_COMPACT_INSN_DIV0U_COMPACT, & sh5_compact_sh5_media_model::model_div0u_compact_before, & sh5_compact_sh5_media_model::model_div0u_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16845   { SH5_COMPACT_INSN_DIV1_COMPACT, & sh5_compact_sh5_media_model::model_div1_compact_before, & sh5_compact_sh5_media_model::model_div1_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16846   { SH5_COMPACT_INSN_DIVU_COMPACT, & sh5_compact_sh5_media_model::model_divu_compact_before, & sh5_compact_sh5_media_model::model_divu_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16847   { SH5_COMPACT_INSN_MULR_COMPACT, & sh5_compact_sh5_media_model::model_mulr_compact_before, & sh5_compact_sh5_media_model::model_mulr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16848   { SH5_COMPACT_INSN_DMULSL_COMPACT, & sh5_compact_sh5_media_model::model_dmulsl_compact_before, & sh5_compact_sh5_media_model::model_dmulsl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16849   { SH5_COMPACT_INSN_DMULUL_COMPACT, & sh5_compact_sh5_media_model::model_dmulul_compact_before, & sh5_compact_sh5_media_model::model_dmulul_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16850   { SH5_COMPACT_INSN_DT_COMPACT, & sh5_compact_sh5_media_model::model_dt_compact_before, & sh5_compact_sh5_media_model::model_dt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16851   { SH5_COMPACT_INSN_EXTSB_COMPACT, & sh5_compact_sh5_media_model::model_extsb_compact_before, & sh5_compact_sh5_media_model::model_extsb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16852   { SH5_COMPACT_INSN_EXTSW_COMPACT, & sh5_compact_sh5_media_model::model_extsw_compact_before, & sh5_compact_sh5_media_model::model_extsw_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16853   { SH5_COMPACT_INSN_EXTUB_COMPACT, & sh5_compact_sh5_media_model::model_extub_compact_before, & sh5_compact_sh5_media_model::model_extub_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16854   { SH5_COMPACT_INSN_EXTUW_COMPACT, & sh5_compact_sh5_media_model::model_extuw_compact_before, & sh5_compact_sh5_media_model::model_extuw_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16855   { SH5_COMPACT_INSN_FABS_COMPACT, & sh5_compact_sh5_media_model::model_fabs_compact_before, & sh5_compact_sh5_media_model::model_fabs_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16856   { SH5_COMPACT_INSN_FADD_COMPACT, & sh5_compact_sh5_media_model::model_fadd_compact_before, & sh5_compact_sh5_media_model::model_fadd_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16857   { SH5_COMPACT_INSN_FCMPEQ_COMPACT, & sh5_compact_sh5_media_model::model_fcmpeq_compact_before, & sh5_compact_sh5_media_model::model_fcmpeq_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16858   { SH5_COMPACT_INSN_FCMPGT_COMPACT, & sh5_compact_sh5_media_model::model_fcmpgt_compact_before, & sh5_compact_sh5_media_model::model_fcmpgt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16859   { SH5_COMPACT_INSN_FCNVDS_COMPACT, & sh5_compact_sh5_media_model::model_fcnvds_compact_before, & sh5_compact_sh5_media_model::model_fcnvds_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16860   { SH5_COMPACT_INSN_FCNVSD_COMPACT, & sh5_compact_sh5_media_model::model_fcnvsd_compact_before, & sh5_compact_sh5_media_model::model_fcnvsd_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16861   { SH5_COMPACT_INSN_FDIV_COMPACT, & sh5_compact_sh5_media_model::model_fdiv_compact_before, & sh5_compact_sh5_media_model::model_fdiv_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16862   { SH5_COMPACT_INSN_FIPR_COMPACT, & sh5_compact_sh5_media_model::model_fipr_compact_before, & sh5_compact_sh5_media_model::model_fipr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16863   { SH5_COMPACT_INSN_FLDS_COMPACT, & sh5_compact_sh5_media_model::model_flds_compact_before, & sh5_compact_sh5_media_model::model_flds_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16864   { SH5_COMPACT_INSN_FLDI0_COMPACT, & sh5_compact_sh5_media_model::model_fldi0_compact_before, & sh5_compact_sh5_media_model::model_fldi0_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16865   { SH5_COMPACT_INSN_FLDI1_COMPACT, & sh5_compact_sh5_media_model::model_fldi1_compact_before, & sh5_compact_sh5_media_model::model_fldi1_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16866   { SH5_COMPACT_INSN_FLOAT_COMPACT, & sh5_compact_sh5_media_model::model_float_compact_before, & sh5_compact_sh5_media_model::model_float_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16867   { SH5_COMPACT_INSN_FMAC_COMPACT, & sh5_compact_sh5_media_model::model_fmac_compact_before, & sh5_compact_sh5_media_model::model_fmac_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16868   { SH5_COMPACT_INSN_FMOV1_COMPACT, & sh5_compact_sh5_media_model::model_fmov1_compact_before, & sh5_compact_sh5_media_model::model_fmov1_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16869   { SH5_COMPACT_INSN_FMOV2_COMPACT, & sh5_compact_sh5_media_model::model_fmov2_compact_before, & sh5_compact_sh5_media_model::model_fmov2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16870   { SH5_COMPACT_INSN_FMOV3_COMPACT, & sh5_compact_sh5_media_model::model_fmov3_compact_before, & sh5_compact_sh5_media_model::model_fmov3_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16871   { SH5_COMPACT_INSN_FMOV4_COMPACT, & sh5_compact_sh5_media_model::model_fmov4_compact_before, & sh5_compact_sh5_media_model::model_fmov4_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16872   { SH5_COMPACT_INSN_FMOV5_COMPACT, & sh5_compact_sh5_media_model::model_fmov5_compact_before, & sh5_compact_sh5_media_model::model_fmov5_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16873   { SH5_COMPACT_INSN_FMOV6_COMPACT, & sh5_compact_sh5_media_model::model_fmov6_compact_before, & sh5_compact_sh5_media_model::model_fmov6_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16874   { SH5_COMPACT_INSN_FMOV7_COMPACT, & sh5_compact_sh5_media_model::model_fmov7_compact_before, & sh5_compact_sh5_media_model::model_fmov7_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16875   { SH5_COMPACT_INSN_FMOV8_COMPACT, & sh5_compact_sh5_media_model::model_fmov8_compact_before, & sh5_compact_sh5_media_model::model_fmov8_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16876   { SH5_COMPACT_INSN_FMOV9_COMPACT, & sh5_compact_sh5_media_model::model_fmov9_compact_before, & sh5_compact_sh5_media_model::model_fmov9_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16877   { SH5_COMPACT_INSN_FMUL_COMPACT, & sh5_compact_sh5_media_model::model_fmul_compact_before, & sh5_compact_sh5_media_model::model_fmul_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16878   { SH5_COMPACT_INSN_FNEG_COMPACT, & sh5_compact_sh5_media_model::model_fneg_compact_before, & sh5_compact_sh5_media_model::model_fneg_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16879   { SH5_COMPACT_INSN_FRCHG_COMPACT, & sh5_compact_sh5_media_model::model_frchg_compact_before, & sh5_compact_sh5_media_model::model_frchg_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16880   { SH5_COMPACT_INSN_FSCHG_COMPACT, & sh5_compact_sh5_media_model::model_fschg_compact_before, & sh5_compact_sh5_media_model::model_fschg_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16881   { SH5_COMPACT_INSN_FSQRT_COMPACT, & sh5_compact_sh5_media_model::model_fsqrt_compact_before, & sh5_compact_sh5_media_model::model_fsqrt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16882   { SH5_COMPACT_INSN_FSTS_COMPACT, & sh5_compact_sh5_media_model::model_fsts_compact_before, & sh5_compact_sh5_media_model::model_fsts_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16883   { SH5_COMPACT_INSN_FSUB_COMPACT, & sh5_compact_sh5_media_model::model_fsub_compact_before, & sh5_compact_sh5_media_model::model_fsub_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16884   { SH5_COMPACT_INSN_FTRC_COMPACT, & sh5_compact_sh5_media_model::model_ftrc_compact_before, & sh5_compact_sh5_media_model::model_ftrc_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16885   { SH5_COMPACT_INSN_FTRV_COMPACT, & sh5_compact_sh5_media_model::model_ftrv_compact_before, & sh5_compact_sh5_media_model::model_ftrv_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16886   { SH5_COMPACT_INSN_JMP_COMPACT, & sh5_compact_sh5_media_model::model_jmp_compact_before, & sh5_compact_sh5_media_model::model_jmp_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16887   { SH5_COMPACT_INSN_JSR_COMPACT, & sh5_compact_sh5_media_model::model_jsr_compact_before, & sh5_compact_sh5_media_model::model_jsr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16888   { SH5_COMPACT_INSN_LDC_GBR_COMPACT, & sh5_compact_sh5_media_model::model_ldc_gbr_compact_before, & sh5_compact_sh5_media_model::model_ldc_gbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16889   { SH5_COMPACT_INSN_LDC_VBR_COMPACT, & sh5_compact_sh5_media_model::model_ldc_vbr_compact_before, & sh5_compact_sh5_media_model::model_ldc_vbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16890   { SH5_COMPACT_INSN_LDC_SR_COMPACT, & sh5_compact_sh5_media_model::model_ldc_sr_compact_before, & sh5_compact_sh5_media_model::model_ldc_sr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16891   { SH5_COMPACT_INSN_LDCL_GBR_COMPACT, & sh5_compact_sh5_media_model::model_ldcl_gbr_compact_before, & sh5_compact_sh5_media_model::model_ldcl_gbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16892   { SH5_COMPACT_INSN_LDCL_VBR_COMPACT, & sh5_compact_sh5_media_model::model_ldcl_vbr_compact_before, & sh5_compact_sh5_media_model::model_ldcl_vbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16893   { SH5_COMPACT_INSN_LDS_FPSCR_COMPACT, & sh5_compact_sh5_media_model::model_lds_fpscr_compact_before, & sh5_compact_sh5_media_model::model_lds_fpscr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16894   { SH5_COMPACT_INSN_LDSL_FPSCR_COMPACT, & sh5_compact_sh5_media_model::model_ldsl_fpscr_compact_before, & sh5_compact_sh5_media_model::model_ldsl_fpscr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16895   { SH5_COMPACT_INSN_LDS_FPUL_COMPACT, & sh5_compact_sh5_media_model::model_lds_fpul_compact_before, & sh5_compact_sh5_media_model::model_lds_fpul_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16896   { SH5_COMPACT_INSN_LDSL_FPUL_COMPACT, & sh5_compact_sh5_media_model::model_ldsl_fpul_compact_before, & sh5_compact_sh5_media_model::model_ldsl_fpul_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16897   { SH5_COMPACT_INSN_LDS_MACH_COMPACT, & sh5_compact_sh5_media_model::model_lds_mach_compact_before, & sh5_compact_sh5_media_model::model_lds_mach_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16898   { SH5_COMPACT_INSN_LDSL_MACH_COMPACT, & sh5_compact_sh5_media_model::model_ldsl_mach_compact_before, & sh5_compact_sh5_media_model::model_ldsl_mach_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16899   { SH5_COMPACT_INSN_LDS_MACL_COMPACT, & sh5_compact_sh5_media_model::model_lds_macl_compact_before, & sh5_compact_sh5_media_model::model_lds_macl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16900   { SH5_COMPACT_INSN_LDSL_MACL_COMPACT, & sh5_compact_sh5_media_model::model_ldsl_macl_compact_before, & sh5_compact_sh5_media_model::model_ldsl_macl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16901   { SH5_COMPACT_INSN_LDS_PR_COMPACT, & sh5_compact_sh5_media_model::model_lds_pr_compact_before, & sh5_compact_sh5_media_model::model_lds_pr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16902   { SH5_COMPACT_INSN_LDSL_PR_COMPACT, & sh5_compact_sh5_media_model::model_ldsl_pr_compact_before, & sh5_compact_sh5_media_model::model_ldsl_pr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16903   { SH5_COMPACT_INSN_MACL_COMPACT, & sh5_compact_sh5_media_model::model_macl_compact_before, & sh5_compact_sh5_media_model::model_macl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16904   { SH5_COMPACT_INSN_MACW_COMPACT, & sh5_compact_sh5_media_model::model_macw_compact_before, & sh5_compact_sh5_media_model::model_macw_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16905   { SH5_COMPACT_INSN_MOV_COMPACT, & sh5_compact_sh5_media_model::model_mov_compact_before, & sh5_compact_sh5_media_model::model_mov_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16906   { SH5_COMPACT_INSN_MOVI_COMPACT, & sh5_compact_sh5_media_model::model_movi_compact_before, & sh5_compact_sh5_media_model::model_movi_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16907   { SH5_COMPACT_INSN_MOVI20_COMPACT, & sh5_compact_sh5_media_model::model_movi20_compact_before, & sh5_compact_sh5_media_model::model_movi20_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16908   { SH5_COMPACT_INSN_MOVB1_COMPACT, & sh5_compact_sh5_media_model::model_movb1_compact_before, & sh5_compact_sh5_media_model::model_movb1_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16909   { SH5_COMPACT_INSN_MOVB2_COMPACT, & sh5_compact_sh5_media_model::model_movb2_compact_before, & sh5_compact_sh5_media_model::model_movb2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16910   { SH5_COMPACT_INSN_MOVB3_COMPACT, & sh5_compact_sh5_media_model::model_movb3_compact_before, & sh5_compact_sh5_media_model::model_movb3_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16911   { SH5_COMPACT_INSN_MOVB4_COMPACT, & sh5_compact_sh5_media_model::model_movb4_compact_before, & sh5_compact_sh5_media_model::model_movb4_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16912   { SH5_COMPACT_INSN_MOVB5_COMPACT, & sh5_compact_sh5_media_model::model_movb5_compact_before, & sh5_compact_sh5_media_model::model_movb5_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16913   { SH5_COMPACT_INSN_MOVB6_COMPACT, & sh5_compact_sh5_media_model::model_movb6_compact_before, & sh5_compact_sh5_media_model::model_movb6_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16914   { SH5_COMPACT_INSN_MOVB7_COMPACT, & sh5_compact_sh5_media_model::model_movb7_compact_before, & sh5_compact_sh5_media_model::model_movb7_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16915   { SH5_COMPACT_INSN_MOVB8_COMPACT, & sh5_compact_sh5_media_model::model_movb8_compact_before, & sh5_compact_sh5_media_model::model_movb8_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16916   { SH5_COMPACT_INSN_MOVB9_COMPACT, & sh5_compact_sh5_media_model::model_movb9_compact_before, & sh5_compact_sh5_media_model::model_movb9_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16917   { SH5_COMPACT_INSN_MOVB10_COMPACT, & sh5_compact_sh5_media_model::model_movb10_compact_before, & sh5_compact_sh5_media_model::model_movb10_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16918   { SH5_COMPACT_INSN_MOVL1_COMPACT, & sh5_compact_sh5_media_model::model_movl1_compact_before, & sh5_compact_sh5_media_model::model_movl1_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16919   { SH5_COMPACT_INSN_MOVL2_COMPACT, & sh5_compact_sh5_media_model::model_movl2_compact_before, & sh5_compact_sh5_media_model::model_movl2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16920   { SH5_COMPACT_INSN_MOVL3_COMPACT, & sh5_compact_sh5_media_model::model_movl3_compact_before, & sh5_compact_sh5_media_model::model_movl3_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16921   { SH5_COMPACT_INSN_MOVL4_COMPACT, & sh5_compact_sh5_media_model::model_movl4_compact_before, & sh5_compact_sh5_media_model::model_movl4_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16922   { SH5_COMPACT_INSN_MOVL5_COMPACT, & sh5_compact_sh5_media_model::model_movl5_compact_before, & sh5_compact_sh5_media_model::model_movl5_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16923   { SH5_COMPACT_INSN_MOVL6_COMPACT, & sh5_compact_sh5_media_model::model_movl6_compact_before, & sh5_compact_sh5_media_model::model_movl6_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16924   { SH5_COMPACT_INSN_MOVL7_COMPACT, & sh5_compact_sh5_media_model::model_movl7_compact_before, & sh5_compact_sh5_media_model::model_movl7_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16925   { SH5_COMPACT_INSN_MOVL8_COMPACT, & sh5_compact_sh5_media_model::model_movl8_compact_before, & sh5_compact_sh5_media_model::model_movl8_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16926   { SH5_COMPACT_INSN_MOVL9_COMPACT, & sh5_compact_sh5_media_model::model_movl9_compact_before, & sh5_compact_sh5_media_model::model_movl9_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16927   { SH5_COMPACT_INSN_MOVL10_COMPACT, & sh5_compact_sh5_media_model::model_movl10_compact_before, & sh5_compact_sh5_media_model::model_movl10_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16928   { SH5_COMPACT_INSN_MOVL11_COMPACT, & sh5_compact_sh5_media_model::model_movl11_compact_before, & sh5_compact_sh5_media_model::model_movl11_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16929   { SH5_COMPACT_INSN_MOVL12_COMPACT, & sh5_compact_sh5_media_model::model_movl12_compact_before, & sh5_compact_sh5_media_model::model_movl12_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16930   { SH5_COMPACT_INSN_MOVL13_COMPACT, & sh5_compact_sh5_media_model::model_movl13_compact_before, & sh5_compact_sh5_media_model::model_movl13_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16931   { SH5_COMPACT_INSN_MOVW1_COMPACT, & sh5_compact_sh5_media_model::model_movw1_compact_before, & sh5_compact_sh5_media_model::model_movw1_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16932   { SH5_COMPACT_INSN_MOVW2_COMPACT, & sh5_compact_sh5_media_model::model_movw2_compact_before, & sh5_compact_sh5_media_model::model_movw2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16933   { SH5_COMPACT_INSN_MOVW3_COMPACT, & sh5_compact_sh5_media_model::model_movw3_compact_before, & sh5_compact_sh5_media_model::model_movw3_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16934   { SH5_COMPACT_INSN_MOVW4_COMPACT, & sh5_compact_sh5_media_model::model_movw4_compact_before, & sh5_compact_sh5_media_model::model_movw4_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16935   { SH5_COMPACT_INSN_MOVW5_COMPACT, & sh5_compact_sh5_media_model::model_movw5_compact_before, & sh5_compact_sh5_media_model::model_movw5_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16936   { SH5_COMPACT_INSN_MOVW6_COMPACT, & sh5_compact_sh5_media_model::model_movw6_compact_before, & sh5_compact_sh5_media_model::model_movw6_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16937   { SH5_COMPACT_INSN_MOVW7_COMPACT, & sh5_compact_sh5_media_model::model_movw7_compact_before, & sh5_compact_sh5_media_model::model_movw7_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16938   { SH5_COMPACT_INSN_MOVW8_COMPACT, & sh5_compact_sh5_media_model::model_movw8_compact_before, & sh5_compact_sh5_media_model::model_movw8_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16939   { SH5_COMPACT_INSN_MOVW9_COMPACT, & sh5_compact_sh5_media_model::model_movw9_compact_before, & sh5_compact_sh5_media_model::model_movw9_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16940   { SH5_COMPACT_INSN_MOVW10_COMPACT, & sh5_compact_sh5_media_model::model_movw10_compact_before, & sh5_compact_sh5_media_model::model_movw10_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16941   { SH5_COMPACT_INSN_MOVW11_COMPACT, & sh5_compact_sh5_media_model::model_movw11_compact_before, & sh5_compact_sh5_media_model::model_movw11_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16942   { SH5_COMPACT_INSN_MOVA_COMPACT, & sh5_compact_sh5_media_model::model_mova_compact_before, & sh5_compact_sh5_media_model::model_mova_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16943   { SH5_COMPACT_INSN_MOVCAL_COMPACT, & sh5_compact_sh5_media_model::model_movcal_compact_before, & sh5_compact_sh5_media_model::model_movcal_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16944   { SH5_COMPACT_INSN_MOVCOL_COMPACT, & sh5_compact_sh5_media_model::model_movcol_compact_before, & sh5_compact_sh5_media_model::model_movcol_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16945   { SH5_COMPACT_INSN_MOVT_COMPACT, & sh5_compact_sh5_media_model::model_movt_compact_before, & sh5_compact_sh5_media_model::model_movt_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16946   { SH5_COMPACT_INSN_MOVUAL_COMPACT, & sh5_compact_sh5_media_model::model_movual_compact_before, & sh5_compact_sh5_media_model::model_movual_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16947   { SH5_COMPACT_INSN_MOVUAL2_COMPACT, & sh5_compact_sh5_media_model::model_movual2_compact_before, & sh5_compact_sh5_media_model::model_movual2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16948   { SH5_COMPACT_INSN_MULL_COMPACT, & sh5_compact_sh5_media_model::model_mull_compact_before, & sh5_compact_sh5_media_model::model_mull_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16949   { SH5_COMPACT_INSN_MULSW_COMPACT, & sh5_compact_sh5_media_model::model_mulsw_compact_before, & sh5_compact_sh5_media_model::model_mulsw_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16950   { SH5_COMPACT_INSN_MULUW_COMPACT, & sh5_compact_sh5_media_model::model_muluw_compact_before, & sh5_compact_sh5_media_model::model_muluw_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16951   { SH5_COMPACT_INSN_NEG_COMPACT, & sh5_compact_sh5_media_model::model_neg_compact_before, & sh5_compact_sh5_media_model::model_neg_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16952   { SH5_COMPACT_INSN_NEGC_COMPACT, & sh5_compact_sh5_media_model::model_negc_compact_before, & sh5_compact_sh5_media_model::model_negc_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16953   { SH5_COMPACT_INSN_NOP_COMPACT, & sh5_compact_sh5_media_model::model_nop_compact_before, & sh5_compact_sh5_media_model::model_nop_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16954   { SH5_COMPACT_INSN_NOT_COMPACT, & sh5_compact_sh5_media_model::model_not_compact_before, & sh5_compact_sh5_media_model::model_not_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16955   { SH5_COMPACT_INSN_OCBI_COMPACT, & sh5_compact_sh5_media_model::model_ocbi_compact_before, & sh5_compact_sh5_media_model::model_ocbi_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16956   { SH5_COMPACT_INSN_OCBP_COMPACT, & sh5_compact_sh5_media_model::model_ocbp_compact_before, & sh5_compact_sh5_media_model::model_ocbp_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16957   { SH5_COMPACT_INSN_OCBWB_COMPACT, & sh5_compact_sh5_media_model::model_ocbwb_compact_before, & sh5_compact_sh5_media_model::model_ocbwb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16958   { SH5_COMPACT_INSN_OR_COMPACT, & sh5_compact_sh5_media_model::model_or_compact_before, & sh5_compact_sh5_media_model::model_or_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16959   { SH5_COMPACT_INSN_ORI_COMPACT, & sh5_compact_sh5_media_model::model_ori_compact_before, & sh5_compact_sh5_media_model::model_ori_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16960   { SH5_COMPACT_INSN_ORB_COMPACT, & sh5_compact_sh5_media_model::model_orb_compact_before, & sh5_compact_sh5_media_model::model_orb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16961   { SH5_COMPACT_INSN_PREF_COMPACT, & sh5_compact_sh5_media_model::model_pref_compact_before, & sh5_compact_sh5_media_model::model_pref_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16962   { SH5_COMPACT_INSN_ROTCL_COMPACT, & sh5_compact_sh5_media_model::model_rotcl_compact_before, & sh5_compact_sh5_media_model::model_rotcl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16963   { SH5_COMPACT_INSN_ROTCR_COMPACT, & sh5_compact_sh5_media_model::model_rotcr_compact_before, & sh5_compact_sh5_media_model::model_rotcr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16964   { SH5_COMPACT_INSN_ROTL_COMPACT, & sh5_compact_sh5_media_model::model_rotl_compact_before, & sh5_compact_sh5_media_model::model_rotl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16965   { SH5_COMPACT_INSN_ROTR_COMPACT, & sh5_compact_sh5_media_model::model_rotr_compact_before, & sh5_compact_sh5_media_model::model_rotr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16966   { SH5_COMPACT_INSN_RTS_COMPACT, & sh5_compact_sh5_media_model::model_rts_compact_before, & sh5_compact_sh5_media_model::model_rts_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16967   { SH5_COMPACT_INSN_SETS_COMPACT, & sh5_compact_sh5_media_model::model_sets_compact_before, & sh5_compact_sh5_media_model::model_sets_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16968   { SH5_COMPACT_INSN_SETT_COMPACT, & sh5_compact_sh5_media_model::model_sett_compact_before, & sh5_compact_sh5_media_model::model_sett_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16969   { SH5_COMPACT_INSN_SHAD_COMPACT, & sh5_compact_sh5_media_model::model_shad_compact_before, & sh5_compact_sh5_media_model::model_shad_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16970   { SH5_COMPACT_INSN_SHAL_COMPACT, & sh5_compact_sh5_media_model::model_shal_compact_before, & sh5_compact_sh5_media_model::model_shal_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16971   { SH5_COMPACT_INSN_SHAR_COMPACT, & sh5_compact_sh5_media_model::model_shar_compact_before, & sh5_compact_sh5_media_model::model_shar_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16972   { SH5_COMPACT_INSN_SHLD_COMPACT, & sh5_compact_sh5_media_model::model_shld_compact_before, & sh5_compact_sh5_media_model::model_shld_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16973   { SH5_COMPACT_INSN_SHLL_COMPACT, & sh5_compact_sh5_media_model::model_shll_compact_before, & sh5_compact_sh5_media_model::model_shll_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16974   { SH5_COMPACT_INSN_SHLL2_COMPACT, & sh5_compact_sh5_media_model::model_shll2_compact_before, & sh5_compact_sh5_media_model::model_shll2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16975   { SH5_COMPACT_INSN_SHLL8_COMPACT, & sh5_compact_sh5_media_model::model_shll8_compact_before, & sh5_compact_sh5_media_model::model_shll8_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16976   { SH5_COMPACT_INSN_SHLL16_COMPACT, & sh5_compact_sh5_media_model::model_shll16_compact_before, & sh5_compact_sh5_media_model::model_shll16_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16977   { SH5_COMPACT_INSN_SHLR_COMPACT, & sh5_compact_sh5_media_model::model_shlr_compact_before, & sh5_compact_sh5_media_model::model_shlr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16978   { SH5_COMPACT_INSN_SHLR2_COMPACT, & sh5_compact_sh5_media_model::model_shlr2_compact_before, & sh5_compact_sh5_media_model::model_shlr2_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16979   { SH5_COMPACT_INSN_SHLR8_COMPACT, & sh5_compact_sh5_media_model::model_shlr8_compact_before, & sh5_compact_sh5_media_model::model_shlr8_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16980   { SH5_COMPACT_INSN_SHLR16_COMPACT, & sh5_compact_sh5_media_model::model_shlr16_compact_before, & sh5_compact_sh5_media_model::model_shlr16_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16981   { SH5_COMPACT_INSN_STC_GBR_COMPACT, & sh5_compact_sh5_media_model::model_stc_gbr_compact_before, & sh5_compact_sh5_media_model::model_stc_gbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16982   { SH5_COMPACT_INSN_STC_VBR_COMPACT, & sh5_compact_sh5_media_model::model_stc_vbr_compact_before, & sh5_compact_sh5_media_model::model_stc_vbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16983   { SH5_COMPACT_INSN_STCL_GBR_COMPACT, & sh5_compact_sh5_media_model::model_stcl_gbr_compact_before, & sh5_compact_sh5_media_model::model_stcl_gbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16984   { SH5_COMPACT_INSN_STCL_VBR_COMPACT, & sh5_compact_sh5_media_model::model_stcl_vbr_compact_before, & sh5_compact_sh5_media_model::model_stcl_vbr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16985   { SH5_COMPACT_INSN_STS_FPSCR_COMPACT, & sh5_compact_sh5_media_model::model_sts_fpscr_compact_before, & sh5_compact_sh5_media_model::model_sts_fpscr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16986   { SH5_COMPACT_INSN_STSL_FPSCR_COMPACT, & sh5_compact_sh5_media_model::model_stsl_fpscr_compact_before, & sh5_compact_sh5_media_model::model_stsl_fpscr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16987   { SH5_COMPACT_INSN_STS_FPUL_COMPACT, & sh5_compact_sh5_media_model::model_sts_fpul_compact_before, & sh5_compact_sh5_media_model::model_sts_fpul_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16988   { SH5_COMPACT_INSN_STSL_FPUL_COMPACT, & sh5_compact_sh5_media_model::model_stsl_fpul_compact_before, & sh5_compact_sh5_media_model::model_stsl_fpul_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16989   { SH5_COMPACT_INSN_STS_MACH_COMPACT, & sh5_compact_sh5_media_model::model_sts_mach_compact_before, & sh5_compact_sh5_media_model::model_sts_mach_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16990   { SH5_COMPACT_INSN_STSL_MACH_COMPACT, & sh5_compact_sh5_media_model::model_stsl_mach_compact_before, & sh5_compact_sh5_media_model::model_stsl_mach_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16991   { SH5_COMPACT_INSN_STS_MACL_COMPACT, & sh5_compact_sh5_media_model::model_sts_macl_compact_before, & sh5_compact_sh5_media_model::model_sts_macl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16992   { SH5_COMPACT_INSN_STSL_MACL_COMPACT, & sh5_compact_sh5_media_model::model_stsl_macl_compact_before, & sh5_compact_sh5_media_model::model_stsl_macl_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16993   { SH5_COMPACT_INSN_STS_PR_COMPACT, & sh5_compact_sh5_media_model::model_sts_pr_compact_before, & sh5_compact_sh5_media_model::model_sts_pr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16994   { SH5_COMPACT_INSN_STSL_PR_COMPACT, & sh5_compact_sh5_media_model::model_stsl_pr_compact_before, & sh5_compact_sh5_media_model::model_stsl_pr_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16995   { SH5_COMPACT_INSN_SUB_COMPACT, & sh5_compact_sh5_media_model::model_sub_compact_before, & sh5_compact_sh5_media_model::model_sub_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16996   { SH5_COMPACT_INSN_SUBC_COMPACT, & sh5_compact_sh5_media_model::model_subc_compact_before, & sh5_compact_sh5_media_model::model_subc_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16997   { SH5_COMPACT_INSN_SUBV_COMPACT, & sh5_compact_sh5_media_model::model_subv_compact_before, & sh5_compact_sh5_media_model::model_subv_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16998   { SH5_COMPACT_INSN_SWAPB_COMPACT, & sh5_compact_sh5_media_model::model_swapb_compact_before, & sh5_compact_sh5_media_model::model_swapb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
16999   { SH5_COMPACT_INSN_SWAPW_COMPACT, & sh5_compact_sh5_media_model::model_swapw_compact_before, & sh5_compact_sh5_media_model::model_swapw_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17000   { SH5_COMPACT_INSN_TASB_COMPACT, & sh5_compact_sh5_media_model::model_tasb_compact_before, & sh5_compact_sh5_media_model::model_tasb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17001   { SH5_COMPACT_INSN_TRAPA_COMPACT, & sh5_compact_sh5_media_model::model_trapa_compact_before, & sh5_compact_sh5_media_model::model_trapa_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17002   { SH5_COMPACT_INSN_TST_COMPACT, & sh5_compact_sh5_media_model::model_tst_compact_before, & sh5_compact_sh5_media_model::model_tst_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17003   { SH5_COMPACT_INSN_TSTI_COMPACT, & sh5_compact_sh5_media_model::model_tsti_compact_before, & sh5_compact_sh5_media_model::model_tsti_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17004   { SH5_COMPACT_INSN_TSTB_COMPACT, & sh5_compact_sh5_media_model::model_tstb_compact_before, & sh5_compact_sh5_media_model::model_tstb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17005   { SH5_COMPACT_INSN_XOR_COMPACT, & sh5_compact_sh5_media_model::model_xor_compact_before, & sh5_compact_sh5_media_model::model_xor_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17006   { SH5_COMPACT_INSN_XORI_COMPACT, & sh5_compact_sh5_media_model::model_xori_compact_before, & sh5_compact_sh5_media_model::model_xori_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17007   { SH5_COMPACT_INSN_XORB_COMPACT, & sh5_compact_sh5_media_model::model_xorb_compact_before, & sh5_compact_sh5_media_model::model_xorb_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17008   { SH5_COMPACT_INSN_XTRCT_COMPACT, & sh5_compact_sh5_media_model::model_xtrct_compact_before, & sh5_compact_sh5_media_model::model_xtrct_compact_after, { { sh5_compact_sh5_media_model::UNIT_U_EXEC, 1, 1 } } },
17009 };
17010