[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [V3 PATCH 08/14] target-ppc: Add ISA2.06 Float to Integ
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [V3 PATCH 08/14] target-ppc: Add ISA2.06 Float to Integer Instructions |
Date: |
Tue, 24 Dec 2013 07:36:05 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 12/18/2013 12:49 PM, Tom Musta wrote:
> This patch adds the four floating point to integer conversion instructions
> introduced by Power ISA V2.06:
>
> - Floating Convert to Integer Word Unsigned (fctiwu)
> - Floating Convert to Integer Word Unsigned with Round Toward
> Zero (fctiwuz)
> - Floating Convert to Integer Doubleword Unsigned (fctidu)
> - Floating Convert to Integer Doubleword Unsigned with Round
> Toward Zero (fctiduz)
>
> A common macro is developed to eliminate repetitive code. Existing
> instructions
> are also re-implemented to use this macro (fctiw, fctiwz, fctid, fctidz), thus
> eliminating copy/paste code.
>
> Signed-off-by: Tom Musta <address@hidden>
> ---
> target-ppc/fpu_helper.c | 122
> +++++++++++++----------------------------------
> target-ppc/helper.h | 4 ++
> target-ppc/translate.c | 12 +++++
> 3 files changed, 50 insertions(+), 88 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~
- Re: [Qemu-devel] [V3 PATCH 01/14] target-ppc: Add Flag for Power ISA V2.06, (continued)
- [Qemu-devel] [V3 PATCH 06/14] target-ppc: Add ISA2.06 lbarx, lharx Instructions, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 04/14] target-ppc: Add ISA2.06 divde[o] Instructions, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 05/14] target-ppc: Add ISA 2.06 divwe[u][o] Instructions, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 07/14] target-ppc: Add ISA 2.06 stbcx. and sthcx. Instructions, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 08/14] target-ppc: Add ISA2.06 Float to Integer Instructions, Tom Musta, 2013/12/18
- Re: [Qemu-devel] [V3 PATCH 08/14] target-ppc: Add ISA2.06 Float to Integer Instructions,
Richard Henderson <=
- [Qemu-devel] [V3 PATCH 09/14] target-ppc: Add ISA 2.06 fcfid[u][s] Instructions, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 10/14] target-ppc: Fix and enable fri[mnpz], Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 11/14] target-ppc: Add ISA 2.06 ftdiv Instruction, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 12/14] target-ppc: Add ISA 2.06 ftsqrt, Tom Musta, 2013/12/18
- [Qemu-devel] [V3 PATCH 13/14] target-ppc: Enable frsqrtes on Power7 and Power8, Tom Musta, 2013/12/18