sim: bfin: handle saturation with RND12 sub insns
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Mar 2011 04:03:05 +0000 (04:03 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 27 Mar 2011 04:03:05 +0000 (04:03 +0000)
commit36aef94270988051fc9186dfaf4d1e4493e02086
tree84f8515b76b0401576cd21294278d266af6c4ad5
parentf65d3d6b99f2399eb80708faea6f5e361244e8de
sim: bfin: handle saturation with RND12 sub insns

The current handling of the subtraction insn with the RND12 modifier
works when saturation isn't involved.  So add handling for this edge
case to match the hardware.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/bfin/ChangeLog
sim/bfin/bfin-sim.c