diff options
Diffstat (limited to 'sim/cris/decodev32.c')
-rw-r--r-- | sim/cris/decodev32.c | 1415 |
1 files changed, 1105 insertions, 310 deletions
diff --git a/sim/cris/decodev32.c b/sim/cris/decodev32.c index f469e14..aa9d353 100644 --- a/sim/cris/decodev32.c +++ b/sim/cris/decodev32.c @@ -18,7 +18,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ @@ -371,8 +371,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 15 : itype = CRISV32F_INSN_BCC_B; goto extract_sfmt_bcc_b; - case 14 : itype = CRISV32F_INSN_BA_B; goto extract_sfmt_ba_b; + case 15 : + if ((base_insn & 0xf00) == 0x0) + { itype = CRISV32F_INSN_BCC_B; goto extract_sfmt_bcc_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 14 : + if ((base_insn & 0xff00) == 0xe000) + { itype = CRISV32F_INSN_BA_B; goto extract_sfmt_ba_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -391,192 +397,609 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 28 : /* fall through */ case 29 : /* fall through */ case 30 : /* fall through */ - case 31 : itype = CRISV32F_INSN_ADDOQ; goto extract_sfmt_addoq; + case 31 : + if ((base_insn & 0xf00) == 0x100) + { itype = CRISV32F_INSN_ADDOQ; goto extract_sfmt_addoq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 32 : /* fall through */ case 33 : /* fall through */ case 34 : /* fall through */ - case 35 : itype = CRISV32F_INSN_ADDQ; goto extract_sfmt_addq; + case 35 : + if ((base_insn & 0xfc0) == 0x200) + { itype = CRISV32F_INSN_ADDQ; goto extract_sfmt_addq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 36 : /* fall through */ case 37 : /* fall through */ case 38 : /* fall through */ - case 39 : itype = CRISV32F_INSN_MOVEQ; goto extract_sfmt_moveq; + case 39 : + if ((base_insn & 0xfc0) == 0x240) + { itype = CRISV32F_INSN_MOVEQ; goto extract_sfmt_moveq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 40 : /* fall through */ case 41 : /* fall through */ case 42 : /* fall through */ - case 43 : itype = CRISV32F_INSN_SUBQ; goto extract_sfmt_addq; + case 43 : + if ((base_insn & 0xfc0) == 0x280) + { itype = CRISV32F_INSN_SUBQ; goto extract_sfmt_addq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 44 : /* fall through */ case 45 : /* fall through */ case 46 : /* fall through */ - case 47 : itype = CRISV32F_INSN_CMPQ; goto extract_sfmt_cmpq; + case 47 : + if ((base_insn & 0xfc0) == 0x2c0) + { itype = CRISV32F_INSN_CMPQ; goto extract_sfmt_cmpq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 48 : /* fall through */ case 49 : /* fall through */ case 50 : /* fall through */ - case 51 : itype = CRISV32F_INSN_ANDQ; goto extract_sfmt_andq; + case 51 : + if ((base_insn & 0xfc0) == 0x300) + { itype = CRISV32F_INSN_ANDQ; goto extract_sfmt_andq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 52 : /* fall through */ case 53 : /* fall through */ case 54 : /* fall through */ - case 55 : itype = CRISV32F_INSN_ORQ; goto extract_sfmt_andq; + case 55 : + if ((base_insn & 0xfc0) == 0x340) + { itype = CRISV32F_INSN_ORQ; goto extract_sfmt_andq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 56 : /* fall through */ - case 57 : itype = CRISV32F_INSN_BTSTQ; goto extract_sfmt_btstq; + case 57 : + if ((base_insn & 0xfe0) == 0x380) + { itype = CRISV32F_INSN_BTSTQ; goto extract_sfmt_btstq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 58 : /* fall through */ - case 59 : itype = CRISV32F_INSN_ASRQ; goto extract_sfmt_asrq; + case 59 : + if ((base_insn & 0xfe0) == 0x3a0) + { itype = CRISV32F_INSN_ASRQ; goto extract_sfmt_asrq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 60 : /* fall through */ - case 61 : itype = CRISV32F_INSN_LSLQ; goto extract_sfmt_asrq; + case 61 : + if ((base_insn & 0xfe0) == 0x3c0) + { itype = CRISV32F_INSN_LSLQ; goto extract_sfmt_asrq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 62 : /* fall through */ - case 63 : itype = CRISV32F_INSN_LSRQ; goto extract_sfmt_asrq; - case 64 : itype = CRISV32F_INSN_ADDU_B_R; goto extract_sfmt_add_d_r; - case 65 : itype = CRISV32F_INSN_ADDU_W_R; goto extract_sfmt_add_d_r; - case 66 : itype = CRISV32F_INSN_ADDS_B_R; goto extract_sfmt_add_d_r; - case 67 : itype = CRISV32F_INSN_ADDS_W_R; goto extract_sfmt_add_d_r; - case 68 : itype = CRISV32F_INSN_MOVU_B_R; goto extract_sfmt_movs_b_r; - case 69 : itype = CRISV32F_INSN_MOVU_W_R; goto extract_sfmt_movs_b_r; - case 70 : itype = CRISV32F_INSN_MOVS_B_R; goto extract_sfmt_movs_b_r; - case 71 : itype = CRISV32F_INSN_MOVS_W_R; goto extract_sfmt_movs_b_r; - case 72 : itype = CRISV32F_INSN_SUBU_B_R; goto extract_sfmt_add_d_r; - case 73 : itype = CRISV32F_INSN_SUBU_W_R; goto extract_sfmt_add_d_r; - case 74 : itype = CRISV32F_INSN_SUBS_B_R; goto extract_sfmt_add_d_r; - case 75 : itype = CRISV32F_INSN_SUBS_W_R; goto extract_sfmt_add_d_r; - case 76 : itype = CRISV32F_INSN_LSLR_B_R; goto extract_sfmt_lsrr_b_r; - case 77 : itype = CRISV32F_INSN_LSLR_W_R; goto extract_sfmt_lsrr_b_r; - case 78 : itype = CRISV32F_INSN_LSLR_D_R; goto extract_sfmt_lsrr_d_r; - case 79 : itype = CRISV32F_INSN_BTST; goto extract_sfmt_btst; - case 80 : itype = CRISV32F_INSN_ADDI_B_R; goto extract_sfmt_addi_b_r; - case 81 : itype = CRISV32F_INSN_ADDI_W_R; goto extract_sfmt_addi_b_r; - case 82 : itype = CRISV32F_INSN_ADDI_D_R; goto extract_sfmt_addi_b_r; - case 83 : itype = CRISV32F_INSN_SCC; goto extract_sfmt_scc; - case 84 : itype = CRISV32F_INSN_ADDI_ACR_B_R; goto extract_sfmt_addi_acr_b_r; - case 85 : itype = CRISV32F_INSN_ADDI_ACR_W_R; goto extract_sfmt_addi_acr_b_r; - case 86 : itype = CRISV32F_INSN_ADDI_ACR_D_R; goto extract_sfmt_addi_acr_b_r; - case 87 : itype = CRISV32F_INSN_ADDC_R; goto extract_sfmt_add_d_r; - case 88 : itype = CRISV32F_INSN_NEG_B_R; goto extract_sfmt_neg_b_r; - case 89 : itype = CRISV32F_INSN_NEG_W_R; goto extract_sfmt_neg_b_r; - case 90 : itype = CRISV32F_INSN_NEG_D_R; goto extract_sfmt_neg_d_r; - case 91 : itype = CRISV32F_INSN_SETF; goto extract_sfmt_setf; - case 92 : itype = CRISV32F_INSN_BOUND_R_B_R; goto extract_sfmt_dstep; - case 93 : itype = CRISV32F_INSN_BOUND_R_W_R; goto extract_sfmt_dstep; - case 94 : itype = CRISV32F_INSN_BOUND_R_D_R; goto extract_sfmt_dstep; - case 95 : itype = CRISV32F_INSN_CLEARF; goto extract_sfmt_setf; - case 96 : itype = CRISV32F_INSN_ADD_B_R; goto extract_sfmt_add_b_r; - case 97 : itype = CRISV32F_INSN_ADD_W_R; goto extract_sfmt_add_b_r; - case 98 : itype = CRISV32F_INSN_ADD_D_R; goto extract_sfmt_add_d_r; - case 99 : itype = CRISV32F_INSN_MOVE_R_SPRV32; goto extract_sfmt_move_r_sprv32; - case 100 : itype = CRISV32F_INSN_MOVE_B_R; goto extract_sfmt_move_b_r; - case 101 : itype = CRISV32F_INSN_MOVE_W_R; goto extract_sfmt_move_b_r; - case 102 : itype = CRISV32F_INSN_MOVE_D_R; goto extract_sfmt_move_d_r; - case 103 : itype = CRISV32F_INSN_MOVE_SPR_RV32; goto extract_sfmt_move_spr_rv32; - case 104 : itype = CRISV32F_INSN_SUB_B_R; goto extract_sfmt_add_b_r; - case 105 : itype = CRISV32F_INSN_SUB_W_R; goto extract_sfmt_add_b_r; - case 106 : itype = CRISV32F_INSN_SUB_D_R; goto extract_sfmt_add_d_r; - case 107 : itype = CRISV32F_INSN_ABS; goto extract_sfmt_movs_b_r; - case 108 : itype = CRISV32F_INSN_CMP_R_B_R; goto extract_sfmt_cmp_r_b_r; - case 109 : itype = CRISV32F_INSN_CMP_R_W_R; goto extract_sfmt_cmp_r_b_r; - case 110 : itype = CRISV32F_INSN_CMP_R_D_R; goto extract_sfmt_cmp_r_b_r; - case 111 : itype = CRISV32F_INSN_DSTEP; goto extract_sfmt_dstep; - case 112 : itype = CRISV32F_INSN_AND_B_R; goto extract_sfmt_and_b_r; - case 113 : itype = CRISV32F_INSN_AND_W_R; goto extract_sfmt_and_w_r; - case 114 : itype = CRISV32F_INSN_AND_D_R; goto extract_sfmt_and_d_r; - case 115 : itype = CRISV32F_INSN_LZ; goto extract_sfmt_movs_b_r; - case 116 : itype = CRISV32F_INSN_ORR_B_R; goto extract_sfmt_and_b_r; - case 117 : itype = CRISV32F_INSN_ORR_W_R; goto extract_sfmt_and_w_r; - case 118 : itype = CRISV32F_INSN_ORR_D_R; goto extract_sfmt_and_d_r; - case 119 : itype = CRISV32F_INSN_SWAP; goto extract_sfmt_swap; - case 120 : itype = CRISV32F_INSN_ASRR_B_R; goto extract_sfmt_asrr_b_r; - case 121 : itype = CRISV32F_INSN_ASRR_W_R; goto extract_sfmt_asrr_b_r; - case 122 : itype = CRISV32F_INSN_ASRR_D_R; goto extract_sfmt_and_d_r; - case 123 : itype = CRISV32F_INSN_XOR; goto extract_sfmt_dstep; - case 124 : itype = CRISV32F_INSN_LSRR_B_R; goto extract_sfmt_lsrr_b_r; - case 125 : itype = CRISV32F_INSN_LSRR_W_R; goto extract_sfmt_lsrr_b_r; - case 126 : itype = CRISV32F_INSN_LSRR_D_R; goto extract_sfmt_lsrr_d_r; - case 127 : itype = CRISV32F_INSN_MCP; goto extract_sfmt_mcp; - case 128 : itype = CRISV32F_INSN_ADDU_M_B_M; goto extract_sfmt_adds_m_b_m; - case 129 : itype = CRISV32F_INSN_ADDU_M_W_M; goto extract_sfmt_adds_m_w_m; - case 130 : itype = CRISV32F_INSN_ADDS_M_B_M; goto extract_sfmt_adds_m_b_m; - case 131 : itype = CRISV32F_INSN_ADDS_M_W_M; goto extract_sfmt_adds_m_w_m; - case 132 : itype = CRISV32F_INSN_MOVU_M_B_M; goto extract_sfmt_movs_m_b_m; - case 133 : itype = CRISV32F_INSN_MOVU_M_W_M; goto extract_sfmt_movs_m_w_m; - case 134 : itype = CRISV32F_INSN_MOVS_M_B_M; goto extract_sfmt_movs_m_b_m; - case 135 : itype = CRISV32F_INSN_MOVS_M_W_M; goto extract_sfmt_movs_m_w_m; - case 136 : itype = CRISV32F_INSN_SUBU_M_B_M; goto extract_sfmt_adds_m_b_m; - case 137 : itype = CRISV32F_INSN_SUBU_M_W_M; goto extract_sfmt_adds_m_w_m; - case 138 : itype = CRISV32F_INSN_SUBS_M_B_M; goto extract_sfmt_adds_m_b_m; - case 139 : itype = CRISV32F_INSN_SUBS_M_W_M; goto extract_sfmt_adds_m_w_m; - case 140 : itype = CRISV32F_INSN_CMPU_M_B_M; goto extract_sfmt_cmp_m_b_m; - case 141 : itype = CRISV32F_INSN_CMPU_M_W_M; goto extract_sfmt_cmp_m_w_m; - case 142 : itype = CRISV32F_INSN_CMPS_M_B_M; goto extract_sfmt_cmp_m_b_m; - case 143 : itype = CRISV32F_INSN_CMPS_M_W_M; goto extract_sfmt_cmp_m_w_m; - case 144 : itype = CRISV32F_INSN_MULU_B; goto extract_sfmt_muls_b; - case 145 : itype = CRISV32F_INSN_MULU_W; goto extract_sfmt_muls_b; - case 146 : itype = CRISV32F_INSN_MULU_D; goto extract_sfmt_muls_b; + case 63 : + if ((base_insn & 0xfe0) == 0x3e0) + { itype = CRISV32F_INSN_LSRQ; goto extract_sfmt_asrq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 64 : + if ((base_insn & 0xff0) == 0x400) + { itype = CRISV32F_INSN_ADDU_B_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 65 : + if ((base_insn & 0xff0) == 0x410) + { itype = CRISV32F_INSN_ADDU_W_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 66 : + if ((base_insn & 0xff0) == 0x420) + { itype = CRISV32F_INSN_ADDS_B_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 67 : + if ((base_insn & 0xff0) == 0x430) + { itype = CRISV32F_INSN_ADDS_W_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 68 : + if ((base_insn & 0xff0) == 0x440) + { itype = CRISV32F_INSN_MOVU_B_R; goto extract_sfmt_movs_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 69 : + if ((base_insn & 0xff0) == 0x450) + { itype = CRISV32F_INSN_MOVU_W_R; goto extract_sfmt_movs_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 70 : + if ((base_insn & 0xff0) == 0x460) + { itype = CRISV32F_INSN_MOVS_B_R; goto extract_sfmt_movs_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 71 : + if ((base_insn & 0xff0) == 0x470) + { itype = CRISV32F_INSN_MOVS_W_R; goto extract_sfmt_movs_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 72 : + if ((base_insn & 0xff0) == 0x480) + { itype = CRISV32F_INSN_SUBU_B_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 73 : + if ((base_insn & 0xff0) == 0x490) + { itype = CRISV32F_INSN_SUBU_W_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 74 : + if ((base_insn & 0xff0) == 0x4a0) + { itype = CRISV32F_INSN_SUBS_B_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 75 : + if ((base_insn & 0xff0) == 0x4b0) + { itype = CRISV32F_INSN_SUBS_W_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 76 : + if ((base_insn & 0xff0) == 0x4c0) + { itype = CRISV32F_INSN_LSLR_B_R; goto extract_sfmt_lsrr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 77 : + if ((base_insn & 0xff0) == 0x4d0) + { itype = CRISV32F_INSN_LSLR_W_R; goto extract_sfmt_lsrr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 78 : + if ((base_insn & 0xff0) == 0x4e0) + { itype = CRISV32F_INSN_LSLR_D_R; goto extract_sfmt_lsrr_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 79 : + if ((base_insn & 0xff0) == 0x4f0) + { itype = CRISV32F_INSN_BTST; goto extract_sfmt_btst; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 80 : + if ((base_insn & 0xff0) == 0x500) + { itype = CRISV32F_INSN_ADDI_B_R; goto extract_sfmt_addi_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 81 : + if ((base_insn & 0xff0) == 0x510) + { itype = CRISV32F_INSN_ADDI_W_R; goto extract_sfmt_addi_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 82 : + if ((base_insn & 0xff0) == 0x520) + { itype = CRISV32F_INSN_ADDI_D_R; goto extract_sfmt_addi_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 83 : + if ((base_insn & 0xff0) == 0x530) + { itype = CRISV32F_INSN_SCC; goto extract_sfmt_scc; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 84 : + if ((base_insn & 0xff0) == 0x540) + { itype = CRISV32F_INSN_ADDI_ACR_B_R; goto extract_sfmt_addi_acr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 85 : + if ((base_insn & 0xff0) == 0x550) + { itype = CRISV32F_INSN_ADDI_ACR_W_R; goto extract_sfmt_addi_acr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 86 : + if ((base_insn & 0xff0) == 0x560) + { itype = CRISV32F_INSN_ADDI_ACR_D_R; goto extract_sfmt_addi_acr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 87 : + if ((base_insn & 0xff0) == 0x570) + { itype = CRISV32F_INSN_ADDC_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 88 : + if ((base_insn & 0xff0) == 0x580) + { itype = CRISV32F_INSN_NEG_B_R; goto extract_sfmt_neg_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 89 : + if ((base_insn & 0xff0) == 0x590) + { itype = CRISV32F_INSN_NEG_W_R; goto extract_sfmt_neg_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 90 : + if ((base_insn & 0xff0) == 0x5a0) + { itype = CRISV32F_INSN_NEG_D_R; goto extract_sfmt_neg_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 91 : + if ((base_insn & 0xff0) == 0x5b0) + { itype = CRISV32F_INSN_SETF; goto extract_sfmt_setf; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 92 : + if ((base_insn & 0xff0) == 0x5c0) + { itype = CRISV32F_INSN_BOUND_R_B_R; goto extract_sfmt_dstep; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 93 : + if ((base_insn & 0xff0) == 0x5d0) + { itype = CRISV32F_INSN_BOUND_R_W_R; goto extract_sfmt_dstep; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 94 : + if ((base_insn & 0xff0) == 0x5e0) + { itype = CRISV32F_INSN_BOUND_R_D_R; goto extract_sfmt_dstep; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 95 : + if ((base_insn & 0xff0) == 0x5f0) + { itype = CRISV32F_INSN_CLEARF; goto extract_sfmt_setf; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 96 : + if ((base_insn & 0xff0) == 0x600) + { itype = CRISV32F_INSN_ADD_B_R; goto extract_sfmt_add_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 97 : + if ((base_insn & 0xff0) == 0x610) + { itype = CRISV32F_INSN_ADD_W_R; goto extract_sfmt_add_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 98 : + if ((base_insn & 0xff0) == 0x620) + { itype = CRISV32F_INSN_ADD_D_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 99 : + if ((base_insn & 0xff0) == 0x630) + { itype = CRISV32F_INSN_MOVE_R_SPRV32; goto extract_sfmt_move_r_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 100 : + if ((base_insn & 0xff0) == 0x640) + { itype = CRISV32F_INSN_MOVE_B_R; goto extract_sfmt_move_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 101 : + if ((base_insn & 0xff0) == 0x650) + { itype = CRISV32F_INSN_MOVE_W_R; goto extract_sfmt_move_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 102 : + if ((base_insn & 0xff0) == 0x660) + { itype = CRISV32F_INSN_MOVE_D_R; goto extract_sfmt_move_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 103 : + if ((base_insn & 0xff0) == 0x670) + { itype = CRISV32F_INSN_MOVE_SPR_RV32; goto extract_sfmt_move_spr_rv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 104 : + if ((base_insn & 0xff0) == 0x680) + { itype = CRISV32F_INSN_SUB_B_R; goto extract_sfmt_add_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 105 : + if ((base_insn & 0xff0) == 0x690) + { itype = CRISV32F_INSN_SUB_W_R; goto extract_sfmt_add_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 106 : + if ((base_insn & 0xff0) == 0x6a0) + { itype = CRISV32F_INSN_SUB_D_R; goto extract_sfmt_add_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 107 : + if ((base_insn & 0xff0) == 0x6b0) + { itype = CRISV32F_INSN_ABS; goto extract_sfmt_movs_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 108 : + if ((base_insn & 0xff0) == 0x6c0) + { itype = CRISV32F_INSN_CMP_R_B_R; goto extract_sfmt_cmp_r_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 109 : + if ((base_insn & 0xff0) == 0x6d0) + { itype = CRISV32F_INSN_CMP_R_W_R; goto extract_sfmt_cmp_r_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 110 : + if ((base_insn & 0xff0) == 0x6e0) + { itype = CRISV32F_INSN_CMP_R_D_R; goto extract_sfmt_cmp_r_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 111 : + if ((base_insn & 0xff0) == 0x6f0) + { itype = CRISV32F_INSN_DSTEP; goto extract_sfmt_dstep; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 112 : + if ((base_insn & 0xff0) == 0x700) + { itype = CRISV32F_INSN_AND_B_R; goto extract_sfmt_and_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 113 : + if ((base_insn & 0xff0) == 0x710) + { itype = CRISV32F_INSN_AND_W_R; goto extract_sfmt_and_w_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 114 : + if ((base_insn & 0xff0) == 0x720) + { itype = CRISV32F_INSN_AND_D_R; goto extract_sfmt_and_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 115 : + if ((base_insn & 0xff0) == 0x730) + { itype = CRISV32F_INSN_LZ; goto extract_sfmt_movs_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 116 : + if ((base_insn & 0xff0) == 0x740) + { itype = CRISV32F_INSN_ORR_B_R; goto extract_sfmt_and_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 117 : + if ((base_insn & 0xff0) == 0x750) + { itype = CRISV32F_INSN_ORR_W_R; goto extract_sfmt_and_w_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 118 : + if ((base_insn & 0xff0) == 0x760) + { itype = CRISV32F_INSN_ORR_D_R; goto extract_sfmt_and_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 119 : + if ((base_insn & 0xff0) == 0x770) + { itype = CRISV32F_INSN_SWAP; goto extract_sfmt_swap; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 120 : + if ((base_insn & 0xff0) == 0x780) + { itype = CRISV32F_INSN_ASRR_B_R; goto extract_sfmt_asrr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 121 : + if ((base_insn & 0xff0) == 0x790) + { itype = CRISV32F_INSN_ASRR_W_R; goto extract_sfmt_asrr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 122 : + if ((base_insn & 0xff0) == 0x7a0) + { itype = CRISV32F_INSN_ASRR_D_R; goto extract_sfmt_and_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 123 : + if ((base_insn & 0xff0) == 0x7b0) + { itype = CRISV32F_INSN_XOR; goto extract_sfmt_dstep; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 124 : + if ((base_insn & 0xff0) == 0x7c0) + { itype = CRISV32F_INSN_LSRR_B_R; goto extract_sfmt_lsrr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 125 : + if ((base_insn & 0xff0) == 0x7d0) + { itype = CRISV32F_INSN_LSRR_W_R; goto extract_sfmt_lsrr_b_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 126 : + if ((base_insn & 0xff0) == 0x7e0) + { itype = CRISV32F_INSN_LSRR_D_R; goto extract_sfmt_lsrr_d_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 127 : + if ((base_insn & 0xff0) == 0x7f0) + { itype = CRISV32F_INSN_MCP; goto extract_sfmt_mcp; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 128 : + if ((base_insn & 0xbf0) == 0x800) + { itype = CRISV32F_INSN_ADDU_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 129 : + if ((base_insn & 0xbf0) == 0x810) + { itype = CRISV32F_INSN_ADDU_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 130 : + if ((base_insn & 0xbf0) == 0x820) + { itype = CRISV32F_INSN_ADDS_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 131 : + if ((base_insn & 0xbf0) == 0x830) + { itype = CRISV32F_INSN_ADDS_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 132 : + if ((base_insn & 0xbf0) == 0x840) + { itype = CRISV32F_INSN_MOVU_M_B_M; goto extract_sfmt_movs_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 133 : + if ((base_insn & 0xbf0) == 0x850) + { itype = CRISV32F_INSN_MOVU_M_W_M; goto extract_sfmt_movs_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 134 : + if ((base_insn & 0xbf0) == 0x860) + { itype = CRISV32F_INSN_MOVS_M_B_M; goto extract_sfmt_movs_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 135 : + if ((base_insn & 0xbf0) == 0x870) + { itype = CRISV32F_INSN_MOVS_M_W_M; goto extract_sfmt_movs_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 136 : + if ((base_insn & 0xbf0) == 0x880) + { itype = CRISV32F_INSN_SUBU_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 137 : + if ((base_insn & 0xbf0) == 0x890) + { itype = CRISV32F_INSN_SUBU_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 138 : + if ((base_insn & 0xbf0) == 0x8a0) + { itype = CRISV32F_INSN_SUBS_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 139 : + if ((base_insn & 0xbf0) == 0x8b0) + { itype = CRISV32F_INSN_SUBS_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 140 : + if ((base_insn & 0xbf0) == 0x8c0) + { itype = CRISV32F_INSN_CMPU_M_B_M; goto extract_sfmt_cmp_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 141 : + if ((base_insn & 0xbf0) == 0x8d0) + { itype = CRISV32F_INSN_CMPU_M_W_M; goto extract_sfmt_cmp_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 142 : + if ((base_insn & 0xbf0) == 0x8e0) + { itype = CRISV32F_INSN_CMPS_M_B_M; goto extract_sfmt_cmp_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 143 : + if ((base_insn & 0xbf0) == 0x8f0) + { itype = CRISV32F_INSN_CMPS_M_W_M; goto extract_sfmt_cmp_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 144 : + if ((base_insn & 0xff0) == 0x900) + { itype = CRISV32F_INSN_MULU_B; goto extract_sfmt_muls_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 145 : + if ((base_insn & 0xff0) == 0x910) + { itype = CRISV32F_INSN_MULU_W; goto extract_sfmt_muls_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 146 : + if ((base_insn & 0xff0) == 0x920) + { itype = CRISV32F_INSN_MULU_D; goto extract_sfmt_muls_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 147 : { unsigned int val = (((insn >> 12) & (15 << 0))); switch (val) { - case 2 : itype = CRISV32F_INSN_RFE; goto extract_sfmt_rfe; - case 3 : itype = CRISV32F_INSN_SFE; goto extract_sfmt_sfe; - case 4 : itype = CRISV32F_INSN_RFG; goto extract_sfmt_rfg; - case 5 : itype = CRISV32F_INSN_RFN; goto extract_sfmt_rfn; - case 14 : itype = CRISV32F_INSN_BREAK; goto extract_sfmt_break; - case 15 : itype = CRISV32F_INSN_HALT; goto extract_sfmt_halt; + case 2 : + if ((base_insn & 0xffff) == 0x2930) + { itype = CRISV32F_INSN_RFE; goto extract_sfmt_rfe; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 3 : + if ((base_insn & 0xffff) == 0x3930) + { itype = CRISV32F_INSN_SFE; goto extract_sfmt_sfe; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 4 : + if ((base_insn & 0xffff) == 0x4930) + { itype = CRISV32F_INSN_RFG; goto extract_sfmt_rfg; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 5 : + if ((base_insn & 0xffff) == 0x5930) + { itype = CRISV32F_INSN_RFN; goto extract_sfmt_rfn; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 14 : + if ((base_insn & 0xfff0) == 0xe930) + { itype = CRISV32F_INSN_BREAK; goto extract_sfmt_break; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xf930) + { itype = CRISV32F_INSN_HALT; goto extract_sfmt_halt; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 148 : itype = CRISV32F_INSN_ADDO_M_B_M; goto extract_sfmt_addo_m_b_m; - case 149 : itype = CRISV32F_INSN_ADDO_M_W_M; goto extract_sfmt_addo_m_w_m; - case 150 : itype = CRISV32F_INSN_ADDO_M_D_M; goto extract_sfmt_addo_m_d_m; - case 151 : itype = CRISV32F_INSN_LAPCQ; goto extract_sfmt_lapcq; - case 154 : itype = CRISV32F_INSN_ADDC_M; goto extract_sfmt_addc_m; - case 155 : itype = CRISV32F_INSN_JAS_R; goto extract_sfmt_jas_r; - case 159 : itype = CRISV32F_INSN_JUMP_P; goto extract_sfmt_jump_p; - case 160 : itype = CRISV32F_INSN_ADD_M_B_M; goto extract_sfmt_add_m_b_m; - case 161 : itype = CRISV32F_INSN_ADD_M_W_M; goto extract_sfmt_add_m_w_m; - case 162 : itype = CRISV32F_INSN_ADD_M_D_M; goto extract_sfmt_add_m_d_m; - case 163 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 164 : itype = CRISV32F_INSN_MOVE_M_B_M; goto extract_sfmt_move_m_b_m; - case 165 : itype = CRISV32F_INSN_MOVE_M_W_M; goto extract_sfmt_move_m_w_m; - case 166 : itype = CRISV32F_INSN_MOVE_M_D_M; goto extract_sfmt_move_m_d_m; + case 148 : + if ((base_insn & 0xbf0) == 0x940) + { itype = CRISV32F_INSN_ADDO_M_B_M; goto extract_sfmt_addo_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 149 : + if ((base_insn & 0xbf0) == 0x950) + { itype = CRISV32F_INSN_ADDO_M_W_M; goto extract_sfmt_addo_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 150 : + if ((base_insn & 0xbf0) == 0x960) + { itype = CRISV32F_INSN_ADDO_M_D_M; goto extract_sfmt_addo_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 151 : + if ((base_insn & 0xff0) == 0x970) + { itype = CRISV32F_INSN_LAPCQ; goto extract_sfmt_lapcq; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 154 : + if ((base_insn & 0xbf0) == 0x9a0) + { itype = CRISV32F_INSN_ADDC_M; goto extract_sfmt_addc_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 155 : + if ((base_insn & 0xff0) == 0x9b0) + { itype = CRISV32F_INSN_JAS_R; goto extract_sfmt_jas_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 159 : + if ((base_insn & 0xfff) == 0x9f0) + { itype = CRISV32F_INSN_JUMP_P; goto extract_sfmt_jump_p; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 160 : + if ((base_insn & 0xbf0) == 0xa00) + { itype = CRISV32F_INSN_ADD_M_B_M; goto extract_sfmt_add_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 161 : + if ((base_insn & 0xbf0) == 0xa10) + { itype = CRISV32F_INSN_ADD_M_W_M; goto extract_sfmt_add_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 162 : + if ((base_insn & 0xbf0) == 0xa20) + { itype = CRISV32F_INSN_ADD_M_D_M; goto extract_sfmt_add_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 163 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 164 : + if ((base_insn & 0xbf0) == 0xa40) + { itype = CRISV32F_INSN_MOVE_M_B_M; goto extract_sfmt_move_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 165 : + if ((base_insn & 0xbf0) == 0xa50) + { itype = CRISV32F_INSN_MOVE_M_W_M; goto extract_sfmt_move_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 166 : + if ((base_insn & 0xbf0) == 0xa60) + { itype = CRISV32F_INSN_MOVE_M_D_M; goto extract_sfmt_move_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 167 : /* fall through */ - case 231 : itype = CRISV32F_INSN_MOVE_SPR_MV32; goto extract_sfmt_move_spr_mv32; - case 168 : itype = CRISV32F_INSN_SUB_M_B_M; goto extract_sfmt_add_m_b_m; - case 169 : itype = CRISV32F_INSN_SUB_M_W_M; goto extract_sfmt_add_m_w_m; - case 170 : itype = CRISV32F_INSN_SUB_M_D_M; goto extract_sfmt_add_m_d_m; + case 231 : + if ((base_insn & 0xbf0) == 0xa70) + { itype = CRISV32F_INSN_MOVE_SPR_MV32; goto extract_sfmt_move_spr_mv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 168 : + if ((base_insn & 0xbf0) == 0xa80) + { itype = CRISV32F_INSN_SUB_M_B_M; goto extract_sfmt_add_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 169 : + if ((base_insn & 0xbf0) == 0xa90) + { itype = CRISV32F_INSN_SUB_M_W_M; goto extract_sfmt_add_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 170 : + if ((base_insn & 0xbf0) == 0xaa0) + { itype = CRISV32F_INSN_SUB_M_D_M; goto extract_sfmt_add_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 171 : { unsigned int val = (((insn >> 12) & (1 << 0))); switch (val) { - case 0 : itype = CRISV32F_INSN_FIDXD; goto extract_sfmt_fidxi; - case 1 : itype = CRISV32F_INSN_FTAGD; goto extract_sfmt_fidxi; + case 0 : + if ((base_insn & 0xfff0) == 0xab0) + { itype = CRISV32F_INSN_FIDXD; goto extract_sfmt_fidxi; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 1 : + if ((base_insn & 0xfff0) == 0x1ab0) + { itype = CRISV32F_INSN_FTAGD; goto extract_sfmt_fidxi; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 172 : itype = CRISV32F_INSN_CMP_M_B_M; goto extract_sfmt_cmp_m_b_m; - case 173 : itype = CRISV32F_INSN_CMP_M_W_M; goto extract_sfmt_cmp_m_w_m; - case 174 : itype = CRISV32F_INSN_CMP_M_D_M; goto extract_sfmt_cmp_m_d_m; - case 176 : itype = CRISV32F_INSN_AND_M_B_M; goto extract_sfmt_and_m_b_m; - case 177 : itype = CRISV32F_INSN_AND_M_W_M; goto extract_sfmt_and_m_w_m; - case 178 : itype = CRISV32F_INSN_AND_M_D_M; goto extract_sfmt_and_m_d_m; - case 179 : itype = CRISV32F_INSN_JASC_R; goto extract_sfmt_jasc_r; - case 180 : itype = CRISV32F_INSN_OR_M_B_M; goto extract_sfmt_and_m_b_m; - case 181 : itype = CRISV32F_INSN_OR_M_W_M; goto extract_sfmt_and_m_w_m; - case 182 : itype = CRISV32F_INSN_OR_M_D_M; goto extract_sfmt_and_m_d_m; - case 183 : itype = CRISV32F_INSN_MOVE_R_SS; goto extract_sfmt_move_r_ss; + case 172 : + if ((base_insn & 0xbf0) == 0xac0) + { itype = CRISV32F_INSN_CMP_M_B_M; goto extract_sfmt_cmp_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 173 : + if ((base_insn & 0xbf0) == 0xad0) + { itype = CRISV32F_INSN_CMP_M_W_M; goto extract_sfmt_cmp_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 174 : + if ((base_insn & 0xbf0) == 0xae0) + { itype = CRISV32F_INSN_CMP_M_D_M; goto extract_sfmt_cmp_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 176 : + if ((base_insn & 0xbf0) == 0xb00) + { itype = CRISV32F_INSN_AND_M_B_M; goto extract_sfmt_and_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 177 : + if ((base_insn & 0xbf0) == 0xb10) + { itype = CRISV32F_INSN_AND_M_W_M; goto extract_sfmt_and_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 178 : + if ((base_insn & 0xbf0) == 0xb20) + { itype = CRISV32F_INSN_AND_M_D_M; goto extract_sfmt_and_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 179 : + if ((base_insn & 0xff0) == 0xb30) + { itype = CRISV32F_INSN_JASC_R; goto extract_sfmt_jasc_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 180 : + if ((base_insn & 0xbf0) == 0xb40) + { itype = CRISV32F_INSN_OR_M_B_M; goto extract_sfmt_and_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 181 : + if ((base_insn & 0xbf0) == 0xb50) + { itype = CRISV32F_INSN_OR_M_W_M; goto extract_sfmt_and_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 182 : + if ((base_insn & 0xbf0) == 0xb60) + { itype = CRISV32F_INSN_OR_M_D_M; goto extract_sfmt_and_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 183 : + if ((base_insn & 0xff0) == 0xb70) + { itype = CRISV32F_INSN_MOVE_R_SS; goto extract_sfmt_move_r_ss; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 184 : /* fall through */ - case 248 : itype = CRISV32F_INSN_TEST_M_B_M; goto extract_sfmt_test_m_b_m; + case 248 : + if ((base_insn & 0xfbf0) == 0xb80) + { itype = CRISV32F_INSN_TEST_M_B_M; goto extract_sfmt_test_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 185 : /* fall through */ - case 249 : itype = CRISV32F_INSN_TEST_M_W_M; goto extract_sfmt_test_m_w_m; + case 249 : + if ((base_insn & 0xfbf0) == 0xb90) + { itype = CRISV32F_INSN_TEST_M_W_M; goto extract_sfmt_test_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 186 : /* fall through */ - case 250 : itype = CRISV32F_INSN_TEST_M_D_M; goto extract_sfmt_test_m_d_m; + case 250 : + if ((base_insn & 0xfbf0) == 0xba0) + { itype = CRISV32F_INSN_TEST_M_D_M; goto extract_sfmt_test_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 187 : /* fall through */ - case 251 : itype = CRISV32F_INSN_MOVEM_M_R_V32; goto extract_sfmt_movem_m_r_v32; + case 251 : + if ((base_insn & 0xbf0) == 0xbb0) + { itype = CRISV32F_INSN_MOVEM_M_R_V32; goto extract_sfmt_movem_m_r_v32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 188 : /* fall through */ - case 252 : itype = CRISV32F_INSN_MOVE_R_M_B_M; goto extract_sfmt_move_r_m_b_m; + case 252 : + if ((base_insn & 0xbf0) == 0xbc0) + { itype = CRISV32F_INSN_MOVE_R_M_B_M; goto extract_sfmt_move_r_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 189 : /* fall through */ - case 253 : itype = CRISV32F_INSN_MOVE_R_M_W_M; goto extract_sfmt_move_r_m_w_m; + case 253 : + if ((base_insn & 0xbf0) == 0xbd0) + { itype = CRISV32F_INSN_MOVE_R_M_W_M; goto extract_sfmt_move_r_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 190 : /* fall through */ - case 254 : itype = CRISV32F_INSN_MOVE_R_M_D_M; goto extract_sfmt_move_r_m_d_m; + case 254 : + if ((base_insn & 0xbf0) == 0xbe0) + { itype = CRISV32F_INSN_MOVE_R_M_D_M; goto extract_sfmt_move_r_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 191 : /* fall through */ - case 255 : itype = CRISV32F_INSN_MOVEM_R_M_V32; goto extract_sfmt_movem_r_m_v32; + case 255 : + if ((base_insn & 0xbf0) == 0xbf0) + { itype = CRISV32F_INSN_MOVEM_R_M_V32; goto extract_sfmt_movem_r_m_v32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 192 : { unsigned int val = (((insn >> 0) & (15 << 0))); @@ -596,8 +1019,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDU_M_B_M; goto extract_sfmt_adds_m_b_m; - case 15 : itype = CRISV32F_INSN_ADDUCBR; goto extract_sfmt_addscbr; + case 14 : + if ((base_insn & 0xbf0) == 0x800) + { itype = CRISV32F_INSN_ADDU_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc0f) + { itype = CRISV32F_INSN_ADDUCBR; goto extract_sfmt_addscbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -620,8 +1049,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDU_M_W_M; goto extract_sfmt_adds_m_w_m; - case 15 : itype = CRISV32F_INSN_ADDUCWR; goto extract_sfmt_addscwr; + case 14 : + if ((base_insn & 0xbf0) == 0x810) + { itype = CRISV32F_INSN_ADDU_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc1f) + { itype = CRISV32F_INSN_ADDUCWR; goto extract_sfmt_addscwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -644,8 +1079,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDS_M_B_M; goto extract_sfmt_adds_m_b_m; - case 15 : itype = CRISV32F_INSN_ADDSCBR; goto extract_sfmt_addscbr; + case 14 : + if ((base_insn & 0xbf0) == 0x820) + { itype = CRISV32F_INSN_ADDS_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc2f) + { itype = CRISV32F_INSN_ADDSCBR; goto extract_sfmt_addscbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -668,8 +1109,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDS_M_W_M; goto extract_sfmt_adds_m_w_m; - case 15 : itype = CRISV32F_INSN_ADDSCWR; goto extract_sfmt_addscwr; + case 14 : + if ((base_insn & 0xbf0) == 0x830) + { itype = CRISV32F_INSN_ADDS_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc3f) + { itype = CRISV32F_INSN_ADDSCWR; goto extract_sfmt_addscwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -692,8 +1139,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVU_M_B_M; goto extract_sfmt_movs_m_b_m; - case 15 : itype = CRISV32F_INSN_MOVUCBR; goto extract_sfmt_movucbr; + case 14 : + if ((base_insn & 0xbf0) == 0x840) + { itype = CRISV32F_INSN_MOVU_M_B_M; goto extract_sfmt_movs_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc4f) + { itype = CRISV32F_INSN_MOVUCBR; goto extract_sfmt_movucbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -716,8 +1169,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVU_M_W_M; goto extract_sfmt_movs_m_w_m; - case 15 : itype = CRISV32F_INSN_MOVUCWR; goto extract_sfmt_movucwr; + case 14 : + if ((base_insn & 0xbf0) == 0x850) + { itype = CRISV32F_INSN_MOVU_M_W_M; goto extract_sfmt_movs_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc5f) + { itype = CRISV32F_INSN_MOVUCWR; goto extract_sfmt_movucwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -740,8 +1199,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVS_M_B_M; goto extract_sfmt_movs_m_b_m; - case 15 : itype = CRISV32F_INSN_MOVSCBR; goto extract_sfmt_movscbr; + case 14 : + if ((base_insn & 0xbf0) == 0x860) + { itype = CRISV32F_INSN_MOVS_M_B_M; goto extract_sfmt_movs_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc6f) + { itype = CRISV32F_INSN_MOVSCBR; goto extract_sfmt_movscbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -764,8 +1229,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVS_M_W_M; goto extract_sfmt_movs_m_w_m; - case 15 : itype = CRISV32F_INSN_MOVSCWR; goto extract_sfmt_movscwr; + case 14 : + if ((base_insn & 0xbf0) == 0x870) + { itype = CRISV32F_INSN_MOVS_M_W_M; goto extract_sfmt_movs_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc7f) + { itype = CRISV32F_INSN_MOVSCWR; goto extract_sfmt_movscwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -788,8 +1259,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUBU_M_B_M; goto extract_sfmt_adds_m_b_m; - case 15 : itype = CRISV32F_INSN_SUBUCBR; goto extract_sfmt_addscbr; + case 14 : + if ((base_insn & 0xbf0) == 0x880) + { itype = CRISV32F_INSN_SUBU_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc8f) + { itype = CRISV32F_INSN_SUBUCBR; goto extract_sfmt_addscbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -812,8 +1289,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUBU_M_W_M; goto extract_sfmt_adds_m_w_m; - case 15 : itype = CRISV32F_INSN_SUBUCWR; goto extract_sfmt_addscwr; + case 14 : + if ((base_insn & 0xbf0) == 0x890) + { itype = CRISV32F_INSN_SUBU_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xc9f) + { itype = CRISV32F_INSN_SUBUCWR; goto extract_sfmt_addscwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -836,8 +1319,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUBS_M_B_M; goto extract_sfmt_adds_m_b_m; - case 15 : itype = CRISV32F_INSN_SUBSCBR; goto extract_sfmt_addscbr; + case 14 : + if ((base_insn & 0xbf0) == 0x8a0) + { itype = CRISV32F_INSN_SUBS_M_B_M; goto extract_sfmt_adds_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xcaf) + { itype = CRISV32F_INSN_SUBSCBR; goto extract_sfmt_addscbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -860,8 +1349,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUBS_M_W_M; goto extract_sfmt_adds_m_w_m; - case 15 : itype = CRISV32F_INSN_SUBSCWR; goto extract_sfmt_addscwr; + case 14 : + if ((base_insn & 0xbf0) == 0x8b0) + { itype = CRISV32F_INSN_SUBS_M_W_M; goto extract_sfmt_adds_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xcbf) + { itype = CRISV32F_INSN_SUBSCWR; goto extract_sfmt_addscwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -884,8 +1379,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMPU_M_B_M; goto extract_sfmt_cmp_m_b_m; - case 15 : itype = CRISV32F_INSN_CMPUCBR; goto extract_sfmt_cmpucbr; + case 14 : + if ((base_insn & 0xbf0) == 0x8c0) + { itype = CRISV32F_INSN_CMPU_M_B_M; goto extract_sfmt_cmp_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xccf) + { itype = CRISV32F_INSN_CMPUCBR; goto extract_sfmt_cmpucbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -908,8 +1409,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMPU_M_W_M; goto extract_sfmt_cmp_m_w_m; - case 15 : itype = CRISV32F_INSN_CMPUCWR; goto extract_sfmt_cmpucwr; + case 14 : + if ((base_insn & 0xbf0) == 0x8d0) + { itype = CRISV32F_INSN_CMPU_M_W_M; goto extract_sfmt_cmp_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xcdf) + { itype = CRISV32F_INSN_CMPUCWR; goto extract_sfmt_cmpucwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -932,8 +1439,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMPS_M_B_M; goto extract_sfmt_cmp_m_b_m; - case 15 : itype = CRISV32F_INSN_CMPSCBR; goto extract_sfmt_cmpcbr; + case 14 : + if ((base_insn & 0xbf0) == 0x8e0) + { itype = CRISV32F_INSN_CMPS_M_B_M; goto extract_sfmt_cmp_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xcef) + { itype = CRISV32F_INSN_CMPSCBR; goto extract_sfmt_cmpcbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -956,21 +1469,42 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMPS_M_W_M; goto extract_sfmt_cmp_m_w_m; - case 15 : itype = CRISV32F_INSN_CMPSCWR; goto extract_sfmt_cmpcwr; + case 14 : + if ((base_insn & 0xbf0) == 0x8f0) + { itype = CRISV32F_INSN_CMPS_M_W_M; goto extract_sfmt_cmp_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xcff) + { itype = CRISV32F_INSN_CMPSCWR; goto extract_sfmt_cmpcwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 208 : itype = CRISV32F_INSN_MULS_B; goto extract_sfmt_muls_b; - case 209 : itype = CRISV32F_INSN_MULS_W; goto extract_sfmt_muls_b; - case 210 : itype = CRISV32F_INSN_MULS_D; goto extract_sfmt_muls_b; + case 208 : + if ((base_insn & 0xff0) == 0xd00) + { itype = CRISV32F_INSN_MULS_B; goto extract_sfmt_muls_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 209 : + if ((base_insn & 0xff0) == 0xd10) + { itype = CRISV32F_INSN_MULS_W; goto extract_sfmt_muls_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 210 : + if ((base_insn & 0xff0) == 0xd20) + { itype = CRISV32F_INSN_MULS_D; goto extract_sfmt_muls_b; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 211 : { unsigned int val = (((insn >> 12) & (1 << 0))); switch (val) { - case 0 : itype = CRISV32F_INSN_FIDXI; goto extract_sfmt_fidxi; - case 1 : itype = CRISV32F_INSN_FTAGI; goto extract_sfmt_fidxi; + case 0 : + if ((base_insn & 0xfff0) == 0xd30) + { itype = CRISV32F_INSN_FIDXI; goto extract_sfmt_fidxi; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 1 : + if ((base_insn & 0xfff0) == 0x1d30) + { itype = CRISV32F_INSN_FTAGI; goto extract_sfmt_fidxi; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -993,8 +1527,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDO_M_B_M; goto extract_sfmt_addo_m_b_m; - case 15 : itype = CRISV32F_INSN_ADDO_CB; goto extract_sfmt_addo_cb; + case 14 : + if ((base_insn & 0xbf0) == 0x940) + { itype = CRISV32F_INSN_ADDO_M_B_M; goto extract_sfmt_addo_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xd4f) + { itype = CRISV32F_INSN_ADDO_CB; goto extract_sfmt_addo_cb; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1017,8 +1557,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDO_M_W_M; goto extract_sfmt_addo_m_w_m; - case 15 : itype = CRISV32F_INSN_ADDO_CW; goto extract_sfmt_addo_cw; + case 14 : + if ((base_insn & 0xbf0) == 0x950) + { itype = CRISV32F_INSN_ADDO_M_W_M; goto extract_sfmt_addo_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xd5f) + { itype = CRISV32F_INSN_ADDO_CW; goto extract_sfmt_addo_cw; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1041,12 +1587,21 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDO_M_D_M; goto extract_sfmt_addo_m_d_m; - case 15 : itype = CRISV32F_INSN_ADDO_CD; goto extract_sfmt_addo_cd; + case 14 : + if ((base_insn & 0xbf0) == 0x960) + { itype = CRISV32F_INSN_ADDO_M_D_M; goto extract_sfmt_addo_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xd6f) + { itype = CRISV32F_INSN_ADDO_CD; goto extract_sfmt_addo_cd; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 215 : itype = CRISV32F_INSN_LAPC_D; goto extract_sfmt_lapc_d; + case 215 : + if ((base_insn & 0xfff) == 0xd7f) + { itype = CRISV32F_INSN_LAPC_D; goto extract_sfmt_lapc_d; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 218 : { unsigned int val = (((insn >> 0) & (15 << 0))); @@ -1066,15 +1621,33 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADDC_M; goto extract_sfmt_addc_m; - case 15 : itype = CRISV32F_INSN_ADDC_C; goto extract_sfmt_addcdr; + case 14 : + if ((base_insn & 0xbf0) == 0x9a0) + { itype = CRISV32F_INSN_ADDC_M; goto extract_sfmt_addc_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xdaf) + { itype = CRISV32F_INSN_ADDC_C; goto extract_sfmt_addcdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 219 : itype = CRISV32F_INSN_JAS_C; goto extract_sfmt_jas_c; - case 220 : itype = CRISV32F_INSN_BOUND_CB; goto extract_sfmt_bound_cb; - case 221 : itype = CRISV32F_INSN_BOUND_CW; goto extract_sfmt_bound_cw; - case 222 : itype = CRISV32F_INSN_BOUND_CD; goto extract_sfmt_bound_cd; + case 219 : + if ((base_insn & 0xfff) == 0xdbf) + { itype = CRISV32F_INSN_JAS_C; goto extract_sfmt_jas_c; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 220 : + if ((base_insn & 0xfff) == 0xdcf) + { itype = CRISV32F_INSN_BOUND_CB; goto extract_sfmt_bound_cb; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 221 : + if ((base_insn & 0xfff) == 0xddf) + { itype = CRISV32F_INSN_BOUND_CW; goto extract_sfmt_bound_cw; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 222 : + if ((base_insn & 0xfff) == 0xdef) + { itype = CRISV32F_INSN_BOUND_CD; goto extract_sfmt_bound_cd; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 223 : { unsigned int val = (((insn >> 12) & (15 << 0))); @@ -1094,8 +1667,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 15 : itype = CRISV32F_INSN_BCC_W; goto extract_sfmt_bcc_w; - case 14 : itype = CRISV32F_INSN_BA_W; goto extract_sfmt_ba_w; + case 15 : + if ((base_insn & 0xfff) == 0xdff) + { itype = CRISV32F_INSN_BCC_W; goto extract_sfmt_bcc_w; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 14 : + if ((base_insn & 0xffff) == 0xedff) + { itype = CRISV32F_INSN_BA_W; goto extract_sfmt_ba_w; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1118,8 +1697,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADD_M_B_M; goto extract_sfmt_add_m_b_m; - case 15 : itype = CRISV32F_INSN_ADDCBR; goto extract_sfmt_addcbr; + case 14 : + if ((base_insn & 0xbf0) == 0xa00) + { itype = CRISV32F_INSN_ADD_M_B_M; goto extract_sfmt_add_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe0f) + { itype = CRISV32F_INSN_ADDCBR; goto extract_sfmt_addcbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1142,8 +1727,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADD_M_W_M; goto extract_sfmt_add_m_w_m; - case 15 : itype = CRISV32F_INSN_ADDCWR; goto extract_sfmt_addcwr; + case 14 : + if ((base_insn & 0xbf0) == 0xa10) + { itype = CRISV32F_INSN_ADD_M_W_M; goto extract_sfmt_add_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe1f) + { itype = CRISV32F_INSN_ADDCWR; goto extract_sfmt_addcwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1166,8 +1757,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_ADD_M_D_M; goto extract_sfmt_add_m_d_m; - case 15 : itype = CRISV32F_INSN_ADDCDR; goto extract_sfmt_addcdr; + case 14 : + if ((base_insn & 0xbf0) == 0xa20) + { itype = CRISV32F_INSN_ADD_M_D_M; goto extract_sfmt_add_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe2f) + { itype = CRISV32F_INSN_ADDCDR; goto extract_sfmt_addcdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1195,8 +1792,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P0; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xe3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P0; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1219,8 +1822,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P1; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x1e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P1; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1243,8 +1852,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P2; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x2e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P2; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1267,8 +1882,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P3; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x3e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P3; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1291,8 +1912,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P4; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x4e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P4; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1315,8 +1942,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P5; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x5e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P5; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1339,8 +1972,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P6; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x6e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P6; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1363,8 +2002,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P7; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x7e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P7; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1387,8 +2032,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P8; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x8e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P8; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1411,8 +2062,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P9; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0x9e3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P9; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1435,8 +2092,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P10; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xae3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P10; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1459,8 +2122,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P11; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xbe3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P11; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1483,8 +2152,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P12; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xce3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P12; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1507,8 +2182,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P13; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xde3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P13; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1531,8 +2212,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P14; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xee3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P14; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1555,8 +2242,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; - case 15 : itype = CRISV32F_INSN_MOVE_C_SPRV32_P15; goto extract_sfmt_move_c_sprv32_p0; + case 14 : + if ((base_insn & 0xbf0) == 0xa30) + { itype = CRISV32F_INSN_MOVE_M_SPRV32; goto extract_sfmt_move_m_sprv32; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xffff) == 0xfe3f) + { itype = CRISV32F_INSN_MOVE_C_SPRV32_P15; goto extract_sfmt_move_c_sprv32_p0; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1582,8 +2275,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_B_M; goto extract_sfmt_move_m_b_m; - case 15 : itype = CRISV32F_INSN_MOVECBR; goto extract_sfmt_movecbr; + case 14 : + if ((base_insn & 0xbf0) == 0xa40) + { itype = CRISV32F_INSN_MOVE_M_B_M; goto extract_sfmt_move_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe4f) + { itype = CRISV32F_INSN_MOVECBR; goto extract_sfmt_movecbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1606,8 +2305,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_W_M; goto extract_sfmt_move_m_w_m; - case 15 : itype = CRISV32F_INSN_MOVECWR; goto extract_sfmt_movecwr; + case 14 : + if ((base_insn & 0xbf0) == 0xa50) + { itype = CRISV32F_INSN_MOVE_M_W_M; goto extract_sfmt_move_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe5f) + { itype = CRISV32F_INSN_MOVECWR; goto extract_sfmt_movecwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1630,8 +2335,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_MOVE_M_D_M; goto extract_sfmt_move_m_d_m; - case 15 : itype = CRISV32F_INSN_MOVECDR; goto extract_sfmt_movecdr; + case 14 : + if ((base_insn & 0xbf0) == 0xa60) + { itype = CRISV32F_INSN_MOVE_M_D_M; goto extract_sfmt_move_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe6f) + { itype = CRISV32F_INSN_MOVECDR; goto extract_sfmt_movecdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1654,8 +2365,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUB_M_B_M; goto extract_sfmt_add_m_b_m; - case 15 : itype = CRISV32F_INSN_SUBCBR; goto extract_sfmt_addcbr; + case 14 : + if ((base_insn & 0xbf0) == 0xa80) + { itype = CRISV32F_INSN_SUB_M_B_M; goto extract_sfmt_add_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe8f) + { itype = CRISV32F_INSN_SUBCBR; goto extract_sfmt_addcbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1678,8 +2395,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUB_M_W_M; goto extract_sfmt_add_m_w_m; - case 15 : itype = CRISV32F_INSN_SUBCWR; goto extract_sfmt_addcwr; + case 14 : + if ((base_insn & 0xbf0) == 0xa90) + { itype = CRISV32F_INSN_SUB_M_W_M; goto extract_sfmt_add_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xe9f) + { itype = CRISV32F_INSN_SUBCWR; goto extract_sfmt_addcwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1702,12 +2425,21 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_SUB_M_D_M; goto extract_sfmt_add_m_d_m; - case 15 : itype = CRISV32F_INSN_SUBCDR; goto extract_sfmt_addcdr; + case 14 : + if ((base_insn & 0xbf0) == 0xaa0) + { itype = CRISV32F_INSN_SUB_M_D_M; goto extract_sfmt_add_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xeaf) + { itype = CRISV32F_INSN_SUBCDR; goto extract_sfmt_addcdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 235 : itype = CRISV32F_INSN_BAS_C; goto extract_sfmt_bas_c; + case 235 : + if ((base_insn & 0xfff) == 0xebf) + { itype = CRISV32F_INSN_BAS_C; goto extract_sfmt_bas_c; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 236 : { unsigned int val = (((insn >> 0) & (15 << 0))); @@ -1727,8 +2459,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMP_M_B_M; goto extract_sfmt_cmp_m_b_m; - case 15 : itype = CRISV32F_INSN_CMPCBR; goto extract_sfmt_cmpcbr; + case 14 : + if ((base_insn & 0xbf0) == 0xac0) + { itype = CRISV32F_INSN_CMP_M_B_M; goto extract_sfmt_cmp_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xecf) + { itype = CRISV32F_INSN_CMPCBR; goto extract_sfmt_cmpcbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1751,8 +2489,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMP_M_W_M; goto extract_sfmt_cmp_m_w_m; - case 15 : itype = CRISV32F_INSN_CMPCWR; goto extract_sfmt_cmpcwr; + case 14 : + if ((base_insn & 0xbf0) == 0xad0) + { itype = CRISV32F_INSN_CMP_M_W_M; goto extract_sfmt_cmp_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xedf) + { itype = CRISV32F_INSN_CMPCWR; goto extract_sfmt_cmpcwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1775,12 +2519,21 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_CMP_M_D_M; goto extract_sfmt_cmp_m_d_m; - case 15 : itype = CRISV32F_INSN_CMPCDR; goto extract_sfmt_cmpcdr; + case 14 : + if ((base_insn & 0xbf0) == 0xae0) + { itype = CRISV32F_INSN_CMP_M_D_M; goto extract_sfmt_cmp_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xeef) + { itype = CRISV32F_INSN_CMPCDR; goto extract_sfmt_cmpcdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 239 : itype = CRISV32F_INSN_BASC_C; goto extract_sfmt_bas_c; + case 239 : + if ((base_insn & 0xfff) == 0xeff) + { itype = CRISV32F_INSN_BASC_C; goto extract_sfmt_bas_c; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 240 : { unsigned int val = (((insn >> 0) & (15 << 0))); @@ -1800,8 +2553,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_AND_M_B_M; goto extract_sfmt_and_m_b_m; - case 15 : itype = CRISV32F_INSN_ANDCBR; goto extract_sfmt_andcbr; + case 14 : + if ((base_insn & 0xbf0) == 0xb00) + { itype = CRISV32F_INSN_AND_M_B_M; goto extract_sfmt_and_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xf0f) + { itype = CRISV32F_INSN_ANDCBR; goto extract_sfmt_andcbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1824,8 +2583,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_AND_M_W_M; goto extract_sfmt_and_m_w_m; - case 15 : itype = CRISV32F_INSN_ANDCWR; goto extract_sfmt_andcwr; + case 14 : + if ((base_insn & 0xbf0) == 0xb10) + { itype = CRISV32F_INSN_AND_M_W_M; goto extract_sfmt_and_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xf1f) + { itype = CRISV32F_INSN_ANDCWR; goto extract_sfmt_andcwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1848,12 +2613,21 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_AND_M_D_M; goto extract_sfmt_and_m_d_m; - case 15 : itype = CRISV32F_INSN_ANDCDR; goto extract_sfmt_andcdr; + case 14 : + if ((base_insn & 0xbf0) == 0xb20) + { itype = CRISV32F_INSN_AND_M_D_M; goto extract_sfmt_and_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xf2f) + { itype = CRISV32F_INSN_ANDCDR; goto extract_sfmt_andcdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 243 : itype = CRISV32F_INSN_JASC_C; goto extract_sfmt_jas_c; + case 243 : + if ((base_insn & 0xfff) == 0xf3f) + { itype = CRISV32F_INSN_JASC_C; goto extract_sfmt_jas_c; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; case 244 : { unsigned int val = (((insn >> 0) & (15 << 0))); @@ -1873,8 +2647,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_OR_M_B_M; goto extract_sfmt_and_m_b_m; - case 15 : itype = CRISV32F_INSN_ORCBR; goto extract_sfmt_andcbr; + case 14 : + if ((base_insn & 0xbf0) == 0xb40) + { itype = CRISV32F_INSN_OR_M_B_M; goto extract_sfmt_and_m_b_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xf4f) + { itype = CRISV32F_INSN_ORCBR; goto extract_sfmt_andcbr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1897,8 +2677,14 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_OR_M_W_M; goto extract_sfmt_and_m_w_m; - case 15 : itype = CRISV32F_INSN_ORCWR; goto extract_sfmt_andcwr; + case 14 : + if ((base_insn & 0xbf0) == 0xb50) + { itype = CRISV32F_INSN_OR_M_W_M; goto extract_sfmt_and_m_w_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xf5f) + { itype = CRISV32F_INSN_ORCWR; goto extract_sfmt_andcwr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -1921,12 +2707,21 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, case 11 : /* fall through */ case 12 : /* fall through */ case 13 : /* fall through */ - case 14 : itype = CRISV32F_INSN_OR_M_D_M; goto extract_sfmt_and_m_d_m; - case 15 : itype = CRISV32F_INSN_ORCDR; goto extract_sfmt_andcdr; + case 14 : + if ((base_insn & 0xbf0) == 0xb60) + { itype = CRISV32F_INSN_OR_M_D_M; goto extract_sfmt_and_m_d_m; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; + case 15 : + if ((base_insn & 0xfff) == 0xf6f) + { itype = CRISV32F_INSN_ORCDR; goto extract_sfmt_andcdr; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } - case 247 : itype = CRISV32F_INSN_MOVE_SS_R; goto extract_sfmt_move_ss_r; + case 247 : + if ((base_insn & 0xff0) == 0xf70) + { itype = CRISV32F_INSN_MOVE_SS_R; goto extract_sfmt_move_ss_r; } + itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; default : itype = CRISV32F_INSN_X_INVALID; goto extract_sfmt_empty; } } @@ -2068,8 +2863,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -2098,8 +2893,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -2158,9 +2953,9 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); + word_1 = GETIMEMUSI (current_cpu, pc + 2); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); /* Record the fields for the semantic handler. */ FLD (f_indir_pc__byte) = f_indir_pc__byte; @@ -2188,9 +2983,9 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); + word_1 = GETIMEMUSI (current_cpu, pc + 2); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); /* Record the fields for the semantic handler. */ FLD (f_indir_pc__word) = f_indir_pc__word; @@ -2218,9 +3013,9 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); + word_1 = GETIMEMUSI (current_cpu, pc + 2); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); /* Record the fields for the semantic handler. */ FLD (f_indir_pc__byte) = f_indir_pc__byte; @@ -2248,9 +3043,9 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); + word_1 = GETIMEMUSI (current_cpu, pc + 2); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); /* Record the fields for the semantic handler. */ FLD (f_indir_pc__word) = f_indir_pc__word; @@ -2430,8 +3225,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -2460,8 +3255,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -2547,8 +3342,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -2577,8 +3372,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -3224,8 +4019,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -3255,8 +4050,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -3383,8 +4178,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -3414,8 +4209,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -4074,8 +4869,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -4105,8 +4900,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -4584,8 +5379,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word_pcrel = ((EXTHISI (((HI) (UINT) ((0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)))))) + (((pc) + (((GET_H_V32_V32 ()) ? (0) : (4)))))); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word_pcrel = ((EXTHISI (((HI) (UINT) ((0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)))))) + (((pc) + (((GET_H_V32_V32 ()) ? (0) : (4)))))); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -4612,8 +5407,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word_pcrel = ((EXTHISI (((HI) (UINT) ((0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)))))) + (((pc) + (((GET_H_V32_V32 ()) ? (0) : (4)))))); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word_pcrel = ((EXTHISI (((HI) (UINT) ((0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)))))) + (((pc) + (((GET_H_V32_V32 ()) ? (0) : (4)))))); /* Record the fields for the semantic handler. */ FLD (i_o_word_pcrel) = f_indir_pc__word_pcrel; @@ -4802,8 +5597,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -4833,8 +5628,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -5045,8 +5840,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__byte = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ @@ -5075,8 +5870,8 @@ crisv32f_decode (SIM_CPU *current_cpu, IADDR pc, /* Contents of trailing part of insn. */ UINT word_1; - word_1 = GETIMEMUHI (current_cpu, pc + 2); - f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 16, 15, 16) << 0)); + word_1 = GETIMEMUSI (current_cpu, pc + 2); + f_indir_pc__word = (0|(EXTRACT_LSB0_UINT (word_1, 32, 15, 16) << 0)); f_operand2 = EXTRACT_LSB0_UINT (insn, 16, 15, 4); /* Record the fields for the semantic handler. */ |