Home | History | Annotate | Download | only in arm

Lines Matching refs:Instr

25 inline int DecodeConstantPoolLength(int instr) {
26 DCHECK((instr & kConstantPoolMarkerMask) == kConstantPoolMarker);
27 return ((instr >> 4) & 0xfff0) | (instr & 0xf);
55 // General constants are in an anonymous enum in class Instr.
120 // Instr is merely used by the Assembler to distinguish 32bit integers
124 typedef int32_t Instr;
413 // Note that the Assembler uses typedef int32_t Instr.
419 // Instruction* instr = Instruction::At(ptr);
420 // int type = instr->TypeValue();
421 // return ((type == 0) || (type == 1)) && instr->HasS();
435 static inline return_type Name(Instr instr) { \
436 char* temp = reinterpret_cast<char*>(&instr); \
443 inline Instr InstructionBits() const {
444 return *reinterpret_cast<const Instr*>(this);
448 inline void SetInstructionBits(Instr value) {
449 *reinterpret_cast<Instr*>(this) = value;
470 static inline int Bit(Instr instr, int nr) {
471 return (instr >> nr) & 1;
475 static inline int Bits(Instr instr, int hi, int lo) {
476 return (instr >> lo) & ((2 << (hi - lo)) - 1);
481 static inline int BitField(Instr instr, int hi, int lo) {
482 return instr & (((2 << (hi - lo)) - 1) << lo);
492 // e.g. if instr is the 'addgt r0, r1, r2' instruction, encoded as
493 // 0xC0810002 ConditionField(instr) will return 0xC0000000.
495 // e.g. if instr is the 'addgt r0, r1, r2' instruction, encoded as
496 // 0xC0810002 ConditionField(instr) will return 0xC.