diff mbox series

[FFmpeg-devel,5/6] checkasm/vvc_mc: Don't use declare_func_emms

Message ID AS8P250MB0744816FCB9F4CD0F69F01DD8F582@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit cfe21a66e20fa29543bd2e283bfe985066cd739d
Headers show
Series [FFmpeg-devel,1/6] avcodec/aacenc: Move initializing DSP out of aacenc.c | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 28, 2024, 4:18 p.m. UTC
There is no MMX DSP code for VVC, so one can use the stricter
declare_func which also tests that we are not in MMX mode
at the end of this function.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/checkasm/vvc_mc.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c
index 8adb00573f..ce34965b7d 100644
--- a/tests/checkasm/vvc_mc.c
+++ b/tests/checkasm/vvc_mc.c
@@ -74,7 +74,7 @@  static void check_put_vvc_luma(void)
     LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]);
     VVCDSPContext c;
 
-    declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride,
+    declare_func(void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride,
         const int height, const int8_t *hf, const int8_t *vf, const int width);
 
     for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) {
@@ -122,7 +122,7 @@  static void check_put_vvc_luma_uni(void)
     LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]);
 
     VVCDSPContext c;
-    declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dststride,
+    declare_func(void, uint8_t *dst, ptrdiff_t dststride,
         uint8_t *src, ptrdiff_t srcstride,  int height, const int8_t *hf, const int8_t *vf, int width);
 
     for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) {
@@ -172,7 +172,7 @@  static void check_put_vvc_chroma(void)
     LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]);
     VVCDSPContext c;
 
-    declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride,
+    declare_func(void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride,
         const int height, const int8_t *hf, const int8_t *vf, const int width);
 
     for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) {
@@ -220,7 +220,7 @@  static void check_put_vvc_chroma_uni(void)
     LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]);
 
     VVCDSPContext c;
-    declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dststride,
+    declare_func(void, uint8_t *dst, ptrdiff_t dststride,
         uint8_t *src, ptrdiff_t srcstride,  int height, const int8_t *hf, const int8_t *vf, int width);
 
     for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) {
@@ -282,7 +282,7 @@  static void check_avg(void)
         for (int h = 2; h <= MAX_CTU_SIZE; h *= 2) {
             for (int w = 2; w <= MAX_CTU_SIZE; w *= 2) {
                 {
-                   declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dst_stride,
+                   declare_func(void, uint8_t *dst, ptrdiff_t dst_stride,
                         const int16_t *src0, const int16_t *src1, int width, int height);
                     if (check_func(c.inter.avg, "avg_%d_%dx%d", bit_depth, w, h)) {
                         memset(dst0, 0, AVG_DST_BUF_SIZE);
@@ -296,7 +296,7 @@  static void check_avg(void)
                     }
                 }
                 {
-                    declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dst_stride,
+                    declare_func(void, uint8_t *dst, ptrdiff_t dst_stride,
                         const int16_t *src0, const int16_t *src1, int width, int height,
                         int denom, int w0, int w1, int o0, int o1);
                     {