Lines Matching refs:instr
48 inline int DecodeConstantPoolLength(int instr) {
49 ASSERT((instr & kConstantPoolMarkerMask) == kConstantPoolMarker);
50 return ((instr >> 4) & 0xfff0) | (instr & 0xf);
78 // General constants are in an anonymous enum in class Instr.
143 // Instr is merely used by the Assembler to distinguish 32bit integers
147 typedef int32_t Instr;
438 extern const Instr kPopInstruction;
442 extern const Instr kPushRegPattern;
446 extern const Instr kPopRegPattern;
449 extern const Instr kMovLrPc;
451 extern const Instr kLdrPCMask;
452 extern const Instr kLdrPCPattern;
454 extern const Instr kVldrDPCMask;
455 extern const Instr kVldrDPCPattern;
457 extern const Instr kBlxRegMask;
459 extern const Instr kBlxRegPattern;
461 extern const Instr kMovMvnMask;
462 extern const Instr kMovMvnPattern;
463 extern const Instr kMovMvnFlip;
464 extern const Instr kMovLeaveCCMask;
465 extern const Instr kMovLeaveCCPattern;
466 extern const Instr kMovwMask;
467 extern const Instr kMovwPattern;
468 extern const Instr kMovwLeaveCCFlip;
469 extern const Instr kCmpCmnMask;
470 extern const Instr kCmpCmnPattern;
471 extern const Instr kCmpCmnFlip;
472 extern const Instr kAddSubFlip;
473 extern const Instr kAndBicFlip;
476 extern const Instr kLdrRegFpOffsetPattern;
478 extern const Instr kStrRegFpOffsetPattern;
480 extern const Instr kLdrRegFpNegOffsetPattern;
482 extern const Instr kStrRegFpNegOffsetPattern;
484 extern const Instr kLdrStrInstrTypeMask;
485 extern const Instr kLdrStrInstrArgumentMask;
486 extern const Instr kLdrStrOffsetMask;
494 // Note that the Assembler uses typedef int32_t Instr.
500 // Instruction* instr = Instruction::At(ptr);
501 // int type = instr->TypeValue();
502 // return ((type == 0) || (type == 1)) && instr->HasS();
516 static inline return_type Name(Instr instr) { \
517 char* temp = reinterpret_cast<char*>(&instr); \
524 inline Instr InstructionBits() const {
525 return *reinterpret_cast<const Instr*>(this);
529 inline void SetInstructionBits(Instr value) {
530 *reinterpret_cast<Instr*>(this) = value;
551 static inline int Bit(Instr instr, int nr) {
552 return (instr >> nr) & 1;
556 static inline int Bits(Instr instr, int hi, int lo) {
557 return (instr >> lo) & ((2 << (hi - lo)) - 1);
562 static inline int BitField(Instr instr, int hi, int lo) {
563 return instr & (((2 << (hi - lo)) - 1) << lo);
573 // e.g. if instr is the 'addgt r0, r1, r2' instruction, encoded as
574 // 0xC0810002 ConditionField(instr) will return 0xC0000000.
576 // e.g. if instr is the 'addgt r0, r1, r2' instruction, encoded as
577 // 0xC0810002 ConditionField(instr) will return 0xC.