misc.isa (7252:bba68021edca) misc.isa (7254:f92b3246fa96)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

453 header_output += RegRegRegRegOpDeclare.subst(usada8Iop)
454 decoder_output += RegRegRegRegOpConstructor.subst(usada8Iop)
455 exec_output += PredOpExecute.subst(usada8Iop)
456
457 nopIop = InstObjParams("nop", "NopInst", "ArmStaticInst", "", [])
458 header_output += BasicDeclare.subst(nopIop)
459 decoder_output += BasicConstructor.subst(nopIop)
460 exec_output += BasicExecute.subst(nopIop)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

453 header_output += RegRegRegRegOpDeclare.subst(usada8Iop)
454 decoder_output += RegRegRegRegOpConstructor.subst(usada8Iop)
455 exec_output += PredOpExecute.subst(usada8Iop)
456
457 nopIop = InstObjParams("nop", "NopInst", "ArmStaticInst", "", [])
458 header_output += BasicDeclare.subst(nopIop)
459 decoder_output += BasicConstructor.subst(nopIop)
460 exec_output += BasicExecute.subst(nopIop)
461
462 ubfxCode = '''
463 Dest = bits(Op1, imm2, imm1);
464 '''
465 ubfxIop = InstObjParams("ubfx", "Ubfx", "RegRegImmImmOp",
466 { "code": ubfxCode,
467 "predicate_test": predicateTest }, [])
468 header_output += RegRegImmImmOpDeclare.subst(ubfxIop)
469 decoder_output += RegRegImmImmOpConstructor.subst(ubfxIop)
470 exec_output += PredOpExecute.subst(ubfxIop)
471
472 sbfxCode = '''
473 int32_t resTemp = bits(Op1, imm2, imm1);
474 Dest = resTemp | -(resTemp & (1 << (imm2 - imm1)));
475 '''
476 sbfxIop = InstObjParams("sbfx", "Sbfx", "RegRegImmImmOp",
477 { "code": sbfxCode,
478 "predicate_test": predicateTest }, [])
479 header_output += RegRegImmImmOpDeclare.subst(sbfxIop)
480 decoder_output += RegRegImmImmOpConstructor.subst(sbfxIop)
481 exec_output += PredOpExecute.subst(sbfxIop)
461}};
482}};