AVX-512: simpyfied BUILD_VECTOR for masks; fixed cmp/test sequence