mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
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
This commit is contained in:
parent
18b55f639a
commit
b6ec1f47c7
@ -78,7 +78,7 @@ static inline uint64_t AV_RL64(const void *p)
|
|||||||
union { uint64_t v; uint32_t hl[2]; } v;
|
union { uint64_t v; uint32_t hl[2]; } v;
|
||||||
__asm__ ("lwbrx %0, %y2 \n\t"
|
__asm__ ("lwbrx %0, %y2 \n\t"
|
||||||
"lwbrx %1, %y3 \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)));
|
: "Z"(*(const uint32_t*)p), "Z"(*((const uint32_t*)p+1)));
|
||||||
return v.v;
|
return v.v;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user