bad ASM code for short operands

Alan Modra alan@linuxcare.com.au
Thu May 4 23:06:00 GMT 2000


On Thu, 4 May 2000, David O'Brien wrote:

> static __inline void foo_short(volatile unsigned short *p, unsigned short v)
> 	{ __asm volatile ( "andw %2,%0" : "=m" (*p) : "0" (*p), "ir" ( ~v )); }

Use "andw %w2,%0"  Have a look at gcc/config/i386/i386.md for a list of
the constraint modifiers.

-- 
Linuxcare.  Support for the Revolution.




More information about the Gcc-bugs mailing list