On 20/5/26 12:18, Philippe Mathieu-Daudé wrote:
From: James Hilliard <[email protected]>
QMAC.0x and QMACS.0x multiply the selected signed Q15 halfword lane from
rs by rt<15:0> and accumulate the Q31 product into the Octeon HI/LO
accumulator state.
QMAC updates the full 64-bit HI/LO accumulator. QMACS saturates the
32-bit Q31 result in LO and keeps HI<0> as the sticky saturation flag.
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: James Hilliard <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
[PMD: Add min32/max32 in trans_QMACS()]
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
target/mips/tcg/octeon.decode | 4 ++
target/mips/tcg/octeon_translate.c | 62 ++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>