Merge
authoraph
Mon, 27 Nov 2017 17:26:47 +0000
changeset 48129 c134a8bee21a
parent 48128 2d91c9a4f409 (current diff)
parent 48126 f2412517fa70 (diff)
child 48130 998c88ae423a
Merge
--- a/src/hotspot/os_cpu/linux_zero/os_linux_zero.hpp	Mon Nov 27 17:04:45 2017 +0000
+++ b/src/hotspot/os_cpu/linux_zero/os_linux_zero.hpp	Mon Nov 27 17:26:47 2017 +0000
@@ -36,12 +36,18 @@
 
   // Atomically copy 64 bits of data
   static void atomic_copy64(const volatile void *src, volatile void *dst) {
-#if defined(PPC32)
+#if defined(PPC32) && !defined(__SPE__)
     double tmp;
     asm volatile ("lfd  %0, %2\n"
                   "stfd %0, %1\n"
                   : "=&f"(tmp), "=Q"(*(volatile double*)dst)
                   : "Q"(*(volatile double*)src));
+#elif defined(PPC32) && defined(__SPE__)
+    long tmp;
+    asm volatile ("evldd  %0, %2\n"
+                  "evstdd %0, %1\n"
+                  : "=&r"(tmp), "=Q"(*(volatile long*)dst)
+                  : "Q"(*(volatile long*)src));
 #elif defined(S390) && !defined(_LP64)
     double tmp;
     asm volatile ("ld  %0, 0(%1)\n"