vec.h add vpermute , update tests
vec_test and vec_fb_test
- We have extensive tests for all methods , for various kinds of packed float and int types for both the
vectype and thevec_fbtype. - Having many test cases is good. But the single test was slow to compile.
- It also means that if a method depends on the ternary operator (which is not directly available for the
vec_fb) we might be not testing all code paths with a single version. - To make things a bit easier . Split all the common parts to
vec_test_common.hi.e copy as is the actual testing part fromvec_test.cxxthere. - Define 4 simpler
.cxx:vecvsvec_fbandfloatvsint2x2. - It does not change the amount of work to add a test for a new operation as it needs to go to the common part.
- On the actual tests to simplify things a bit tried to be more explicit on the
128 bit,256 bitvector types.
vec
Edited by Christos Anastopoulos