public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/42200] Suboptimal optimization: after x / 2 carry flag == x & 1
       [not found] <bug-42200-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-08 20:36 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 20:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42200

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 8+ produces this for both:
        cmpl    $1, %edi
        jbe     .L1
        testb   $1, %dil
        je      .L4
.L1:
        ret
.L4:
        shrl    %edi
        jmp     a

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

* [Bug target/42200] Suboptimal optimization: after x / 2 carry flag == x & 1
  2009-11-27 21:18 [Bug rtl-optimization/42200] New: " vda dot linux at googlemail dot com
@ 2009-11-27 22:14 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-27 22:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-11-27 22:14 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
          Component|rtl-optimization            |target
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-11-27 22:14:22
               date|                            |


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


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

end of thread, other threads:[~2021-08-08 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42200-4@http.gcc.gnu.org/bugzilla/>
2021-08-08 20:36 ` [Bug target/42200] Suboptimal optimization: after x / 2 carry flag == x & 1 pinskia at gcc dot gnu.org
2009-11-27 21:18 [Bug rtl-optimization/42200] New: " vda dot linux at googlemail dot com
2009-11-27 22:14 ` [Bug target/42200] " 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).