]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/aarch64: Fix illegal insn from out-of-range shli
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 01:04:30 +0000 (01:04 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 15:09:46 +0000 (08:09 -0700)
commit94bcc91b2e95e02ec57ed18d5a5e7cb75aa19a50
tree8dbd2d6c29eb9c2e9250394b7100abf3e3e0a81a
parent3cc18d18cc3865d7b1ce2c8b35d52e52abbff397
tcg/aarch64: Fix illegal insn from out-of-range shli

The masking in tcg_out_shl was incorrect, producing an
illegal instruction, rather than merely unspecified results
for the out-of-range shift.

Tested-by: Joel Stanley <joel@jms.id.au>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1051
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/aarch64/tcg-target.c.inc