[LLVMdev] code generation for ARM

Duncan Sands baldrick at free.fr
Tue Jun 14 10:30:33 PDT 2011


Hi Daya,

> I am getting the following error while generating code for arm using llc for one
> of the specint2000 benchmark. Though same works for x86 target.
>
>
> Command => llc -march=arm 186.crafty/186.crafty.rel.bc -o
> 186.crafty/186.crafty.m5arm.s
> Error =>  LLVM ERROR: Couldn't allocate output reg for constraint '{cx}'!
>
>
> Have anyone seen this before? Is there a work around for this? I have tried
> different register allocator using option "-regalloc=<>" to llc. It happens with
> all the register allocators.

where did the bitcode come from?  If the bitcode contains x86 inline assembler
then it is normal that it won't work on arm.

Ciao, Duncan.



More information about the llvm-dev mailing list