Received: from eggs.gnu.org ([2001:4830:134:3::10]:60037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5DGV-0006mz-MX for qemu-devel@nongnu.org; Fri, 11 Nov 2016 09:57:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5DGQ-0005yb-Q9 for qemu-devel@nongnu.org; Fri, 11 Nov 2016 09:57:15 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:34971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c5DGQ-0005yT-JT for qemu-devel@nongnu.org; Fri, 11 Nov 2016 09:57:10 -0500 Received: by mail-wm0-x243.google.com with SMTP id a20so10017417wme.2 for ; Fri, 11 Nov 2016 06:57:10 -0800 (PST) Sender: Richard Henderson From: Richard Henderson References: <20161111142018.22567-1-kbastian@mail.uni-paderborn.de> <20161111142018.22567-3-kbastian@mail.uni-paderborn.de> Message-ID: <35eb37b2-f466-5fd5-48e3-784bd304b750@twiddle.net> Date: Fri, 11 Nov 2016 15:57:05 +0100 MIME-Version: 1.0 In-Reply-To: <20161111142018.22567-3-kbastian@mail.uni-paderborn.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 2/5] target-tricore: Added MADD.F and MSUB.F instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bastian Koppelmann , qemu-devel@nongnu.org On 11/11/2016 03:20 PM, Bastian Koppelmann wrote: > + if (muladd_negate_c) { > + cSign ^= 1; > + } > + if (((aExp == 0xff) || (bExp == 0xff)) && (cExp == 0xff)) { > + if (aSign ^ bSign ^ cSign) { If you're going to make muladd_negate_c a bool, you might as well just fold that in here: if (aSign ^ bSign ^ cSign ^ muladd_negate_c) And, come to think of it, > + arg1 = float32_squash_input_denormal(arg1, &env->fp_status); > + arg2 = float32_squash_input_denormal(arg2, &env->fp_status); > + arg3 = float32_squash_input_denormal(arg3, &env->fp_status); can be folded into f_maddsub_nan_result as } else if (float32_is_infinity(arg1) && float32_is_zero(float32_squash_input_denormal (arg2, &env->fp_status))) { return MUL_NAN; } else if (float32_is_infinity(arg2) && float32_is_zero(float32_squash_input_denormal (arg1, &env->fp_status))) { return MUL_NAN; which makes it less likely that the squash will actually be call Otherwise, Reviewed-by: Richard Henderson r~