summaryrefslogtreecommitdiff
path: root/TestPrograms
diff options
context:
space:
mode:
Diffstat (limited to 'TestPrograms')
-rw-r--r--TestPrograms/test_ppc_power7.cxx2
-rw-r--r--TestPrograms/test_ppc_power8.cxx2
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);