[libav-devel] [PATCH 1/1] x86: checkasm: check for or handle missing cleanup after MMX instructions

Luca Barbato lu_zero at gentoo.org
Thu Dec 17 15:36:28 CET 2015


On 11/12/15 18:40, Janne Grunau wrote:
> 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.
> ---
>  tests/checkasm/checkasm.h       | 16 ++++++++-
>  tests/checkasm/h264pred.c       |  8 ++---
>  tests/checkasm/h264qpel.c       |  2 +-
>  tests/checkasm/x86/checkasm.asm | 78 ++++++++++++++++++++++++++++++-----------
>  4 files changed, 78 insertions(+), 26 deletions(-)
> 

I do not see anything glaringly wrong.

lu



More information about the libav-devel mailing list