public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44631]  New: [sparc] long long to double conversion error
@ 2010-06-22 13:30 doko at ubuntu dot com
  2010-06-22 13:40 ` [Bug target/44631] " rguenth at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: doko at ubuntu dot com @ 2010-06-22 13:30 UTC (permalink / raw)
  To: gcc-bugs

[forwarded from http://bugs.debian.org/581571]

seen with current 4.3, 4.4, 4.5, trunk

gcc -O0 -mcpu=v9 foo.c && ./a.out prints 2.47804e+17 instead of 9.79798e+16.
works with -mcpu=v8.
same error with gcc -m64 -O0 foo.c && ./a.out

#include <stdio.h>
int main(void) {
    unsigned long long l = 97979797979797980LL;

    printf("%g\n", (double)l);
    return(0);
}


-- 
           Summary: [sparc] long long to double conversion error
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com
GCC target triplet: sparc-linux-gnu sparc64-linux-gnu


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-09-07 11:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22 13:30 [Bug target/44631] New: [sparc] long long to double conversion error doko at ubuntu dot com
2010-06-22 13:40 ` [Bug target/44631] " rguenth at gcc dot gnu dot org
2010-06-22 13:53 ` doko at ubuntu dot com
2010-06-22 17:13 ` jakub at gcc dot gnu dot org
2010-06-23 12:12 ` mikpe at it dot uu dot se
2010-07-15 21:30 ` mikpe at it dot uu dot se
2010-07-18 20:59 ` mikpe at it dot uu dot se
2010-07-23 16:44 ` mikpe at it dot uu dot se
2010-07-23 17:25 ` rguenth at gcc dot gnu dot org
2010-07-24  8:07 ` jakub at gcc dot gnu dot org
2010-07-24  8:46 ` mikpe at it dot uu dot se
2010-07-24 20:00 ` jakub at gcc dot gnu dot org
2010-09-07 11:47 ` zimmerma+gcc at loria dot fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).