]> git.proxmox.com Git - mirror_qemu.git/commit
target-i386: Compute all flag data inside %cl != 0 test.
authorRichard Henderson <rth@twiddle.net>
Thu, 8 Sep 2011 08:23:11 +0000 (09:23 +0100)
committermalc <av1474@comtv.ru>
Thu, 8 Sep 2011 14:10:16 +0000 (18:10 +0400)
commit8278604134e36f7f96612c2fda3b615787e5b692
tree14a8607111a4526f5f71bdf6eb2f6906614e3b78
parentc82dc29a9112f34e0a51cad9a412cf6d9d05dfb2
target-i386: Compute all flag data inside %cl != 0 test.

The (x << (cl - 1)) quantity is only used if CL != 0.  Move the
computation of that quantity nearer its use.

This avoids the creation of undefined TCG operations when the
constant propagation optimization proves that CL == 0, and thus
CL-1 is outside the range [0-wordsize).

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: malc <av1474@comtv.ru>
target-i386/translate.c