[PATCH][ARM]: Fix unified syntax encoding of MOVS in Thumb.

Matthew Gretton-Dann matthew.gretton-dann@arm.com
Thu May 27 15:59:00 GMT 2010


Hi,

Can someone please review the attached patch?

GAS currently encodes a Thumb-state MOVS as ADDS in unified syntax mode,
which is incorrect - it should be encoded as LSLS.  This patch corrects
this.

Thanks,

Matt

Proposed ChangeLogs:

gas/ChangeLog:
2010-05-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* config/tc-arm.c (do_t_mov_cmp): In unified syntax encode movs 
	as lsls and not adds.

gas/testsuite/ChangeLog:
2010-05-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

	* gas/arm/thumb2_it_auto.d: Update for change in movs encoding.
	gas/arm/thumb2_it.d: Likewise.
	gas/arm/thumb32.d: Likewise.


-- 
Matthew Gretton-Dann
Principal Engineer - PDSW Tools
ARM Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1005-movs-encoding.patch
Type: text/x-patch
Size: 2370 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100527/0d6be43b/attachment.bin>


More information about the Binutils mailing list