Nicholas Nethercote 9f2118c217 Fix this regression test to account for the fact that FP regs are now
checked for definedness errors lazily, just like integer regs.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3084
2004-11-23 17:19:53 +00:00

27 lines
427 B
C

#include <stdlib.h>
int main ( void )
{
volatile double d;
volatile float f;
double* dp = malloc(sizeof(double));
float* fp = malloc(sizeof(float));
int* ip = (int*)0x1234567;
d += 1.0;
f += 10.0;
*dp += ( d ? 2.0 : 3.0 );
*fp += ( f ? 20.0 : 21.0 );
free(dp);
free(fp);
*dp += 3.0;
*fp += 30.0;
free(ip);
ip = malloc(sizeof(int));
* ((double*)ip) = 1.2 + d;
return 0;
}