[FFmpeg-cvslog] r12512 - trunk/libavcodec/i386/dsputil_mmx.c

michael subversion
Thu Mar 20 15:24:29 CET 2008


Author: michael
Date: Thu Mar 20 15:24:29 2008
New Revision: 12512

Log:
Hardcode register to prevent aparent miscompilation.
Fixes regression tests with gcc 2.95.


Modified:
   trunk/libavcodec/i386/dsputil_mmx.c

Modified: trunk/libavcodec/i386/dsputil_mmx.c
==============================================================================
--- trunk/libavcodec/i386/dsputil_mmx.c	(original)
+++ trunk/libavcodec/i386/dsputil_mmx.c	Thu Mar 20 15:24:29 2008
@@ -994,7 +994,7 @@ static void OPNAME ## mpeg4_qpel16_h_low
         "add %4, %1                       \n\t"\
         "decl %2                          \n\t"\
         " jnz 1b                          \n\t"\
-        : "+a"(src), "+c"(dst), "+g"(h)\
+        : "+a"(src), "+c"(dst), "+D"(h)\
         : "d"((long)srcStride), "S"((long)dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(temp), "m"(ROUNDER)\
         : "memory"\
     );\
@@ -1105,7 +1105,7 @@ static void OPNAME ## mpeg4_qpel8_h_lowp
         "add %4, %1                       \n\t"\
         "decl %2                          \n\t"\
         " jnz 1b                          \n\t"\
-        : "+a"(src), "+c"(dst), "+g"(h)\
+        : "+a"(src), "+c"(dst), "+d"(h)\
         : "S"((long)srcStride), "D"((long)dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(ROUNDER)\
         : "memory"\
     );\




More information about the ffmpeg-cvslog mailing list