Crash with llc and vector code

Message: 11
Date: Fri, 22 Oct 2010 16:23:36 +0200
From: Duncan Sands <baldrick@free.fr>
Subject: Re: [LLVMdev] Crash with llc and vector code
To: llvmdev@cs.uiuc.edu
Message-ID: <4CC19E68.3000004@free.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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 1784 – vectors of i1 and vectors x86 long double don't work

Ciao,

Duncan.

An idea when it will be fixed?

Thanks

Stéphane Letz

An idea when it will be fixed?

No, sorry. I don't have time to work on this (and won't for the next
few months at least) for example.

Ciao,

Duncan.