]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/optimize: fix known-zero bits for right shift ops
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 3 Sep 2013 06:27:38 +0000 (08:27 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 06:34:39 +0000 (00:34 -0600)
commit6ec62b79e34fb2d3948432df2e7a6bb963c2eae1
tree1b96f9685985f8d621d52a6dff4d10419f379852
parent0e282aca861e63125ddd2da4fc954ee7421edc8d
tcg/optimize: fix known-zero bits for right shift ops

32-bit versions of sar and shr ops should not propagate known-zero bits
from the unused 32 high bits. For sar it could even lead to wrong code
being generated.

Cc: qemu-stable@nongnu.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
(cherry picked from commit e46b225a3137e62c975c49aaae7bb5f9583cc428)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/optimize.c