test for movemask and shuffle cases added

This commit is contained in:
apostolos
2021-10-22 11:17:43 +03:00
parent 5abda15c26
commit b53b0a0fcd
2 changed files with 47 additions and 4 deletions

View File

@@ -45,10 +45,10 @@
static really_inline
u32 packedExtract128(m128 s, const m128 permute, const m128 compare) {
m128 shuffled = pshufb_m128(s, permute);
int8x16_t res = (int8x16_t) pshufb_m128(s, permute);
printf("shufled:");
for(int i=15; i>=0; i--) {printf("%02x ", res[i]);}
printf("\n");
//int8x16_t res = (int8x16_t) pshufb_m128(s, permute);
//printf("shufled:");
//for(int i=15; i>=0; i--) {printf("%02x ", res[i]);}
//printf("\n");
m128 compared = and128(shuffled, compare);
u16 rv = ~movemask128(eq128(compared, shuffled));
return (u32)rv;