llvm-6502/test/MC/PowerPC
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
..
lit.local.cfg
ppc64-encoding-bookII.s [PowerPC] Also add "msync" alias 2013-07-01 20:39:50 +00:00
ppc64-encoding-ext.s [PowerPC] Use mtocrf when available 2013-07-03 17:59:07 +00:00
ppc64-encoding-fp.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-encoding-vmx.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-encoding.s [PowerPC] Use mtocrf when available 2013-07-03 17:59:07 +00:00
ppc64-errors.s [PowerPC] Accept 17-bit signed immediates for addis 2013-06-26 13:49:53 +00:00
ppc64-fixup-apply.s [PowerPC] Support @higher et.al. modifiers 2013-06-21 14:43:42 +00:00
ppc64-fixup-explicit.s [PowerPC] Fix @got references to local symbols 2013-07-01 18:19:56 +00:00
ppc64-fixups.s [PowerPC] PR16512 - Support TLS call sequences in the asm parser 2013-07-02 21:31:59 +00:00
ppc64-initial-cfa.s [MC/DWARF] Support .debug_frame / .debug_line code alignment factors 2013-06-12 14:46:54 +00:00
ppc64-operands.s [PowerPC] Accept 17-bit signed immediates for addis 2013-06-26 13:49:53 +00:00
ppc64-regs.s Cleanup PPC Altivec registers in CSR lists and improve VRSAVE handling 2013-07-02 03:39:34 +00:00
ppc64-relocs-01.s [PowerPC] Use assembler source in MC tests 2013-06-12 14:14:18 +00:00
ppc64-tls-relocs-01.s [PowerPC] Use assembler source in MC tests 2013-06-12 14:14:18 +00:00