[FFmpeg-cvslog] r19536 - trunk/libavutil/ppc/intreadwrite.h

mru subversion
Wed Jul 29 21:06:55 CEST 2009


Author: mru
Date: Wed Jul 29 21:06:55 2009
New Revision: 19536

Log:
PPC: fix asm operand constraints in AV_RL64

The target register of first word loaded must be marked early-clobber.

Modified:
   trunk/libavutil/ppc/intreadwrite.h

Modified: trunk/libavutil/ppc/intreadwrite.h
==============================================================================
--- trunk/libavutil/ppc/intreadwrite.h	Wed Jul 29 19:12:47 2009	(r19535)
+++ trunk/libavutil/ppc/intreadwrite.h	Wed Jul 29 21:06:55 2009	(r19536)
@@ -78,7 +78,7 @@ static inline uint64_t AV_RL64(const voi
     union { uint64_t v; uint32_t hl[2]; } v;
     __asm__ ("lwbrx   %0, %y2  \n\t"
              "lwbrx   %1, %y3  \n\t"
-             : "=r"(v.hl[1]), "=r"(v.hl[0])
+             : "=&r"(v.hl[1]), "=r"(v.hl[0])
              : "Z"(*(const uint32_t*)p), "Z"(*((const uint32_t*)p+1)));
     return v.v;
 }



More information about the ffmpeg-cvslog mailing list