This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bad ASM code for short operands
- To: "David O'Brien" <obrien at NUXI dot com>
- Subject: Re: bad ASM code for short operands
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 5 May 2000 16:06:29 +1000 (EST)
- cc: gcc-bugs at gcc dot gnu dot org
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.