From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGsdz-0007Pm-7B for qemu-devel@nongnu.org; Thu, 20 Oct 2011 09:26:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGsdm-0001zn-VE for qemu-devel@nongnu.org; Thu, 20 Oct 2011 09:26:41 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:51802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGsdm-0001xP-JY for qemu-devel@nongnu.org; Thu, 20 Oct 2011 09:26:34 -0400 From: Peter Maydell Date: Thu, 20 Oct 2011 14:16:02 +0100 Message-Id: <1319116568-2663-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1319116568-2663-1-git-send-email-peter.maydell@linaro.org> References: <1319116568-2663-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/7] rsqrte_f32: No need to copy sign bit. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori From: Christophe LYON Indeed, the result is known to be always positive. Signed-off-by: Christophe Lyon Signed-off-by: Peter Maydell --- target-arm/helper.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index e2428eb..17ef98b 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -3039,8 +3039,7 @@ float32 HELPER(rsqrte_f32)(float32 a, CPUState *env) val64 = float64_val(f64); - val = ((val64 >> 63) & 0x80000000) - | ((result_exp & 0xff) << 23) + val = ((result_exp & 0xff) << 23) | ((val64 >> 29) & 0x7fffff); return make_float32(val); } -- 1.7.1