checkasm: Issue emms after benchmarking functions
authorMartin Storsjö <martin@martin.st>
Tue, 21 Jun 2016 11:00:01 +0000 (14:00 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 21 Jun 2016 19:09:29 +0000 (22:09 +0300)
commitdc7501e524dc3270335749302c7aa449973625f3
treebeff91ee1499c86560870380b8d5758c0ae5066a
parentbeb62dac629603eb074a44c44389c230b5caac7c
checkasm: Issue emms after benchmarking functions

The functions may not clean up properly after using MMX
registers. For the normal testing calls, the checkasm_checked_call
functions will do the cleanup (and check that functions that
should clean up do it as well), but when benchmarking functions
that don't clean up, we don't currently properly clean up at all.

This causes issues if a benchmarked function is followed by testing
of a function that is supposed to not clobber the MMX/FPU state but
doesn't touch it at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
tests/checkasm/checkasm.h