ARM: first value loaded in AV_RN64 needs to be early-clobber
authorMåns Rullgård <mans@mansr.com>
Sun, 16 Aug 2009 15:51:50 +0000 (15:51 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 16 Aug 2009 15:51:50 +0000 (15:51 +0000)
Originally committed as revision 19656 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/arm/intreadwrite.h

index de2e553..c0172ac 100644 (file)
@@ -58,7 +58,7 @@ static inline uint64_t AV_RN64(const void *p)
     union { uint64_t v; uint32_t hl[2]; } v;
     __asm__ ("ldr   %0, %2  \n\t"
              "ldr   %1, %3  \n\t"
-             : "=r"(v.hl[0]), "=r"(v.hl[1])
+             : "=&r"(v.hl[0]), "=r"(v.hl[1])
              : "m"(*(const uint32_t*)p), "m"(*((const uint32_t*)p+1)));
     return v.v;
 }