]> git.proxmox.com Git - qemu.git/commit
target-i386: use inverted setcond when computing NS or NZ
authorRichard Henderson <rth@twiddle.net>
Wed, 23 Jan 2013 21:37:28 +0000 (13:37 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:57 +0000 (15:03 -0800)
commit8115f117357a63bff84522caac6c3bcadee0a285
tree7b43f968edafc0d0e3a8801cd246e229e8f7a593
parent086c40778485f9a52d41a66fd4ef0d8723a2ac0a
target-i386: use inverted setcond when computing NS or NZ

Make gen_compute_eflags_z and gen_compute_eflags_s able to compute the
inverted condition, and use this in gen_setcc_slow_T0.  We cannot do it
yet in gen_compute_eflags_c, but prepare the code for it anyway.  It is
not worthwhile for PF, as usual.

shr+and+xor could be replaced by and+setcond.  I'm not doing it yet.

Reviewed-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-i386/translate.c