]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Fix iteration step in 32-bit gvec operation
authorTANG Tiancheng <tangtiancheng.ttc@alibaba-inc.com>
Wed, 4 Sep 2024 14:27:26 +0000 (22:27 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 28 Sep 2024 04:24:27 +0000 (07:24 +0300)
commita85f57b6a9f01927a9c826bf5d0f237de0512215
tree031b8c6e18911d373f8c0965b86fc57a141aaa39
parentd996783c4743adba032f41d1624d795180ee9ecb
tcg: Fix iteration step in 32-bit gvec operation

The loop in the 32-bit case of the vector compare operation
was incorrectly incrementing by 8 bytes per iteration instead
of 4 bytes. This caused the function to process only half of
the intended elements.

Cc: qemu-stable@nongnu.org
Fixes: 9622c697d1 (tcg: Add gvec compare with immediate and scalar operand)
Signed-off-by: TANG Tiancheng <tangtiancheng.ttc@alibaba-inc.com>
Reviewed-by: Liu Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240904142739.854-2-zhiwei_liu@linux.alibaba.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 9d8d5a5b9078a16b4c0862fe54248c5cc8435648)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/tcg-op-gvec.c