[llvm-commits] [PATCH] 32-bit right shifts are being ignored by the ARM assembler for some instructions

Richard Barton richard.barton at arm.com
Wed Jul 4 11:51:40 PDT 2012


Hello reviewers

The ARM assembler was ignoring 32-bit right shifts on AND,SUB,EOR,ADD,ORR and
BIC ARM instructions. 

These instructions are special cased in the AsmParser so that redundant shifts
by 0 can be removed. MC stores right shifts by #32 as #0 in the MCInst, so this
case needs to be accounted for in the AsmParser.

Patch and updated regression tests attached.

Regards,

Richard Barton
ARM Ltd, Cambridge

-------------- next part --------------
A non-text attachment was scrubbed...
Name: shift_by_32_arm_assembly.patch
Type: application/octet-stream
Size: 4309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120704/3f8627e8/attachment.obj>


More information about the llvm-commits mailing list