This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/60128] [4.8/4.9 Regression] Wrong ouput using en edit descriptor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60128

--- Comment #49 from dave.anglin at bell dot net ---
On 3/26/2014 2:07 PM, dominiq at lps dot ens.fr wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60128
>
> --- Comment #48 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>>> AFAICT on hppa*-*-hpux11* the E format does not round to nearest for tie. What
>>> is the output of the following test
>>>
>>> ...
>>>
>>> ? On x86_64-apple-darwin13, I get '1.0e+04 9.8e+03'.
>> You are correct:
>> 9.9e+03 9.7e+03
> OK! Unless someone beats me, I'll split the test in two, one for the main
> issue, the other one for the round to even on tie.

It looks like hppa rounds toward zero on tie.  I couldn't find any 
documentation on the
subject.  For ia64, HP states that the rounding is according to C99.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]