This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Reload pass clobbers cc0
- To: Kenn Humborg <kenn at linux dot ie>
- Subject: Re: Reload pass clobbers cc0
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 17 Aug 2000 09:54:04 -0600
- cc: Alan Lehotsky <lehotsky at sunspot dot tiac dot net>, Andy Phillips <atp at pergamentum dot com>, gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <20000817022907.B2829@avalon.research.wombat.ie>you write:
> The modified one look like:
>
> (define_insn "sgeu"
> [(set (match_operand:SI 0 "general_operand" "=ro,<>")
> (geu (cc0) (const_int 0)))]
> ""
> "@
> movl $1,%0\;sbwc $0,%0
> bgequ 1f\;clrl %0\;brb 2f\;1f: movl $1, %0\;2f:")
>
> I think this should catch everything.
>
> Now, it would be nice if these insns could be flagged as
> 'never reload' or 'trigger internal compiler error if
> reloaded'.
If an insn which uses cc0 ever needs an input reload, the compiler will
abort. Which would include your modified sgeu.
jeff