diff mbox series

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

Message ID 20200422174918.7290-12-frederic.recoules@univ-grenoble-alpes.fr
State New
Headers show
Series [FFmpeg-devel,1/5,inline,assembly] prepares for contiguous assembly statements merging
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

FRÉDÉRIC RECOULES April 26, 2020, 7:44 p.m. UTC
From: Frédéric Recoules <frederic.recoules@orange.fr>

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

Patch

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")
             );
         }
     }