[LLVMdev] Unhandled instruction encoding format!

Jim Grosbach grosbach at apple.com
Thu Aug 2 09:53:24 PDT 2012


On Aug 2, 2012, at 3:38 AM, gaogao <gaogao_1983 at 163.com> wrote:

> I am doing some tests running llvm on an ARM board. I'm getting an error
> message saying:
> 
> Unhandled instruction encoding format!
> 
> 
> My steps below:
> Code
> //------------------------------------------------------------
> #include <stdio.h>
> int main()
> {
> int a = 1;
> int b = 3;
> int c = a * b;
> printf("c=%d\n", c);
> 
> return 0;
> }
> 
> run on device
> //-------------------------------------------------------------
> $clang -emit-llvm -c test.c -o test
> $lli test
> 

Try passing -use-mcjit to lli.

-Jim

> 
> Any suggestions are welcome.Thanks.
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://llvm.1065342.n5.nabble.com/Unhandled-instruction-encoding-format-tp47818.html
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list