# HG changeset patch # User mru # Date 1248894415 0 # Node ID fd032514a11310a85223b852b5e3ce24fa2835cf # Parent 22a58fc2125de5393bafcf5e59aa1956d9a3784c PPC: fix asm operand constraints in AV_RL64 The target register of first word loaded must be marked early-clobber. diff -r 22a58fc2125d -r fd032514a113 ppc/intreadwrite.h --- a/ppc/intreadwrite.h Sun Jul 26 12:20:04 2009 +0000 +++ b/ppc/intreadwrite.h Wed Jul 29 19:06:55 2009 +0000 @@ -78,7 +78,7 @@ 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; }