public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/20434] New: pessimization of complex expression
@ 2005-03-11 21:56 Thomas dot Koenig at online dot de
  2005-03-11 21:59 ` [Bug middle-end/20434] " Thomas dot Koenig at online dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-03-11 21:56 UTC (permalink / raw)
  To: gcc-bugs

$ cat complex-parts.c
#include <math.h>
#include <complex.h>

int main()
{
    float cr,ci;
    float complex c;
    foo(&cr,&ci);
    c = cr+I*ci;
    return creal(c)+cimag(c)<0;
}
$ gcc -S -O2 -fdump-tree-optimized complex-parts.c
$ tail -10 complex-parts.c.t66.optimized
  float D.2359;
  float cr.18;

<bb 0>:
  foo (&cr, &ci);
  return (double) (cr + 0.0) + (double) (ci + 0.0) < 0.0;

}


$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1/configure --prefix=/home/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050311 (experimental)

-- 
           Summary: pessimization of complex expression
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-01-31 18:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20434-9515@http.gcc.gnu.org/bugzilla/>
2006-01-31 18:20 ` [Bug middle-end/20434] pessimization of complex expression pinskia at gcc dot gnu dot org
2005-03-11 21:56 [Bug middle-end/20434] New: " Thomas dot Koenig at online dot de
2005-03-11 21:59 ` [Bug middle-end/20434] " Thomas dot Koenig at online dot de
2005-03-11 22:41   ` Andrew Pinski
2005-03-11 22:41 ` pinskia at physics dot uc dot edu
2005-03-11 22:49 ` Thomas dot Koenig at online dot de
2005-03-11 22:55 ` pinskia at gcc dot gnu dot org
2005-03-12  9:46 ` Thomas dot Koenig at online dot de
2005-03-12 18:07 ` pinskia at gcc dot gnu dot org
2005-03-12 23:13 ` Thomas dot Koenig at online dot de
2005-07-07  9:14 ` tkoenig 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).