From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPfgo-0002Qo-Ku for qemu-devel@nongnu.org; Fri, 27 Sep 2013 17:35:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPfgg-0004EF-8N for qemu-devel@nongnu.org; Fri, 27 Sep 2013 17:35:06 -0400 Received: from mail-ye0-x235.google.com ([2607:f8b0:4002:c04::235]:42485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPfgg-0004E9-47 for qemu-devel@nongnu.org; Fri, 27 Sep 2013 17:34:58 -0400 Received: by mail-ye0-f181.google.com with SMTP id r14so1061305yen.12 for ; Fri, 27 Sep 2013 14:34:57 -0700 (PDT) Sender: Richard Henderson Message-ID: <5245F9FD.8030005@twiddle.net> Date: Fri, 27 Sep 2013 14:34:53 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1380242934-20953-1-git-send-email-agraf@suse.de> <1380242934-20953-60-git-send-email-agraf@suse.de> In-Reply-To: <1380242934-20953-60-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 59/60] AArch64: Add "Floating-point data-processing (3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Peter Maydell , Michael Matz , qemu-devel@nongnu.org, C Fontana , Dirk Mueller , Laurent Desnogues , Christoffer Dall 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~