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

2022-05-17 Thread Richard Henderson
On 5/17/22 09:47, Víctor Colombo wrote: From: Matheus Ferst 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

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

2022-05-17 Thread Víctor Colombo
From: Matheus Ferst 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-of