develooper Front page | perl.perl5.porters | Postings from July 2002

Re: [ID 20020504.002] 1 == 1 but 0 != 0

Thread Previous
From:
Tony Lindgren
Date:
July 2, 2002 00:30
Subject:
Re: [ID 20020504.002] 1 == 1 but 0 != 0
Message ID:
20020702045931.GC20988@atomide.com
* Nicholas Clark <nick@unfortu.net> [020629 10:26]:
> 
> I wasn't aware of anyone getting this down to a test case.
> The problem seems to be saving a floating point register containing 0 to
> memory, and then reloading it. The same binaries give:
> 
> nick@Bagpuss [test]$ ./is_zero 
> 1
> nick@Bagpuss [test]$ ./is_one  
> 1
> nick@Bagpuss [test]$ dmesg | grep -i Floating
> NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
> 
> nick@Bagpuss [test]$ ./is_zero 
> 0
> nick@Bagpuss [test]$ ./is_one  
> 1
> nick@Bagpuss [test]$ dmesg | grep -i Floating
> Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
> 
> If I take the lfmfd out from this then it all works as expected on FastFPE

Cool! That was somewhat painful to narrow down to a test case :)

Tony

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About