[FFmpeg-devel] [PATCH 1/5] x86 inline assembly compliance

Michael Niedermayer michael at niedermayer.cc
Wed Apr 22 19:03:12 EEST 2020


On Sat, Apr 04, 2020 at 12:32:13PM +0200, FRÉDÉRIC RECOULES wrote:
> [inline assembly] prepares for contiguous assembly statements merging 
> 
> --- 
> libavcodec/x86/inline_asm.h | 29 +++++++++++++++++------------ 
> 1 file changed, 17 insertions(+), 12 deletions(-) 
> 
> diff --git a/libavcodec/x86/inline_asm.h b/libavcodec/x86/inline_asm.h 
> index 0198746719..6ead73ac33 100644 
> --- a/libavcodec/x86/inline_asm.h 
> +++ b/libavcodec/x86/inline_asm.h 
> @@ -23,13 +23,15 @@ 
> 
> #include "constants.h" 
> 
> -#define MOVQ_WONE(regd) \ 
> - __asm__ volatile ( \ 
> - "pcmpeqd %%" #regd ", %%" #regd " \n\t" \ 
> - "psrlw $15, %%" #regd ::) 
> +#define MOVQ_WONE_TPL(regd) \ 
> + "pcmpeqd %%"#regd", %%"#regd" \n\t" \ 
> + "psrlw $15, %%" #regd" \n\t" 
> +#define MOVQ_WONE(regd) __asm__ volatile (MOVQ_WONE_TPL(regd) ::) 
> 
> #define JUMPALIGN() __asm__ volatile (".p2align 3"::) 
> -#define MOVQ_ZERO(regd) __asm__ volatile ("pxor %%"#regd", %%"#regd ::) 
> + 
> +#define MOVQ_ZERO_TPL(regd) "pxor %%"#regd", %%"#regd" \n\t" 
> +#define MOVQ_ZERO(regd) __asm__ volatile (MOVQ_ZERO_TPL(regd) ::) 

this is not a valid patch and cannot be applied

Applying: x86 inline assembly compliance
error: corrupt patch at line 11
error: could not build fake ancestor
Patch failed at 0001 x86 inline assembly compliance
Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".



[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200422/cf312088/attachment.sig>


More information about the ffmpeg-devel mailing list