[Bug target/43892] PowerPC suboptimal "add with carry" optimization

christophe.leroy at csgroup dot eu gcc-bugzilla@gcc.gnu.org
Tue Oct 20 18:37:25 GMT 2020


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

Christophe Leroy <christophe.leroy at csgroup dot eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christophe.leroy at csgroup dot eu

--- Comment #25 from Christophe Leroy <christophe.leroy at csgroup dot eu> ---
With GCC 10.1, I still get:

00000000 <f>:
   0:   7c 63 22 14     add     r3,r3,r4
   4:   7c 84 18 10     subfc   r4,r4,r3
   8:   7d 29 49 10     subfe   r9,r9,r9
   c:   7c 69 18 50     subf    r3,r9,r3
  10:   4e 80 00 20     blr

Any plan to get the expected adde/addze instead ?


More information about the Gcc-bugs mailing list