Inline ASM bug

Alan Modra amodra@bigpond.net.au
Thu Jul 24 11:54:00 GMT 2003


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



More information about the Gcc-bugs mailing list