# HG changeset patch # User michael # Date 1206023069 0 # Node ID 713c4fd84e0b7826bd7d20c7798ef55f53a37bf8 # Parent 33ac9c5524cc6bf56c7241923a6c423c28fe8140 Hardcode register to prevent aparent miscompilation. Fixes regression tests with gcc 2.95. diff -r 33ac9c5524cc -r 713c4fd84e0b i386/dsputil_mmx.c --- a/i386/dsputil_mmx.c Thu Mar 20 14:09:31 2008 +0000 +++ b/i386/dsputil_mmx.c Thu Mar 20 14:24:29 2008 +0000 @@ -994,7 +994,7 @@ "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 @@ "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"\ );\