mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
sim: v850: fix -Wunused-but-set-variable warnings
This commit is contained in:
@@ -2106,7 +2106,6 @@ divn
|
||||
unsigned int DBZ = als == 0 ? 1 : 0;
|
||||
unsigned int Q = ~(SS ^ SD) & 1;
|
||||
unsigned int C;
|
||||
unsigned int S;
|
||||
unsigned int i;
|
||||
unsigned long alt = Q ? ~als : als;
|
||||
|
||||
@@ -2118,7 +2117,7 @@ divn
|
||||
| (((alt >> 31) ^ (ald >> 31)) & (~alo >> 31)));
|
||||
Q = C ^ SS;
|
||||
R1 = (alo == 0) ? 0 : (R1 & (Q ^ (SS ^ SD)));
|
||||
S = alo >> 31;
|
||||
/* S = alo >> 31; */
|
||||
sfi = (sfi << (32-N+1)) | Q;
|
||||
ald = (alo << 1) | (sfi >> 31);
|
||||
if ((alo >> 31) ^ (ald >> 31))
|
||||
@@ -2136,7 +2135,7 @@ divn
|
||||
| (((alt >> 31) ^ (ald >> 31)) & (~alo >> 31)));
|
||||
Q = C ^ SS;
|
||||
R1 = (alo == 0) ? 0 : (R1 & (Q ^ (SS ^ SD)));
|
||||
S = alo >> 31;
|
||||
/* S = alo >> 31; */
|
||||
sfi = (sfi << 1) | Q;
|
||||
ald = (alo << 1) | (sfi >> 31);
|
||||
if ((alo >> 31) ^ (ald >> 31))
|
||||
@@ -3034,7 +3033,7 @@ v850_float_compare (SIM_DESC sd, int cmp, sim_fpu wop1, sim_fpu wop2, int double
|
||||
}
|
||||
else
|
||||
{
|
||||
int gt = 0,lt = 0,eq = 0, status;
|
||||
int lt = 0, eq = 0, status;
|
||||
|
||||
status = sim_fpu_cmp (&wop1, &wop2);
|
||||
|
||||
@@ -3049,19 +3048,19 @@ v850_float_compare (SIM_DESC sd, int cmp, sim_fpu wop1, sim_fpu wop2, int double
|
||||
lt = 1;
|
||||
break;
|
||||
case SIM_FPU_IS_PINF:
|
||||
gt = 1;
|
||||
/* gt = 1; */
|
||||
break;
|
||||
case SIM_FPU_IS_NNUMBER:
|
||||
lt = 1;
|
||||
break;
|
||||
case SIM_FPU_IS_PNUMBER:
|
||||
gt = 1;
|
||||
/* gt = 1; */
|
||||
break;
|
||||
case SIM_FPU_IS_NDENORM:
|
||||
lt = 1;
|
||||
break;
|
||||
case SIM_FPU_IS_PDENORM:
|
||||
gt = 1;
|
||||
/* gt = 1; */
|
||||
break;
|
||||
case SIM_FPU_IS_NZERO:
|
||||
case SIM_FPU_IS_PZERO:
|
||||
|
||||
@@ -3537,12 +3537,11 @@ rrrrr,11111100001 + wwww,010001000100:F_I:::trncf_sl
|
||||
{
|
||||
int64_t ans;
|
||||
sim_fpu wop;
|
||||
sim_fpu_status status;
|
||||
|
||||
sim_fpu_32to (&wop, GR[reg2]);
|
||||
TRACE_FP_INPUT_FPU1 (&wop);
|
||||
|
||||
status = sim_fpu_to64i (&ans, &wop, sim_fpu_round_zero);
|
||||
sim_fpu_to64i (&ans, &wop, sim_fpu_round_zero);
|
||||
|
||||
GR[reg3e] = ans;
|
||||
GR[reg3e+1] = ans >> 32L;
|
||||
@@ -3557,12 +3556,11 @@ rrrrr,11111110001 + wwww,010001000100:F_I:::trncf_sul
|
||||
{
|
||||
uint64_t ans;
|
||||
sim_fpu wop;
|
||||
sim_fpu_status status;
|
||||
|
||||
sim_fpu_32to (&wop, GR[reg2]);
|
||||
TRACE_FP_INPUT_FPU1 (&wop);
|
||||
|
||||
status = sim_fpu_to64u (&ans, &wop, sim_fpu_round_zero);
|
||||
sim_fpu_to64u (&ans, &wop, sim_fpu_round_zero);
|
||||
|
||||
GR[reg3e] = ans;
|
||||
GR[reg3e+1] = ans >> 32L;
|
||||
|
||||
Reference in New Issue
Block a user