I compiled the following code with llvm-gcc (4.2.1) and llc (2.3svn) for spu
of Cell broadband engine processor.
> cat add.c
float add (float a, float b)
{
return a + b;
}
> llvm-gcc add.c --emit-llvm -c -o add.bc
> llc -march=cellspu add.bc
Cannot yet select: 0x867c700: v4f32 = SPUISD::INSERT_MASK 0x8670800
Abort (core dumped)
But llc returned the above error.
If I replaced scalar variables with vector ones, It will work fine.
Does spu backend works with scalar variable?