[FFmpeg-devel] [PATCH 12/14] [inline assembly] add xmm clobbers to lpc

frederic.recoules at univ-grenoble-alpes.fr frederic.recoules at univ-grenoble-alpes.fr
Sun Apr 26 22:44:22 EEST 2020


From: Frédéric Recoules <frederic.recoules at orange.fr>

---
 libavcodec/x86/lpc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/x86/lpc.c b/libavcodec/x86/lpc.c
index 6c72e21bac..6789027277 100644
--- a/libavcodec/x86/lpc.c
+++ b/libavcodec/x86/lpc.c
@@ -118,7 +118,8 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
                 :"+&r"(i)
                 :"r"(autoc+j), "r"(data+len), "r"(data+len-j)
                  NAMED_CONSTRAINTS_ARRAY_ADD(pd_1)
-                :"memory"
+                :"memory" XMM_CLOBBERS(, "%xmm0", "%xmm1", "%xmm2",
+				       "%xmm3", "%xmm4", "%xmm5")
             );
         } else {
             __asm__ volatile(
@@ -142,6 +143,7 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
                 :"+&r"(i), "=m"(autoc[j]), "=m"(autoc[j+1])
                 :"r"(data+len), "r"(data+len-j)
                  NAMED_CONSTRAINTS_ARRAY_ADD(pd_1)
+		 XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm3", "%xmm4")
             );
         }
     }
-- 
2.17.1



More information about the ffmpeg-devel mailing list