Go to the documentation of this file.
30 #define storexmmregs(mem) \
32 "movups %%xmm6 , 0x00(%0)\n\t" \
33 "movups %%xmm7 , 0x10(%0)\n\t" \
34 "movups %%xmm8 , 0x20(%0)\n\t" \
35 "movups %%xmm9 , 0x30(%0)\n\t" \
36 "movups %%xmm10, 0x40(%0)\n\t" \
37 "movups %%xmm11, 0x50(%0)\n\t" \
38 "movups %%xmm12, 0x60(%0)\n\t" \
39 "movups %%xmm13, 0x70(%0)\n\t" \
40 "movups %%xmm14, 0x80(%0)\n\t" \
41 "movups %%xmm15, 0x90(%0)\n\t" \
42 :: "r"(mem) : "memory")
44 #define testxmmclobbers(func, ctx, ...) \
45 uint64_t xmm[2][10][2]; \
47 storexmmregs(xmm[0]); \
48 ret = __real_ ## func(ctx, __VA_ARGS__); \
49 storexmmregs(xmm[1]); \
50 if (memcmp(xmm[0], xmm[1], sizeof(xmm[0]))) { \
52 av_log(ctx, AV_LOG_ERROR, \
53 "XMM REGS CLOBBERED IN %s!\n", #func); \
54 for (i = 0; i < 10; i ++) \
55 if (xmm[0][i][0] != xmm[1][i][0] || \
56 xmm[0][i][1] != xmm[1][i][1]) { \
57 av_log(ctx, AV_LOG_ERROR, \
58 "xmm%-2d = %016"PRIx64"%016"PRIx64"\n", \
59 6 + i, av_bswap64(xmm[0][i][0]), \
60 av_bswap64(xmm[0][i][1])); \
61 av_log(ctx, AV_LOG_ERROR, \
62 " -> %016"PRIx64"%016"PRIx64"\n", \
63 av_bswap64(xmm[1][i][0]), \
64 av_bswap64(xmm[1][i][1])); \
71 int __real_ ## func; \
72 int __wrap_ ## func; \