On 5/17/22 09:47, Víctor Colombo wrote:
From: Matheus Ferst<matheus.fe...@eldorado.org.br>

Implements the Convert Declets To Binary Coded Decimal instruction.
Since libdecnumber doesn't expose the methods for direct conversion
(decDigitsFromDPD, DPD2BCD, etc), a positive decimal32 with zero
exponent is used as an intermediate value to convert the declets.

Signed-off-by: Matheus Ferst<matheus.fe...@eldorado.org.br>
Signed-off-by: Víctor Colombo<victor.colo...@eldorado.org.br>
---
  target/ppc/dfp_helper.c                    | 26 ++++++++++++++++++++++
  target/ppc/helper.h                        |  1 +
  target/ppc/insn32.decode                   |  1 +
  target/ppc/translate/fixedpoint-impl.c.inc |  7 ++++++
  4 files changed, 35 insertions(+)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to