[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 14/14] target/ppc: improve VSX_FMADD
From: |
Richard Henderson |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 14/14] target/ppc: improve VSX_FMADD with new GEN_VSX_HELPER_VSX_MADD macro |
Date: |
Tue, 30 Apr 2019 10:00:12 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 4/28/19 7:38 AM, Mark Cave-Ayland wrote:
> #define VSX_MADD(op, nels, tp, fld, maddflgs, afrm, sfprf, r2sp)
> \
> void helper_##op(CPUPPCState *env, uint32_t opcode,
> \
> - ppc_vsr_t *xt, ppc_vsr_t *xa, ppc_vsr_t *xb)
> \
> + ppc_vsr_t *xt, ppc_vsr_t *xa,
> \
> + ppc_vsr_t *b, ppc_vsr_t *c)
> \
> {
> \
> - ppc_vsr_t *b, *c;
> \
> int i;
> \
>
> \
> - if (afrm) { /* AxB + T */
> \
> - b = xb;
> \
> - c = xt;
> \
> - } else { /* AxT + B */
> \
> - b = xt;
> \
> - c = xb;
> \
> - }
> \
The afrm argument is no longer used.
This also means that e.g.
VSX_MADD(xsmaddadp, 1, float64, VsrD(0), MADD_FLGS, 1, 1, 0)
VSX_MADD(xsmaddmdp, 1, float64, VsrD(0), MADD_FLGS, 0, 1, 0)
are redundant. Similarly with all of the other pairs.
r~
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 04/14] target/ppc: introduce GEN_VSX_HELPER_X3 macro to fpu_helper.c, (continued)
- [Qemu-ppc] [PATCH 05/14] target/ppc: introduce GEN_VSX_HELPER_X2 macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 01/14] target/ppc: remove getVSR()/putVSR() from fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 10/14] target/ppc: introduce GEN_VSX_HELPER_R2_AB macro to fpu_helper.c, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 11/14] target/ppc: decode target register in VSX_VECTOR_LOAD_STORE_LENGTH at translation time, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 14/14] target/ppc: improve VSX_FMADD with new GEN_VSX_HELPER_VSX_MADD macro, Mark Cave-Ayland, 2019/04/28
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 14/14] target/ppc: improve VSX_FMADD with new GEN_VSX_HELPER_VSX_MADD macro,
Richard Henderson <=
- [Qemu-ppc] [PATCH 12/14] target/ppc: decode target register in VSX_EXTRACT_INSERT at translation time, Mark Cave-Ayland, 2019/04/28
- [Qemu-ppc] [PATCH 13/14] target/ppc: improve VSX_TEST_DC with new generator macros, Mark Cave-Ayland, 2019/04/28