Home | History | Annotate | Download | only in arm

Lines Matching refs:Instr

48 inline int DecodeConstantPoolLength(int instr) {
49 ASSERT((instr & kConstantPoolMarkerMask) == kConstantPoolMarker);
50 return ((instr >> 4) & 0xfff0) | (instr & 0xf);
75 // General constants are in an anonymous enum in class Instr.
140 // Instr is merely used by the Assembler to distinguish 32bit integers
144 typedef int32_t Instr;
433 extern const Instr kPopInstruction;
437 extern const Instr kPushRegPattern;
441 extern const Instr kPopRegPattern;
444 extern const Instr kMovLrPc;
446 extern const Instr kLdrPCMask;
447 extern const Instr kLdrPCPattern;
449 extern const Instr kVldrDPCMask;
450 extern const Instr kVldrDPCPattern;
452 extern const Instr kBlxRegMask;
454 extern const Instr kBlxRegPattern;
456 extern const Instr kMovMvnMask;
457 extern const Instr kMovMvnPattern;
458 extern const Instr kMovMvnFlip;
459 extern const Instr kMovLeaveCCMask;
460 extern const Instr kMovLeaveCCPattern;
461 extern const Instr kMovwMask;
462 extern const Instr kMovwPattern;
463 extern const Instr kMovwLeaveCCFlip;
464 extern const Instr kCmpCmnMask;
465 extern const Instr kCmpCmnPattern;
466 extern const Instr kCmpCmnFlip;
467 extern const Instr kAddSubFlip;
468 extern const Instr kAndBicFlip;
471 extern const Instr kLdrRegFpOffsetPattern;
473 extern const Instr kStrRegFpOffsetPattern;
475 extern const Instr kLdrRegFpNegOffsetPattern;
477 extern const Instr kStrRegFpNegOffsetPattern;
479 extern const Instr kLdrStrInstrTypeMask;
480 extern const Instr kLdrStrInstrArgumentMask;
481 extern const Instr kLdrStrOffsetMask;
489 // Note that the Assembler uses typedef int32_t Instr.
495 // Instruction* instr = Instruction::At(ptr);
496 // int type = instr->TypeValue();
497 // return ((type == 0) || (type == 1)) && instr->HasS();
511 static inline return_type Name(Instr instr
512 char* temp = reinterpret_cast<char*>(&instr); \
519 inline Instr InstructionBits() const {
520 return *reinterpret_cast<const Instr*>(this);
524 inline void SetInstructionBits(Instr value) {
525 *reinterpret_cast<Instr*>(this) = value;
546 static inline int Bit(Instr instr, int nr) {
547 return (instr >> nr) & 1;
551 static inline int Bits(Instr instr, int hi, int lo) {
552 return (instr >> lo) & ((2 << (hi - lo)) - 1);
557 static inline int BitField(Instr instr, int hi, int lo) {
558 return instr & (((2 << (hi - lo)) - 1) << lo);
568 // e.g. if instr is the 'addgt r0, r1, r2' instruction, encoded as
569 // 0xC0810002 ConditionField(instr) will return 0xC0000000.
571 // e.g. if instr is the 'addgt r0, r1, r2' instruction, encoded as
572 // 0xC0810002 ConditionField(instr) will return 0xC.