target-tricore: Add instructions of RRR1 opcode format, which have 0x83 as first...
commit2e430e1cdcbac8825bc44b42844cbb011b859847
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Thu, 29 Jan 2015 15:35:56 +0000 (29 15:35 +0000)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Tue, 3 Mar 2015 01:05:26 +0000 (3 01:05 +0000)
tree927b232cd4edc7b59f159a7ef5f3fbf441681069
parent2984cfbdb4dbc31d614aaa0303374dff951e7a31
target-tricore: Add instructions of RRR1 opcode format, which have 0x83 as first opcode

Add helpers:
    * add64_ssov: adds two 64 bit values and saturates the result.
    * addr_h/_ssov: adds two halfwords with two words in q-format with rounding
                    / and saturates each result independetly.

Add microcode generator:
    * gen_add64_d: adds two 64 bit values.
    * gen_addsub64_h: adds/subtracts one halfwords with a word and adds/
                      subtracts another halftword with another word.
    * gen_madd_h/s_h: multiply four halfwords, add each result left justfied
                      to two word values / and saturate each result.
    * gen_maddm_h/s_h: multiply four halfwords, add each result left justfied
                       to two words values in q-format / and saturate each
                       result.
    * gen_maddr32/64_h/s_h: multiply four halfwords, add each result left
                            justfied to two halftwords/words values in q-format
                            / and saturate each result.

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