public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17247] New: [3.5 Regression] TER is not always doing its job
@ 2004-08-31  6:32 pinskia at gcc dot gnu dot org
  2004-08-31  6:35 ` [Bug tree-optimization/17247] " pinskia at gcc dot gnu dot org
  2004-08-31  6:39 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-31  6:32 UTC (permalink / raw)
  To: gcc-bugs

I finnally was able to analyzed why gcc.dg/rs6000-power2-2.c was failing and noticed that TER was 
not doing its job in combining back T.1 = *(a+-1*8); into t = T.1;  why I don't know.
Here is the reduced testcase:
register double t1 __asm__("fr1");
void t(double *a, double *b)
{
        t1 = a[-1];
        b[-1] = t1;
}
Compile with "gcc -O3 -S -o - t.c -w" to see the problem.

Can also see the problem with the following source on any target if you look into the *.var file:
double t1;
void t(double *a, double *b)
{
        t1 = a[-1];
        b[-1] = t1;
}

-- 
           Summary: [3.5 Regression] TER is not always doing its job
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: critical
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-*-*


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


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

* [Bug tree-optimization/17247] [3.5 Regression] TER is not always doing its job
  2004-08-31  6:32 [Bug tree-optimization/17247] New: [3.5 Regression] TER is not always doing its job pinskia at gcc dot gnu dot org
@ 2004-08-31  6:35 ` pinskia at gcc dot gnu dot org
  2004-08-31  6:39 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-31  6:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.5.0


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


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

* [Bug tree-optimization/17247] [3.5 Regression] TER is not always doing its job
  2004-08-31  6:32 [Bug tree-optimization/17247] New: [3.5 Regression] TER is not always doing its job pinskia at gcc dot gnu dot org
  2004-08-31  6:35 ` [Bug tree-optimization/17247] " pinskia at gcc dot gnu dot org
@ 2004-08-31  6:39 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-31  6:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-31 06:39 -------
Never mind the testcase is invalid, I should be using volatile instead, I will fix the testcase.

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


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


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

end of thread, other threads:[~2004-08-31  6:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31  6:32 [Bug tree-optimization/17247] New: [3.5 Regression] TER is not always doing its job pinskia at gcc dot gnu dot org
2004-08-31  6:35 ` [Bug tree-optimization/17247] " pinskia at gcc dot gnu dot org
2004-08-31  6:39 ` 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).