Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / x86 / pushfw_x86.c
blob74bc6846f93d922f23b39e22bdb34cb8b5c8e8a8
2 /* Test case for http://bugs.kde.org/show_bug.cgi?id=157748 */
4 #include <stdio.h>
6 int arr[3];
8 int main ( void )
10 /* eax points at arr[0] */
11 __asm__ __volatile__(
12 "movl %%esp,0(%%eax)\n\t"
13 "pushfw\n\t"
14 "movl %%esp,4(%%eax)\n\t"
15 "popfw\n\t"
16 "movl %%esp,8(%%eax)\n"
17 : /*out*/ : /*in*/ "a"(&arr) : /*trash*/ "memory","cc"
20 printf("%x %x %x\n", arr[0]-arr[0], arr[0]-arr[1], arr[0]-arr[2]);
21 return 0;