https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108941
--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to jbeulich from comment #9) > (In reply to Jakub Jelinek from comment #1) > > How does that look like a gcc bug? It is either a binutils bug for not > > accepting it anymore, or ffmpeg-4 bug for relying on the negative shifts. > > While I'm not sure in how far reduction from original code has discarded too Hope I haven't reduced it much, the original inline functions is defined here: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/x86/mathops.h#l124