public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41924]  New: graphite miscompiles aermod
@ 2009-11-03 15:22 lifeng at gcc dot gnu dot org
  2009-11-04  2:03 ` [Bug middle-end/41924] " spop at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: lifeng at gcc dot gnu dot org @ 2009-11-03 15:22 UTC (permalink / raw)
  To: gcc-bugs

http://www.polyhedron.com/web_images/documents/pb05.zip
the testers report this:
aermod FAILED    1 fails and    5 passes
[...]
Finished Testing  16 benchmarks -  15 passed, and   1 failed

------------------------------------------------------
I have reduced the aermod problem in polyhedron benchmark.
It seems that the cloog generate the wrong code for a simple
case...

-----------Reduced fortran code--------------------
MODULE MAIN1
 REAL , ALLOCATABLE :: HRVALD(:)
END MODULE MAIN1

SUBROUTINE VOLCALC()
 USE MAIN1
 INTEGER :: ITYP
 LOGICAL :: WETSCIM

 DO ITYP = 1 , 100
    IF ( WETSCIM ) HRVALD(ITYP) = 0.0
 ENDDO
END SUBROUTINE VOLCALC
---------------------------------------------------------
Equivalent C code
int hrval[101];

void volcalc()
{
 int i;
 int wetscim;

 for (i = 0; i < 100; i++)
   if (wetscim)
     hrval[i] = 0;
}
--------------------------------------------------
(gdb) set debug_generated_program (scop)

if (wetscim_3 <= -1) {
 for (scat_1=0;scat_1<=99;scat_1++) {
   S4(scat_1) ;
 }
}
if (wetscim_3 >= 1) {
 for (;;scat_1++) {
   for (git_0=0;git_0<=99;git_0++) {
     S4(git_0) ;
   }
 }
}
----------------------------------------------------
(gdb) set debug_scop (scop)
scop (
parameters (
p_0 -> wetscim_3(D)
)
context (
#  eq     p0    cst
0 3
)
pbb_4 (
conditions bb_4 (if (wetscim_3(D) != 0)
)
cases bb_4 (if (wetscim_3(D) != 0)
)
pdr_0 (write
(Data Ref:
 stmt: hrval[i_11] = 0;
 ref: hrval[i_11];
 base_object: hrval[0];
 Access function 0: {0, +, 1}_1
)
data accesses (
#  eq     i0     p0  alias   sub0    cst
4 6
   0      1      0      0     -1      0
   0      0      0      1      0     -1
   1     -1      0      0      0    100
   1      1      0      0      0      0
)
)
domains bb_4 (
#  eq     i0     p0    cst
3 4
   1     -1      0     99
   1      1      0      0
   1      0     -1     -1
3 4
   1     -1      0     99
   1      1      0      0
   1      0      1     -1
)
scattering bb_4 (
#  eq     s0     s1     s2     i0     p0    cst
3 7
   0      1      0      0      0      0      0
   0      0      1      0     -1      0      0
   0      0      0      1      0      0      0
)
)
original_lst (
(root
 0 (loop
   0 stmt_4)))
transformed_lst (
(root
 0 (loop
   0 stmt_4)))
)


-- 
           Summary: graphite miscompiles aermod
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lifeng at gcc dot gnu dot org


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
@ 2009-11-04  2:03 ` spop at gcc dot gnu dot org
  2009-11-05  2:38 ` lifeng at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-11-04  2:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from spop at gcc dot gnu dot org  2009-11-04 02:03 -------
What are the options that you used to produce this?
I am not able to reproduce the failing clast with -O2, nor with -O3 with the
current graphite branch.


-- 


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
  2009-11-04  2:03 ` [Bug middle-end/41924] " spop at gcc dot gnu dot org
@ 2009-11-05  2:38 ` lifeng at gcc dot gnu dot org
  2009-11-21  8:32 ` grosser at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: lifeng at gcc dot gnu dot org @ 2009-11-05  2:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from lifeng at gcc dot gnu dot org  2009-11-05 02:38 -------
(In reply to comment #1)
> What are the options that you used to produce this?
> I am not able to reproduce the failing clast with -O2, nor with -O3 with the
> current graphite branch.

I produce this with -O2. It seems I use the wrong version of cloog-ppl.
I'll check this later.


-- 

lifeng at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lifeng at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
  2009-11-04  2:03 ` [Bug middle-end/41924] " spop at gcc dot gnu dot org
  2009-11-05  2:38 ` lifeng at gcc dot gnu dot org
@ 2009-11-21  8:32 ` grosser at gcc dot gnu dot org
  2009-11-21  9:04 ` spop at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: grosser at gcc dot gnu dot org @ 2009-11-21  8:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from grosser at gcc dot gnu dot org  2009-11-21 08:32 -------
Li,

Is this bug solved with a newer cloog version?


-- 


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-11-21  8:32 ` grosser at gcc dot gnu dot org
@ 2009-11-21  9:04 ` spop at gcc dot gnu dot org
  2009-11-21  9:09 ` spop at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-11-21  9:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from spop at gcc dot gnu dot org  2009-11-21 09:04 -------
Yes, this should be fixed now in the Graphite branch, and it will be fixed in
trunk after the merge that I am preparing.

Sebastian


-- 

spop at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-11-21  9:04 ` spop at gcc dot gnu dot org
@ 2009-11-21  9:09 ` spop at gcc dot gnu dot org
  2010-01-14 17:51 ` trifunovic at gcc dot gnu dot org
  2010-01-14 19:20 ` spop at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-11-21  9:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from spop at gcc dot gnu dot org  2009-11-21 09:09 -------
My automatic testers are still failing one of the aermod tests,
see for example pb05.sum from:
http://groups.google.com/group/gcc-graphite-test/browse_thread/thread/4afb9c19aa8a10c7


-- 

spop at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-11-21  9:09 ` spop at gcc dot gnu dot org
@ 2010-01-14 17:51 ` trifunovic at gcc dot gnu dot org
  2010-01-14 19:20 ` spop at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: trifunovic at gcc dot gnu dot org @ 2010-01-14 17:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from trifunovic at gcc dot gnu dot org  2010-01-14 17:51 -------
aermod.f90 fails also on the gcc_trunk, without using Graphite.


-- 


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


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

* [Bug middle-end/41924] graphite miscompiles aermod
  2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-01-14 17:51 ` trifunovic at gcc dot gnu dot org
@ 2010-01-14 19:20 ` spop at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: spop at gcc dot gnu dot org @ 2010-01-14 19:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from spop at gcc dot gnu dot org  2010-01-14 19:20 -------
As this is failing also on trunk I'm closing this bug as invalid.


-- 

spop at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2010-01-14 19:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03 15:22 [Bug middle-end/41924] New: graphite miscompiles aermod lifeng at gcc dot gnu dot org
2009-11-04  2:03 ` [Bug middle-end/41924] " spop at gcc dot gnu dot org
2009-11-05  2:38 ` lifeng at gcc dot gnu dot org
2009-11-21  8:32 ` grosser at gcc dot gnu dot org
2009-11-21  9:04 ` spop at gcc dot gnu dot org
2009-11-21  9:09 ` spop at gcc dot gnu dot org
2010-01-14 17:51 ` trifunovic at gcc dot gnu dot org
2010-01-14 19:20 ` spop 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).