llvm-6502/test/MC
Ulrich Weigand 33efedc048 [PowerPC] Use mtocrf when available
Just as with mfocrf, it is also preferable to use mtocrf instead of
mtcrf when only a single CR register is to be written.

Current code however always emits mtcrf.  This probably does not matter
when using an external assembler, since the GNU assembler will in fact
automatically replace mtcrf with mtocrf when possible.  It does create
inefficient code with the integrated assembler, however.

To fix this, this patch adds MTOCRF/MTOCRF8 instruction patterns and
uses those instead of MTCRF/MTCRF8 everything.  Just as done in the
MFOCRF patch committed as 185556, these patterns will be converted
back to MTCRF if MTOCRF is not available on the machine.

As a side effect, this allows to modify the MTCRF pattern to accept
the full range of mask operands for the benefit of the asm parser.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185561 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-03 17:59:07 +00:00
..
AArch64 Prefix failing commands with not to make clear they are expected to fail. 2013-07-03 16:41:29 +00:00
ARM Prefix failing commands with not to make clear they are expected to fail. 2013-07-03 16:41:29 +00:00
AsmParser Prefix failing commands with not to make clear they are expected to fail. 2013-07-03 16:41:29 +00:00
COFF [mc-coff] Forward Linker Option flags into the .drectve section 2013-04-25 19:34:41 +00:00
Disassembler This corrects the implementation of Thumb ADR instruction. There are three issues: 2013-07-03 09:21:44 +00:00
ELF Added the test missed from r185080. 2013-07-01 09:02:33 +00:00
MachO Revert r15266. This fixes llvm.org/pr15266. 2013-02-14 16:23:08 +00:00
Markup MC: Simple example parser for MC assembly markup. 2012-10-31 23:24:13 +00:00
MBlaze Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu 2012-03-25 09:02:19 +00:00
Mips [mips] Do not emit ".option pic0" if target is mips64. 2013-06-26 19:08:49 +00:00
PowerPC [PowerPC] Use mtocrf when available 2013-07-03 17:59:07 +00:00
SystemZ [SystemZ] Add the MVC instruction 2013-07-02 14:56:45 +00:00
X86 Prefix failing commands with not to make clear they are expected to fail. 2013-07-03 16:41:29 +00:00