diff mbox series

[FFmpeg-devel,07/14,inline,assembly] add memory in fdct.c

Message ID 20200422174918.7290-7-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/fdct.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/x86/fdct.c b/libavcodec/x86/fdct.c
index 2635d58cbf..975e5e7769 100644
--- a/libavcodec/x86/fdct.c
+++ b/libavcodec/x86/fdct.c
@@ -370,7 +370,7 @@  static av_always_inline void fdct_col_##cpu(const int16_t *in, int16_t *out, int
         : \
         : "r" (in  + offset), "r" (fdct_tg_all_16), "r" (fdct_one_corr), \
           "r" (out + offset), "r" (ocos_4_16) \
-	MM##_CLOBBERS_ONLY(#mm"0", #mm"1", #mm"2", #mm"3", \
+	: "memory" MM##_CLOBBERS(, #mm"0", #mm"1", #mm"2", #mm"3",	\
 			   #mm"4", #mm"5", #mm"6", #mm"7") );	\
 }
 
@@ -437,7 +437,7 @@  static av_always_inline void fdct_row_sse2(const int16_t *in, int16_t *out)
         :
         : "r" (in), "r" (tab_frw_01234567_sse2.tab_frw_01234567_sse2),
           "r" (fdct_r_row_sse2.fdct_r_row_sse2), "i" (SHIFT_FRW_ROW), "r" (out)
-          XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+        : "memory" XMM_CLOBBERS(, "%xmm0", "%xmm1", "%xmm2", "%xmm3",
                             "%xmm4", "%xmm5", "%xmm6", "%xmm7")
     );
 }
@@ -487,7 +487,7 @@  static av_always_inline void fdct_row_mmxext(const int16_t *in, int16_t *out,
         "movq      %%mm7, 8(%3) \n\t"
         :
         : "r" (in), "r" (table), "r" (fdct_r_row), "r" (out)
-	  MMX_CLOBBERS_ONLY("%mm0", "%mm1", "%mm2", "%mm3",
+	: "memory" MMX_CLOBBERS(, "%mm0", "%mm1", "%mm2", "%mm3",
                             "%mm4", "%mm5", "%mm6", "%mm7") );
 }
 
@@ -540,7 +540,7 @@  static av_always_inline void fdct_row_mmx(const int16_t *in, int16_t *out, const
         "movq      %%mm7, 8(%3) \n\t"
         :
         : "r" (in), "r" (table), "r" (fdct_r_row), "r" (out)
-	  MMX_CLOBBERS_ONLY("%mm0", "%mm1", "%mm2", "%mm3",
+	: "memory" MMX_CLOBBERS(, "%mm0", "%mm1", "%mm2", "%mm3",
                             "%mm4", "%mm5", "%mm6", "%mm7") );
 }