/* Simulator instruction operand reader for m32r.
-This file is machine generated with CGEN.
+THIS FILE IS MACHINE GENERATED WITH CGEN.
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
#define OPRND(f) par_exec->operands.fmt_add.f
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_add3.f
EXTRACT_FMT_ADD3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_ADD3_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_and3.f
EXTRACT_FMT_AND3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_AND3_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
OPRND (uimm16) = f_uimm16;
#define OPRND(f) par_exec->operands.fmt_or3.f
EXTRACT_FMT_OR3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_OR3_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
OPRND (ulo16) = f_uimm16;
#define OPRND(f) par_exec->operands.fmt_addi.f
EXTRACT_FMT_ADDI_VARS /* f-op1 f-r1 f-simm8 */
EXTRACT_FMT_ADDI_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (simm8) = f_simm8;
#define OPRND(f) par_exec->operands.fmt_addv.f
EXTRACT_FMT_ADDV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADDV_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_addv3.f
EXTRACT_FMT_ADDV3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_ADDV3_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
OPRND (simm16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_addx.f
EXTRACT_FMT_ADDX_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADDX_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_bc8.f
EXTRACT_FMT_BC8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_BC8_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
- RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
+ OPRND (disp8) = (pc & -4L) + f_disp8;
#undef OPRND
}
BREAK (read);
#define OPRND(f) par_exec->operands.fmt_bc24.f
EXTRACT_FMT_BC24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_BC24_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
OPRND (disp24) = pc + f_disp24;
#define OPRND(f) par_exec->operands.fmt_beq.f
EXTRACT_FMT_BEQ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_BEQ_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_beqz.f
EXTRACT_FMT_BEQZ_VARS /* f-op1 f-r1 f-op2 f-r2 f-disp16 */
EXTRACT_FMT_BEQZ_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (disp16) = pc + f_disp16;
#define OPRND(f) par_exec->operands.fmt_bl8.f
EXTRACT_FMT_BL8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_BL8_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (pc) = CPU (h_pc);
- RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
+ OPRND (disp8) = (pc & -4L) + f_disp8;
#undef OPRND
}
BREAK (read);
#define OPRND(f) par_exec->operands.fmt_bl24.f
EXTRACT_FMT_BL24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_BL24_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (pc) = CPU (h_pc);
OPRND (disp24) = pc + f_disp24;
#define OPRND(f) par_exec->operands.fmt_bcl8.f
EXTRACT_FMT_BCL8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_BCL8_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
OPRND (pc) = CPU (h_pc);
- RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
+ OPRND (disp8) = (pc & -4L) + f_disp8;
#undef OPRND
}
BREAK (read);
#define OPRND(f) par_exec->operands.fmt_bcl24.f
EXTRACT_FMT_BCL24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_BCL24_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
OPRND (pc) = CPU (h_pc);
#define OPRND(f) par_exec->operands.fmt_bra8.f
EXTRACT_FMT_BRA8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_BRA8_CODE
-
/* Fetch the input operands for the semantic handler. */
- RECORD_IADDR (OPRND (disp8), (pc & -4L) + f_disp8);
+ OPRND (disp8) = (pc & -4L) + f_disp8;
#undef OPRND
}
BREAK (read);
#define OPRND(f) par_exec->operands.fmt_bra24.f
EXTRACT_FMT_BRA24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_BRA24_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (disp24) = pc + f_disp24;
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_cmp.f
EXTRACT_FMT_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMP_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_cmpi.f
EXTRACT_FMT_CMPI_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_CMPI_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (simm16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_cmpz.f
EXTRACT_FMT_CMPZ_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMPZ_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_div.f
EXTRACT_FMT_DIV_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_DIV_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_jc.f
EXTRACT_FMT_JC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_JC_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_jl.f
EXTRACT_FMT_JL_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_JL_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (pc) = CPU (h_pc);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_jmp.f
EXTRACT_FMT_JMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_JMP_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_ld.f
EXTRACT_FMT_LD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LD_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_sr) = GETMEMSI (current_cpu, CPU (h_gr[f_r2]));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ld_d.f
EXTRACT_FMT_LD_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LD_D_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_add__VM_sr_slo16) = GETMEMSI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ldb.f
EXTRACT_FMT_LDB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LDB_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_sr) = GETMEMQI (current_cpu, CPU (h_gr[f_r2]));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ldb_d.f
EXTRACT_FMT_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDB_D_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_add__VM_sr_slo16) = GETMEMQI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ldh.f
EXTRACT_FMT_LDH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LDH_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_sr) = GETMEMHI (current_cpu, CPU (h_gr[f_r2]));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ldh_d.f
EXTRACT_FMT_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDH_D_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_add__VM_sr_slo16) = GETMEMHI (current_cpu, ADDSI (CPU (h_gr[f_r2]), f_simm16));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ld_plus.f
EXTRACT_FMT_LD_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LD_PLUS_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_sr) = GETMEMSI (current_cpu, CPU (h_gr[f_r2]));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_ld24.f
EXTRACT_FMT_LD24_VARS /* f-op1 f-r1 f-uimm24 */
EXTRACT_FMT_LD24_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (uimm24) = f_uimm24;
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_ldi8.f
EXTRACT_FMT_LDI8_VARS /* f-op1 f-r1 f-simm8 */
EXTRACT_FMT_LDI8_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (simm8) = f_simm8;
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_ldi16.f
EXTRACT_FMT_LDI16_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDI16_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (slo16) = f_simm16;
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_lock.f
EXTRACT_FMT_LOCK_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LOCK_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_memory_sr) = GETMEMSI (current_cpu, CPU (h_gr[f_r2]));
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_machi_a.f
EXTRACT_FMT_MACHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_MACHI_A_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (acc) = m32rx_h_accums_get (current_cpu, f_acc);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_macwhi.f
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (accum) = m32rx_h_accum_get (current_cpu);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_mulhi_a.f
EXTRACT_FMT_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_MULHI_A_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_mulwhi.f
EXTRACT_FMT_MULWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWHI_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_mv.f
EXTRACT_FMT_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MV_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_mvfachi_a.f
EXTRACT_FMT_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVFACHI_A_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (accs) = m32rx_h_accums_get (current_cpu, f_accs);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_mvfc.f
EXTRACT_FMT_MVFC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MVFC_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (scr) = m32rx_h_cr_get (current_cpu, f_r2);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_mvtachi_a.f
EXTRACT_FMT_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVTACHI_A_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (accs) = m32rx_h_accums_get (current_cpu, f_accs);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_mvtc.f
EXTRACT_FMT_MVTC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MVTC_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_nop.f
EXTRACT_FMT_NOP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_NOP_CODE
-
/* Fetch the input operands for the semantic handler. */
#undef OPRND
}
#define OPRND(f) par_exec->operands.fmt_rac_dsi.f
EXTRACT_FMT_RAC_DSI_VARS /* f-op1 f-accd f-bits67 f-op2 f-accs f-bit14 f-imm1 */
EXTRACT_FMT_RAC_DSI_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (accs) = m32rx_h_accums_get (current_cpu, f_accs);
OPRND (imm1) = f_imm1;
#define OPRND(f) par_exec->operands.fmt_rte.f
EXTRACT_FMT_RTE_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_RTE_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_bsm_0) = CPU (h_bsm);
OPRND (h_bie_0) = CPU (h_bie);
#define OPRND(f) par_exec->operands.fmt_seth.f
EXTRACT_FMT_SETH_VARS /* f-op1 f-r1 f-op2 f-r2 f-hi16 */
EXTRACT_FMT_SETH_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (hi16) = f_hi16;
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_sll3.f
EXTRACT_FMT_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_SLL3_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
OPRND (simm16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_slli.f
EXTRACT_FMT_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_SLLI_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (dr) = CPU (h_gr[f_r1]);
OPRND (uimm5) = f_uimm5;
#define OPRND(f) par_exec->operands.fmt_st.f
EXTRACT_FMT_ST_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ST_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_st_d.f
EXTRACT_FMT_ST_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_ST_D_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_stb.f
EXTRACT_FMT_STB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_STB_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_stb_d.f
EXTRACT_FMT_STB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_STB_D_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_sth.f
EXTRACT_FMT_STH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_STH_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_sth_d.f
EXTRACT_FMT_STH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_STH_D_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (slo16) = f_simm16;
#define OPRND(f) par_exec->operands.fmt_st_plus.f
EXTRACT_FMT_ST_PLUS_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ST_PLUS_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src2) = CPU (h_gr[f_r2]);
OPRND (src1) = CPU (h_gr[f_r1]);
#define OPRND(f) par_exec->operands.fmt_trap.f
EXTRACT_FMT_TRAP_VARS /* f-op1 f-r1 f-op2 f-uimm4 */
EXTRACT_FMT_TRAP_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (pc) = CPU (h_pc);
- OPRND (h_cr_0) = m32rx_h_cr_get (current_cpu, 0);
+ OPRND (h_cr_0) = m32rx_h_cr_get (current_cpu, ((HOSTUINT) 0));
OPRND (uimm4) = f_uimm4;
#undef OPRND
}
#define OPRND(f) par_exec->operands.fmt_unlock.f
EXTRACT_FMT_UNLOCK_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_UNLOCK_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (h_lock_0) = CPU (h_lock);
OPRND (src2) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_satb.f
EXTRACT_FMT_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_SATB_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (sr) = CPU (h_gr[f_r2]);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_sat.f
EXTRACT_FMT_SAT_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_SAT_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
OPRND (sr) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_sadd.f
EXTRACT_FMT_SADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_SADD_CODE
-
/* Fetch the input operands for the semantic handler. */
- OPRND (h_accums_1) = m32rx_h_accums_get (current_cpu, 1);
- OPRND (h_accums_0) = m32rx_h_accums_get (current_cpu, 0);
+ OPRND (h_accums_1) = m32rx_h_accums_get (current_cpu, ((HOSTUINT) 1));
+ OPRND (h_accums_0) = m32rx_h_accums_get (current_cpu, ((HOSTUINT) 0));
#undef OPRND
}
BREAK (read);
#define OPRND(f) par_exec->operands.fmt_macwu1.f
EXTRACT_FMT_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWU1_CODE
-
/* Fetch the input operands for the semantic handler. */
- OPRND (h_accums_1) = m32rx_h_accums_get (current_cpu, 1);
+ OPRND (h_accums_1) = m32rx_h_accums_get (current_cpu, ((HOSTUINT) 1));
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#undef OPRND
#define OPRND(f) par_exec->operands.fmt_mulwu1.f
EXTRACT_FMT_MULWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWU1_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (src1) = CPU (h_gr[f_r1]);
OPRND (src2) = CPU (h_gr[f_r2]);
#define OPRND(f) par_exec->operands.fmt_sc.f
EXTRACT_FMT_SC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_SC_CODE
-
/* Fetch the input operands for the semantic handler. */
OPRND (condbit) = CPU (h_cond);
#undef OPRND
/* Simulator instruction semantics for m32rx.
-This file is machine generated with CGEN.
+THIS FILE IS MACHINE GENERATED WITH CGEN.
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = ADDSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ADDSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_ADD3_CODE
- CPU (h_gr[f_r1]) = ADDSI (OPRND (sr), OPRND (slo16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ADDSI (OPRND (sr), OPRND (slo16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = ANDSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ANDSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_AND3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_AND3_CODE
- CPU (h_gr[f_r1]) = ANDSI (OPRND (sr), OPRND (uimm16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ANDSI (OPRND (sr), OPRND (uimm16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = ORSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ORSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_OR3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_OR3_CODE
- CPU (h_gr[f_r1]) = ORSI (OPRND (sr), OPRND (ulo16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ORSI (OPRND (sr), OPRND (ulo16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = XORSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = XORSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_AND3_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_AND3_CODE
- CPU (h_gr[f_r1]) = XORSI (OPRND (sr), OPRND (uimm16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = XORSI (OPRND (sr), OPRND (uimm16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADDI_VARS /* f-op1 f-r1 f-simm8 */
EXTRACT_FMT_ADDI_CODE
- CPU (h_gr[f_r1]) = ADDSI (OPRND (dr), OPRND (simm8));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ADDSI (OPRND (dr), OPRND (simm8));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
UBI temp1;SI temp0;
temp0 = ADDSI (OPRND (dr), OPRND (sr));
temp1 = ADDOFSI (OPRND (dr), OPRND (sr), 0);
- CPU (h_gr[f_r1]) = temp0;
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
- CPU (h_cond) = temp1;
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ SI opval = temp0;
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
+ {
+ UBI opval = temp1;
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
UBI temp1;SI temp0;
temp0 = ADDSI (OPRND (sr), OPRND (simm16));
temp1 = ADDOFSI (OPRND (sr), OPRND (simm16), 0);
- CPU (h_gr[f_r1]) = temp0;
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
- CPU (h_cond) = temp1;
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ SI opval = temp0;
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
+ {
+ UBI opval = temp1;
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
UBI temp1;SI temp0;
temp0 = ADDCSI (OPRND (dr), OPRND (sr), OPRND (condbit));
temp1 = ADDCFSI (OPRND (dr), OPRND (sr), OPRND (condbit));
- CPU (h_gr[f_r1]) = temp0;
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
- CPU (h_cond) = temp1;
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ SI opval = temp0;
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
+ {
+ UBI opval = temp1;
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BC8_CODE
if (OPRND (condbit)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp8);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BC24_CODE
if (OPRND (condbit)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp24);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQ_CODE
if (EQSI (OPRND (src1), OPRND (src2))) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQZ_CODE
if (EQSI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQZ_CODE
if (GESI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQZ_CODE
if (GTSI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQZ_CODE
if (LESI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQZ_CODE
if (LTSI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQZ_CODE
if (NESI (OPRND (src2), 0)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BL8_CODE
do {
- CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = ADDSI (ANDSI (OPRND (pc), -4), 4);
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = OPRND (disp8);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BL24_CODE
do {
- CPU (h_gr[14]) = ADDSI (OPRND (pc), 4);
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = ADDSI (OPRND (pc), 4);
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = OPRND (disp24);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
if (OPRND (condbit)) {
do {
- CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = ADDSI (ANDSI (OPRND (pc), -4), 4);
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = OPRND (disp8);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
}
if (OPRND (condbit)) {
do {
- CPU (h_gr[14]) = ADDSI (OPRND (pc), 4);
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = ADDSI (OPRND (pc), 4);
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = OPRND (disp24);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
}
EXTRACT_FMT_BC8_CODE
if (NOTBI (OPRND (condbit))) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp8);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BC24_CODE
if (NOTBI (OPRND (condbit))) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp24);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BEQ_CODE
if (NESI (OPRND (src1), OPRND (src2))) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp16)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp16);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BRA8_VARS /* f-op1 f-r1 f-disp8 */
EXTRACT_FMT_BRA8_CODE
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp8);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_BRA24_VARS /* f-op1 f-r1 f-disp24 */
EXTRACT_FMT_BRA24_CODE
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = OPRND (disp24);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
if (NOTBI (OPRND (condbit))) {
do {
- CPU (h_gr[14]) = ADDSI (ANDSI (OPRND (pc), -4), 4);
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp8)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = ADDSI (ANDSI (OPRND (pc), -4), 4);
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = OPRND (disp8);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
}
if (NOTBI (OPRND (condbit))) {
do {
- CPU (h_gr[14]) = ADDSI (OPRND (pc), 4);
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_CACHE (sem_arg, OPRND (disp24)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = ADDSI (OPRND (pc), 4);
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = OPRND (disp24);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
}
EXTRACT_FMT_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMP_CODE
- CPU (h_cond) = LTSI (OPRND (src1), OPRND (src2));
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = LTSI (OPRND (src1), OPRND (src2));
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_CMPI_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_CMPI_CODE
- CPU (h_cond) = LTSI (OPRND (src2), OPRND (simm16));
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = LTSI (OPRND (src2), OPRND (simm16));
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMP_CODE
- CPU (h_cond) = LTUSI (OPRND (src1), OPRND (src2));
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = LTUSI (OPRND (src1), OPRND (src2));
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_CMPI_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_CMPI_CODE
- CPU (h_cond) = LTUSI (OPRND (src2), OPRND (simm16));
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = LTUSI (OPRND (src2), OPRND (simm16));
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_CMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMP_CODE
- CPU (h_cond) = EQSI (OPRND (src1), OPRND (src2));
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = EQSI (OPRND (src1), OPRND (src2));
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_CMPZ_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMPZ_CODE
- CPU (h_cond) = EQSI (OPRND (src2), 0);
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = EQSI (OPRND (src2), 0);
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_DIV_CODE
if (NESI (OPRND (sr), 0)) {
- CPU (h_gr[f_r1]) = DIVSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = DIVSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_DIV_CODE
if (NESI (OPRND (sr), 0)) {
- CPU (h_gr[f_r1]) = UDIVSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = UDIVSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_DIV_CODE
if (NESI (OPRND (sr), 0)) {
- CPU (h_gr[f_r1]) = MODSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = MODSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_DIV_CODE
if (NESI (OPRND (sr), 0)) {
- CPU (h_gr[f_r1]) = UMODSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = UMODSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_DIV_CODE
if (NESI (OPRND (sr), 0)) {
- CPU (h_gr[f_r1]) = DIVSI (EXTHISI (TRUNCSIHI (OPRND (dr))), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = DIVSI (EXTHISI (TRUNCSIHI (OPRND (dr))), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_JC_CODE
if (OPRND (condbit)) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = ANDSI (OPRND (sr), -4);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_JC_CODE
if (NOTBI (OPRND (condbit))) {
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = ANDSI (OPRND (sr), -4);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
}
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
USI temp1;SI temp0;
temp0 = ADDSI (ANDSI (OPRND (pc), -4), 4);
temp1 = ANDSI (OPRND (sr), -4);
- CPU (h_gr[14]) = temp0;
- TRACE_RESULT (current_cpu, "gr-14", 'x', CPU (h_gr[14]));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, temp1));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ SI opval = temp0;
+ CPU (h_gr[((HOSTUINT) 14)]) = opval;
+ TRACE_RESULT (current_cpu, "gr-14", 'x', opval);
+ }
+ {
+ USI opval = temp1;
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_JMP_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_JMP_CODE
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (sr), -4)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = ANDSI (OPRND (sr), -4);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LD_CODE
- CPU (h_gr[f_r1]) = OPRND (h_memory_sr);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (h_memory_sr);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LD_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LD_D_CODE
- CPU (h_gr[f_r1]) = OPRND (h_memory_add__VM_sr_slo16);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (h_memory_add__VM_sr_slo16);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LDB_CODE
- CPU (h_gr[f_r1]) = EXTQISI (OPRND (h_memory_sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = EXTQISI (OPRND (h_memory_sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDB_D_CODE
- CPU (h_gr[f_r1]) = EXTQISI (OPRND (h_memory_add__VM_sr_slo16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = EXTQISI (OPRND (h_memory_add__VM_sr_slo16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LDH_CODE
- CPU (h_gr[f_r1]) = EXTHISI (OPRND (h_memory_sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = EXTHISI (OPRND (h_memory_sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDH_D_CODE
- CPU (h_gr[f_r1]) = EXTHISI (OPRND (h_memory_add__VM_sr_slo16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = EXTHISI (OPRND (h_memory_add__VM_sr_slo16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LDB_CODE
- CPU (h_gr[f_r1]) = ZEXTQISI (OPRND (h_memory_sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ZEXTQISI (OPRND (h_memory_sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDB_D_CODE
- CPU (h_gr[f_r1]) = ZEXTQISI (OPRND (h_memory_add__VM_sr_slo16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ZEXTQISI (OPRND (h_memory_add__VM_sr_slo16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_LDH_CODE
- CPU (h_gr[f_r1]) = ZEXTHISI (OPRND (h_memory_sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ZEXTHISI (OPRND (h_memory_sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDH_D_CODE
- CPU (h_gr[f_r1]) = ZEXTHISI (OPRND (h_memory_add__VM_sr_slo16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ZEXTHISI (OPRND (h_memory_add__VM_sr_slo16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
SI temp1;SI temp0;
temp0 = OPRND (h_memory_sr);
temp1 = ADDSI (OPRND (sr), 4);
- CPU (h_gr[f_r1]) = temp0;
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
- CPU (h_gr[f_r2]) = temp1;
- TRACE_RESULT (current_cpu, "sr", 'x', CPU (h_gr[f_r2]));
+ {
+ SI opval = temp0;
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
+ {
+ SI opval = temp1;
+ CPU (h_gr[f_r2]) = opval;
+ TRACE_RESULT (current_cpu, "sr", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LD24_VARS /* f-op1 f-r1 f-uimm24 */
EXTRACT_FMT_LD24_CODE
- CPU (h_gr[f_r1]) = OPRND (uimm24);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (uimm24);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDI8_VARS /* f-op1 f-r1 f-simm8 */
EXTRACT_FMT_LDI8_CODE
- CPU (h_gr[f_r1]) = OPRND (simm8);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (simm8);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LDI16_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_LDI16_CODE
- CPU (h_gr[f_r1]) = OPRND (slo16);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (slo16);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_LOCK_CODE
do {
- CPU (h_lock) = 1;
- TRACE_RESULT (current_cpu, "lock-0", 'x', CPU (h_lock));
- CPU (h_gr[f_r1]) = OPRND (h_memory_sr);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ UBI opval = 1;
+ CPU (h_lock) = opval;
+ TRACE_RESULT (current_cpu, "lock-0", 'x', opval);
+ }
+ {
+ SI opval = OPRND (h_memory_sr);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_MACHI_A_CODE
-m32rx_h_accums_set (current_cpu, f_acc, SRADI (SLLDI (ADDDI (OPRND (acc), MULDI (EXTSIDI (ANDSI (OPRND (src1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16))))), 8), 8));
- TRACE_RESULT (current_cpu, "acc", 'D', m32rx_h_accums_get (current_cpu, f_acc));
+ {
+ DI opval = SRADI (SLLDI (ADDDI (OPRND (acc), MULDI (EXTSIDI (ANDSI (OPRND (src1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16))))), 8), 8);
+ m32rx_h_accums_set (current_cpu, f_acc, opval);
+ TRACE_RESULT (current_cpu, "acc", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_MACHI_A_CODE
-m32rx_h_accums_set (current_cpu, f_acc, SRADI (SLLDI (ADDDI (OPRND (acc), MULDI (EXTSIDI (SLLSI (OPRND (src1), 16)), EXTHIDI (TRUNCSIHI (OPRND (src2))))), 8), 8));
- TRACE_RESULT (current_cpu, "acc", 'D', m32rx_h_accums_get (current_cpu, f_acc));
+ {
+ DI opval = SRADI (SLLDI (ADDDI (OPRND (acc), MULDI (EXTSIDI (SLLSI (OPRND (src1), 16)), EXTHIDI (TRUNCSIHI (OPRND (src2))))), 8), 8);
+ m32rx_h_accums_set (current_cpu, f_acc, opval);
+ TRACE_RESULT (current_cpu, "acc", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
-m32rx_h_accum_set (current_cpu, SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16))))), 8), 8));
- TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
+ {
+ DI opval = SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16))))), 8), 8);
+ m32rx_h_accum_set (current_cpu, opval);
+ TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
-m32rx_h_accum_set (current_cpu, SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2))))), 8), 8));
- TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
+ {
+ DI opval = SRADI (SLLDI (ADDDI (OPRND (accum), MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2))))), 8), 8);
+ m32rx_h_accum_set (current_cpu, opval);
+ TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = MULSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = MULSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_MULHI_A_CODE
-m32rx_h_accums_set (current_cpu, f_acc, SRADI (SLLDI (MULDI (EXTSIDI (ANDSI (OPRND (src1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16)))), 16), 16));
- TRACE_RESULT (current_cpu, "acc", 'D', m32rx_h_accums_get (current_cpu, f_acc));
+ {
+ DI opval = SRADI (SLLDI (MULDI (EXTSIDI (ANDSI (OPRND (src1), 0xffff0000)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16)))), 16), 16);
+ m32rx_h_accums_set (current_cpu, f_acc, opval);
+ TRACE_RESULT (current_cpu, "acc", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MULHI_A_VARS /* f-op1 f-r1 f-acc f-op23 f-r2 */
EXTRACT_FMT_MULHI_A_CODE
-m32rx_h_accums_set (current_cpu, f_acc, SRADI (SLLDI (MULDI (EXTSIDI (SLLSI (OPRND (src1), 16)), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 16), 16));
- TRACE_RESULT (current_cpu, "acc", 'D', m32rx_h_accums_get (current_cpu, f_acc));
+ {
+ DI opval = SRADI (SLLDI (MULDI (EXTSIDI (SLLSI (OPRND (src1), 16)), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 16), 16);
+ m32rx_h_accums_set (current_cpu, f_acc, opval);
+ TRACE_RESULT (current_cpu, "acc", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MULWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWHI_CODE
-m32rx_h_accum_set (current_cpu, SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16)))), 8), 8));
- TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
+ {
+ DI opval = SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (SRASI (OPRND (src2), 16)))), 8), 8);
+ m32rx_h_accum_set (current_cpu, opval);
+ TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MULWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWHI_CODE
-m32rx_h_accum_set (current_cpu, SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 8), 8));
- TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
+ {
+ DI opval = SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 8), 8);
+ m32rx_h_accum_set (current_cpu, opval);
+ TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MV_CODE
- CPU (h_gr[f_r1]) = OPRND (sr);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (sr);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVFACHI_A_CODE
- CPU (h_gr[f_r1]) = TRUNCDISI (SRADI (OPRND (accs), 32));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = TRUNCDISI (SRADI (OPRND (accs), 32));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVFACHI_A_CODE
- CPU (h_gr[f_r1]) = TRUNCDISI (OPRND (accs));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = TRUNCDISI (OPRND (accs));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVFACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVFACHI_A_CODE
- CPU (h_gr[f_r1]) = TRUNCDISI (SRADI (OPRND (accs), 16));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = TRUNCDISI (SRADI (OPRND (accs), 16));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVFC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MVFC_CODE
- CPU (h_gr[f_r1]) = OPRND (scr);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = OPRND (scr);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVTACHI_A_CODE
-m32rx_h_accums_set (current_cpu, f_accs, ORDI (ANDDI (OPRND (accs), MAKEDI (0, 0xffffffff)), SLLDI (EXTSIDI (OPRND (src1)), 32)));
- TRACE_RESULT (current_cpu, "accs", 'D', m32rx_h_accums_get (current_cpu, f_accs));
+ {
+ DI opval = ORDI (ANDDI (OPRND (accs), MAKEDI (0, 0xffffffff)), SLLDI (EXTSIDI (OPRND (src1)), 32));
+ m32rx_h_accums_set (current_cpu, f_accs, opval);
+ TRACE_RESULT (current_cpu, "accs", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVTACHI_A_VARS /* f-op1 f-r1 f-op2 f-accs f-op3 */
EXTRACT_FMT_MVTACHI_A_CODE
-m32rx_h_accums_set (current_cpu, f_accs, ORDI (ANDDI (OPRND (accs), MAKEDI (0xffffffff, 0)), ZEXTSIDI (OPRND (src1))));
- TRACE_RESULT (current_cpu, "accs", 'D', m32rx_h_accums_get (current_cpu, f_accs));
+ {
+ DI opval = ORDI (ANDDI (OPRND (accs), MAKEDI (0xffffffff, 0)), ZEXTSIDI (OPRND (src1)));
+ m32rx_h_accums_set (current_cpu, f_accs, opval);
+ TRACE_RESULT (current_cpu, "accs", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MVTC_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MVTC_CODE
-m32rx_h_cr_set (current_cpu, f_r1, OPRND (sr));
- TRACE_RESULT (current_cpu, "dcr", 'x', m32rx_h_cr_get (current_cpu, f_r1));
+ {
+ USI opval = OPRND (sr);
+ m32rx_h_cr_set (current_cpu, f_r1, opval);
+ TRACE_RESULT (current_cpu, "dcr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MV_CODE
- CPU (h_gr[f_r1]) = NEGSI (OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = NEGSI (OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MV_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MV_CODE
- CPU (h_gr[f_r1]) = INVSI (OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = INVSI (OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
DI tmp_tmp1;
tmp_tmp1 = SLLDI (OPRND (accs), OPRND (imm1));
tmp_tmp1 = ADDDI (tmp_tmp1, MAKEDI (0, 32768));
-m32rx_h_accums_set (current_cpu, f_accd, (GTDI (tmp_tmp1, MAKEDI (32767, 0xffff0000))) ? (MAKEDI (32767, 0xffff0000)) : (LTDI (tmp_tmp1, MAKEDI (0xffff8000, 0))) ? (MAKEDI (0xffff8000, 0)) : (ANDDI (tmp_tmp1, MAKEDI (0xffffffff, 0xffff0000))));
- TRACE_RESULT (current_cpu, "accd", 'D', m32rx_h_accums_get (current_cpu, f_accd));
+ {
+ DI opval = (GTDI (tmp_tmp1, MAKEDI (32767, 0xffff0000))) ? (MAKEDI (32767, 0xffff0000)) : (LTDI (tmp_tmp1, MAKEDI (0xffff8000, 0))) ? (MAKEDI (0xffff8000, 0)) : (ANDDI (tmp_tmp1, MAKEDI (0xffffffff, 0xffff0000)));
+ m32rx_h_accums_set (current_cpu, f_accd, opval);
+ TRACE_RESULT (current_cpu, "accd", 'D', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
DI tmp_tmp1;
tmp_tmp1 = SLLDI (OPRND (accs), OPRND (imm1));
tmp_tmp1 = ADDDI (tmp_tmp1, MAKEDI (0, 0x80000000));
-m32rx_h_accums_set (current_cpu, f_accd, (GTDI (tmp_tmp1, MAKEDI (32767, 0))) ? (MAKEDI (32767, 0)) : (LTDI (tmp_tmp1, MAKEDI (0xffff8000, 0))) ? (MAKEDI (0xffff8000, 0)) : (ANDDI (tmp_tmp1, MAKEDI (0xffffffff, 0))));
- TRACE_RESULT (current_cpu, "accd", 'D', m32rx_h_accums_get (current_cpu, f_accd));
+ {
+ DI opval = (GTDI (tmp_tmp1, MAKEDI (32767, 0))) ? (MAKEDI (32767, 0)) : (LTDI (tmp_tmp1, MAKEDI (0xffff8000, 0))) ? (MAKEDI (0xffff8000, 0)) : (ANDDI (tmp_tmp1, MAKEDI (0xffffffff, 0)));
+ m32rx_h_accums_set (current_cpu, f_accd, opval);
+ TRACE_RESULT (current_cpu, "accd", 'D', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_RTE_CODE
do {
- CPU (h_sm) = OPRND (h_bsm_0);
- TRACE_RESULT (current_cpu, "sm-0", 'x', CPU (h_sm));
- CPU (h_ie) = OPRND (h_bie_0);
- TRACE_RESULT (current_cpu, "ie-0", 'x', CPU (h_ie));
- CPU (h_cond) = OPRND (h_bcond_0);
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, ANDSI (OPRND (h_bpc_0), -4)));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ UBI opval = OPRND (h_bsm_0);
+ CPU (h_sm) = opval;
+ TRACE_RESULT (current_cpu, "sm-0", 'x', opval);
+ }
+ {
+ UBI opval = OPRND (h_bie_0);
+ CPU (h_ie) = opval;
+ TRACE_RESULT (current_cpu, "ie-0", 'x', opval);
+ }
+ {
+ UBI opval = OPRND (h_bcond_0);
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
+ {
+ USI opval = ANDSI (OPRND (h_bpc_0), -4);
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SETH_VARS /* f-op1 f-r1 f-op2 f-r2 f-hi16 */
EXTRACT_FMT_SETH_CODE
- CPU (h_gr[f_r1]) = SLLSI (OPRND (hi16), 16);
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SLLSI (OPRND (hi16), 16);
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = SLLSI (OPRND (dr), ANDSI (OPRND (sr), 31));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SLLSI (OPRND (dr), ANDSI (OPRND (sr), 31));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_SLL3_CODE
- CPU (h_gr[f_r1]) = SLLSI (OPRND (sr), ANDSI (OPRND (simm16), 31));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SLLSI (OPRND (sr), ANDSI (OPRND (simm16), 31));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_SLLI_CODE
- CPU (h_gr[f_r1]) = SLLSI (OPRND (dr), OPRND (uimm5));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SLLSI (OPRND (dr), OPRND (uimm5));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = SRASI (OPRND (dr), ANDSI (OPRND (sr), 31));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SRASI (OPRND (dr), ANDSI (OPRND (sr), 31));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_SLL3_CODE
- CPU (h_gr[f_r1]) = SRASI (OPRND (sr), ANDSI (OPRND (simm16), 31));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SRASI (OPRND (sr), ANDSI (OPRND (simm16), 31));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_SLLI_CODE
- CPU (h_gr[f_r1]) = SRASI (OPRND (dr), OPRND (uimm5));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SRASI (OPRND (dr), OPRND (uimm5));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = SRLSI (OPRND (dr), ANDSI (OPRND (sr), 31));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SRLSI (OPRND (dr), ANDSI (OPRND (sr), 31));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SLL3_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_SLL3_CODE
- CPU (h_gr[f_r1]) = SRLSI (OPRND (sr), ANDSI (OPRND (simm16), 31));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SRLSI (OPRND (sr), ANDSI (OPRND (simm16), 31));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SLLI_VARS /* f-op1 f-r1 f-shift-op2 f-uimm5 */
EXTRACT_FMT_SLLI_CODE
- CPU (h_gr[f_r1]) = SRLSI (OPRND (dr), OPRND (uimm5));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SRLSI (OPRND (dr), OPRND (uimm5));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ST_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ST_CODE
-SETMEMSI (current_cpu, OPRND (src2), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMSI (current_cpu, OPRND (src2)));
+ {
+ SI opval = OPRND (src1);
+ SETMEMSI (current_cpu, OPRND (src2), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ST_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_ST_D_CODE
-SETMEMSI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16)), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMSI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16))));
+ {
+ SI opval = OPRND (src1);
+ SETMEMSI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16)), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_STB_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_STB_CODE
-SETMEMQI (current_cpu, OPRND (src2), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMQI (current_cpu, OPRND (src2)));
+ {
+ QI opval = OPRND (src1);
+ SETMEMQI (current_cpu, OPRND (src2), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_STB_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_STB_D_CODE
-SETMEMQI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16)), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMQI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16))));
+ {
+ QI opval = OPRND (src1);
+ SETMEMQI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16)), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_STH_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_STH_CODE
-SETMEMHI (current_cpu, OPRND (src2), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMHI (current_cpu, OPRND (src2)));
+ {
+ HI opval = OPRND (src1);
+ SETMEMHI (current_cpu, OPRND (src2), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_STH_D_VARS /* f-op1 f-r1 f-op2 f-r2 f-simm16 */
EXTRACT_FMT_STH_D_CODE
-SETMEMHI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16)), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMHI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16))));
+ {
+ HI opval = OPRND (src1);
+ SETMEMHI (current_cpu, ADDSI (OPRND (src2), OPRND (slo16)), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
do {
SI tmp_new_src2;
tmp_new_src2 = ADDSI (OPRND (src2), 4);
-SETMEMSI (current_cpu, tmp_new_src2, OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMSI (current_cpu, tmp_new_src2));
- CPU (h_gr[f_r2]) = tmp_new_src2;
- TRACE_RESULT (current_cpu, "src2", 'x', CPU (h_gr[f_r2]));
+ {
+ SI opval = OPRND (src1);
+ SETMEMSI (current_cpu, tmp_new_src2, opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
+ {
+ SI opval = tmp_new_src2;
+ CPU (h_gr[f_r2]) = opval;
+ TRACE_RESULT (current_cpu, "src2", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
do {
SI tmp_new_src2;
tmp_new_src2 = SUBSI (OPRND (src2), 4);
-SETMEMSI (current_cpu, tmp_new_src2, OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMSI (current_cpu, tmp_new_src2));
- CPU (h_gr[f_r2]) = tmp_new_src2;
- TRACE_RESULT (current_cpu, "src2", 'x', CPU (h_gr[f_r2]));
+ {
+ SI opval = OPRND (src1);
+ SETMEMSI (current_cpu, tmp_new_src2, opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
+ {
+ SI opval = tmp_new_src2;
+ CPU (h_gr[f_r2]) = opval;
+ TRACE_RESULT (current_cpu, "src2", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_ADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_ADD_CODE
- CPU (h_gr[f_r1]) = SUBSI (OPRND (dr), OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = SUBSI (OPRND (dr), OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
UBI temp1;SI temp0;
temp0 = SUBSI (OPRND (dr), OPRND (sr));
temp1 = SUBOFSI (OPRND (dr), OPRND (sr), 0);
- CPU (h_gr[f_r1]) = temp0;
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
- CPU (h_cond) = temp1;
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ SI opval = temp0;
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
+ {
+ UBI opval = temp1;
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
UBI temp1;SI temp0;
temp0 = SUBCSI (OPRND (dr), OPRND (sr), OPRND (condbit));
temp1 = SUBCFSI (OPRND (dr), OPRND (sr), OPRND (condbit));
- CPU (h_gr[f_r1]) = temp0;
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
- CPU (h_cond) = temp1;
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ SI opval = temp0;
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
+ {
+ UBI opval = temp1;
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_TRAP_CODE
do {
-m32rx_h_cr_set (current_cpu, 6, ADDSI (OPRND (pc), 4));
- TRACE_RESULT (current_cpu, "cr-6", 'x', m32rx_h_cr_get (current_cpu, 6));
-m32rx_h_cr_set (current_cpu, 0, ANDSI (SLLSI (OPRND (h_cr_0), 8), 65408));
- TRACE_RESULT (current_cpu, "cr-0", 'x', m32rx_h_cr_get (current_cpu, 0));
- BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, m32r_trap (current_cpu, OPRND (uimm4))));
- taken_p = 1;
- TRACE_RESULT (current_cpu, "pc", 'x', new_pc);
+ {
+ USI opval = ADDSI (OPRND (pc), 4);
+ m32rx_h_cr_set (current_cpu, ((HOSTUINT) 6), opval);
+ TRACE_RESULT (current_cpu, "cr-6", 'x', opval);
+ }
+ {
+ USI opval = ANDSI (SLLSI (OPRND (h_cr_0), 8), 65408);
+ m32rx_h_cr_set (current_cpu, ((HOSTUINT) 0), opval);
+ TRACE_RESULT (current_cpu, "cr-0", 'x', opval);
+ }
+ {
+ SI opval = m32r_trap (current_cpu, OPRND (uimm4));
+ BRANCH_NEW_PC (new_pc, SEM_BRANCH_VIA_ADDR (sem_arg, opval));
+ taken_p = 1;
+ TRACE_RESULT (current_cpu, "pc", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
do {
if (OPRND (h_lock_0)) {
-SETMEMSI (current_cpu, OPRND (src2), OPRND (src1));
- TRACE_RESULT (current_cpu, "memory", 'x', GETMEMSI (current_cpu, OPRND (src2)));
-}
- CPU (h_lock) = 0;
- TRACE_RESULT (current_cpu, "lock-0", 'x', CPU (h_lock));
+ {
+ SI opval = OPRND (src1);
+ SETMEMSI (current_cpu, OPRND (src2), opval);
+ TRACE_RESULT (current_cpu, "memory", 'x', opval);
+ }
+}
+ {
+ UBI opval = 0;
+ CPU (h_lock) = opval;
+ TRACE_RESULT (current_cpu, "lock-0", 'x', opval);
+ }
} while (0);
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_SATB_CODE
- CPU (h_gr[f_r1]) = (GESI (OPRND (sr), 127)) ? (127) : (LESI (OPRND (sr), -128)) ? (-128) : (OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = (GESI (OPRND (sr), 127)) ? (127) : (LESI (OPRND (sr), -128)) ? (-128) : (OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SATB_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_SATB_CODE
- CPU (h_gr[f_r1]) = (GESI (OPRND (sr), 32767)) ? (32767) : (LESI (OPRND (sr), -32768)) ? (-32768) : (OPRND (sr));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = (GESI (OPRND (sr), 32767)) ? (32767) : (LESI (OPRND (sr), -32768)) ? (-32768) : (OPRND (sr));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SAT_VARS /* f-op1 f-r1 f-op2 f-r2 f-uimm16 */
EXTRACT_FMT_SAT_CODE
- CPU (h_gr[f_r1]) = ((OPRND (condbit)) ? (((LTSI (OPRND (sr), 0)) ? (2147483647) : (0x80000000))) : (OPRND (sr)));
- TRACE_RESULT (current_cpu, "dr", 'x', CPU (h_gr[f_r1]));
+ {
+ SI opval = ((OPRND (condbit)) ? (((LTSI (OPRND (sr), 0)) ? (2147483647) : (0x80000000))) : (OPRND (sr)));
+ CPU (h_gr[f_r1]) = opval;
+ TRACE_RESULT (current_cpu, "dr", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_CMPZ_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_CMPZ_CODE
- CPU (h_cond) = (EQSI (ANDSI (OPRND (src2), 255), 0)) ? (1) : (EQSI (ANDSI (OPRND (src2), 65280), 0)) ? (1) : (EQSI (ANDSI (OPRND (src2), 16711680), 0)) ? (1) : (EQSI (ANDSI (OPRND (src2), 0xff000000), 0)) ? (1) : (0);
- TRACE_RESULT (current_cpu, "condbit", 'x', CPU (h_cond));
+ {
+ UBI opval = (EQSI (ANDSI (OPRND (src2), 255), 0)) ? (1) : (EQSI (ANDSI (OPRND (src2), 65280), 0)) ? (1) : (EQSI (ANDSI (OPRND (src2), 16711680), 0)) ? (1) : (EQSI (ANDSI (OPRND (src2), 0xff000000), 0)) ? (1) : (0);
+ CPU (h_cond) = opval;
+ TRACE_RESULT (current_cpu, "condbit", 'x', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_SADD_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_SADD_CODE
-m32rx_h_accums_set (current_cpu, 0, ADDDI (SRADI (OPRND (h_accums_1), 16), OPRND (h_accums_0)));
- TRACE_RESULT (current_cpu, "accums-0", 'D', m32rx_h_accums_get (current_cpu, 0));
+ {
+ DI opval = ADDDI (SRADI (OPRND (h_accums_1), 16), OPRND (h_accums_0));
+ m32rx_h_accums_set (current_cpu, ((HOSTUINT) 0), opval);
+ TRACE_RESULT (current_cpu, "accums-0", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWU1_CODE
-m32rx_h_accums_set (current_cpu, 1, SRADI (SLLDI (ADDDI (OPRND (h_accums_1), MULDI (EXTSIDI (OPRND (src1)), EXTSIDI (ANDSI (OPRND (src2), 65535)))), 8), 8));
- TRACE_RESULT (current_cpu, "accums-1", 'D', m32rx_h_accums_get (current_cpu, 1));
+ {
+ DI opval = SRADI (SLLDI (ADDDI (OPRND (h_accums_1), MULDI (EXTSIDI (OPRND (src1)), EXTSIDI (ANDSI (OPRND (src2), 65535)))), 8), 8);
+ m32rx_h_accums_set (current_cpu, ((HOSTUINT) 1), opval);
+ TRACE_RESULT (current_cpu, "accums-1", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACWHI_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWHI_CODE
-m32rx_h_accum_set (current_cpu, SRADI (SLLDI (SUBDI (OPRND (accum), SRADI (SLLDI (MULDI (EXTHIDI (TRUNCSIHI (OPRND (src1))), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 32), 16)), 8), 8));
- TRACE_RESULT (current_cpu, "accum", 'D', m32rx_h_accum_get (current_cpu));
+ {
+ DI opval = SRADI (SLLDI (SUBDI (OPRND (accum), SRADI (SLLDI (MULDI (EXTHIDI (TRUNCSIHI (OPRND (src1))), EXTHIDI (TRUNCSIHI (OPRND (src2)))), 32), 16)), 8), 8);
+ m32rx_h_accum_set (current_cpu, opval);
+ TRACE_RESULT (current_cpu, "accum", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MULWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MULWU1_CODE
-m32rx_h_accums_set (current_cpu, 1, SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTSIDI (ANDSI (OPRND (src2), 65535))), 16), 16));
- TRACE_RESULT (current_cpu, "accums-1", 'D', m32rx_h_accums_get (current_cpu, 1));
+ {
+ DI opval = SRADI (SLLDI (MULDI (EXTSIDI (OPRND (src1)), EXTSIDI (ANDSI (OPRND (src2), 65535))), 16), 16);
+ m32rx_h_accums_set (current_cpu, ((HOSTUINT) 1), opval);
+ TRACE_RESULT (current_cpu, "accums-1", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);
EXTRACT_FMT_MACWU1_VARS /* f-op1 f-r1 f-op2 f-r2 */
EXTRACT_FMT_MACWU1_CODE
-m32rx_h_accums_set (current_cpu, 1, SRADI (SLLDI (ADDDI (OPRND (h_accums_1), SLLDI (EXTSIDI (MULSI (EXTHISI (TRUNCSIHI (OPRND (src1))), SRASI (OPRND (src2), 16))), 16)), 8), 8));
- TRACE_RESULT (current_cpu, "accums-1", 'D', m32rx_h_accums_get (current_cpu, 1));
+ {
+ DI opval = SRADI (SLLDI (ADDDI (OPRND (h_accums_1), SLLDI (EXTSIDI (MULSI (EXTHISI (TRUNCSIHI (OPRND (src1))), SRASI (OPRND (src2), 16))), 16)), 8), 8);
+ m32rx_h_accums_set (current_cpu, ((HOSTUINT) 1), opval);
+ TRACE_RESULT (current_cpu, "accums-1", 'D', opval);
+ }
PROFILE_COUNT_INSN (current_cpu, 0, abuf->idesc->num);