[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-04-19 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 08:40 --- I bootstraped a 20050123 shapshot with the d-19609 patch attached and lags_complex_divide_method=1 on ia64-unknown-linux-gnu, and I got this bootstrap failure in libgfortran:

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 08:48 --- Same thing: $ cat cdivide.c #include stdio.h #include math.h #include complex.h int main() { float complex a,b,c; c = a/b; } $ ~/gcc-bin/gcc/xgcc -fdump-rtl-all-all -fdump-tree-all -B

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 10:49 --- Hi, everything looks fine here (20050124 on x86-linux), double checked the formulas, bootstrapped c, c++, tested a few other divisions besides the testcase (now ok), and cannot reproduce the last dump of Thomas.

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 12:39 --- Thomas, before attaching stuff to the PR, please double check your setup: on x86, at least, the problem is definitely fixed and I cannot reproduce your dumps. I'm currently testing on x86_64. --

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 14:50 --- (In reply to comment #13) Thomas, before attaching stuff to the PR, please double check your setup: on x86, at least, the problem is definitely fixed and I cannot reproduce your dumps. I'm currently

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 15:01 --- I just redid the following commands, in order, on an ia64-unknown-linux-gnu machine: With the most recent snapshot: $ bzcat gcc-4.0-20050123.tar.bz2 | tar -xvf - ... with the same bootstrap failure.

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 15:12 --- (In reply to comment #15) This is an ia64 specific issue, therefore: testing on x86 and x86-64 is ok, and definitely no bootstrap failures. Interesting. How did you do the testing? What version

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 15:20 --- Interesting. How did you do the testing? What version did you test against? How did you test? Maybe something is broken in 20050123 that got fixed later, which caused this. Nothing special, just current

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 15:40 --- (In reply to comment #17) Therefore, how did you get the last dumps? I used the xgcc from the build subdirectoy: $ ~/gcc-bin/gcc/xgcc -fdump-rtl-all-all -fdump-tree-all -B ~/gcc-bin/gcc/ cdivide.c

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 15:57 --- Paolo, could you upload the .t14.oplower dump that you got from your working version with the d-19609 patch? Thomas -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 16:01 --- Is in Comment #11, and looks fine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 15:51 --- Ok, sorry, didnt' pay attention to that detail (while working on the library, usually we install the compiler... ;) Anyway, I'm going to build and test on ia64 too. --

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 16:13 --- ... indeed, IMH-not-compiler-hacker, opinion, t14 should be the same on x86 and ia64... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 16:43 --- (In reply to comment #22) ... indeed, IMH-not-compiler-hacker, opinion, t14 should be the same on x86 and ia64... Quite. Could you maybe run a C-only bootstrap with the 20050123 snapshot, modified

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread Thomas dot Koenig at online dot de
--- Additional Comments From Thomas dot Koenig at online dot de 2005-01-25 17:00 --- #ifdef EGG_ON_FACE_MODE Sorry to have kept everybody from doing something more worthwile. The problem was that I hadn't noticed that the patch for PR 19468 wasn't yet in the 20050123 snapshot which I

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 17:06 --- OK ;) In Italy we say something like anything is ok, if ends ok ;) Anyway, in the meanwhile an ia64-linux bootstrap completed fine here. I'm running the testsuite now. --

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-25 18:19 --- Subject: Bug 19609 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-01-25 18:19:10 Modified files: gcc: ChangeLog tree-complex.c Log

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-25 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2005-01-25 18:26 --- Fixed. -- What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-24 21:49 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread rth at gcc dot gnu dot org
-- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org |dot org | Status|NEW

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-24 23:01 --- Hi Richard. It seems to me that the problem is in the implemented formula. Looking at Goldberg, when |d| = |c| in its paper,that is |bi| |br| in the Gcc code, we should have, at the end of the calculation:

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2005-01-24 23:23 --- Yes, I see that. My eyes crossed while transcribing the algorithm to trees, and I failed to notice that a computation is (b - (a * ratio)) in one branch and ((a * ratio) - b) in the other. And so incorrectly

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-24 23:33 --- Yes, I see that. My eyes crossed while transcribing the algorithm to trees, and I failed to notice that a computation is (b - (a * ratio)) in one branch and ((a * ratio) - b) in the other. And so incorrectly

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread pcarlini at suse dot de
--- Additional Comments From pcarlini at suse dot de 2005-01-25 01:53 --- Great! In case you like me to double check a bit, only tomorrow, given my timezone... Thanks again! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609

[Bug middle-end/19609] [4.0 Regression] real and imaginary part interchanged when flags_complex_divide_method=1

2005-01-24 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2005-01-25 06:28 --- Please do. I seem to have screwed up the ia64 build as well (user error on my side), and won't see results until tommorow gmt-8. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19609