]> git.sesse.net Git - ffmpeg/commitdiff
postproc/postprocess_template: Avoid using %4 for the threshold compare
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Dec 2018 21:40:05 +0000 (22:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 22 Dec 2018 16:41:44 +0000 (17:41 +0100)
This avoids problems if %4 is the stack pointer
the constraints do not allow %4 to be the stack pointer but gcc 9 may
no longer support specifying such constraints

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libpostproc/postprocess_template.c

index 0a4398926681ba4b5e6913f7cb8a8f36751a73f6..485eb5cfc0df76b38fedf13ff6a2a79402db4fec 100644 (file)
@@ -1184,10 +1184,10 @@ FIND_MIN_MAX((%0, %1, 8))
 #endif
         "movq %%mm6, %%mm0                      \n\t" // max
         "psubb %%mm7, %%mm6                     \n\t" // max - min
-        "push %4                              \n\t"
-        "movd %%mm6, %k4                        \n\t"
-        "cmpb "MANGLE(deringThreshold)", %b4    \n\t"
-        "pop %4                               \n\t"
+        "push %%"FF_REG_a"                      \n\t"
+        "movd %%mm6, %%eax                      \n\t"
+        "cmpb "MANGLE(deringThreshold)", %%al   \n\t"
+        "pop %%"FF_REG_a"                       \n\t"
         " jb 1f                                 \n\t"
         PAVGB(%%mm0, %%mm7)                           // a=(max + min)/2
         "punpcklbw %%mm7, %%mm7                 \n\t"