OSDN Git Service

sim: bfin: fix dsp insns IH saturation/rounding behavior
authorvapier <vapier>
Sat, 18 Jun 2011 19:24:57 +0000 (19:24 +0000)
committervapier <vapier>
Sat, 18 Jun 2011 19:24:57 +0000 (19:24 +0000)
commitaffd3556f1e9df81a2d32f30435649786e5624ab
tree6f883b62ff5b21ef3f18eb43836519d307a1a97b
parentac4e203fd4ec4ad39e0a2988a1135d238ff04579
sim: bfin: fix dsp insns IH saturation/rounding behavior

When using the IH modifier, we need to first saturate the value before
rounding it, and then further saturate it a bit more.  This makes the
sim match the hardware behavior with these insns.

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