[coldfire-gnu-discuss] Toolchain, asm parameters numbering and optimisation flags
Daniel Jacobowitz
dan at codesourcery.com
Tue Dec 5 23:54:39 UTC 2006
This is the same problem as Nathan was talking about.
On Wed, Dec 06, 2006 at 12:24:02AM +0100, fred at aidounix.com wrote:
> "move.l (%[X])+, %[e1];\n"
> "move.l (%[Y])+, %[e2];\n"
> "swap %[e1];"
> "swap %[e2];"
> "move.w %[e1], %[t1];"
> "move.w %[e2], %[t2];"
You are setting these. Therefore they are not inputs to your asm;
inputs are only read, not modified.
> : [sum]"=&d" (sum), [len]"+&d"(len)
> : [X]"a"(x), [Y]"a"(y), [t1]"d"(t1), [t2]"d"(t2), [e1]"d"(e1), [e2]"d"(e2)
But this says that t1 is only an input.
--
Daniel Jacobowitz
CodeSourcery
More information about the coldfire-gnu-discuss
mailing list