OSDN Git Service

target/mips: Convert Vr54xx MACC* opcodes to decodetree
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 28 Jul 2021 11:20:42 +0000 (13:20 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 25 Aug 2021 11:02:14 +0000 (13:02 +0200)
commit5fa38eedbd0b3fad052a11c5efc8031a20ed9b25
tree171d0fbec457da1b9477706d110f2b6583d36e82
parent9d0053923904215d95e8e5ab14b38bb792a0a68f
target/mips: Convert Vr54xx MACC* opcodes to decodetree

Convert the following Integer Multiply-Accumulate opcodes:

 * MACC         Multiply, accumulate, and move LO
 * MACCHI       Multiply, accumulate, and move HI
 * MACCHIU      Unsigned multiply, accumulate, and move HI
 * MACCU        Unsigned multiply, accumulate, and move LO

Since all opcodes are generated using the same pattern, we
add the gen_helper_mult_acc_t typedef and MULT_ACC() macro
to remove boilerplate code.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210808173018.90960-6-f4bug@amsat.org>
target/mips/tcg/translate.c
target/mips/tcg/vr54xx.decode
target/mips/tcg/vr54xx_translate.c