Received: from eggs.gnu.org ([2001:4830:134:3::10]:56497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8eG-0002O6-Qi for qemu-devel@nongnu.org; Mon, 24 Mar 2014 13:26:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS8eF-0006hE-Sv for qemu-devel@nongnu.org; Mon, 24 Mar 2014 13:26:56 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:47142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8eF-0006h9-Lf for qemu-devel@nongnu.org; Mon, 24 Mar 2014 13:26:55 -0400 From: Peter Maydell Date: Mon, 24 Mar 2014 17:18:08 +0000 Message-Id: <1395681489-29679-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1395681489-29679-1-git-send-email-peter.maydell@linaro.org> References: <1395681489-29679-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 1/2] target-arm: Fix A64 Neon MLS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , qemu-devel@nongnu.org, Aurelien Jarno The order of operands for the accumulate step in disas_simd_3same_int() was reversed. This only affected the MLS instruction, since all the other accumulating instructions in this category perform an addition rather than a subtraction. Reported-by: Laurent Desnogues Tested-by: Laurent Desnogues Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 9f06450..9175e48 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -8925,7 +8925,7 @@ static void disas_simd_3same_int(DisasContext *s, uint32_t insn) genfn = fns[size][is_sub]; read_vec_element_i32(s, tcg_op1, rd, pass, MO_32); - genfn(tcg_res, tcg_res, tcg_op1); + genfn(tcg_res, tcg_op1, tcg_res); } write_vec_element_i32(s, tcg_res, rd, pass, MO_32); -- 1.9.0