seqop.isa (5692:0d6addcde185) seqop.isa (5788:6d4161a36ca1)
1// Copyright (c) 2008 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// Redistribution and use of this software in source and binary forms,
5// with or without modification, are permitted provided that the
6// following conditions are met:
7//
8// The software must be used only for Non-Commercial Use which means any

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

176 if not isinstance(flags, (list, tuple)):
177 raise Exception, "flags must be a list or tuple of flags"
178 self.cond = " | ".join(flags)
179 self.className += "Flags"
180 else:
181 self.cond = "0"
182
183 def getAllocator(self, *microFlags):
1// Copyright (c) 2008 The Hewlett-Packard Development Company
2// All rights reserved.
3//
4// Redistribution and use of this software in source and binary forms,
5// with or without modification, are permitted provided that the
6// following conditions are met:
7//
8// The software must be used only for Non-Commercial Use which means any

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

176 if not isinstance(flags, (list, tuple)):
177 raise Exception, "flags must be a list or tuple of flags"
178 self.cond = " | ".join(flags)
179 self.className += "Flags"
180 else:
181 self.cond = "0"
182
183 def getAllocator(self, *microFlags):
184 allocator = '''new %(class_name)s(machInst, mnemonic
184 allocator = '''new %(class_name)s(machInst, macrocodeBlock
185 %(flags)s, %(target)s, %(cc)s)''' % {
186 "class_name" : self.className,
187 "flags" : self.microFlagsText(microFlags),
188 "target" : self.target,
189 "cc" : self.cond}
190 return allocator
191
192 class Br(SeqOp):

--- 59 unchanged lines hidden ---
185 %(flags)s, %(target)s, %(cc)s)''' % {
186 "class_name" : self.className,
187 "flags" : self.microFlagsText(microFlags),
188 "target" : self.target,
189 "cc" : self.cond}
190 return allocator
191
192 class Br(SeqOp):

--- 59 unchanged lines hidden ---