drd/tests/Makefile.am: Use -faligned-new for C++ code if supported
[valgrind.git] / VEX / test / fstenv.c
blob331714dcfd1886dbd67123124b503125dcd4a994
2 #include <stdio.h>
3 #include <stdlib.h>
5 void do_fstenv ( void* p )
7 asm("fldpi ; fld1; fldln2 ; movl 8(%esp), %eax ; fstenv (%eax)");
10 int main ( void )
12 int i;
13 unsigned int* buf = malloc(7*sizeof(int));
14 do_fstenv(buf);
15 for (i = 0; i < 7; i++) {
16 printf("%08x ", buf[i]);
17 if (i > 0 && ((i % 6) == 5))
18 printf("\n");
20 printf("\n");
21 return 0;