harmonise syntax of x86 SuperVector impl.cpp like arm, fix alignr, define printv_* functions when on debug mode only

This commit is contained in:
Konstantinos Margaritis
2021-07-02 19:53:37 +03:00
committed by Konstantinos Margaritis
parent 9de3065e68
commit 28b2949396
3 changed files with 125 additions and 144 deletions

View File

@@ -301,11 +301,11 @@ TEST(SuperVectorUtilsTest,pshufbc) {
}
/*Define ALIGNR128 macro*/
#define TEST_ALIGNR128(v1, v2, buf, l) { \
auto v_aligned = v2.alignr(v1, l); \
for (size_t i=0; i<16; i++) { \
ASSERT_EQ(v_aligned.u.u8[i], vec[16 - l + i]); \
} \
#define TEST_ALIGNR128(v1, v2, buf, l) { \
auto v_aligned = v2.alignr(v1, l); \
for (size_t i=0; i<16; i++) { \
ASSERT_EQ(v_aligned.u.u8[i], vec[i + l]); \
} \
}
TEST(SuperVectorUtilsTest,Alignr128c){