Deleted Added
sdiff udiff text old ( 4172:141705d83494 ) new ( 4362:95e5f28ce484 )
full compact
1// Copyright (c) 2006-2007 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

--- 140 unchanged lines hidden (view full) ---

149
150def template ROrImmDecode {{
151 {
152 return (I ? (SparcStaticInst *)(new %(class_name)sImm(machInst))
153 : (SparcStaticInst *)(new %(class_name)s(machInst)));
154 }
155}};
156
157let {{
158 def splitOutImm(code):
159 matcher = re.compile(r'Rs(?P<rNum>\d)_or_imm(?P<iNum>\d+)(?P<typeQual>\.\w+)?')
160 rOrImmMatch = matcher.search(code)
161 if (rOrImmMatch == None):
162 return (False, code, '', '', '')
163 rString = rOrImmMatch.group("rNum")
164 if (rOrImmMatch.group("typeQual") != None):
165 rString += rOrImmMatch.group("typeQual")

--- 344 unchanged lines hidden ---