Fix the operand type tag parser to recognize multi character register names.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 13 Jun 2007 18:08:06 +0000 (18:08 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 13 Jun 2007 18:08:06 +0000 (18:08 +0000)
--HG--
extra : convert_revision : e025620e29f2515d51240e96c4a05a4f74bdf72e

src/arch/x86/isa/specialize.isa

index 8312fcdc56e4d334a8ffd22841c39e1845928db5..37f523efc1acc301bf2d2fec22bd2b85d8f3bbbe 100644 (file)
@@ -85,7 +85,7 @@ let {{
 
 let {{
     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):
             match = OpType.parser.search(opTypeString)
             if match == None: