From 505c58acc1f683024c24354397b6cc768cb0a240 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 14 Nov 2018 23:12:39 -0500 Subject: Add Octet suffix for vec_sld We need to make room for packed shifts and rotates --- validat1.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'validat1.cpp') diff --git a/validat1.cpp b/validat1.cpp index 2226a344..cb32dad6 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -1143,7 +1143,7 @@ bool TestAltivecOps() uint8x16_p val = {0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff}; - pass2 = (VectorEqual(val, VectorShiftLeft<0>(val))) && pass2; + pass2 = (VectorEqual(val, VectorShiftLeftOctet<0>(val))) && pass2; CRYPTOPP_ASSERT(pass2); pass2 = (VectorEqual(val, VectorShiftRight<0>(val))) && pass2; CRYPTOPP_ASSERT(pass2); @@ -1153,7 +1153,7 @@ bool TestAltivecOps() uint8x16_p rsh1 = {0x00,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff}; - pass2 = (VectorEqual(lsh1, VectorShiftLeft<1>(val))) && pass2; + pass2 = (VectorEqual(lsh1, VectorShiftLeftOctet<1>(val))) && pass2; CRYPTOPP_ASSERT(pass2); pass2 = (VectorEqual(rsh1, VectorShiftRight<1>(val))) && pass2; CRYPTOPP_ASSERT(pass2); @@ -1163,7 +1163,7 @@ bool TestAltivecOps() uint8x16_p rsh15 = {0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0xff}; - pass2 = (VectorEqual(lsh15, VectorShiftLeft<15>(val))) && pass2; + pass2 = (VectorEqual(lsh15, VectorShiftLeftOctet<15>(val))) && pass2; CRYPTOPP_ASSERT(pass2); pass2 = (VectorEqual(rsh15, VectorShiftRight<15>(val))) && pass2; CRYPTOPP_ASSERT(pass2); @@ -1173,7 +1173,7 @@ bool TestAltivecOps() uint8x16_p rsh16 = {0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00}; - pass2 = (VectorEqual(lsh16, VectorShiftLeft<16>(val))) && pass2; + pass2 = (VectorEqual(lsh16, VectorShiftLeftOctet<16>(val))) && pass2; CRYPTOPP_ASSERT(pass2); pass2 = (VectorEqual(rsh16, VectorShiftRight<16>(val))) && pass2; CRYPTOPP_ASSERT(pass2); @@ -1199,7 +1199,7 @@ bool TestAltivecOps() pass3 = VectorEqual(ex3, VectorGetHigh(ex1)) && pass3; CRYPTOPP_ASSERT(pass3); - uint8x16_p ex4 = VectorShiftRight<8>(VectorShiftLeft<8>(ex1)); + uint8x16_p ex4 = VectorShiftRight<8>(VectorShiftLeftOctet<8>(ex1)); pass3 = VectorEqual(ex4, VectorGetLow(ex1)) && pass3; CRYPTOPP_ASSERT(pass3); uint8x16_p ex5 = VectorShiftRight<8>(ex1); -- cgit v1.2.1