summaryrefslogtreecommitdiff
path: root/TestPrograms
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-04-04 21:07:01 -0400
committerJeffrey Walton <noloader@gmail.com>2020-04-04 21:07:01 -0400
commit69823b8ad19779e174e5cf7f0c6018799635d25a (patch)
tree05d0b9df808ecfb6559b200d6924c5094afc9f4f /TestPrograms
parente9f40e909ceb3c1e0ff8a5b3bc555942e1273a66 (diff)
downloadcryptopp-git-69823b8ad19779e174e5cf7f0c6018799635d25a.tar.gz
Update test_ppc_power7.cxx test
Diffstat (limited to 'TestPrograms')
-rw-r--r--TestPrograms/test_ppc_power7.cxx23
1 files changed, 1 insertions, 22 deletions
diff --git a/TestPrograms/test_ppc_power7.cxx b/TestPrograms/test_ppc_power7.cxx
index 6d40f143..d6c568d0 100644
--- a/TestPrograms/test_ppc_power7.cxx
+++ b/TestPrograms/test_ppc_power7.cxx
@@ -11,31 +11,10 @@
# define __VSX__ 1
#endif
-// XL C++ v12 on AIX uses vec_xlw4 and vec_xstw4,
-// http://www.ibm.com/support/docview.wss?uid=swg27024210.
-// This define must stay in sync with the define
-// in ppc_simd.h.
-#if defined(_AIX) && defined(_ARCH_PWR7) && ((__xlC__ & 0xff00) == 0x0c00)
-# define XLC_VEC_XLW4 1
-# define XLC_VEC_XSTW4 1
-#endif
-
#include <altivec.h>
int main(int argc, char* argv[])
{
-#if defined(_ARCH_PWR7) && defined(XLC_VEC_XLW4)
- // PWR7
- __vector unsigned int a = {1,2,3,4};
- __vector unsigned int b = vec_ld(0, (unsigned int*)argv[0]);
- __vector unsigned int c = vec_xor(a, b);
-
- // VSX
- __vector unsigned int x = {5,6,7,8};
- __vector unsigned int y = vec_xlw4(0, (unsigned int*)argv[0]);
- __vector unsigned int z = vec_xor(x, y);
- __vector unsigned long long xx = {1,2};
- __vector unsigned long long yy = (__vector unsigned long long)y;
-#elif defined(_ARCH_PWR7) && defined(__VSX__)
+#if defined(_ARCH_PWR7) && defined(__VSX__)
// PWR7
__vector unsigned int a = {1,2,3,4};
__vector unsigned int b = vec_ld(0, (unsigned int*)argv[0]);