llvm-6502/test/MC
Mihai Popa 8b36f9e431 Fix Thumb2 aliasing complementary instructions taking modified immediates
There are many Thumb instructions which take 12-bit immediates encoded in a special
8-byte value + 4-byte rotator form. Not all numbers are represented, and it's legal
to transform an assembly instruction to be able to encode the immediate.

For example: AND and BIC are complementary instructions; one can switch the AND
to a BIC as long as the immediate is complemented. 

The intent is to switch one instruction into its complementary one when the immediate
cannot be encoded in the form requested in the original assembly and when the 
complementary immediate is encodable.

The patch addresses two issues:
1. definition of t2SOImmNot immediate - it has to check that the orignal value is
not encoded naturally
2. t2AND and t2BIC instruction aliases which should use the Thumb2 SOImm operand 
rather than the ARM one.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188548 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-16 11:55:44 +00:00
..
AArch64 [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
ARM Fix Thumb2 aliasing complementary instructions taking modified immediates 2013-08-16 11:55:44 +00:00
AsmParser [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
COFF [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
Disassembler [SystemZ] Use SRST to implement strlen and strnlen 2013-08-16 11:41:43 +00:00
ELF [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
MachO [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
Markup MC: Simple example parser for MC assembly markup. 2012-10-31 23:24:13 +00:00
Mips This patch implements wait instruction for mips. Examples are added in test files. 2013-08-16 10:17:03 +00:00
PowerPC [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00
SystemZ [SystemZ] Use SRST to implement strlen and strnlen 2013-08-16 11:41:43 +00:00
X86 [tests] Cleanup initialization of test suffixes. 2013-08-16 00:37:11 +00:00