public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27504]  New: x && (x & y) not optimized to x & y
@ 2006-05-08 19:28 falk at debian dot org
  2006-05-09  6:20 ` [Bug tree-optimization/27504] " pinskia at gcc dot gnu dot org
  2006-05-09  8:36 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: falk at debian dot org @ 2006-05-08 19:28 UTC (permalink / raw)
  To: gcc-bugs

Example:

falk@juist:/tmp% cat test.c 
int f(int x) { return x && (x & 0x55); }

falk@juist:/tmp% gcc -c -O3  test.c && objdump -d test.o
0000000000000000 <f>:
   0:   00 04 ff 47     clr     v0
   4:   02 00 00 e6     beq     a0,10 <f+0x10>
   8:   01 b0 0a 46     and     a0,0x55,t0
   c:   a0 03 e1 43     cmpult  zero,t0,v0
  10:   01 80 fa 6b     ret


-- 
           Summary: x && (x & y) not optimized to x & y
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org


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


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

end of thread, other threads:[~2023-10-12 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-27504-4@http.gcc.gnu.org/bugzilla/>
2021-06-03  2:43 ` [Bug tree-optimization/27504] x && (x & y) not optimized to x & y pinskia at gcc dot gnu.org
2023-05-05  8:17 ` pinskia at gcc dot gnu.org
2023-10-12 17:56 ` pinskia at gcc dot gnu.org
2023-10-12 18:00 ` pinskia at gcc dot gnu.org
2006-05-08 19:28 [Bug tree-optimization/27504] New: " falk at debian dot org
2006-05-09  6:20 ` [Bug tree-optimization/27504] " pinskia at gcc dot gnu dot org
2006-05-09  8:36 ` 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).