<div>Hi,</div><div> </div><div>Very few inline assembly are supported for the X86 backend. As I see from </div><div>X86ISelLowering.cpp, only bswap, rorw, xchgl and simple register selections</div><div>(e.g. {=r10}) LLVM JIT can recoginze. But for PPC backend, I am not</div>
<div>sure why PPC JIT see all inline assembly IRs as an error.</div><div> </div><div>Ding-Yong<br></div><div class="gmail_quote">On Thu, Mar 24, 2011 at 2:53 PM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span> wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">Hi 陳韋任,<br>
<div class="im"><br>
>    It seems PPC JIT does not recognize inline assembly.<br>
> For example, when I give LLVM IR belows to PPC JIT,<br>
><br>
> %0 = tail call i32* asm "", "={r10}"() nounwind ;<i32*>  [#uses=1]<br>
><br>
>    it complaints that inline assembly is not a supported<br>
> instruction. x86 JIT works fine, however.<br>
<br>
</div>I'm surprised this worked with the x86 JIT - I thought the JIT didn't<br>
support any inline assembler on any platform, and that the plan was to<br>
solve this with the new MC-JIT, see<br>
   <a href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html" target="_blank">http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html</a><br>
<br>
Ciao, Duncan.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>