integerop.isa (3273:5aa5cc05fff9) integerop.isa (3274:75d7e0bc4c1b)
1// Copyright (c) 2006 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

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

259 }
260}};
261
262let {{
263 def doIntFormat(code, ccCode, name, Name, opt_flags):
264 (usesImm, code, immCode,
265 rString, iString) = splitOutImm(code)
266 iop = InstObjParams(name, Name, 'IntOp', code,
1// Copyright (c) 2006 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

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

259 }
260}};
261
262let {{
263 def doIntFormat(code, ccCode, name, Name, opt_flags):
264 (usesImm, code, immCode,
265 rString, iString) = splitOutImm(code)
266 iop = InstObjParams(name, Name, 'IntOp', code,
267 opt_flags, ("cc_code", ccCode))
267 opt_flags, {"cc_code": ccCode})
268 header_output = BasicDeclare.subst(iop)
269 decoder_output = BasicConstructor.subst(iop)
270 exec_output = IntOpExecute.subst(iop)
271 if usesImm:
272 imm_iop = InstObjParams(name, Name + 'Imm', 'IntOpImm' + iString,
268 header_output = BasicDeclare.subst(iop)
269 decoder_output = BasicConstructor.subst(iop)
270 exec_output = IntOpExecute.subst(iop)
271 if usesImm:
272 imm_iop = InstObjParams(name, Name + 'Imm', 'IntOpImm' + iString,
273 immCode, opt_flags, ("cc_code", ccCode))
273 immCode, opt_flags, {"cc_code": ccCode})
274 header_output += BasicDeclare.subst(imm_iop)
275 decoder_output += BasicConstructor.subst(imm_iop)
276 exec_output += IntOpExecute.subst(imm_iop)
277 decode_block = ROrImmDecode.subst(iop)
278 else:
279 decode_block = BasicDecode.subst(iop)
280 return (header_output, decoder_output, exec_output, decode_block)
281

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

336 decoder_output,
337 exec_output,
338 decode_block) = doIntFormat(code, ccCode,
339 name, Name, opt_flags)
340}};
341
342def format SetHi(code, *opt_flags) {{
343 iop = InstObjParams(name, Name, 'SetHi',
274 header_output += BasicDeclare.subst(imm_iop)
275 decoder_output += BasicConstructor.subst(imm_iop)
276 exec_output += IntOpExecute.subst(imm_iop)
277 decode_block = ROrImmDecode.subst(iop)
278 else:
279 decode_block = BasicDecode.subst(iop)
280 return (header_output, decoder_output, exec_output, decode_block)
281

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

336 decoder_output,
337 exec_output,
338 decode_block) = doIntFormat(code, ccCode,
339 name, Name, opt_flags)
340}};
341
342def format SetHi(code, *opt_flags) {{
343 iop = InstObjParams(name, Name, 'SetHi',
344 code, opt_flags, ("cc_code", ''))
344 code, opt_flags, {"cc_code": ''})
345 header_output = BasicDeclare.subst(iop)
346 decoder_output = BasicConstructor.subst(iop)
347 exec_output = IntOpExecute.subst(iop)
348 decode_block = SetHiDecode.subst(iop)
349}};
350
345 header_output = BasicDeclare.subst(iop)
346 decoder_output = BasicConstructor.subst(iop)
347 exec_output = IntOpExecute.subst(iop)
348 decode_block = SetHiDecode.subst(iop)
349}};
350