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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/memcheck/tests/fprw.c b/memcheck/tests/fprw.c
index 556d8a0..f60038e 100644
--- a/memcheck/tests/fprw.c
+++ b/memcheck/tests/fprw.c
@@ -1,6 +1,6 @@
-/* most of the nasties in this are in the same bb, so you need to run
-with --single-step=yes to get them properly distinguished. */
+
+
#include <stdlib.h>
@@ -13,8 +13,8 @@
int* ip = (int*)0x1234567;
d += 1.0;
f += 10.0;
- *dp += 2.0;
- *fp += 20.0;
+ *dp += ( d ? 2.0 : 3.0 );
+ *fp += ( f ? 20.0 : 21.0 );
free(dp);
free(fp);
*dp += 3.0;
diff --git a/memcheck/tests/fprw.stderr.exp b/memcheck/tests/fprw.stderr.exp
index cf08269..48d6c79 100644
--- a/memcheck/tests/fprw.stderr.exp
+++ b/memcheck/tests/fprw.stderr.exp
@@ -1,13 +1,7 @@
-Use of uninitialised value of size 8
- at 0x........: main (fprw.c:14)
-
-Use of uninitialised value of size 4
- at 0x........: main (fprw.c:15)
-
-Use of uninitialised value of size 8
+Conditional jump or move depends on uninitialised value(s)
at 0x........: main (fprw.c:16)
-Use of uninitialised value of size 4
+Conditional jump or move depends on uninitialised value(s)
at 0x........: main (fprw.c:17)
Invalid read of size 8