From 39418a85122fa7954cca6354be30a44d6335874e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 27 Apr 2019 20:35:01 -0400 Subject: Use PowerPC unaligned loads and stores with Power8 (GH #825, PR #826) Use PowerPC unaligned loads and stores with Power8. Formerly we were using Power7 as the floor because the IBM POWER Architecture manuals said unaligned loads and stores were available. However, some compilers generate bad code for unaligned loads and stores using `-march=power7`, so bump to a known good. --- gcm_simd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcm_simd.cpp') diff --git a/gcm_simd.cpp b/gcm_simd.cpp index b2578b37..10f2b47b 100644 --- a/gcm_simd.cpp +++ b/gcm_simd.cpp @@ -569,12 +569,12 @@ void GCM_ReverseHashBufferIfNeeded_CLMUL(byte *hashBuffer) // ***************************** POWER8 ***************************** // -#if CRYPTOPP_POWER7_AVAILABLE -void GCM_Xor16_POWER7(byte *a, const byte *b, const byte *c) +#if CRYPTOPP_POWER8_AVAILABLE +void GCM_Xor16_POWER8(byte *a, const byte *b, const byte *c) { VecStore(VecXor(VecLoad(b), VecLoad(c)), a); } -#endif // CRYPTOPP_POWER7_AVAILABLE +#endif // CRYPTOPP_POWER8_AVAILABLE #if CRYPTOPP_POWER8_VMULL_AVAILABLE -- cgit v1.2.1