Displaying 1 result from an estimated 1 matches for "vectorcompare1".
Did you mean:
vectorcompare3
2008 Dec 25
2
[LLVMdev] vector compare
...he following command line:
> llvm-as test.ll -o test.bc
> llc test.bc -filetype=asm
I would expect the code generator to emit a sequence of SSE
instructions.
---------------------------------------------------------------------------------------
Approach 1
----------------
define i1 @VectorCompare1(<4 x i32> %x, <4 x i32> %y) {
%1 = icmp eq <4 x i32> %x, %y
%2 = bitcast <4 x i1> %1 to i4
%3 = icmp eq i4 %2, 0
ret i1 %3
}
This fails with:
ssertion failed: (VT.getSizeInBits() ==
Operand.getValueType().getSizeInBits() && "Cannot BIT_CO...