qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH RESEND 09/10] target/ppc: implement cbcdtd


From: Richard Henderson
Subject: Re: [PATCH RESEND 09/10] target/ppc: implement cbcdtd
Date: Tue, 17 May 2022 12:10:37 -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 Binary Coded Decimal To Declets instruction.
Since libdecnumber doesn't expose the methods for direct conversion
(decDigitsToDPD, BCD2DPD, etc.), the BCD values are converted to
decimal32 format, from which the declets are extracted.

Where the behavior is undefined, we try to match the result observed in
a POWER9 DD2.3.

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                    | 39 ++++++++++++++++++++++
  target/ppc/helper.h                        |  1 +
  target/ppc/insn32.decode                   |  4 +++
  target/ppc/translate/fixedpoint-impl.c.inc |  7 ++++
  4 files changed, 51 insertions(+)

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

r~



reply via email to

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