diff mbox series

[FFmpeg-devel,3/9] checkasm/audiodsp: Be strict about MMX

Message ID GV1P250MB07374DD2C3BA0AD94479A03E8F5E9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 42921190cbe2aedcecf1829b6d3bf8f9c80bfe42
Headers show
Series [FFmpeg-devel,1/9] checkasm/vc1dsp: Use declare_func_emms only when needed | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 8, 2022, 1:24 a.m. UTC
There is no MMX code for audiodsp after commit
3d716d38abdae1982e84e30becb57458244656bd, so use declare_func
instead of declare_func_emms() to also test that we are not
in MMX mode after return.

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

Patch

diff --git a/tests/checkasm/audiodsp.c b/tests/checkasm/audiodsp.c
index d3a5604299..7980b550d2 100644
--- a/tests/checkasm/audiodsp.c
+++ b/tests/checkasm/audiodsp.c
@@ -61,7 +61,7 @@  void checkasm_check_audiodsp(void)
         unsigned int len_bits_minus4, v1_bits, v2_bits, len;
         int32_t res0, res1;
 
-        declare_func_emms(AV_CPU_FLAG_MMX, int32_t, const int16_t *v1, const int16_t *v2, int len);
+        declare_func(int32_t, const int16_t *v1, const int16_t *v2, int len);
 
         // generate random 5-12bit vector length
         len_bits_minus4 = rnd() % 8;
@@ -90,8 +90,8 @@  void checkasm_check_audiodsp(void)
         int32_t val1, val2, min, max;
         int len;
 
-        declare_func_emms(AV_CPU_FLAG_MMX, void, int32_t *dst, const int32_t *src,
-                          int32_t min, int32_t max, unsigned int len);
+        declare_func(void, int32_t *dst, const int32_t *src,
+                     int32_t min, int32_t max, unsigned int len);
 
         val1 = ((int32_t)rnd());
         val1 = FFSIGN(val1) * (val1 & ((1 << 24) - 1));
@@ -120,8 +120,8 @@  void checkasm_check_audiodsp(void)
         float val1, val2, min, max;
         int i, len;
 
-        declare_func_emms(AV_CPU_FLAG_MMX, void, float *dst, const float *src,
-                          int len, float min, float max);
+        declare_func(void, float *dst, const float *src,
+                     int len, float min, float max);
 
         val1 = (float)rnd() / (UINT_MAX >> 1) - 1.0f;
         val2 = (float)rnd() / (UINT_MAX >> 1) - 1.0f;