sim: bfin: handle saturation with fract multiplications
The saturation behavior with fract modes differs from non-fract modes. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
f3df5b084e
commit
c9329594d4
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-03-15 Robin Getz <robin.getz@analog.com>
|
||||
|
||||
* bfin-sim.c (extract_mult): Handle M_IU.
|
||||
|
||||
2011-03-05 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* Makefile.in, TODO, aclocal.m4, bfin-sim.c, bfin-sim.h,
|
||||
|
|
|
@ -1479,6 +1479,8 @@ extract_mult (SIM_CPU *cpu, bu64 res, int mmod, int MM,
|
|||
case 0:
|
||||
case M_IS:
|
||||
return saturate_s32 (res, overflow);
|
||||
case M_IU:
|
||||
return saturate_u32 (res, overflow);
|
||||
case M_FU:
|
||||
if (MM)
|
||||
return saturate_s32 (res, overflow);
|
||||
|
|
Loading…
Add table
Reference in a new issue