]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
tiny change in vector initialization
authorKonstantinos Margaritis <markos@freevec.org>
Mon, 12 Jul 2021 17:57:44 +0000 (20:57 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
unit/internal/supervector.cpp

index 3094ab47daa9abbdd7b41cca62089a2099ee1dc6..d2d5a005940934bab5e3a6f5719185a281611d66 100644 (file)
@@ -201,7 +201,7 @@ TEST(SuperVectorUtilsTest,Eqmask128c){
                                        }
 
 TEST(SuperVectorUtilsTest,LShift128c){
-    u8 vec[16] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 };
+    u8 vec[16] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 };
     auto SP = SuperVector<16>::loadu(vec);
     u8 buf[16];
     TEST_LSHIFT128(buf, vec, SP, 0);
@@ -260,7 +260,7 @@ TEST(SuperVectorUtilsTest,RShift64_128c){
                                        }
 
 TEST(SuperVectorUtilsTest,RShift128c){
-    u8 vec[16] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 };
+    u8 vec[16] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 };
     auto SP = SuperVector<16>::loadu(vec);
     u8 buf[16];
     TEST_RSHIFT128(buf, vec, SP, 0);