target-tricore: Add instructions of RRR1 opcode format, which have 0xa3 as first...
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 25 Feb 2015 11:34:55 +0000 (11:34 +0000)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 16 Mar 2015 15:44:48 +0000 (15:44 +0000)
commitf4aef476afc4cab9bb594975401f6902a57aa9b9
treefac6d2783d25f5832682f9c8ffed57eee7f3fade
parent307146cb9359ad6d4544e00af073088772d165eb
target-tricore: Add instructions of RRR1 opcode format, which have 0xa3 as first opcode

Add helpers:
    * sub64_ssov: subs two 64 bit values and saturates the result.
    * subr_h/_ssov: subs two halfwords from two words in q-format with rounding
                    / and saturates each result independetly.

Add microcode generator:
    * gen_sub64_d: adds two 64 bit values.
    * gen_msub_h/s_h: multiply four halfwords, sub each result left justfied
                      from two word values / and saturate each result.
    * gen_msubm_h/s_h: multiply four halfwords, sub each result left justfied
                       from two words values in q-format / and saturate each
                       result.
    * gen_msubr32/64_h/s_h: multiply four halfwords, sub each result left
                            justfied from two halftwords/words values in q-format
                            / and saturate each result.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target-tricore/helper.h
target-tricore/op_helper.c
target-tricore/translate.c
target-tricore/tricore-opcodes.h