[PATCH] [AArch64] Truncate the immediate in logical operation to the register width

Arnaud Allard de Grandmaison arnaud.adegm at gmail.com
Mon Jul 7 14:42:11 PDT 2014


Logical 32 bit operations should truncate the immediate to the register
witdth, i.e. 32 bits.

This allows MC assembler to handle instructions like 'and w2, w3, #-3'.

The truncation is not applied blindly : the 32 most significant bits are
checked to be all ones or zeros so that we catch programming errors.

Comments ? OK to apply ?

Cheers,
--
Arnaud de Grandmaison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140707/ce868613/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-Truncate-the-immediate-in-logical-operation-.patch
Type: text/x-patch
Size: 4413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140707/ce868613/attachment.bin>


More information about the llvm-commits mailing list