[Bug target/46092] Improve constant handling of thumb2 instructions

ibolton at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 27 16:04:00 GMT 2010


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

Ian Bolton <ibolton at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.27 16:03:59
                 CC|                            |ibolton at gcc dot gnu.org
     Ever Confirmed|0                           |1
      Known to fail|                            |4.6.0

--- Comment #1 from Ian Bolton <ibolton at gcc dot gnu.org> 2010-10-27 16:03:59 UTC ---
Confirmed on trunk, revision 165513.

In your example, another way would be to subtract r3 (#65520) and then #1.

Note: neither -O3 or -O2 can avoid the three subhi instruction, currently.



More information about the Gcc-bugs mailing list