]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Fix constant folding of INDEX_op_extract2_i32
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Jul 2019 11:23:44 +0000 (13:23 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 14 Jul 2019 10:19:00 +0000 (12:19 +0200)
commit80f4d7c3ae216c191fb403e149bcba88d6aa40bb
treec5fe5048ca98c4e0f7c9045f17603f63605558ce
parent1316b1ddc8a05e418c8134243f8bff8cccbbccb1
tcg: Fix constant folding of INDEX_op_extract2_i32

On a 64-bit host, discard any replications of the 32-bit
sign bit when performing the shift and merge.

Fixes: https://bugs.launchpad.net/bugs/1834496
Tested-by: Christophe Lyon <christophe.lyon@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c