public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23666] New: Fold does not reduce C - ~a into a + (C+1)
@ 2005-09-01  1:42 pinskia at gcc dot gnu dot org
  2005-09-01  6:20 ` [Bug middle-end/23666] " falk at debian dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01  1:42 UTC (permalink / raw)
  To: gcc-bugs

The asm for the following two functions should be the same.
int f(int a)
{
  return 10 - ~a;
}
int f1(int a)
{
  return a + 11;
}


Found while reading LLVM's instruction combiner.

-- 
           Summary: Fold does not reduce C - ~a into a + (C+1)
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: middle-end
        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
OtherBugsDependingO 19987
             nThis:


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


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-23666-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-10-22 15:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01  1:42 [Bug middle-end/23666] New: Fold does not reduce C - ~a into a + (C+1) pinskia at gcc dot gnu dot org
2005-09-01  6:20 ` [Bug middle-end/23666] " falk at debian dot org
2005-09-01 12:00 ` pinskia at gcc dot gnu dot org
2005-09-17  2:11 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23666-6528@http.gcc.gnu.org/bugzilla/>
2005-11-26 21:43 ` pinskia at gcc dot gnu dot org
2005-11-26 22:38 ` pinskia at gcc dot gnu dot org
2005-11-26 22:53 ` pinskia at gcc dot gnu dot org
2005-11-27 22:26 ` pinskia at gcc dot gnu dot org
2005-11-29  0:39 ` pinskia at gcc dot gnu dot org
2005-11-30 16:48 ` pinskia at gcc dot gnu dot org
2006-10-22 15:12 ` rguenth 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).