https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
--- Comment #12 from Eric Gallager ---
(In reply to Fred J. Tydeman from comment #9)
> 4.3.2-7 still has problems (even with -frounding-math).
>
> A more complete test can be found at:
> http://www.tybor.com/tflt2int.c
I get 183 failures from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
Andrew Pinski changed:
What|Removed |Added
CC||geoffk at gcc dot gnu.org
--- Comment #11
--- Comment #10 from bje at gcc dot gnu dot org 2009-05-14 03:46 ---
Still present in GCC 4.5.0 20090513.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
--- Comment #9 from tydeman at tybor dot com 2009-01-31 20:16 ---
4.3.2-7 still has problems (even with -frounding-math).
A more complete test can be found at:
http://www.tybor.com/tflt2int.c
--
tydeman at tybor dot com changed:
What|Removed |Ad
--- Comment #8 from aldot at gcc dot gnu dot org 2008-06-24 08:22 ---
It looks like several improvements were installed since then. Can somebody
perhaps retry with the 4.3 branch and trunk?
--
aldot at gcc dot gnu dot org changed:
What|Removed |Add
--- Comment #7 from janis at gcc dot gnu dot org 2006-05-30 16:59 ---
If the value doesn't fit then the result is undefined and doesn't matter;
getting the invalid flag is what's important.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
--- Comment #6 from amodra at bigpond dot net dot au 2006-05-29 02:52
---
Oh, I suppose rounding might change the result if we always subtract off
2**(n-1).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
--- Comment #5 from amodra at bigpond dot net dot au 2006-05-29 02:48
---
Note that fctidz is used because we are converting to unsigned. gcc uses
fctiwz if converting to int. Of course, it isn't correct to simply replace
fctidz with fctiwz.. To get this right, gcc would need to gene
--- Comment #4 from janis at gcc dot gnu dot org 2006-05-19 17:25 ---
This has been brought up to the glibc developers in the past:
http://sourceware.org/ml/libc-alpha/2005-03/msg00196.html
It's unfortunate that they don't agree that "an implementation" of C consists
of a combination
--- Comment #3 from joseph at codesourcery dot com 2006-05-19 16:35 ---
Subject: Re: New: float to int conversion doesn't raise
invalid exception
On Fri, 19 May 2006, janis at gcc dot gnu dot org wrote:
> GCC claims to follow C99 Annex F when converting a floating value to an
> int
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-19 16:21 ---
First we don't yet implement FENV_ACCESS. There is a bug about that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
--- Comment #1 from janis at gcc dot gnu dot org 2006-05-19 16:13 ---
This is related to PR21360, although that one is about the result of an
out-of-range conversion.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27682
12 matches
Mail list logo