llvm-6502/test/CodeGen/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
..
64abi.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
64bit.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
64cond.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
64spill.ll
2006-01-22-BitConvertLegalize.ll
2007-05-09-JumpTables.ll
2007-07-05-LiveIntervalAssert.ll
2008-10-10-InlineAsmMemoryOperand.ll
2008-10-10-InlineAsmRegOperand.ll
2009-08-28-PIC.ll
2009-08-28-WeakLinkage.ll
2011-01-11-Call.ll
2011-01-11-CC.ll
2011-01-11-FrameAddr.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
2011-01-19-DelaySlot.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
2011-01-21-ByValArgs.ll
2011-01-22-SRet.ll
2011-12-03-TailDuplication.ll
2012-05-01-LowerArguments.ll
2013-05-17-CallFrame.ll
atomics.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
basictest.ll
blockaddr.ll
constpool.ll
ctpop.ll
DbgValueOtherTargets.test
exception.ll Remove the -disable-cfi option. 2014-05-05 17:33:26 +00:00
float.ll
fp128.ll
globals.ll
inlineasm.ll
leafproc.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
lit.local.cfg
mature-mc-support.ll [Sparc] Add support for parsing directives in SparcAsmParser. 2014-03-01 02:18:04 +00:00
missinglabel.ll
mult-alt-generic-sparc.ll
obj-relocs.ll
parts.ll TableGen: fix operand counting for aliases 2014-05-16 09:42:04 +00:00
private.ll
rem.ll
setjmp.ll Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
spillsize.ll
sret-secondary.ll Allow sret on the second parameter as well as the first 2014-05-09 22:32:13 +00:00
tls.ll
trap.ll
varargs.ll