From: apostolos Date: Wed, 10 Nov 2021 13:12:25 +0000 (+0200) Subject: SuperVector opandnot test enriched X-Git-Tag: vectorscan/5.4.6^2~5^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4114b8a480ea37ed058a17385b9fcd2c4f034421;p=thirdparty%2Fvectorscan.git SuperVector opandnot test enriched --- diff --git a/unit/internal/supervector.cpp b/unit/internal/supervector.cpp index 9c5f8f3a..deb3b169 100644 --- a/unit/internal/supervector.cpp +++ b/unit/internal/supervector.cpp @@ -155,10 +155,14 @@ TEST(SuperVectorUtilsTest,OPXOR128c){ TEST(SuperVectorUtilsTest,OPANDNOT128c){ auto SP1 = SuperVector<16>::Zeroes(); auto SP2 = SuperVector<16>::Ones(); - SP2 = SP2.opandnot(SP1); + SP1 = SP1.opandnot(SP2); for (int i=0; i<16; i++) { - ASSERT_EQ(SP2.u.s8[i],0); + ASSERT_EQ(SP1.u.u8[i],0xff); } + SP2 = SP2.opandnot(SP1); + for (int i=0; i<16; i++) { + ASSERT_EQ(SP2.u.u8[i],0); + } } TEST(SuperVectorUtilsTest,Movemask128c){