Hi,

On Thu, Feb 2, 2012 at 10:57 AM, Ronald S. Bultje <[email protected]> wrote:
> From: "Ronald S. Bultje" <[email protected]>
>
> This will be useful to test more aggressively for failures to mark XMM
> registers as clobbered in Win64 builds, and prevent regressions thereof.
>
> Based on a patch by Ramiro Polla <[email protected]>
> ---
>  configure                   |   14 +++++++
>  libavcodec/x86/Makefile     |    1 +
>  libavcodec/x86/w64xmmtest.c |   84 ++++++++++++++++++++++++++++++++++++++++++
>  libavutil/x86/w64xmmtest.h  |   85 
> +++++++++++++++++++++++++++++++++++++++++++
>  libswscale/Makefile         |    2 +
>  libswscale/x86/w64xmmtest.c |   35 ++++++++++++++++++
>  6 files changed, 221 insertions(+), 0 deletions(-)
>  create mode 100644 libavcodec/x86/w64xmmtest.c
>  create mode 100644 libavutil/x86/w64xmmtest.h
>  create mode 100644 libswscale/x86/w64xmmtest.c

Typical output of this (this is on Unix64, so it actually aborts right away):

[swscaler @ 0x101843000] XMM REGS CLOBBERED IN sws_scale!
[swscaler @ 0x101843000] xmm6[pre ] = 0727a6c15b7aa8c17138a8c198dea5c1
[swscaler @ 0x101843000] xmm6[post] = 00000000000000000000000000000000
[swscaler @ 0x101843000] xmm8[pre ] = 00000000000000000000000000000000
[swscaler @ 0x101843000] xmm8[post] = 00000400000004000000040000000400
[swscaler @ 0x101843000] xmm9[pre ] = 00000000000000000000000000000000
[swscaler @ 0x101843000] xmm9[post] = 00000400000004000000040000000400

Which is IMO exactly what we want.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to