From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9Di-0002S1-4V for qemu-devel@nongnu.org; Wed, 13 Apr 2011 19:11:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QA9Dg-0005DY-LV for qemu-devel@nongnu.org; Wed, 13 Apr 2011 19:11:33 -0400 Received: from hall.aurel32.net ([88.191.126.93]:56717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9Dg-0004yb-90 for qemu-devel@nongnu.org; Wed, 13 Apr 2011 19:11:32 -0400 From: Aurelien Jarno Date: Thu, 14 Apr 2011 01:11:13 +0200 Message-Id: <1302736274-2908-19-git-send-email-aurelien@aurel32.net> In-Reply-To: <1302736274-2908-1-git-send-email-aurelien@aurel32.net> References: <1302736274-2908-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH v2 18/19] target-mips: fix c.ps.* instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno Contrary to cabs.ps.* instructions, c.ps.* should not compare the absolute value of the operand, but directly the operands. Signed-off-by: Aurelien Jarno --- target-mips/op_helper.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 0a62361..b35a6d2 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -2962,10 +2962,10 @@ FOP_COND_S(ngt, float32_unordered(fst1, fst0, &env->active_fpu.fp_status) || fl #define FOP_COND_PS(op, condl, condh) \ void helper_cmp_ps_ ## op (uint64_t fdt0, uint64_t fdt1, int cc) \ { \ - uint32_t fst0 = float32_abs(fdt0 & 0XFFFFFFFF); \ - uint32_t fsth0 = float32_abs(fdt0 >> 32); \ - uint32_t fst1 = float32_abs(fdt1 & 0XFFFFFFFF); \ - uint32_t fsth1 = float32_abs(fdt1 >> 32); \ + uint32_t fst0 = fdt0 & 0XFFFFFFFF; \ + uint32_t fsth0 = fdt0 >> 32; \ + uint32_t fst1 = fdt1 & 0XFFFFFFFF; \ + uint32_t fsth1 = fdt1 >> 32; \ int cl = condl; \ int ch = condh; \ \ -- 1.7.2.3