]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-arm: Fix A64 Neon MLS
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Mar 2014 15:59:02 +0000 (15:59 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Mar 2014 16:34:01 +0000 (16:34 +0000)
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 <laurent.desnogues@gmail.com>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/translate-a64.c

index 9f0645075e05c75d5050066bbbf369def50a07f3..9175e48797f668dbe8dd7bb7c7d34b89012b2bc5 100644 (file)
@@ -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);