arm: Use arm_cmpdi_unsigned for thumb2 as well
authorRichard Henderson <rth@redhat.com>
Wed, 21 Dec 2011 00:34:09 +0000 (16:34 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 21 Dec 2011 00:34:09 +0000 (16:34 -0800)
commit6cb2b9646d8daf773d1e8a02c9988dbbc9af1d8c
tree98c2a7e79873fca96e4f36f255f97656d57f2eb3
parentfa14fefd24a177c3f9ee4303b8f19ef2bdeabaa3
arm: Use arm_cmpdi_unsigned for thumb2 as well

This changes code generation from "eors; eors; orrs" (which ranges
from 6 to 12 bytes and requires three scratch registers), to
"cmp; it; cmp" (which is always 6 bytes for register inputs and
requires no scratch registers).

        * config/arm/arm.md (*arm_cmpdi_unsigned): Enable for thumb2.
        * config/arm/arm.c (arm_select_cc_mode): Use it.

From-SVN: r182561
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.md