[Issue 365] New: Regression: Bad code generation for floating point == and !=

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Sep 29 01:19:25 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-09-24:
> http://d.puremagic.com/issues/show_bug.cgi?id=365

> NaNs are currently comparing equal to zero!
>>, >=, !<>=, etc all seem to be OK.
> -------
> void main()
> {
>     real x = real.nan;
>     assert( x!=0 );              // fails
>     if (x==0) assert(0);         // fails
> }

Added to DStress as
http://dstress.kuehne.cn/compile/o/opEquals_06_A.d
http://dstress.kuehne.cn/compile/o/opEquals_06_B.d
http://dstress.kuehne.cn/compile/o/opEquals_06_C.d
http://dstress.kuehne.cn/run/o/opEquals_06_D.d
http://dstress.kuehne.cn/run/o/opEquals_06_E.d
http://dstress.kuehne.cn/run/o/opEquals_06_F.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFHOLcLK5blCcjpWoRAjU4AJ9V52QPfPZ6S9y27DuqBxKjv1IvVQCfS6hJ
UVgj8nqZ50tE0Q3TBBJTn4Y=
=iS3i
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list