public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19609] New: real and imaginary part interchanged when flags_complex_divide_method=1
@ 2005-01-24 19:57 Thomas dot Koenig at online dot de
  2005-01-24 19:58 ` [Bug middle-end/19609] " Thomas dot Koenig at online dot de
                   ` (28 more replies)
  0 siblings, 29 replies; 30+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-01-24 19:57 UTC (permalink / raw)
  To: gcc-bugs

I've bootstrapped a gcc tree with the fix for PR 19486 and
flags_complex_divide_method=1 , and found that the code now
confuses the real and complex parts for divisions in certain
cases.

Here's an example:

$ cat complex-a.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <complex.h>

int main()
{
    complex float a,b,c;
    a = I;
    b = I;
    c = a/b;
    printf("%f + %f*I\n",crealf(c),cimagf(c));
    return 0;
}
$ gcc complex-a.c
$ ./a.out
0.000000 + 1.000000*I

-- 
           Summary: real and imaginary part interchanged when
                    flags_complex_divide_method=1
           Product: gcc
           Version: 4.0.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=19609


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

end of thread, other threads:[~2005-04-20  2:03 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-24 19:57 [Bug middle-end/19609] New: real and imaginary part interchanged when flags_complex_divide_method=1 Thomas dot Koenig at online dot de
2005-01-24 19:58 ` [Bug middle-end/19609] " Thomas dot Koenig at online dot de
2005-01-24 20:00 ` Thomas dot Koenig at online dot de
2005-01-24 21:41 ` pcarlini at suse dot de
2005-01-24 21:49 ` [Bug middle-end/19609] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-24 22:23 ` rth at gcc dot gnu dot org
2005-01-24 23:01 ` pcarlini at suse dot de
2005-01-24 23:24 ` rth at gcc dot gnu dot org
2005-01-24 23:33 ` pcarlini at suse dot de
2005-01-25  1:53 ` pcarlini at suse dot de
2005-01-25  6:28 ` rth at gcc dot gnu dot org
2005-01-25  8:41 ` Thomas dot Koenig at online dot de
2005-01-25  8:49 ` Thomas dot Koenig at online dot de
2005-01-25 10:50 ` pcarlini at suse dot de
2005-01-25 12:40 ` pcarlini at suse dot de
2005-01-25 14:50 ` Thomas dot Koenig at online dot de
2005-01-25 15:02 ` pcarlini at suse dot de
2005-01-25 15:12 ` Thomas dot Koenig at online dot de
2005-01-25 15:21 ` pcarlini at suse dot de
2005-01-25 15:40 ` Thomas dot Koenig at online dot de
2005-01-25 15:51 ` pcarlini at suse dot de
2005-01-25 15:57 ` Thomas dot Koenig at online dot de
2005-01-25 16:01 ` pcarlini at suse dot de
2005-01-25 16:16 ` pcarlini at suse dot de
2005-01-25 16:43 ` Thomas dot Koenig at online dot de
2005-01-25 17:00 ` Thomas dot Koenig at online dot de
2005-01-25 17:07 ` pcarlini at suse dot de
2005-01-25 18:19 ` cvs-commit at gcc dot gnu dot org
2005-01-25 18:26 ` rth at gcc dot gnu dot org
2005-04-20  2:04 ` 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).