From 4114b8a480ea37ed058a17385b9fcd2c4f034421 Mon Sep 17 00:00:00 2001 From: apostolos Date: Wed, 10 Nov 2021 15:12:25 +0200 Subject: [PATCH] SuperVector opandnot test enriched --- unit/internal/supervector.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); + SP1 = SP1.opandnot(SP2); + for (int i=0; i<16; i++) { + ASSERT_EQ(SP1.u.u8[i],0xff); + } SP2 = SP2.opandnot(SP1); for (int i=0; i<16; i++) { - ASSERT_EQ(SP2.u.s8[i],0); - } + ASSERT_EQ(SP2.u.u8[i],0); + } } TEST(SuperVectorUtilsTest,Movemask128c){