]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: Fix BZHI instruction
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 14 Jan 2023 23:32:06 +0000 (13:32 -1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commitf163cf6be4b7b51f7327d264ea2572f8b495d287
treeca8eda9d320cf4de01588a77d74d02b8d04f7590
parentc45d10f6557b4fdae3e97f1326429bb85f5a8717
target/i386: Fix BZHI instruction

We did not correctly handle N >= operand size.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1374
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230114233206.3118472-1-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 9ad2ba6e8e7fc195d0dd0b76ab38bd2fceb1bdd4)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/emit.c.inc
tests/tcg/i386/test-i386-bmi2.c