Lines Matching refs:rex
79 static void DumpReg0(std::ostream& os, uint8_t rex, size_t reg, in DumpReg0() argument
81 DCHECK_LT(reg, (rex == 0) ? 8u : 16u); in DumpReg0()
82 bool rex_w = (rex & REX_W) != 0; in DumpReg0()
84 os << ((rex == 0) ? gReg8Names[reg] : gExtReg8Names[reg]); in DumpReg0()
94 static void DumpAnyReg(std::ostream& os, uint8_t rex, size_t reg, in DumpAnyReg() argument
97 DumpReg0(os, rex, reg, byte_operand, size_override); in DumpAnyReg()
105 static void DumpReg(std::ostream& os, uint8_t rex, uint8_t reg, in DumpReg() argument
107 bool rex_r = (rex & REX_R) != 0; in DumpReg()
109 DumpAnyReg(os, rex, reg_num, byte_operand, size_override, reg_file); in DumpReg()
112 static void DumpRmReg(std::ostream& os, uint8_t rex, uint8_t reg, in DumpRmReg() argument
114 bool rex_b = (rex & REX_B) != 0; in DumpRmReg()
116 DumpAnyReg(os, rex, reg_num, byte_operand, size_override, reg_file); in DumpRmReg()
119 static void DumpAddrReg(std::ostream& os, uint8_t rex, uint8_t reg) { in DumpAddrReg() argument
120 if (rex != 0) { in DumpAddrReg()
127 static void DumpBaseReg(std::ostream& os, uint8_t rex, uint8_t reg) { in DumpBaseReg() argument
128 bool rex_b = (rex & REX_B) != 0; in DumpBaseReg()
130 DumpAddrReg(os, rex, reg_num); in DumpBaseReg()
133 static void DumpOpcodeReg(std::ostream& os, uint8_t rex, uint8_t reg, in DumpOpcodeReg() argument
135 bool rex_b = (rex & REX_B) != 0; in DumpOpcodeReg()
137 DumpReg0(os, rex, reg_num, byte_operand, size_override); in DumpOpcodeReg()
325 uint8_t rex = (supports_rex_ && (*instr >= 0x40) && (*instr <= 0x4F)) ? *instr : 0; in DumpInstruction() local
326 if (rex != 0) { in DumpInstruction()
415 if ((rex & REX_W) != 0) { in DumpInstruction()
1126 rex |= (rex == 0 ? 0 : REX_W); in DumpInstruction()
1367 if ((rex & REX_W) != 0) { in DumpInstruction()
1502 uint8_t rex64 = supports_rex_ ? (rex | 0x40) : rex; in DumpInstruction()
1504 uint8_t rex_w = (supports_rex_ && target_specific) ? (rex | 0x48) : rex; in DumpInstruction()
1528 } else if ((rex & REX_W) != 0) { in DumpInstruction()
1536 DumpReg(args, rex, reg_or_opcode, byte_operand, prefix[2], dst_reg_file); in DumpInstruction()
1548 DumpReg(args, rex, reg_or_opcode, byte_operand, prefix[2], src_reg_file); in DumpInstruction()
1554 DumpReg(args, rex, 0 /* EAX */, byte_operand, prefix[2], GPR); in DumpInstruction()
1558 DumpReg(args, rex, 1 /* ECX */, true, prefix[2], GPR); in DumpInstruction()