* cpu.h,model.c,sem-switch.c,sem.c: Regenerate.

* cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate.
This commit is contained in:
Doug Evans
1998-03-04 20:14:51 +00:00
parent a6cefe4f38
commit 83d9ce0029
3 changed files with 453 additions and 325 deletions

View File

@@ -97,57 +97,61 @@ with this program; if not, write to the Free Software Foundation, Inc.,
&& case_read_READ_FMT_36_LOCK,
&& case_read_READ_FMT_37_MACHI_A,
&& case_read_READ_FMT_37_MACHI_A,
&& case_read_READ_FMT_38_MACWHI,
&& case_read_READ_FMT_38_MACWHI,
&& case_read_READ_FMT_0_ADD,
&& case_read_READ_FMT_38_MULHI_A,
&& case_read_READ_FMT_38_MULHI_A,
&& case_read_READ_FMT_39_MV,
&& case_read_READ_FMT_40_MVFACHI_A,
&& case_read_READ_FMT_40_MVFACHI_A,
&& case_read_READ_FMT_40_MVFACHI_A,
&& case_read_READ_FMT_41_MVFC,
&& case_read_READ_FMT_42_MVTACHI_A,
&& case_read_READ_FMT_42_MVTACHI_A,
&& case_read_READ_FMT_43_MVTC,
&& case_read_READ_FMT_39_MV,
&& case_read_READ_FMT_44_NOP,
&& case_read_READ_FMT_39_MV,
&& case_read_READ_FMT_45_RAC_DSI,
&& case_read_READ_FMT_45_RAC_DSI,
&& case_read_READ_FMT_46_RTE,
&& case_read_READ_FMT_47_SETH,
&& case_read_READ_FMT_39_MULHI_A,
&& case_read_READ_FMT_39_MULHI_A,
&& case_read_READ_FMT_40_MULWHI,
&& case_read_READ_FMT_40_MULWHI,
&& case_read_READ_FMT_41_MV,
&& case_read_READ_FMT_42_MVFACHI_A,
&& case_read_READ_FMT_42_MVFACHI_A,
&& case_read_READ_FMT_42_MVFACHI_A,
&& case_read_READ_FMT_43_MVFC,
&& case_read_READ_FMT_44_MVTACHI_A,
&& case_read_READ_FMT_44_MVTACHI_A,
&& case_read_READ_FMT_45_MVTC,
&& case_read_READ_FMT_41_MV,
&& case_read_READ_FMT_46_NOP,
&& case_read_READ_FMT_41_MV,
&& case_read_READ_FMT_47_RAC_DSI,
&& case_read_READ_FMT_47_RAC_DSI,
&& case_read_READ_FMT_48_RTE,
&& case_read_READ_FMT_49_SETH,
&& case_read_READ_FMT_0_ADD,
&& case_read_READ_FMT_48_SLL3,
&& case_read_READ_FMT_49_SLLI,
&& case_read_READ_FMT_50_SLL3,
&& case_read_READ_FMT_51_SLLI,
&& case_read_READ_FMT_0_ADD,
&& case_read_READ_FMT_48_SLL3,
&& case_read_READ_FMT_49_SLLI,
&& case_read_READ_FMT_50_SLL3,
&& case_read_READ_FMT_51_SLLI,
&& case_read_READ_FMT_0_ADD,
&& case_read_READ_FMT_48_SLL3,
&& case_read_READ_FMT_49_SLLI,
&& case_read_READ_FMT_50_ST,
&& case_read_READ_FMT_51_ST_D,
&& case_read_READ_FMT_52_STB,
&& case_read_READ_FMT_53_STB_D,
&& case_read_READ_FMT_54_STH,
&& case_read_READ_FMT_55_STH_D,
&& case_read_READ_FMT_56_ST_PLUS,
&& case_read_READ_FMT_56_ST_PLUS,
&& case_read_READ_FMT_50_SLL3,
&& case_read_READ_FMT_51_SLLI,
&& case_read_READ_FMT_52_ST,
&& case_read_READ_FMT_53_ST_D,
&& case_read_READ_FMT_54_STB,
&& case_read_READ_FMT_55_STB_D,
&& case_read_READ_FMT_56_STH,
&& case_read_READ_FMT_57_STH_D,
&& case_read_READ_FMT_58_ST_PLUS,
&& case_read_READ_FMT_58_ST_PLUS,
&& case_read_READ_FMT_0_ADD,
&& case_read_READ_FMT_5_ADDV,
&& case_read_READ_FMT_7_ADDX,
&& case_read_READ_FMT_57_TRAP,
&& case_read_READ_FMT_58_UNLOCK,
&& case_read_READ_FMT_59_SATB,
&& case_read_READ_FMT_59_SATB,
&& case_read_READ_FMT_60_SAT,
&& case_read_READ_FMT_59_TRAP,
&& case_read_READ_FMT_60_UNLOCK,
&& case_read_READ_FMT_61_SATB,
&& case_read_READ_FMT_61_SATB,
&& case_read_READ_FMT_62_SAT,
&& case_read_READ_FMT_21_CMPZ,
&& case_read_READ_FMT_61_SADD,
&& case_read_READ_FMT_62_MACWU1,
&& case_read_READ_FMT_63_MSBLO,
&& case_read_READ_FMT_64_MULWU1,
&& case_read_READ_FMT_62_MACWU1,
&& case_read_READ_FMT_65_SC,
&& case_read_READ_FMT_65_SC,
&& case_read_READ_FMT_63_SADD,
&& case_read_READ_FMT_64_MACWU1,
&& case_read_READ_FMT_38_MACWHI,
&& case_read_READ_FMT_65_MULWU1,
&& case_read_READ_FMT_64_MACWU1,
&& case_read_READ_FMT_66_SC,
&& case_read_READ_FMT_66_SC,
0
};
extern DECODE *m32rx_decode_vars[];
@@ -184,7 +188,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_1_ADD3) : /* e.g. add3 $dr,$sr,#$slo16 */
CASE (read, READ_FMT_1_ADD3) : /* e.g. add3 $dr,$sr,$hash$slo16 */
{
#define OPRND(f) par_exec->operands.fmt_1_add3.f
EXTRACT_FMT_1_ADD3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
@@ -197,7 +201,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_2_AND3) : /* e.g. and3 $dr,$sr,#$uimm16 */
CASE (read, READ_FMT_2_AND3) : /* e.g. and3 $dr,$sr,$uimm16 */
{
#define OPRND(f) par_exec->operands.fmt_2_and3.f
EXTRACT_FMT_2_AND3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
@@ -210,7 +214,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_3_OR3) : /* e.g. or3 $dr,$sr,#$ulo16 */
CASE (read, READ_FMT_3_OR3) : /* e.g. or3 $dr,$sr,$hash$ulo16 */
{
#define OPRND(f) par_exec->operands.fmt_3_or3.f
EXTRACT_FMT_3_OR3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
@@ -223,7 +227,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_4_ADDI) : /* e.g. addi $dr,#$simm8 */
CASE (read, READ_FMT_4_ADDI) : /* e.g. addi $dr,$simm8 */
{
#define OPRND(f) par_exec->operands.fmt_4_addi.f
EXTRACT_FMT_4_ADDI_VARS /* f-op1 f-r1 f-simm8 */
@@ -249,7 +253,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_6_ADDV3) : /* e.g. addv3 $dr,$sr,#$simm16 */
CASE (read, READ_FMT_6_ADDV3) : /* e.g. addv3 $dr,$sr,$simm16 */
{
#define OPRND(f) par_exec->operands.fmt_6_addv3.f
EXTRACT_FMT_6_ADDV3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
@@ -420,7 +424,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_19_CMPI) : /* e.g. cmpi $src2,#$simm16 */
CASE (read, READ_FMT_19_CMPI) : /* e.g. cmpi $src2,$simm16 */
{
#define OPRND(f) par_exec->operands.fmt_19_cmpi.f
EXTRACT_FMT_19_CMPI_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
@@ -433,7 +437,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_20_CMPUI) : /* e.g. cmpui $src2,#$uimm16 */
CASE (read, READ_FMT_20_CMPUI) : /* e.g. cmpui $src2,$uimm16 */
{
#define OPRND(f) par_exec->operands.fmt_20_cmpui.f
EXTRACT_FMT_20_CMPUI_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
@@ -603,7 +607,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_33_LD24) : /* e.g. ld24 $dr,#$uimm24 */
CASE (read, READ_FMT_33_LD24) : /* e.g. ld24 $dr,$uimm24 */
{
#define OPRND(f) par_exec->operands.fmt_33_ld24.f
EXTRACT_FMT_33_LD24_VARS /* f-op1 f-r1 f-uimm24 */
@@ -615,7 +619,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_34_LDI8) : /* e.g. ldi $dr,#$simm8 */
CASE (read, READ_FMT_34_LDI8) : /* e.g. ldi $dr,$simm8 */
{
#define OPRND(f) par_exec->operands.fmt_34_ldi8.f
EXTRACT_FMT_34_LDI8_VARS /* f-op1 f-r1 f-simm8 */
@@ -627,7 +631,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_35_LDI16) : /* e.g. ldi $dr,$slo16 */
CASE (read, READ_FMT_35_LDI16) : /* e.g. ldi $dr,$hash$slo16 */
{
#define OPRND(f) par_exec->operands.fmt_35_ldi16.f
EXTRACT_FMT_35_LDI16_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
@@ -666,11 +670,25 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_38_MULHI_A) : /* e.g. mulhi $src1,$src2,$acc */
CASE (read, READ_FMT_38_MACWHI) : /* e.g. macwhi $src1,$src2 */
{
#define OPRND(f) par_exec->operands.fmt_38_mulhi_a.f
EXTRACT_FMT_38_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_38_MULHI_A_CODE
#define OPRND(f) par_exec->operands.fmt_38_macwhi.f
EXTRACT_FMT_38_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_38_MACWHI_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (accum) = CPU (h_accum);
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
}
BREAK (read);
CASE (read, READ_FMT_39_MULHI_A) : /* e.g. mulhi $src1,$src2,$acc */
{
#define OPRND(f) par_exec->operands.fmt_39_mulhi_a.f
EXTRACT_FMT_39_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_39_MULHI_A_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
@@ -679,11 +697,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_39_MV) : /* e.g. mv $dr,$sr */
CASE (read, READ_FMT_40_MULWHI) : /* e.g. mulwhi $src1,$src2 */
{
#define OPRND(f) par_exec->operands.fmt_39_mv.f
EXTRACT_FMT_39_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_39_MV_CODE
#define OPRND(f) par_exec->operands.fmt_40_mulwhi.f
EXTRACT_FMT_40_MULWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_40_MULWHI_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
}
BREAK (read);
CASE (read, READ_FMT_41_MV) : /* e.g. mv $dr,$sr */
{
#define OPRND(f) par_exec->operands.fmt_41_mv.f
EXTRACT_FMT_41_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_41_MV_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
@@ -691,11 +722,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_40_MVFACHI_A) : /* e.g. mvfachi $dr,$accs */
CASE (read, READ_FMT_42_MVFACHI_A) : /* e.g. mvfachi $dr,$accs */
{
#define OPRND(f) par_exec->operands.fmt_40_mvfachi_a.f
EXTRACT_FMT_40_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_40_MVFACHI_A_CODE
#define OPRND(f) par_exec->operands.fmt_42_mvfachi_a.f
EXTRACT_FMT_42_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_42_MVFACHI_A_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (accs) = m32rx_h_accums_get (current_cpu, f_accs);
@@ -703,11 +734,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_41_MVFC) : /* e.g. mvfc $dr,$scr */
CASE (read, READ_FMT_43_MVFC) : /* e.g. mvfc $dr,$scr */
{
#define OPRND(f) par_exec->operands.fmt_41_mvfc.f
EXTRACT_FMT_41_MVFC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_41_MVFC_CODE
#define OPRND(f) par_exec->operands.fmt_43_mvfc.f
EXTRACT_FMT_43_MVFC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_43_MVFC_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (scr) = m32rx_h_cr_get (current_cpu, f_r2);
@@ -715,11 +746,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_42_MVTACHI_A) : /* e.g. mvtachi $src1,$accs */
CASE (read, READ_FMT_44_MVTACHI_A) : /* e.g. mvtachi $src1,$accs */
{
#define OPRND(f) par_exec->operands.fmt_42_mvtachi_a.f
EXTRACT_FMT_42_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_42_MVTACHI_A_CODE
#define OPRND(f) par_exec->operands.fmt_44_mvtachi_a.f
EXTRACT_FMT_44_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_44_MVTACHI_A_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (accs) = m32rx_h_accums_get (current_cpu, f_accs);
@@ -728,11 +759,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_43_MVTC) : /* e.g. mvtc $sr,$dcr */
CASE (read, READ_FMT_45_MVTC) : /* e.g. mvtc $sr,$dcr */
{
#define OPRND(f) par_exec->operands.fmt_43_mvtc.f
EXTRACT_FMT_43_MVTC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_43_MVTC_CODE
#define OPRND(f) par_exec->operands.fmt_45_mvtc.f
EXTRACT_FMT_45_MVTC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_45_MVTC_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
@@ -740,22 +771,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_44_NOP) : /* e.g. nop */
CASE (read, READ_FMT_46_NOP) : /* e.g. nop */
{
#define OPRND(f) par_exec->operands.fmt_44_nop.f
EXTRACT_FMT_44_NOP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_44_NOP_CODE
#define OPRND(f) par_exec->operands.fmt_46_nop.f
EXTRACT_FMT_46_NOP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_46_NOP_CODE
/* Fetch the input operands for the semantic handler. */
#undef OPRND
}
BREAK (read);
CASE (read, READ_FMT_45_RAC_DSI) : /* e.g. rac $accd,$accs,#$imm1 */
CASE (read, READ_FMT_47_RAC_DSI) : /* e.g. rac $accd,$accs,$imm1 */
{
#define OPRND(f) par_exec->operands.fmt_45_rac_dsi.f
EXTRACT_FMT_45_RAC_DSI_VARS /* f-op1 f-accd f-bits67 f-op2 f-accs f-bit14 f-imm1 */
EXTRACT_FMT_45_RAC_DSI_CODE
#define OPRND(f) par_exec->operands.fmt_47_rac_dsi.f
EXTRACT_FMT_47_RAC_DSI_VARS /* f-op1 f-accd f-bits67 f-op2 f-accs f-bit14 f-imm1 */
EXTRACT_FMT_47_RAC_DSI_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (accs) = m32rx_h_accums_get (current_cpu, f_accs);
@@ -764,11 +795,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_46_RTE) : /* e.g. rte */
CASE (read, READ_FMT_48_RTE) : /* e.g. rte */
{
#define OPRND(f) par_exec->operands.fmt_46_rte.f
EXTRACT_FMT_46_RTE_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_46_RTE_CODE
#define OPRND(f) par_exec->operands.fmt_48_rte.f
EXTRACT_FMT_48_RTE_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_48_RTE_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (h_bcond_0) = CPU (h_bcond);
@@ -779,11 +810,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_47_SETH) : /* e.g. seth $dr,#$hi16 */
CASE (read, READ_FMT_49_SETH) : /* e.g. seth $dr,$hash$hi16 */
{
#define OPRND(f) par_exec->operands.fmt_47_seth.f
EXTRACT_FMT_47_SETH_VARS /* f-op1 f-r1 f-op2 f-r2 f-hi16 */
EXTRACT_FMT_47_SETH_CODE
#define OPRND(f) par_exec->operands.fmt_49_seth.f
EXTRACT_FMT_49_SETH_VARS /* f-op1 f-r1 f-op2 f-r2 f-hi16 */
EXTRACT_FMT_49_SETH_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (hi16) = f_hi16;
@@ -791,11 +822,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_48_SLL3) : /* e.g. sll3 $dr,$sr,#$simm16 */
CASE (read, READ_FMT_50_SLL3) : /* e.g. sll3 $dr,$sr,$simm16 */
{
#define OPRND(f) par_exec->operands.fmt_48_sll3.f
EXTRACT_FMT_48_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_48_SLL3_CODE
#define OPRND(f) par_exec->operands.fmt_50_sll3.f
EXTRACT_FMT_50_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_50_SLL3_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (simm16) = f_simm16;
@@ -804,11 +835,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_49_SLLI) : /* e.g. slli $dr,#$uimm5 */
CASE (read, READ_FMT_51_SLLI) : /* e.g. slli $dr,$uimm5 */
{
#define OPRND(f) par_exec->operands.fmt_49_slli.f
EXTRACT_FMT_49_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_49_SLLI_CODE
#define OPRND(f) par_exec->operands.fmt_51_slli.f
EXTRACT_FMT_51_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_51_SLLI_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
@@ -817,11 +848,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_50_ST) : /* e.g. st $src1,@$src2 */
CASE (read, READ_FMT_52_ST) : /* e.g. st $src1,@$src2 */
{
#define OPRND(f) par_exec->operands.fmt_50_st.f
EXTRACT_FMT_50_ST_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_50_ST_CODE
#define OPRND(f) par_exec->operands.fmt_52_st.f
EXTRACT_FMT_52_ST_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_52_ST_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
@@ -830,11 +861,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_51_ST_D) : /* e.g. st $src1,@($slo16,$src2) */
CASE (read, READ_FMT_53_ST_D) : /* e.g. st $src1,@($slo16,$src2) */
{
#define OPRND(f) par_exec->operands.fmt_51_st_d.f
EXTRACT_FMT_51_ST_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_51_ST_D_CODE
#define OPRND(f) par_exec->operands.fmt_53_st_d.f
EXTRACT_FMT_53_ST_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_53_ST_D_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (slo16) = f_simm16;
@@ -844,11 +875,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_52_STB) : /* e.g. stb $src1,@$src2 */
CASE (read, READ_FMT_54_STB) : /* e.g. stb $src1,@$src2 */
{
#define OPRND(f) par_exec->operands.fmt_52_stb.f
EXTRACT_FMT_52_STB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_52_STB_CODE
#define OPRND(f) par_exec->operands.fmt_54_stb.f
EXTRACT_FMT_54_STB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_54_STB_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
@@ -857,11 +888,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_53_STB_D) : /* e.g. stb $src1,@($slo16,$src2) */
CASE (read, READ_FMT_55_STB_D) : /* e.g. stb $src1,@($slo16,$src2) */
{
#define OPRND(f) par_exec->operands.fmt_53_stb_d.f
EXTRACT_FMT_53_STB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_53_STB_D_CODE
#define OPRND(f) par_exec->operands.fmt_55_stb_d.f
EXTRACT_FMT_55_STB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_55_STB_D_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (slo16) = f_simm16;
@@ -871,11 +902,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_54_STH) : /* e.g. sth $src1,@$src2 */
CASE (read, READ_FMT_56_STH) : /* e.g. sth $src1,@$src2 */
{
#define OPRND(f) par_exec->operands.fmt_54_sth.f
EXTRACT_FMT_54_STH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_54_STH_CODE
#define OPRND(f) par_exec->operands.fmt_56_sth.f
EXTRACT_FMT_56_STH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_56_STH_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
@@ -884,11 +915,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_55_STH_D) : /* e.g. sth $src1,@($slo16,$src2) */
CASE (read, READ_FMT_57_STH_D) : /* e.g. sth $src1,@($slo16,$src2) */
{
#define OPRND(f) par_exec->operands.fmt_55_sth_d.f
EXTRACT_FMT_55_STH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_55_STH_D_CODE
#define OPRND(f) par_exec->operands.fmt_57_sth_d.f
EXTRACT_FMT_57_STH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_57_STH_D_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (slo16) = f_simm16;
@@ -898,11 +929,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_56_ST_PLUS) : /* e.g. st $src1,@+$src2 */
CASE (read, READ_FMT_58_ST_PLUS) : /* e.g. st $src1,@+$src2 */
{
#define OPRND(f) par_exec->operands.fmt_56_st_plus.f
EXTRACT_FMT_56_ST_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_56_ST_PLUS_CODE
#define OPRND(f) par_exec->operands.fmt_58_st_plus.f
EXTRACT_FMT_58_ST_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_58_ST_PLUS_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
@@ -911,11 +942,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_57_TRAP) : /* e.g. trap #$uimm4 */
CASE (read, READ_FMT_59_TRAP) : /* e.g. trap $uimm4 */
{
#define OPRND(f) par_exec->operands.fmt_57_trap.f
EXTRACT_FMT_57_TRAP_VARS /* f-op1 f-r1 f-op2 f-uimm4 */
EXTRACT_FMT_57_TRAP_CODE
#define OPRND(f) par_exec->operands.fmt_59_trap.f
EXTRACT_FMT_59_TRAP_VARS /* f-op1 f-r1 f-op2 f-uimm4 */
EXTRACT_FMT_59_TRAP_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (pc) = CPU (h_pc);
@@ -925,11 +956,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_58_UNLOCK) : /* e.g. unlock $src1,@$src2 */
CASE (read, READ_FMT_60_UNLOCK) : /* e.g. unlock $src1,@$src2 */
{
#define OPRND(f) par_exec->operands.fmt_58_unlock.f
EXTRACT_FMT_58_UNLOCK_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_58_UNLOCK_CODE
#define OPRND(f) par_exec->operands.fmt_60_unlock.f
EXTRACT_FMT_60_UNLOCK_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_60_UNLOCK_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (h_lock_0) = CPU (h_lock);
@@ -939,11 +970,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_59_SATB) : /* e.g. satb $dr,$sr */
CASE (read, READ_FMT_61_SATB) : /* e.g. satb $dr,$sr */
{
#define OPRND(f) par_exec->operands.fmt_59_satb.f
EXTRACT_FMT_59_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_59_SATB_CODE
#define OPRND(f) par_exec->operands.fmt_61_satb.f
EXTRACT_FMT_61_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_61_SATB_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
@@ -951,11 +982,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_60_SAT) : /* e.g. sat $dr,$sr */
CASE (read, READ_FMT_62_SAT) : /* e.g. sat $dr,$sr */
{
#define OPRND(f) par_exec->operands.fmt_60_sat.f
EXTRACT_FMT_60_SAT_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_60_SAT_CODE
#define OPRND(f) par_exec->operands.fmt_62_sat.f
EXTRACT_FMT_62_SAT_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_62_SAT_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
@@ -964,11 +995,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_61_SADD) : /* e.g. sadd */
CASE (read, READ_FMT_63_SADD) : /* e.g. sadd */
{
#define OPRND(f) par_exec->operands.fmt_61_sadd.f
EXTRACT_FMT_61_SADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_61_SADD_CODE
#define OPRND(f) par_exec->operands.fmt_63_sadd.f
EXTRACT_FMT_63_SADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_63_SADD_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (h_accums_0) = m32rx_h_accums_get (current_cpu, 0);
@@ -977,11 +1008,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_62_MACWU1) : /* e.g. macwu1 $src1,$src2 */
CASE (read, READ_FMT_64_MACWU1) : /* e.g. macwu1 $src1,$src2 */
{
#define OPRND(f) par_exec->operands.fmt_62_macwu1.f
EXTRACT_FMT_62_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_62_MACWU1_CODE
#define OPRND(f) par_exec->operands.fmt_64_macwu1.f
EXTRACT_FMT_64_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_64_MACWU1_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (h_accums_1) = m32rx_h_accums_get (current_cpu, 1);
@@ -991,25 +1022,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_63_MSBLO) : /* e.g. msblo $src1,$src2 */
CASE (read, READ_FMT_65_MULWU1) : /* e.g. mulwu1 $src1,$src2 */
{
#define OPRND(f) par_exec->operands.fmt_63_msblo.f
EXTRACT_FMT_63_MSBLO_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_63_MSBLO_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (accum) = CPU (h_accum);
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
}
BREAK (read);
CASE (read, READ_FMT_64_MULWU1) : /* e.g. mulwu1 $src1,$src2 */
{
#define OPRND(f) par_exec->operands.fmt_64_mulwu1.f
EXTRACT_FMT_64_MULWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_64_MULWU1_CODE
#define OPRND(f) par_exec->operands.fmt_65_mulwu1.f
EXTRACT_FMT_65_MULWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_65_MULWU1_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
@@ -1018,11 +1035,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
}
BREAK (read);
CASE (read, READ_FMT_65_SC) : /* e.g. sc */
CASE (read, READ_FMT_66_SC) : /* e.g. sc */
{
#define OPRND(f) par_exec->operands.fmt_65_sc.f
EXTRACT_FMT_65_SC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_65_SC_CODE
#define OPRND(f) par_exec->operands.fmt_66_sc.f
EXTRACT_FMT_66_SC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_66_SC_CODE
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);