target-tricore: Add instructions of RR opcode format, that have 0xf as the first...
commit0b79a78169d813d11ad32f103e7a2c64c32bd705
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Fri, 28 Nov 2014 17:07:26 +0000 (28 17:07 +0000)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Sun, 21 Dec 2014 18:34:48 +0000 (21 18:34 +0000)
tree82576e305f416ea3d6b8e643f8f4c088a8c2450d
parentd5de7839d78b08c7bd14b03dac0413699b90da67
target-tricore: Add instructions of RR opcode format, that have 0xf as the first opcode

Add instructions of RR opcode format, that have 0xf as the first opcode.
Add helper functions:
    * clo/z/s: Counts leading ones/zeros/signs.
    * clo/z/s_h: Count leading ones/zeros/signs in two haflwords.
    * sh/_h: Shifts one/two word/hwords.
    * sha/_h: Shifts one/two word/hwords arithmeticly.

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