Conditional clobbering

Paulo Matos pocmatos@gmail.com
Tue Feb 23 20:16:00 GMT 2010


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



More information about the Gcc mailing list