This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Arm Thumb-2 immediate operand inversion
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 02 Feb 2006 10:57:37 +0000
- Subject: Re: [patch] Arm Thumb-2 immediate operand inversion
- References: <200602011850.31237.paul@codesourcery.com>
On Wed, 2006-02-01 at 18:50, Paul Brook wrote:
> The attached patch implements inversion of Thumb-2 immediate operands.
> eg. turn "add reg, reg, #const" into "sub reg, reg, #-const" if only the
> latter is a legal instruction. We already do this conversion for Arm
> instructions, just not for Thumb-2.
>
> Tested with cross to arm-none-eabi.
> Ok?
OK.
R.