<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>Hi Jim</DIV>
<DIV> </DIV>
<DIV>Thank you for your help.</DIV>
<DIV>I also used mcjit, but the problem still existed. </DIV>
<DIV> </DIV>
<DIV>BTW,  if i use the following code,  there will be not any error.</DIV>
<DIV> #include <stdio.h><BR> int main()<BR> {<BR> float a = 1.f;<BR>float b = 3.f;</DIV>
<DIV> float c = a * b;<BR> printf("c=%f\n", c);</DIV>
<DIV>}<BR></DIV>
<DIV> </DIV>
<DIV>Guanglei<BR><BR></DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV><PRE><BR>At 2012-08-03 00:53:24,"Jim Grosbach" <grosbach@apple.com> wrote:
>
>On Aug 2, 2012, at 3:38 AM, gaogao <gaogao_1983@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@cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
</PRE></div>