commit | 43bfaee64fc5df79a77b35c154459826c947209d | [log] [tgz] |
---|---|---|
author | jseward <jseward@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Tue Jul 20 11:42:24 2004 +0000 |
committer | jseward <jseward@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Tue Jul 20 11:42:24 2004 +0000 |
tree | 478b943c1c73b7ae0a6abe0193ff8734e3f0eb13 | |
parent | e83a37f43ca93e123a3f7ecce133f385df2a2d78 [diff] |
gcc sometimes generates "sbbl %reg,%reg" to convert the carry flag into 0 or -1 in reg. This has no actual dependency on reg, but memcheck can't see that, and so will yelp if reg contains garbage. A simple fix is to put zero into reg before we start, zapping any undefinedness it might otherwise contain. Hopefully fixes #84978 (unconfirmed) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2512 a5019735-40e9-0310-863c-91ae7b9d1cf9