|
From: Jay F. <jay...@gm...> - 2010-06-28 15:40:08
|
Hi,
I'm using valgrind to test an application that makes use of the SSE
mxcsr overflow flag. valgrind doesn't appear to be modelling this flag
correctly. Is it supposed to?
Here is a test program:
$ cat o.c
int o(double x, double y) { x += y; return __builtin_ia32_stmxcsr() & 31; }
int main() { return o(1e308, 1e308); }
$ gcc -o o o.c
$ ./o ; echo $?
8
$ valgrind ./o ; echo $?
==30416== Memcheck, a memory error detector
...
==30416== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
0
I'm running:
$ valgrind --version
valgrind-3.6.0.SVN-Debian
$ uname -a
Linux Jay-Laptop 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57
UTC 2010 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
...
Thanks,
Jay.
|