Received: from eggs.gnu.org ([2001:4830:134:3::10]:38513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS7W2-00039Y-3I for qemu-devel@nongnu.org; Mon, 24 Mar 2014 12:14:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS7Vw-0006VW-3P for qemu-devel@nongnu.org; Mon, 24 Mar 2014 12:14:22 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:47124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS7Vv-0006Si-ME for qemu-devel@nongnu.org; Mon, 24 Mar 2014 12:14:16 -0400 From: Peter Maydell Date: Mon, 24 Mar 2014 16:14:04 +0000 Message-Id: <1395677644-29552-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH for-2.0] target-arm: Fix A64 Neon MLS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , patches@linaro.org, Michael Matz , Alexander Graf , Dirk Mueller , Laurent Desnogues , =?UTF-8?q?Alex=20Benn=C3=A9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall 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 Signed-off-by: Peter Maydell --- Bit embarrassing, not sure how this slipped through the testing process (the test risu binary I have for MLS failed as expected, so I must just have forgotten to run/rerun it somehow.) 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