summaryrefslogtreecommitdiffstats
path: root/libavutil/ppc
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-29 19:06:55 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-29 19:06:55 +0000
commitb6ec1f47c70fb08ba60917fdd41f5541d18ffb2e (patch)
tree8635a66b81198fe7a5642ae4b02e087318450b11 /libavutil/ppc
parent18b55f639a2949f5adcc58cc3886e920df56562b (diff)
downloadffmpeg-streaming-b6ec1f47c70fb08ba60917fdd41f5541d18ffb2e.zip
ffmpeg-streaming-b6ec1f47c70fb08ba60917fdd41f5541d18ffb2e.tar.gz
PPC: fix asm operand constraints in AV_RL64
The target register of first word loaded must be marked early-clobber. Originally committed as revision 19536 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/ppc')
-rw-r--r--libavutil/ppc/intreadwrite.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/ppc/intreadwrite.h b/libavutil/ppc/intreadwrite.h
index 7bc2b2d..1844427 100644
--- a/libavutil/ppc/intreadwrite.h
+++ b/libavutil/ppc/intreadwrite.h
@@ -78,7 +78,7 @@ static inline uint64_t AV_RL64(const void *p)
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;
}
OpenPOWER on IntegriCloud