public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output
@ 2005-07-15 18:29 uttamp at us dot ibm dot com
2005-07-15 18:47 ` [Bug tree-optimization/22504] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: uttamp at us dot ibm dot com @ 2005-07-15 18:29 UTC (permalink / raw)
To: gcc-bugs
With the recent change went in tree-complex.c causing the galgel's runtime
failure with miscompare output.
http://gcc.gnu.org/ml/gcc-cvs/2005-06/msg00767.html
--
Summary: benchmark - galgel fails at runtime with miscompare
output
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: uttamp at us dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org,uttamp at us dot ibm dot
com
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
@ 2005-07-15 18:47 ` pinskia at gcc dot gnu dot org
2005-07-16 9:52 ` steven at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-15 18:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
Component|c |tree-optimization
Keywords| |wrong-code
Summary|benchmark - galgel fails at |[4.1 Regression] benchmark -
|runtime with miscompare |galgel fails at runtime with
|output |miscompare output
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
2005-07-15 18:47 ` [Bug tree-optimization/22504] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-16 9:52 ` steven at gcc dot gnu dot org
2005-07-16 10:22 ` giovannibajo at libero dot it
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-07-16 9:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-16 09:46 -------
It fails everywhere, not just on ppc.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|powerpc-linux |
GCC host triplet|powerpc-linux |
GCC target triplet|powerpc-linux |
Last reconfirmed|0000-00-00 00:00:00 |2005-07-16 09:46:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
2005-07-15 18:47 ` [Bug tree-optimization/22504] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-16 9:52 ` steven at gcc dot gnu dot org
@ 2005-07-16 10:22 ` giovannibajo at libero dot it
2005-07-16 13:50 ` steven at gcc dot gnu dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: giovannibajo at libero dot it @ 2005-07-16 10:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-07-16 09:52 -------
I guess a reduced testcase might help.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (2 preceding siblings ...)
2005-07-16 10:22 ` giovannibajo at libero dot it
@ 2005-07-16 13:50 ` steven at gcc dot gnu dot org
2005-07-19 22:22 ` rth at gcc dot gnu dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-07-16 13:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-16 10:22 -------
I think that bifgel.f90 is being miscompiled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (3 preceding siblings ...)
2005-07-16 13:50 ` steven at gcc dot gnu dot org
@ 2005-07-19 22:22 ` rth at gcc dot gnu dot org
2005-07-20 0:29 ` reichelt at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-07-19 22:22 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-07-16 09:46:20 |2005-07-19 21:45:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (4 preceding siblings ...)
2005-07-19 22:22 ` rth at gcc dot gnu dot org
@ 2005-07-20 0:29 ` reichelt at gcc dot gnu dot org
2005-07-20 5:56 ` rth at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-20 0:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-20 00:25 -------
Reduced testcase. The program should print
6.00E+00 0.00E+00
but prints
4.00E+00 0.00E+00
when compiled with -O:
=========================
program FOO
integer i
complex a, b, c
b = 2
c = 0
do i = 1, 2
a = 2 * b - c
c = b
b = a
end do
print '(2ES10.2)', a
end program FOO
=========================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (5 preceding siblings ...)
2005-07-20 0:29 ` reichelt at gcc dot gnu dot org
@ 2005-07-20 5:56 ` rth at gcc dot gnu dot org
2005-07-22 0:57 ` cvs-commit at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-07-20 5:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-07-20 05:27 -------
Thanks for the reduction; I see the problem clearly now. For the record,
b$real_193 = CR.53_187;
b$imag_194 = CI.54_188;
c$real_195 = b$real_193;
c$imag_196 = b$imag_194;
we had a ring of copies to perform, and they came out in the wrong order.
I'll have to give this some thought...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (6 preceding siblings ...)
2005-07-20 5:56 ` rth at gcc dot gnu dot org
@ 2005-07-22 0:57 ` cvs-commit at gcc dot gnu dot org
2005-07-22 11:21 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-22 0:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-22 00:33 -------
Subject: Bug 22504
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rth@gcc.gnu.org 2005-07-22 00:33:48
Modified files:
gcc : ChangeLog tree-complex.c
Log message:
PR tree-opt/22504
* tree-complex.c (complex_ssa_name_components): New.
(cvc_lookup): Allow entry not found.
(create_components): Remove.
(create_one_component_var, get_component_var): New.
(get_component_ssa_name, set_component_ssa_name): New.
(extract_component): Use get_component_ssa_name.
(update_complex_components): Use set_component_ssa_name.
(update_complex_components_on_edge): Likewise.
(update_phi_components): Create new PHI nodes directly, instead
of adding insns to edges.
(tree_lower_complex): Allocate and free complex_variable_components
and complex_ssa_name_components here.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9507&r2=2.9508
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-complex.c.diff?cvsroot=gcc&r1=2.36&r2=2.37
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (7 preceding siblings ...)
2005-07-22 0:57 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-22 11:21 ` reichelt at gcc dot gnu dot org
2005-07-22 20:56 ` steven at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-22 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-22 11:19 -------
Richard, are you going to add a testcase for this?
Can somebody confirm that the benchmark testcase is fixed, too?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (8 preceding siblings ...)
2005-07-22 11:21 ` reichelt at gcc dot gnu dot org
@ 2005-07-22 20:56 ` steven at gcc dot gnu dot org
2005-07-26 0:40 ` steven at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-07-22 20:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-22 20:55 -------
galgel still fails for me even with the patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (9 preceding siblings ...)
2005-07-22 20:56 ` steven at gcc dot gnu dot org
@ 2005-07-26 0:40 ` steven at gcc dot gnu dot org
2005-07-26 9:22 ` steven at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-07-26 0:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-26 00:30 -------
This is miscompiled:
SUBROUTINE foo (A, B)
IMPLICIT NONE
COMPLEX*16 A, Im1
REAL*8 B
Im1 = Dcmplx(0.D0, 1.D0)
A = A + Im1 * B
RETURN
END SUBROUTINE foo
t.f90.t35.ch:
;; Function foo (foo_)
foo (a, b)
{
complex8 im1;
complex8 D.808;
complex8 D.807;
complex8 D.806;
real8 D.805;
complex8 D.804;
<bb 0>:
D.804_3 = *a_2;
D.805_5 = *b_4;
D.806_6 = COMPLEX_EXPR <D.805_5, 0.0>;
D.807_7 = D.806_6 * __complex__ (0.0, 1.0e+0);
D.808_8 = D.804_3 + D.807_7;
*a_2 = D.808_8;
return;
}
t.f90.t37.cplxlower:
foo (a, b)
{
real8 CI.14;
real8 D.834;
real8 CI.13;
real8 CR.12;
real8 D.831;
real8 D.830;
complex8 im1;
complex8 D.808;
complex8 D.807;
complex8 D.806;
real8 D.805;
complex8 D.804;
<bb 0>:
D.830_15 = REALPART_EXPR <*a_2>;
D.831_16 = IMAGPART_EXPR <*a_2>;
D.804_3 = COMPLEX_EXPR <D.830_15, D.831_16>;
CR.12_12 = D.830_15;
CI.13_13 = D.831_16;
D.805_5 = *b_4;
D.806_6 = COMPLEX_EXPR <D.805_5, 0.0>;
D.807_7 = COMPLEX_EXPR <0.0, D.805_5>;
D.834_17 = CI.13_13 - D.805_5;
D.808_8 = COMPLEX_EXPR <CR.12_12, D.834_17>;
CI.14_14 = D.834_17;
REALPART_EXPR <*a_2> = CR.12_12;
IMAGPART_EXPR <*a_2> = CI.14_14;
return;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (10 preceding siblings ...)
2005-07-26 0:40 ` steven at gcc dot gnu dot org
@ 2005-07-26 9:22 ` steven at gcc dot gnu dot org
2005-07-26 17:35 ` uttamp at us dot ibm dot com
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-07-26 9:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-26 08:26 -------
These are the only bugs I could find in expand_complex_addition:
Index: tree-complex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-complex.c,v
retrieving revision 2.39
diff -u -3 -p -r2.39 tree-complex.c
--- tree-complex.c 25 Jul 2005 23:04:33 -0000 2.39
+++ tree-complex.c 26 Jul 2005 08:26:07 -0000
@@ -844,7 +844,7 @@ expand_complex_addition (block_stmt_iter
case PAIR (VARYING, ONLY_IMAG):
rr = ar;
- ri = gimplify_build2 (bsi, MINUS_EXPR, inner_type, ai, bi);
+ ri = gimplify_build2 (bsi, code, inner_type, ai, bi);
break;
case PAIR (ONLY_REAL, VARYING):
@@ -858,7 +858,7 @@ expand_complex_addition (block_stmt_iter
if (code == MINUS_EXPR)
goto general;
rr = br;
- ri = gimplify_build2 (bsi, MINUS_EXPR, inner_type, ai, bi);
+ ri = gimplify_build2 (bsi, code, inner_type, ai, bi);
break;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (11 preceding siblings ...)
2005-07-26 9:22 ` steven at gcc dot gnu dot org
@ 2005-07-26 17:35 ` uttamp at us dot ibm dot com
2005-07-26 21:44 ` cvs-commit at gcc dot gnu dot org
2005-07-26 22:24 ` steven at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: uttamp at us dot ibm dot com @ 2005-07-26 17:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From uttamp at us dot ibm dot com 2005-07-26 17:27 -------
Steven's patch has fixed the galgel failure. I've verified it on Powerpc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (12 preceding siblings ...)
2005-07-26 17:35 ` uttamp at us dot ibm dot com
@ 2005-07-26 21:44 ` cvs-commit at gcc dot gnu dot org
2005-07-26 22:24 ` steven at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-26 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-26 21:38 -------
Subject: Bug 22504
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: steven@gcc.gnu.org 2005-07-26 21:38:46
Modified files:
gcc : ChangeLog tree-complex.c
Log message:
PR tree-optimization/22504
* tree-complex.c (expand_complex_addition): Use 'code' instead
of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9556&r2=2.9557
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-complex.c.diff?cvsroot=gcc&r1=2.39&r2=2.40
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/22504] [4.1 Regression] benchmark - galgel fails at runtime with miscompare output
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
` (13 preceding siblings ...)
2005-07-26 21:44 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-26 22:24 ` steven at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-07-26 22:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-07-26 22:11 -------
The bug is fixed. I still have to add test cases.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2005-07-26 22:11 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-15 18:29 [Bug c/22504] New: benchmark - galgel fails at runtime with miscompare output uttamp at us dot ibm dot com
2005-07-15 18:47 ` [Bug tree-optimization/22504] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-16 9:52 ` steven at gcc dot gnu dot org
2005-07-16 10:22 ` giovannibajo at libero dot it
2005-07-16 13:50 ` steven at gcc dot gnu dot org
2005-07-19 22:22 ` rth at gcc dot gnu dot org
2005-07-20 0:29 ` reichelt at gcc dot gnu dot org
2005-07-20 5:56 ` rth at gcc dot gnu dot org
2005-07-22 0:57 ` cvs-commit at gcc dot gnu dot org
2005-07-22 11:21 ` reichelt at gcc dot gnu dot org
2005-07-22 20:56 ` steven at gcc dot gnu dot org
2005-07-26 0:40 ` steven at gcc dot gnu dot org
2005-07-26 9:22 ` steven at gcc dot gnu dot org
2005-07-26 17:35 ` uttamp at us dot ibm dot com
2005-07-26 21:44 ` cvs-commit at gcc dot gnu dot org
2005-07-26 22:24 ` steven 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).