llvm-6502/test
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
..
Analysis Fix typos 2014-05-15 01:52:21 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
DebugInfo DebugInfo: Don't put fission type units in comdat sections. 2014-05-15 23:18:15 +00:00
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MC TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
Object [obj2yaml][ELF] Print relocation's offset as a hex number. Use a proper 2014-05-15 18:04:09 +00:00
Other
TableGen
tools ProfileData: Allow multiple profiles in RawInstrProfReader 2014-05-16 00:38:00 +00:00
Transforms Implement global merge optimization for global variables. 2014-05-15 23:45:42 +00:00
Unit
Verifier musttail: Fix the verification of alignment attributes 2014-05-15 23:58:57 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh