llvm-6502/test/MC/SystemZ
Richard Sandiford f386961da3 [SystemZ] Improve AsmParser register parsing
The idea is to make sure that:

(1) "register expected" is restricted to cases where ParseRegister()
    is called and the token obviously isn't a register.

(2) "invalid register" is restricted to cases where a register-like "%..."
    sequence is found, but the "..." makes no sense.

(3) the generic "invalid operand for instruction" is used in cases where
    the wrong register type is used (GPR instead of FPR, etc.).

(4) the new "invalid register pair" is used if the register has the right type,
    but is not a valid register pair.

Testing of (1)-(3) is now restricted to regs-bad.s.  It uses a representative
instruction for each register class to make sure that only registers from
that class are accepted.

(4) is tested by both regs-bad.s (which checks all invalid register pairs)
and insn-bad.s (which tests one invalid pair for each instruction that
requires a pair).

While there, I changed "Number" to "Num" for consistency with the
operand class.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182643 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-24 14:14:38 +00:00
..
insn-bad.s [SystemZ] Improve AsmParser register parsing 2013-05-24 14:14:38 +00:00
insn-good.s [SystemZ] Make use of SUBTRACT HALFWORD 2013-05-15 15:05:29 +00:00
lit.local.cfg
regs-bad.s [SystemZ] Improve AsmParser register parsing 2013-05-24 14:14:38 +00:00
regs-good.s [SystemZ] Consolidate assembler tests into 4 big tests 2013-05-15 09:58:19 +00:00