[LLVMdev] Unable to Run Inline Asm with MCJIT
Amit Arya
aarya at cs.stonybrook.edu
Sun Nov 4 16:09:10 PST 2012
Hi,
I am first year PhD student at Stony Brook University. For one of my projects I am trying to JIT compile and run a C program containing inline assembly using MCJIT but I am not able to.
I have cloned and build LLVM-3.1. Below are more details.
Arch : x86
OS : Linux ubuntu 2.6.35-22-generic
Sample program : test_inline_asm.c
-------------------
#include <stdio.h>
int main(){
int a=0;
__asm __volatile("movl $5,%%eax\t"
"\n movl %%eax,%0":"=r"(a)::"cc","memory"
);
printf("a= %d\n",a);
}
Commands
-------------
clang -emit-llvm -S test_inline_asm.c
lli -use-mcjit test_inline_asm.s
throws,
LLVM ERROR: Inline asm not supported by this streamer because we don't have an asm parser for this target
Any pointers to what mistake I have been doing.Any help would be much appreciated.
Thanks & Regards,
Amit Arya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121105/db27fbc5/attachment.html>
More information about the llvm-dev
mailing list