This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 FP comparsion bug (and sollution)
- To: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Subject: Re: i386 FP comparsion bug (and sollution)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 29 Oct 1998 22:43:50 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
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