commit | 3debbb5af5f63440b170b71bf3aecc0e778f5691 | [log] [tgz] |
---|---|---|
author | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | Wed Jan 28 12:15:05 2015 +0000 |
committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | Tue Mar 03 01:04:53 2015 +0000 |
tree | bf7c6c553a6550f9e4f8f06b182cff0509d56b7b | |
parent | f0cab01b6c9bb9c2f5085837ca86d70d144cca9d [diff] |
target-tricore: fix msub32_suov return wrong results If the signed result of the multiplication overflows, we would get a negative value, which would result in a addition instead of a subtraction. Now we do the overflow calculation and saturation by hand instead of using suov32_neg. Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Reviewed-by: Richard Henderson <rth@twiddle.net>