[SystemZ] Allow specifying plain register numbers in AsmParser
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 29 Apr 2020 17:59:50 +0000 (19:59 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 29 Apr 2020 18:42:30 +0000 (20:42 +0200)
commite1de2773a534957305d7a559c6d88c4b5ac354e2
treede1f453a835e57ad16648d5f0c39cb12018ce346
parent6bfde063f0a7c336fb4c82a4b72da9b3812d31d0
[SystemZ] Allow specifying plain register numbers in AsmParser

For compatibility with other assemblers on the platform, allow
using just plain integer register numbers in all places where a
register operand is expected.

Bug: llvm.org/PR45582
llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
llvm/test/MC/SystemZ/regs-bad.s
llvm/test/MC/SystemZ/regs-good.s