aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/h264qpel.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2015-12-11 14:06:38 +0100
committerJanne Grunau <janne-libav@jannau.net>2015-12-21 17:40:18 +0100
commit711781d7a1714ea4eb0217eb1ba04811978c43d1 (patch)
tree61c7061012c47856da343be6bedee4f5f0784ccd /tests/checkasm/h264qpel.c
parentcc29d96d5a379dbcf2649947d884c202c2a52767 (diff)
downloadffmpeg-711781d7a1714ea4eb0217eb1ba04811978c43d1.tar.gz
x86: checkasm: check for or handle missing cleanup after MMX instructions
Not every asm routine is expected clear the MMX state after returning. It is however a requisite for testing floating point code in checkasm. Annotate functions requiring cleanup with declare_func_emms() and issue emms after the call. The remaining functions are checked for having a cleared MMX state after return.
Diffstat (limited to 'tests/checkasm/h264qpel.c')
-rw-r--r--tests/checkasm/h264qpel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/h264qpel.c b/tests/checkasm/h264qpel.c
index 27bcc97cfc..d92f223ba1 100644
--- a/tests/checkasm/h264qpel.c
+++ b/tests/checkasm/h264qpel.c
@@ -55,7 +55,7 @@ void checkasm_check_h264qpel(void)
LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]);
H264QpelContext h;
int op, bit_depth, i, j;
- declare_func(void, uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
+ declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, const uint8_t *src, ptrdiff_t stride);
for (op = 0; op < 2; op++) {
qpel_mc_func (*tab)[16] = op ? h.avg_h264_qpel_pixels_tab : h.put_h264_qpel_pixels_tab;