mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-15 17:02:14 +03:00
Shuffle simd and SuperVector implementetions as well as their test realy fixed
This commit is contained in:
committed by
apostolos
parent
789f723814
commit
4f53ec6b08
@@ -286,7 +286,11 @@ TEST(SuperVectorUtilsTest,pshufb128c) {
|
||||
auto SP2 = SuperVector<16>::loadu(vec2);
|
||||
auto SResult = SP1.template pshufb<true>(SP2);
|
||||
for (int i=0; i<16; i++) {
|
||||
ASSERT_EQ(vec[vec2[i] % 16 ],SResult.u.u8[i]);
|
||||
if(vec2[i] & 0x80){
|
||||
ASSERT_EQ(SResult.u.u8[i], 0);
|
||||
}else{
|
||||
ASSERT_EQ(vec[vec2[i] % 16 ],SResult.u.u8[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user