i386 FP comparsion bug (and sollution)
Jeffrey A Law
law@cygnus.com
Thu Oct 29 23:40:00 GMT 1998
In message < 19981026090505.29312@atrey.karlin.mff.cuni.cz >you write:
> The condition code ocasinally sets the CC_REVERSED and TEST_AX (in
> -mno-ieee-fp case) flags in cc_status variable.
OK.
> This usually works well.
> Problem is, that reg-stack pass should emit some swap/mov?f patterns
> between condition and jump.
"should"? Or do you mean "could"?
Either way no instruction should ever be emitted between a cc0 setter and its
associated conditional jump. They must be consecutive in the RTL stream on
the x86 (and any machine which defines HAVE_cc0.
So, if regstack is emitting insns between the cc0 setter and the cc0 user, then
that's a bug.
jeff
More information about the Gcc
mailing list