diff mbox series

[FFmpeg-devel,10/14,inline,assembly] add xmm clobbers to mpegaudiodsp

Message ID 20200422174918.7290-10-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/mpegaudiodsp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/x86/mpegaudiodsp.c b/libavcodec/x86/mpegaudiodsp.c
index f46a5c4f3d..10b9e814d5 100644
--- a/libavcodec/x86/mpegaudiodsp.c
+++ b/libavcodec/x86/mpegaudiodsp.c
@@ -103,6 +103,7 @@  static void apply_window(const float *buf, const float *win1,
             "jl              1b                   \n\t"
             :"+&r"(count)
             :"r"(win1a), "r"(win2a), "r"(bufa), "r"(sum1a), "r"(sum2a)
+	     XMM_CLOBBERS_ONLY("xmm0", "xmm1", "xmm2", "xmm4")
             );
 
 #undef MULT
@@ -137,7 +138,7 @@  static void apply_window_mp3(float *in, float *win, int *unused, float *out,
             "movaps   %%xmm2,  96(%1) \n\t" \
             "movaps   %%xmm3, 112(%1) \n\t"
             ::"r"(in), "r"(in+512)
-            :"memory"
+            :"memory" XMM_CLOBBERS(, "xmm0", "xmm1", "xmm2", "xmm3")
             );
 
     apply_window(in + 16, win     , win + 512, suma, sumc, 16);
@@ -169,7 +170,7 @@  static void apply_window_mp3(float *in, float *win, int *unused, float *out,
 
             :"+&r"(out)
             :"r"(&suma[0]), "r"(&sumb[0]), "r"(&sumc[0]), "r"(&sumd[0])
-            :"memory"
+            :"memory" XMM_CLOBBERS(, "xmm0")
             );
         out += 16*incr;
     } else {