addr = GR[reg1];
- if (mpu_load_mem_test(sd, addr, 4, reg1)
- && mpu_store_mem_test(sd, addr, 4, reg1))
+ if (mpu_load_mem_test (SD, addr, 4, reg1)
+ && mpu_store_mem_test (SD, addr, 4, reg1))
{
- token = load_data_mem (sd, addr, 4);
+ token = load_data_mem (SD, addr, 4);
TRACE_ALU_INPUT2 (token, GR[reg2]);
if (result == 0)
{
- store_data_mem (sd, addr, 4, GR[reg3]);
+ store_data_mem (SD, addr, 4, GR[reg3]);
GR[reg3] = token;
}
else
{
- store_data_mem (sd, addr, 4, token);
+ store_data_mem (SD, addr, 4, token);
GR[reg3] = token;
}
divide_by = GR[reg1];
divide_this = GR[reg2];
- v850_div (sd, divide_by, divide_this, "ient, &remainder);
+ v850_div (SD, divide_by, divide_this, "ient, &remainder);
GR[reg2] = quotient;
GR[reg3] = remainder;
divide_by = GR[reg1];
divide_this = GR[reg2];
- v850_divu (sd, divide_by, divide_this, "ient, &remainder);
+ v850_divu (SD, divide_by, divide_this, "ient, &remainder);
GR[reg2] = quotient;
GR[reg3] = remainder;
*v850e3v5
{
uint32_t addr = GR[reg1] + disp23;
- uint32_t result = EXTEND8 (load_data_mem (sd, addr, 1));
+ uint32_t result = EXTEND8 (load_data_mem (SD, addr, 1));
GR[reg3] = result;
TRACE_LD (addr, result);
}
"ld.h <disp23>[r<reg1>], r<reg3>"
{
uint32_t addr = GR[reg1] + disp23;
- uint32_t result = EXTEND16 (load_data_mem (sd, addr, 2));
+ uint32_t result = EXTEND16 (load_data_mem (SD, addr, 2));
GR[reg3] = result;
TRACE_LD (addr, result);
}
"ld.w <disp23>[r<reg1>], r<reg3>"
{
uint32_t addr = GR[reg1] + disp23;
- uint32_t result = load_data_mem (sd, addr, 4);
+ uint32_t result = load_data_mem (SD, addr, 4);
GR[reg3] = result;
TRACE_LD (addr, result);
}
"ld.dw <disp23>[r<reg1>], r<reg3>"
{
uint32_t addr = GR[reg1] + disp23;
- uint32_t result = load_data_mem (sd, addr, 4);
+ uint32_t result = load_data_mem (SD, addr, 4);
GR[reg3] = result;
TRACE_LD (addr, result);
- result = load_data_mem (sd, addr + 4, 4);
+ result = load_data_mem (SD, addr + 4, 4);
GR[reg3 + 1] = result;
TRACE_LD (addr + 4, result);
}
"ld.bu <disp23>[r<reg1>], r<reg3>"
{
uint32_t addr = GR[reg1] + disp23;
- uint32_t result = load_data_mem (sd, addr, 1);
+ uint32_t result = load_data_mem (SD, addr, 1);
GR[reg3] = result;
TRACE_LD (addr, result);
}
"ld.hu <disp23>[r<reg1>], r<reg3>"
{
uint32_t addr = GR[reg1] + disp23;
- uint32_t result = load_data_mem (sd, addr, 2);
+ uint32_t result = load_data_mem (SD, addr, 2);
GR[reg3] = result;
TRACE_LD (addr, result);
}
"sar r<reg1>, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT2 (GR[reg1], GR[reg2]);
- v850_sar(sd, GR[reg1], GR[reg2], &GR[reg3]);
+ v850_sar (SD, GR[reg1], GR[reg2], &GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"satadd r<reg1>, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT2 (GR[reg1], GR[reg2]);
- v850_satadd (sd, GR[reg1], GR[reg2], &GR[reg3]);
+ v850_satadd (SD, GR[reg1], GR[reg2], &GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"satsub r<reg1>, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT2 (GR[reg1], GR[reg2]);
- v850_satsub (sd, GR[reg1], GR[reg2], &GR[reg3]);
+ v850_satsub (SD, GR[reg1], GR[reg2], &GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"shl r<reg1>, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT2 (GR[reg1], GR[reg2]);
- v850_shl(sd, GR[reg1], GR[reg2], &GR[reg3]);
+ v850_shl (SD, GR[reg1], GR[reg2], &GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"shr r<reg1>, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT2 (GR[reg1], GR[reg2]);
- v850_shr(sd, GR[reg1], GR[reg2], &GR[reg3]);
+ v850_shr (SD, GR[reg1], GR[reg2], &GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"st.b r<reg3>, <disp23>[r<reg1>]"
{
uint32_t addr = GR[reg1] + disp23;
- store_data_mem (sd, addr, 1, GR[reg3]);
+ store_data_mem (SD, addr, 1, GR[reg3]);
TRACE_ST (addr, GR[reg3]);
}
"st.h r<reg3>, <disp23>[r<reg1>]"
{
uint32_t addr = GR[reg1] + disp23;
- store_data_mem (sd, addr, 2, GR[reg3]);
+ store_data_mem (SD, addr, 2, GR[reg3]);
TRACE_ST (addr, GR[reg3]);
}
"st.w r<reg3>, <disp23>[r<reg1>]"
{
uint32_t addr = GR[reg1] + disp23;
- store_data_mem (sd, addr, 4, GR[reg3]);
+ store_data_mem (SD, addr, 4, GR[reg3]);
TRACE_ST (addr, GR[reg3]);
}
"st.dw r<reg3>, <disp23>[r<reg1>]"
{
uint32_t addr = GR[reg1] + disp23;
- store_data_mem (sd, addr, 4, GR[reg3]);
+ store_data_mem (SD, addr, 4, GR[reg3]);
TRACE_ST (addr, GR[reg3]);
- store_data_mem (sd, addr + 4, 4, GR[reg3 + 1]);
+ store_data_mem (SD, addr + 4, 4, GR[reg3 + 1]);
TRACE_ST (addr + 4, GR[reg3 + 1]);
}
TRACE_FP_INPUT_FPU1 (&wop);
status = sim_fpu_abs (&ans, &wop);
- check_invalid_snan(sd, status, 1);
+ check_invalid_snan (SD, status, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_INPUT_FPU1 (&wop);
status = sim_fpu_abs (&ans, &wop);
- check_invalid_snan(sd, status, 0);
+ check_invalid_snan (SD, status, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_add (&ans, &wop1, &wop2);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_add (&ans, &wop1, &wop2);
status |= sim_fpu_round_32 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
sim_fpu_232to (&wop2, GR[reg2e+1], GR[reg2e]);
TRACE_FP_INPUT_FPU2 (&wop2, &wop1);
- result = v850_float_compare(sd, FFFF, wop2, wop1, 1);
+ result = v850_float_compare (SD, FFFF, wop2, wop1, 1);
if (result)
SET_FPCC(bbb);
sim_fpu_32to( &wop2, GR[reg2] );
TRACE_FP_INPUT_FPU2 (&wop2, &wop1);
- result = v850_float_compare(sd, FFFF, wop2, wop1, 0);
+ result = v850_float_compare (SD, FFFF, wop2, wop1, 0);
if (result)
SET_FPCC(bbb);
status = sim_fpu_round_64 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
status |= sim_fpu_to64i (&ans, &wop, FPSR_GET_ROUND());
- check_cvt_fi(sd, status, 1);
+ check_cvt_fi (SD, status, 1);
GR[reg3e] = ans;
GR[reg3e+1] = ans>>32L;
status = sim_fpu_round_32 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- check_cvt_fi(sd, status, 0);
+ check_cvt_fi (SD, status, 0);
sim_fpu_to32 (&GR[reg3], &wop);
TRACE_FP_RESULT_FPU1 (&wop);
status = sim_fpu_round_32 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
status |= sim_fpu_to32i (&ans, &wop, FPSR_GET_ROUND());
- check_cvt_fi(sd, status, 1);
+ check_cvt_fi (SD, status, 1);
GR[reg3] = ans;
TRACE_FP_RESULT_WORD1 (ans);
sim_fpu_i64to (&wop, op, FPSR_GET_ROUND());
status = sim_fpu_round_64 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
- check_cvt_if(sd, status, 1);
+ check_cvt_if (SD, status, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &wop);
TRACE_FP_RESULT_FPU1 (&wop);
sim_fpu_i64to (&wop, op, FPSR_GET_ROUND());
status = sim_fpu_round_32 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
- check_cvt_if(sd, status, 0);
+ check_cvt_if (SD, status, 0);
sim_fpu_to32 (&GR[reg3], &wop);
TRACE_FP_RESULT_FPU1 (&wop);
TRACE_FP_INPUT_FPU1 (&wop);
status = sim_fpu_round_64 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- check_cvt_ff(sd, status, 1);
+ check_cvt_ff (SD, status, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &wop);
TRACE_FP_RESULT_FPU1 (&wop);
status = sim_fpu_round_64 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
status |= sim_fpu_to64i (&ans, &wop, FPSR_GET_ROUND());
- check_cvt_fi(sd, status, 0);
+ check_cvt_fi (SD, status, 0);
GR[reg3e] = ans;
GR[reg3e+1] = ans >> 32L;
status = sim_fpu_round_32 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
status |= sim_fpu_to32i (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 0);
+ check_cvt_fi (SD, status, 0);
GR[reg3] = ans;
TRACE_FP_RESULT_WORD1 (ans);
sim_fpu_i32to (&wop, GR[reg2], FPSR_GET_ROUND());
status = sim_fpu_round_64 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
- check_cvt_if(sd, status, 1);
+ check_cvt_if (SD, status, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &wop);
TRACE_FP_RESULT_FPU1 (&wop);
sim_fpu_i32to (&wop, GR[reg2], FPSR_GET_ROUND());
status = sim_fpu_round_32 (&wop, FPSR_GET_ROUND(), sim_fpu_denorm_zero);
- check_cvt_if(sd, status, 0);
+ check_cvt_if (SD, status, 0);
sim_fpu_to32 (&GR[reg3], &wop);
TRACE_FP_RESULT_FPU1 (&wop);
status = sim_fpu_div (&ans, &wop2, &wop1);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_div (&ans, &wop2, &wop1);
status |= sim_fpu_round_32 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status |= sim_fpu_add (&ans, &wop1, &wop3);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg4], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status |= sim_fpu_add (&ans, &wop1, &wop3);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
{
if (FPSR & FPSR_XEV)
{
- SignalExceptionFPE(sd, 1);
+ SignalExceptionFPE (SD, 1);
}
else
{
{
if (FPSR & FPSR_XEV)
{
- SignalExceptionFPE(sd, 0);
+ SignalExceptionFPE (SD, 0);
}
else
{
{
if (FPSR & FPSR_XEV)
{
- SignalExceptionFPE(sd, 1);
+ SignalExceptionFPE (SD, 1);
}
else
{
{
if (FPSR & FPSR_XEV)
{
- SignalExceptionFPE(sd, 0);
+ SignalExceptionFPE (SD, 0);
}
else
{
status |= sim_fpu_sub (&ans, &wop1, &wop3);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg4], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status |= sim_fpu_sub (&ans, &wop1, &wop3);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_mul (&ans, &wop1, &wop2);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_mul (&ans, &wop1, &wop2);
status |= sim_fpu_round_32 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_neg (&ans, &wop);
- check_invalid_snan(sd, status, 1);
+ check_invalid_snan (SD, status, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_neg (&ans, &wop);
- check_invalid_snan(sd, status, 0);
+ check_invalid_snan (SD, status, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
wop1 = ans;
status |= sim_fpu_neg (&ans, &wop1);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg4], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
wop1 = ans;
status |= sim_fpu_neg (&ans, &wop1);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
wop1 = ans;
status |= sim_fpu_neg (&ans, &wop1);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg4], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
wop1 = ans;
status |= sim_fpu_neg (&ans, &wop1);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_div (&ans, &sim_fpu_one, &wop);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_div (&ans, &sim_fpu_one, &wop);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_div (&ans, &sim_fpu_one, &wop);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_div (&ans, &sim_fpu_one, &wop);
status |= sim_fpu_round_32 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEZ | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_sqrt (&ans, &wop);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_sqrt (&ans, &wop);
status |= sim_fpu_round_32 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_sub (&ans, &wop2, &wop1);
status |= sim_fpu_round_64 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 1);
sim_fpu_to232 (&GR[reg3e+1], &GR[reg3e], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_sub (&ans, &wop2, &wop1);
status |= sim_fpu_round_32 (&ans, FPSR_GET_ROUND(), sim_fpu_denorm_underflow_inexact);
- update_fpsr (sd, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
+ update_fpsr (SD, status, FPSR_XEV | FPSR_XEI | FPSR_XEO | FPSR_XEU, 0);
sim_fpu_to32 (&GR[reg3], &ans);
TRACE_FP_RESULT_FPU1 (&ans);
status = sim_fpu_to64i (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 1);
+ check_cvt_fi (SD, status, 1);
GR[reg3e] = ans;
GR[reg3e+1] = ans>>32L;
status = sim_fpu_to64u (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 1);
+ check_cvt_fi (SD, status, 1);
GR[reg3e] = ans;
GR[reg3e+1] = ans>>32L;
status = sim_fpu_to32i (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 1);
+ check_cvt_fi (SD, status, 1);
GR[reg3] = ans;
TRACE_FP_RESULT_WORD1 (ans);
status = sim_fpu_to32u (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 1);
+ check_cvt_fi (SD, status, 1);
GR[reg3] = ans;
TRACE_FP_RESULT_WORD1 (ans);
status = sim_fpu_to32i (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 0);
+ check_cvt_fi (SD, status, 0);
GR[reg3] = ans;
TRACE_FP_RESULT_WORD1 (ans);
status = sim_fpu_to32u (&ans, &wop, sim_fpu_round_zero);
- check_cvt_fi(sd, status, 0);
+ check_cvt_fi (SD, status, 0);
GR[reg3] = ans;
TRACE_FP_RESULT_WORD1 (ans);
"rotl imm5, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT1 (GR[reg2]);
- v850_rotl (sd, imm5, GR[reg2], & GR[reg3]);
+ v850_rotl (SD, imm5, GR[reg2], & GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"rotl r<reg1>, r<reg2>, r<reg3>"
{
TRACE_ALU_INPUT2 (GR[reg1], GR[reg2]);
- v850_rotl (sd, GR[reg1], GR[reg2], & GR[reg3]);
+ v850_rotl (SD, GR[reg1], GR[reg2], & GR[reg3]);
TRACE_ALU_RESULT1 (GR[reg3]);
}
"bins r<reg1>, <bit13> + 16, <bit4> - <bit13> + 17, r<reg2>"
{
TRACE_ALU_INPUT1 (GR[reg1]);
- v850_bins (sd, GR[reg1], bit13 + 16, bit4 + 16, & GR[reg2]);
+ v850_bins (SD, GR[reg1], bit13 + 16, bit4 + 16, & GR[reg2]);
TRACE_ALU_RESULT1 (GR[reg2]);
}
"bins r<reg1>, <bit13>, <bit4> - <bit13> + 17, r<reg2>"
{
TRACE_ALU_INPUT1 (GR[reg1]);
- v850_bins (sd, GR[reg1], bit13, bit4 + 16, & GR[reg2]);
+ v850_bins (SD, GR[reg1], bit13, bit4 + 16, & GR[reg2]);
TRACE_ALU_RESULT1 (GR[reg2]);
}
"bins r<reg1>, <bit13>, <bit4> - <bit13> + 1, r<reg2>"
{
TRACE_ALU_INPUT1 (GR[reg1]);
- v850_bins (sd, GR[reg1], bit13, bit4, & GR[reg2]);
+ v850_bins (SD, GR[reg1], bit13, bit4, & GR[reg2]);
TRACE_ALU_RESULT1 (GR[reg2]);
}