drd/tests/Makefile.am: Use -faligned-new for C++ code if supported
[valgrind.git] / VEX / test / mxcsr.c
blobcc92f54e68d13f3af46d0e651463a30f78fdc415
2 #include <stdio.h>
4 void mxcsr_default ( void )
6 asm(" pushl $0x1F80 ; ldmxcsr (%esp) ; addl $4, %esp");
9 void mxcsr_exns ( void )
11 asm(" pushl $0x1F00 ; ldmxcsr (%esp) ; addl $4, %esp");
14 /* PIII doesn't have DAZ, so this segfaults (!) on PIII. */a
15 void mxcsr_daz ( void )
17 asm(" pushl $0x1FC0 ; ldmxcsr (%esp) ; addl $4, %esp");
20 void mxcsr_fz ( void )
22 asm(" pushl $0x9F80 ; ldmxcsr (%esp) ; addl $4, %esp");
26 int main ( void )
28 printf("default\n");
29 mxcsr_default();
30 printf("\n");
32 printf("exns\n");
33 mxcsr_exns();
34 printf("\n");
36 printf("daz\n");
37 mxcsr_daz();
38 printf("\n");
40 printf("fz\n");
41 mxcsr_fz();
42 printf("\n");
44 return 0;