[LLVMdev] Crash with llc and vector code

Duncan Sands baldrick at free.fr
Fri Oct 22 07:23:36 PDT 2010


> Compiling the simple following function with llv (LLVM 2.8) :
>
> define<4 x i32>  @foo(<4 x i32>  %a,<4 x i32>  %b) {
> 	%res = select<4 x i1>  <i1 true, i1 false, i1 true, i1 true>,<4 x i32>  %a,<4 x i32>  %b ;
> 	ret<4 x i32>  %res
> }
>
> gives :
>
> UNREACHABLE executed!
...
> Is it a known problem?

Yes, vectors of boolean are not supported by the code generators.
See http://llvm.org/bugs/show_bug.cgi?id=1784

Ciao,

Duncan.



More information about the llvm-dev mailing list