OSDN Git Service

target-i386: introduce gen_prepare_cc
authorRichard Henderson <rth@twiddle.net>
Wed, 23 Jan 2013 22:33:45 +0000 (14:33 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:57 +0000 (15:03 -0800)
commit276e6b5f069e189e204a4320f824daa07db10286
tree63c7db182b44e3e25dc2dc2f697d8cb36034f68a
parentbec93d7283b635aabaf0bbff67b6da7fc99e020a
target-i386: introduce gen_prepare_cc

This makes the i386 front-end able to create CCPrepare structs for all
condition, not just those that come from a single flag.  In particular,
JCC_L and JCC_LE can be optimized because gen_prepare_cc is not forced
to return a result in bit 0 (unlike gen_setcc_slow).

However, for now the slow jcc operations will still go through CC
computation in a single-bit temporary, followed by a brcond if the
temporary is nonzero.

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