diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index a00866dcd4..12c00f087c 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,9 @@ +2021-01-31 Stafford Horne + + * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32. + (fixdfsi): Change res from unsigned32 to signed32. + (fixdfdi): Change res from unsigned64 to signed64. + 2021-01-30 Mike Frysinger * gennltvals.sh: Replace shell script with ... diff --git a/sim/common/cgen-accfp.c b/sim/common/cgen-accfp.c index b898de3935..d6cd751e2b 100644 --- a/sim/common/cgen-accfp.c +++ b/sim/common/cgen-accfp.c @@ -387,7 +387,7 @@ static SI fixsfsi (CGEN_FPU* fpu, int how UNUSED, SF x) { sim_fpu op1; - unsigned32 res; + signed32 res; sim_fpu_32to (&op1, x); sim_fpu_to32i (&res, &op1, sim_fpu_round_near); @@ -398,7 +398,7 @@ static SI fixdfsi (CGEN_FPU* fpu, int how UNUSED, DF x) { sim_fpu op1; - unsigned32 res; + signed32 res; sim_fpu_64to (&op1, x); sim_fpu_to32i (&res, &op1, sim_fpu_round_near); @@ -409,7 +409,7 @@ static DI fixdfdi (CGEN_FPU* fpu, int how UNUSED, DF x) { sim_fpu op1; - unsigned64 res; + signed64 res; sim_fpu_64to (&op1, x); sim_fpu_to64i (&res, &op1, sim_fpu_round_near);