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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2005 22:49:59 -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 pinskia at gcc dot gnu dot org 2005-03-28 22:49 -------
(In reply to comment #6)
> 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)
Well considering x86_64 uses the sse register math by default and not x87, I really doubt that it would
be effect that. I would try it on a sane target first like say PPC where you have no excusive precission.
Oh the reason is because one checks before the precission is truncated and the next one is after. Look
at the example of 323 to give you an idea where this can happen.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20674