This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20674] unexpected result from floating compare
- From: "piaget at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2005 22:44:18 -0000
- Subject: [Bug middle-end/20674] unexpected result from floating compare
- References: <20050328215100.20674.piaget@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From piaget at us dot ibm dot com 2005-03-28 22:44 -------
I tried this on a 64-bit system, and noticed I needed to compile -m32 to get
the error (this was on an older gcc level, though. 3.2.3)
I don't understand how this can be a precision problem. How can both if checks
be true?
val <= 1.0
and
val > 1.0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20674