[cfe-commits] [QUESTION]: asm constraints with commas

John Thompson john.thompson.jtsoftware at gmail.com
Wed Jul 7 14:24:55 PDT 2010


Regarding my incorrectly name bug report 7338, after looking at this in the
debugger, the problem is the comma in "=&r,&r" (and probably by extension,
the comma in "+m,m").

Unfortunately, because I don't understand constraints much, and much less
how they are handled in Clang, I don't know the correct fix for it.

Do the commas basically correspond to the argument positions in the actual
assembly statements, meaning that's how you apply a constraint to a
particular assembly instruction argument position?

If so, what does this mean with respect to the ConstraintInfo class?  Does
it mean it needs to represent the separate positions, or are additional
ConstraintInfo classes needed for each item?

If you are in the know about this, could you give me a hand in fixing it?

Thanks.

-John

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100707/b156b527/attachment.html>


More information about the cfe-commits mailing list