Thank you Chris !<br>I didn't realize this was just an asm printing issue... and I just checked X86ISelLowering.cpp where you have all the asm constraints...<br><br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 2:59 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5"><br>
On Mar 1, 2011, at 1:24 PM, Damien Vincent wrote:<br>
<br>
><br>
>   I was wondering if llvm supports sub registers in an inline asm string.<br>
>   For example, in gcc, using modifiers %w0 makes it possible to access ax if %0 refers to eax.<br>
><br>
>   If there is any support, do you know where it is implemented ? I'd like to add such a support for another target.<br>
<br>
</div></div>Hi Damien,<br>
<br>
It sure does.  These are considered "modifier" characters and are handled in (e.g.) X86AsmPrinter::PrintAsmOperand.<br>
<br>
You can send some C code with asms in it through x86 clang to see what IR it generates or use the llvm demo page.<br>
<font color="#888888"><br>
-Chris</font></blockquote></div><br>