[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 59/60] AArch64: Add "Floating-point data-process
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 59/60] AArch64: Add "Floating-point data-processing (3 |
Date: |
Fri, 27 Sep 2013 14:34:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
On 09/26/2013 05:48 PM, Alexander Graf wrote:
> + if (is_neg) {
> + gen_helper_vfp_negs(tcg_op1, tcg_op1);
> + gen_helper_vfp_negs(tcg_op3, tcg_op3);
> + }
> +
> + gen_helper_vfp_muls(tcg_res, tcg_op1, tcg_op2, fpst);
> + if (is_sub) {
> + gen_helper_vfp_subs(tcg_res, tcg_op3, tcg_res, fpst);
> + } else {
> + gen_helper_vfp_adds(tcg_res, tcg_op3, tcg_res, fpst);
> + }
> +
Unlike original vfp, aarch64 requires infinite precision intermediate.
Which means that you need to use float_muladd. Note that
opa_neg = float_muladd_negate_c
op1_neg = float_muladd_negate_product
Or those together into the 4th argument to float_muladd.
r~
- [Qemu-devel] [PATCH 41/60] AArch64: Add ldr/str instruction family emulation, (continued)
- [Qemu-devel] [PATCH 41/60] AArch64: Add ldr/str instruction family emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 49/60] AArch64: Add "Data-processing (3 source)" instruction, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 51/60] AArch64: Add fmov (scalar, immediate) instruction, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 56/60] AArch64: Add "Floating-point data-processing (2, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 58/60] AArch64: Add "ADD (vector)" instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 57/60] AArch64: Add "Floating-point data-processing (2, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 42/60] AArch64: Add literal ld instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 50/60] AArch64: Add "Floating-point<->fixed-point, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 52/60] AArch64: Add "Floating-point<->integer conversions", Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 59/60] AArch64: Add "Floating-point data-processing (3, Alexander Graf, 2013/09/26
- Re: [Qemu-devel] [PATCH 59/60] AArch64: Add "Floating-point data-processing (3,
Richard Henderson <=
- [Qemu-devel] [PATCH 53/60] AArch64: Add "Floating-point compare" instruction, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 54/60] AArch64: Add "Floating-point data-processing (1, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 60/60] AArch64: Add "Floating-point data-processing (3, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 55/60] AArch64: Add "Floating-point data-processing (1, Alexander Graf, 2013/09/26
- Re: [Qemu-devel] [PATCH 00/60] AArch64 TCG emulation support, Alexander Graf, 2013/09/26