diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-24 16:48:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 16:48:40 -0400 |
commit | c363e439689ce1ece0950c5ae95830ff435c0b77 (patch) | |
tree | e6e61ef33cbd0bb1fbdc9031d14829e8f3132997 /TestPrograms | |
parent | 670ceb19a25630d8e18265d081c922af3ea5998e (diff) | |
download | cryptopp-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')
-rw-r--r-- | TestPrograms/test_ppc_power7.cxx | 2 | ||||
-rw-r--r-- | TestPrograms/test_ppc_power8.cxx | 2 |
2 files changed, 2 insertions, 2 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
diff --git a/TestPrograms/test_ppc_power8.cxx b/TestPrograms/test_ppc_power8.cxx index ded44656..2786a422 100644 --- a/TestPrograms/test_ppc_power8.cxx +++ b/TestPrograms/test_ppc_power8.cxx @@ -8,7 +8,7 @@ int main(int argc, char* argv[]) {
#if defined(_ARCH_PWR8)
__vector unsigned long long r = {1, 2};
- __vector unsigned int s = vec_xl(0, (unsigned int*)argv[0]);
+ __vector unsigned int s = vec_xl(0, (unsigned int*)argv[0]); // Power7
__vector unsigned long long w = (__vector unsigned long long)r;
__vector unsigned long long x = (__vector unsigned long long)s;
__vector unsigned long long y = vec_xor(w, x);
|