This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Conditional call instruction
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Wed, 13 Feb 2002 16:38:11 +0000
- Subject: Re: Conditional call instruction
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Do any of GCC's currently supported targets have a predicated call
> instruction that GCC will use when appropriate? Roughly speaking,
> this is an instruction that calls only if some condition is true,
> and otherwise falls through.
Yes, the ARM has, but with the exception of the obsolete apcs-26 mode
(only useful for very early ARM chips) the call will smash the
condition-code register. So a predicated call can only be used when it is
known that the condition code register won't be live afterwards.
R.