public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44632]  New: [4.4/4.5/4.6 regression] wrong code for complex division
@ 2010-06-22 13:58 doko at ubuntu dot com
  2010-06-22 14:30 ` [Bug target/44632] " rguenth at gcc dot gnu dot org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: doko at ubuntu dot com @ 2010-06-22 13:58 UTC (permalink / raw)
  To: gcc-bugs

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

seen with current 4.5 and 4.5 branches, and trunk

g++-4.4 miscompiles complex division:

(sid)jwilk@paer:~$ cat test.cxx 
#include <complex>
#include <iostream>

void f(std::complex<double> x)
{
     std::cout << x << std::endl;
     x = 1.0 / x;
     std::cout << x << std::endl;
}

int main()
{
     f(2.0);
}

(sid)jwilk@paer:~$ g++-4.3 -Wall test.cxx && ./a.out
(2,0)
(0.5,0)

(sid)jwilk@paer:~$ g++-4.4 -Wall test.cxx && ./a.out
(2,0)
(1,0)


-- 
           Summary: [4.4/4.5/4.6 regression] wrong code for complex division
           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: hppa-linux-gnu


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


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

end of thread, other threads:[~2010-08-16 20:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22 13:58 [Bug target/44632] New: [4.4/4.5/4.6 regression] wrong code for complex division doko at ubuntu dot com
2010-06-22 14:30 ` [Bug target/44632] " rguenth at gcc dot gnu dot org
2010-06-24 22:03 ` rguenth at gcc dot gnu dot org
2010-08-07 19:14 ` danglin at gcc dot gnu dot org
2010-08-07 19:33 ` danglin at gcc dot gnu dot org
2010-08-07 19:52 ` [Bug tree-optimization/44632] " danglin at gcc dot gnu dot org
2010-08-07 19:58 ` danglin at gcc dot gnu dot org
2010-08-07 19:59 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-07 20:37 ` rguenth at gcc dot gnu dot org
2010-08-07 20:39 ` rguenth at gcc dot gnu dot org
2010-08-07 20:40 ` rguenth at gcc dot gnu dot org
2010-08-07 20:57 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-07 21:00 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-07 21:04 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-07 21:16 ` rguenth at gcc dot gnu dot org
2010-08-07 21:36 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-09 11:35 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-09 11:37 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-09 11:44 ` dave at hiauly1 dot hia dot nrc dot ca
2010-08-09 11:51 ` rguenther at suse dot de
2010-08-09 13:18 ` rguenth at gcc dot gnu dot org
2010-08-09 13:31 ` [Bug tree-optimization/44632] [4.4/4.5 " rguenth at gcc dot gnu dot org
2010-08-16 20:18 ` danglin at gcc dot gnu dot org
2010-08-16 20:25 ` danglin at gcc dot gnu dot org
2010-08-16 20:27 ` danglin 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).