summaryrefslogtreecommitdiff
path: root/TestPrograms/test_ppc_power7.cxx
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-24 16:48:40 -0400
committerGitHub <noreply@github.com>2019-10-24 16:48:40 -0400
commitc363e439689ce1ece0950c5ae95830ff435c0b77 (patch)
treee6e61ef33cbd0bb1fbdc9031d14829e8f3132997 /TestPrograms/test_ppc_power7.cxx
parent670ceb19a25630d8e18265d081c922af3ea5998e (diff)
downloadcryptopp-git-c363e439689ce1ece0950c5ae95830ff435c0b77.tar.gz
More Clang and XLC workarounds (PR #904)
I think this is the final set. Clang 3.8 is OK on Ubuntu Xenial. XLC 11.0 is OK on Power 7. Clang 3.4 crashes on gcc110.fsffrance.org, but it looks like another compiler bug. I'm not spending time trying to work around it. Clang sucks days of your life at times...
Diffstat (limited to 'TestPrograms/test_ppc_power7.cxx')
-rw-r--r--TestPrograms/test_ppc_power7.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/TestPrograms/test_ppc_power7.cxx b/TestPrograms/test_ppc_power7.cxx
index e7dd9901..888a3e39 100644
--- a/TestPrograms/test_ppc_power7.cxx
+++ b/TestPrograms/test_ppc_power7.cxx
@@ -11,10 +11,10 @@ int main(int argc, char* argv[])
__vector unsigned int b = vec_ld(0, (unsigned int*)argv[0]);
__vector unsigned int c = vec_xor(a, b);
+# if defined(__VSX__)
__vector unsigned int x = {5,6,7,8};
__vector unsigned int y = vec_xl(0, (unsigned int*)argv[0]);
__vector unsigned int z = vec_xor(x, y);
-# if defined(__VSX__)
__vector unsigned long long xx = {1,2};
__vector unsigned long long yy = (__vector unsigned long long)y;
# endif