llvm-6502/test/MC/Disassembler/ARM64
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
..
advsimd.txt ARM64: print correct aliases for NEON mov & mvn instructions 2014-05-15 12:11:02 +00:00
arithmetic.txt TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
basic-a64-undefined.txt [ARM64] SCVTF and FCVTZS/U are undefined if scale<5> == 0. 2014-04-09 14:43:35 +00:00
bitfield.txt AArch64/ARM64: print BFM instructions as BFI or BFXIL 2014-05-01 12:29:38 +00:00
branch.txt ARM64: hexify printing various immediate operands 2014-04-30 11:19:28 +00:00
canonical-form.txt [ARM64] Enable feature predicates for NEON / FP / CRYPTO. 2014-04-23 06:22:48 +00:00
crc32.txt [ARM64] Support crc predicate on ARM64. 2014-04-25 09:25:42 +00:00
crypto.txt [ARM64] Enable feature predicates for NEON / FP / CRYPTO. 2014-04-23 06:22:48 +00:00
invalid-logical.txt
lit.local.cfg
logical.txt [ARM64] Flag setting logical/add/sub immediate instructions don't use SP. 2014-04-09 14:44:44 +00:00
memory.txt [ARM64] Fix disassembly logic for extended loads/stores with 32-bit registers. 2014-04-09 14:44:36 +00:00
non-apple-fmov.txt [ARM64] Enable feature predicates for NEON / FP / CRYPTO. 2014-04-23 06:22:48 +00:00
scalar-fp.txt ARM64: print fp immediates without using scientific notation. 2014-04-30 16:13:34 +00:00
system.txt [ARM64] Change SYS without a register to an alias to make disassembling more consistant. 2014-04-09 14:44:58 +00:00