public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/15785] New: fold misses neg transformation
@ 2004-06-02 21:07 pinskia at gcc dot gnu dot org
  2004-06-02 21:09 ` [Bug tree-optimization/15785] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:07 UTC (permalink / raw)
  To: gcc-bugs

int f(int x)
{
  return ~(x-1);//should be -x
}

-- 
           Summary: fold misses neg transformation
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          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


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


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

* [Bug tree-optimization/15785] fold misses neg transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
@ 2004-06-02 21:09 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:13 ` [Bug tree-optimization/15785] fold misses unary transformation pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-02 21:08 -------
int f(int x)
{
  return ~ (-x); // x-1
}

-- 


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
  2004-06-02 21:09 ` [Bug tree-optimization/15785] " pinskia at gcc dot gnu dot org
@ 2004-06-02 21:13 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:13 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|fold misses neg             |fold misses unary
                   |transformation              |transformation


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
@ 2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:20 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |15458
              nThis|                            |


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
  2004-06-02 21:09 ` [Bug tree-optimization/15785] " pinskia at gcc dot gnu dot org
  2004-06-02 21:13 ` [Bug tree-optimization/15785] fold misses unary transformation pinskia at gcc dot gnu dot org
@ 2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|15458                       |
              nThis|                            |
  BugsThisDependsOn|                            |15458


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
@ 2004-06-02 21:20 ` pinskia at gcc dot gnu dot org
  2004-06-26 20:22 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-02 21:20 -------
int f(int x)
{
  return  - (~x); // should be x-1
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|15458                       |


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-06-02 21:20 ` pinskia at gcc dot gnu dot org
@ 2004-06-26 20:22 ` pinskia at gcc dot gnu dot org
  2004-07-04  7:23 ` kazu at cs dot umass dot edu
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-26 20:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-26 20:22 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-26 20:22:31
               date|                            |


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-06-26 20:22 ` pinskia at gcc dot gnu dot org
@ 2004-07-04  7:23 ` kazu at cs dot umass dot edu
  2005-02-12 17:08 ` phython at gcc dot gnu dot org
  2005-02-16  3:50 ` phython at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-07-04  7:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2004-07-04 07:23 -------
Actually, the function in Comment #2 should generate "x + 1".

-- 


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-07-04  7:23 ` kazu at cs dot umass dot edu
@ 2005-02-12 17:08 ` phython at gcc dot gnu dot org
  2005-02-16  3:50 ` phython at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-02-12 17:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-02-12 14:03 -------
Created an attachment (id=8183)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8183&action=view)
testcase


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |phython at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug tree-optimization/15785] fold misses unary transformation
  2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-02-12 17:08 ` phython at gcc dot gnu dot org
@ 2005-02-16  3:50 ` phython at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-02-16  3:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From phython at gcc dot gnu dot org  2005-02-15 21:58 -------
 Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-02-15 21:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-02 21:07 [Bug tree-optimization/15785] New: fold misses neg transformation pinskia at gcc dot gnu dot org
2004-06-02 21:09 ` [Bug tree-optimization/15785] " pinskia at gcc dot gnu dot org
2004-06-02 21:13 ` [Bug tree-optimization/15785] fold misses unary transformation pinskia at gcc dot gnu dot org
2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
2004-06-02 21:20 ` pinskia at gcc dot gnu dot org
2004-06-26 20:22 ` pinskia at gcc dot gnu dot org
2004-07-04  7:23 ` kazu at cs dot umass dot edu
2005-02-12 17:08 ` phython at gcc dot gnu dot org
2005-02-16  3:50 ` phython 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).