target-tricore: properly fix dvinit_b/h_13
commitf69c24e4584f2161f90ee7caba38728aa77f937f
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 23 Mar 2015 17:24:42 +0000 (23 18:24 +0100)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Tue, 24 Mar 2015 08:45:28 +0000 (24 09:45 +0100)
tree7bdda3681d43ea7d3b5c832c1d15c5b38eb61307
parent00e1754ff1f6294a29e08398a120663eac723216
target-tricore: properly fix dvinit_b/h_13

The TriCore documentation was wrong on how to calculate ovf bits for those two
instructions, which I confirmed with real hardware (TC1796 chip). An ovf
actually happens, if the result (without remainder) does not fit into 8/16 bits.

Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target-tricore/op_helper.c