public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/25028]  New: TImode-to-floating conversions broken
@ 2005-11-25  1:27 jsm28 at gcc dot gnu dot org
  2005-11-26 22:52 ` [Bug other/25028] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-11-25  1:27 UTC (permalink / raw)
  To: gcc-bugs

int printf(const char *, ...);
typedef int TItype __attribute__((mode(TI)));
TItype x = -1;
int main(void) { printf("%f %f\n", (float)x, (double)x); return 0; }

displays
0.000000 0.000000
on x86_64-unknown-linux-gnu.  The conversion functions in libgcc2.c work for
converting DImode values on the presumption that SImode values can be converted
exactly to DFmode and wider.  They don't work for converting TImode values to
types which can't exactly represent all DImode values.

(I'd say these functions should have #if conditionals embodying their
prerequisites about type precisions, to make build fail for unsupported
combinations, but existing targets need fixing first.)


-- 
           Summary: TImode-to-floating conversions broken
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-22 17:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-25  1:27 [Bug other/25028] New: TImode-to-floating conversions broken jsm28 at gcc dot gnu dot org
2005-11-26 22:52 ` [Bug other/25028] " pinskia at gcc dot gnu dot org
2005-12-03 13:36 ` jsm28 at gcc dot gnu dot org
2005-12-15 21:50 ` jsm28 at gcc dot gnu dot org
2006-02-09 15:00 ` roger at eyesopen dot com
2006-08-24 21:44 ` howarth at nitro dot med dot uc dot edu
2006-08-24 22:12 ` howarth at nitro dot med dot uc dot edu
2006-08-25  1:36 ` howarth at nitro dot med dot uc dot edu
2006-08-25  3:59 ` howarth at nitro dot med dot uc dot edu
2006-11-07 19:14 ` sje at gcc dot gnu dot org
2006-11-15 23:00 ` sje at gcc dot gnu dot org
2006-12-01  0:38 ` chaoyingfu at gcc dot gnu dot org
2007-12-16 23:28 ` ubizjak at gmail dot com
2010-05-22 17:21 ` jsm28 at gcc dot gnu dot org

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).