public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27139]  New: Optimize double INT->FP->INT conversions
@ 2006-04-12 20:48 uros at kss-loka dot si
  2006-04-12 23:59 ` [Bug middle-end/27139] Optimize double INT->FP->INT conversions with -ffast-math pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 5+ messages in thread
From: uros at kss-loka dot si @ 2006-04-12 20:48 UTC (permalink / raw)
  To: gcc-bugs

This testcase:

int test (int a)
{
        return (double) a;
}

Produces:

        cvtsi2sd        %edi, %xmm0
        cvttsd2si       %xmm0, %eax
        ret

However, following code does the same (at least for -ffast-math):
        movl    %edi, %eax
        ret


-- 
           Summary: Optimize double INT->FP->INT conversions
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uros at kss-loka dot si
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2012-05-05  0:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27139-4@http.gcc.gnu.org/bugzilla/>
2012-04-24  6:36 ` [Bug middle-end/27139] Optimize double INT->FP->INT conversions with -ffast-math marc.glisse at normalesup dot org
2012-04-27 10:35 ` rguenth at gcc dot gnu.org
2012-05-01  9:32 ` marc.glisse at normalesup dot org
2012-05-05  0:20 ` glisse at gcc dot gnu.org
2006-04-12 20:48 [Bug middle-end/27139] New: Optimize double INT->FP->INT conversions uros at kss-loka dot si
2006-04-12 23:59 ` [Bug middle-end/27139] Optimize double INT->FP->INT conversions with -ffast-math pinskia 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).