This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Conditional clobbering
On 02/23/10 19:12, Joern Rennecke wrote:
> Quoting "Paulo J. Matos" <pocmatos@gmail.com>:
>> I have a situation in writing a specific condition on an md file.
>> I have an insn with 2 alternatives and then I use which_alternative to
>> generate the assembler code but if which_alternative == 1 I am
>> clobbering a register. How can I tell gcc that if it matches 1, a
>> given register is clobbered?
>
> You use a clobber with a matching constraint for alternative 1 and X for
> other alternatives. Make sure the patten is not named.
Thanks!
--
PMatos