This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inline ASM bug


On Wed, Jul 23, 2003 at 10:50:07AM +0200, cb wrote:
>         : "=r" (array)
>         : "0" (array), "r" (maximum), "c" (i)

Bug in your code.  %0 is the first operand (array), %1 is the second
operand, again (array).  You need to use %2 to refer to (maximum).

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]