This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/56924] Folding of checks into a range check should check upper boundary
- From: "ramana at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jun 2014 08:23:32 +0000
- Subject: [Bug middle-end/56924] Folding of checks into a range check should check upper boundary
- Auto-submitted: auto-generated
- References: <bug-56924-4 at http dot gcc dot gnu dot org/bugzilla/>
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.