Fix the operand type tag parser to recognize multi character register names.

--HG--
extra : convert_revision : e025620e29f2515d51240e96c4a05a4f74bdf72e
This commit is contained in:
Gabe Black 2007-06-13 18:08:06 +00:00
parent 715efab3b9
commit 5fd567425d

View file

@ -85,7 +85,7 @@ let {{
let {{ let {{
class OpType(object): class OpType(object):
parser = re.compile(r"(?P<tag>[A-Z][A-Z]*)(?P<size>[a-z][a-z]*)|(r(?P<reg>[A-Z0-9])(?P<rsize>[a-z]*))") parser = re.compile(r"(?P<tag>[A-Z][A-Z]*)(?P<size>[a-z][a-z]*)|(r(?P<reg>[A-Z0-9]*)(?P<rsize>[a-z]*))")
def __init__(self, opTypeString): def __init__(self, opTypeString):
match = OpType.parser.search(opTypeString) match = OpType.parser.search(opTypeString)
if match == None: if match == None: