This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]