This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Ping: ARM patch: New cbranchqi, cbranchhi patterns for Thumb-1
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: Richard Earnshaw <rearnsha at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 02 Aug 2010 12:44:46 +0200
- Subject: Ping: ARM patch: New cbranchqi, cbranchhi patterns for Thumb-1
- References: <4C3F0C1F.6020901@codesourcery.com> <1279205019.20995.164.camel@e102346-lin.cambridge.arm.com> <4C3F260B.7060309@codesourcery.com>
>>> On Thumb-1, comparisons of integer values smaller than a word can be
>>> done by shifting the value to the left. This patch adds a new macroized
>>> pattern, cbranch<mode>4_insn, which is used for QImode and HImode, and
>>> does exactly that. Effects:
>>>
>>> - lsl r2, r1, #24
>>> - lsr r2, r2, #24
>>> - cmp r2, #0
>>> + lsl r1, #24
>>> bne .L195
http://gcc.gnu.org/ml/gcc-patches/2010-07/msg01255.html
Bernd