llvm/test/MC/Sparc
Tim Northover a9a94ce839 TableGen: fix operand counting for aliases
TableGen has a fairly dubious heuristic to decide whether an alias should be
printed: does the alias have lest operands than the real instruction. This is
bad enough (particularly with no way to override it), but it should at least be
calculated consistently for both strings.

This patch implements that logic: first get the *correct* string for the
variant, in the same way as the Matcher, without guessing; then count the
number of whitespace chars.

There are basically 4 changes this brings about after the previous
commits; all of these appear to be good, so I have changed the tests:

+ ARM64: we print "neg X, Y" instead of "sub X, xzr, Y".
+ ARM64: we skip implicit "uxtx" and "uxtw" modifiers.
+ Sparc: we print "mov A, B" instead of "or %g0, A, B".
+ Sparc: we print "fcmpX A, B" instead of "fcmpX %fcc0, A, B"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208969 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-16 09:42:04 +00:00
..
lit.local.cfg
sparc64-alu-instructions.s [SparcV9] Rename operands in some sparc64 instructions so that TableGen can encode them correctly. 2014-01-08 07:47:57 +00:00
sparc64-ctrl-instructions.s [Sparc] Add trap on integer condition codes (Ticc) instructions to Sparc backend. 2014-03-02 23:39:07 +00:00
sparc-alu-instructions.s TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
sparc-atomic-instructions.s [Sparc] Emit correct encoding for atomic instructions. Also, add support for parsing CAS instructions to test the CAS encoding. 2014-02-07 07:34:49 +00:00
sparc-ctrl-instructions.s [Sparc] Add return/rett instruction to Sparc backend. 2014-03-02 22:55:53 +00:00
sparc-directive-xword.s [Sparc] Add support for parsing directives in SparcAsmParser. 2014-03-01 02:18:04 +00:00
sparc-directives.s [Sparc] Add support for parsing directives in SparcAsmParser. 2014-03-01 02:18:04 +00:00
sparc-fp-instructions.s TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
sparc-mem-instructions.s [Sparc] Add support for parsing memory operands in sparc AsmParser. 2014-01-07 01:49:11 +00:00
sparc-nop-data.s [Sparc] Implement writeNopData. Emit actual NOP instruction instead of just filling with zeroes. 2014-03-01 05:45:09 +00:00
sparc-pic.s Add support for parsing sun-style section flags in ELFAsmParser. 2014-03-01 06:21:00 +00:00
sparc-relocations.s [Sparc] Add support for sparc relocation types in ELF object file. 2014-01-26 03:21:28 +00:00
sparc-vis.s [Sparc] Add VIS instructions to sparc backend. 2014-03-02 19:31:21 +00:00
sparcv8-instructions.s [Sparc] Add fcmpe* instructions to Sparc backend. 2014-03-02 19:56:19 +00:00
sparcv9-instructions.s [Sparc] Add support for parsing sparcv9 instructions addc/subc/addccc/subccc. 2014-03-01 18:54:52 +00:00