[Bug middle-end/56924] Folding of checks into a range check should check upper boundary

ramana at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 10 08:23:00 GMT 2014


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

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---

trunk and FSF 4.9.0 currently generates on ARM. 

        and     r0, r0, #224
        cmp     r0, #224
        bxne    lr
        b       bar


which looks way better than what 4.8 generates.

I'm not sure what fixed this but this certainly looks much better already.



More information about the Gcc-bugs mailing list