summaryrefslogtreecommitdiff
path: root/validat1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-14 23:12:39 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-14 23:12:39 -0500
commit505c58acc1f683024c24354397b6cc768cb0a240 (patch)
treedb2d21f2d594dc57b86905e4dace5363083ca76b /validat1.cpp
parentfa8e692d840380a9c1c78bd8146dd73c2740f10e (diff)
downloadcryptopp-git-505c58acc1f683024c24354397b6cc768cb0a240.tar.gz
Add Octet suffix for vec_sld
We need to make room for packed shifts and rotates
Diffstat (limited to 'validat1.cpp')
-rw-r--r--validat1.cpp10
1 files changed, 5 insertions, 5 deletions
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);