Unhandled instruction encoding format!

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

Any suggestions are welcome.Thanks.

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

Hi Jim

Thank you for your help.
I also used mcjit, but the problem still existed.

BTW, if i use the following code, there will be not any error.
#include <stdio.h>
int main()
{
float a = 1.f;
float b = 3.f;
float c = a * b;
printf(“c=%f\n”, c);
}

Guanglei