qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH RESEND 10/10] target/ppc: implement cdtbcd


From: Richard Henderson
Subject: Re: [PATCH RESEND 10/10] target/ppc: implement cdtbcd
Date: Tue, 17 May 2022 12:12:03 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 5/17/22 09:47, Víctor Colombo wrote:
From: Matheus Ferst<matheus.ferst@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.ferst@eldorado.org.br>
Signed-off-by: Víctor Colombo<victor.colombo@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.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]