search for: test_inline_asm

Displaying 3 results from an estimated 3 matches for "test_inline_asm".

2012 Nov 05
2
[LLVMdev] Unable to Run Inline Asm with MCJIT
...ear 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...
2012 Nov 05
0
[LLVMdev] Unable to Run Inline Asm with MCJIT
...rsity. 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); > } &gt...
2012 Nov 05
1
[LLVMdev] Unable to Run Inline Asm with MCJIT
...ear 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...