[LLVMdev] passing vector of booleans to functions

Duncan Sands baldrick at free.fr
Tue Feb 26 05:58:55 PST 2013


Hi Roland,

On 26/02/13 14:18, Roland Leißa wrote:
> Hi Duncan,
>
> thanks for the hint. I tried both variants:
>
> define <4 x float> @masked_add_1(<4 x i1> signext %mask, <4 x float> %a, <4 x
> float> %b)
> define <4 x float> @masked_add_32(<4 x i32> %mask, <4 x float> %a, <4 x float> %b)
>
> Unfortunately, this will raise an assertion:
> Wrong types for attribute: zeroext signext noalias nocapture sret byval nest
>
>
> Should I file a bug report?

I think so.  I don't see any reason why this shouldn't be usable with vectors.

Ciao, Duncan.




More information about the llvm-dev mailing list