Lines Matching refs:rex

68 static void DumpReg0(std::ostream& os, uint8_t rex, size_t reg,  in DumpReg0()  argument
70 DCHECK_LT(reg, (rex == 0) ? 8u : 16u); in DumpReg0()
71 bool rex_w = (rex & REX_W) != 0; in DumpReg0()
73 os << ((rex == 0) ? gReg8Names[reg] : gExtReg8Names[reg]); in DumpReg0()
83 static void DumpAnyReg(std::ostream& os, uint8_t rex, size_t reg, in DumpAnyReg() argument
86 DumpReg0(os, rex, reg, byte_operand, size_override); in DumpAnyReg()
94 static void DumpReg(std::ostream& os, uint8_t rex, uint8_t reg, in DumpReg() argument
96 bool rex_r = (rex & REX_R) != 0; in DumpReg()
98 DumpAnyReg(os, rex, reg_num, byte_operand, size_override, reg_file); in DumpReg()
101 static void DumpRmReg(std::ostream& os, uint8_t rex, uint8_t reg, in DumpRmReg() argument
103 bool rex_b = (rex & REX_B) != 0; in DumpRmReg()
105 DumpAnyReg(os, rex, reg_num, byte_operand, size_override, reg_file); in DumpRmReg()
108 static void DumpAddrReg(std::ostream& os, uint8_t rex, uint8_t reg) { in DumpAddrReg() argument
109 if (rex != 0) { in DumpAddrReg()
116 static void DumpBaseReg(std::ostream& os, uint8_t rex, uint8_t reg) { in DumpBaseReg() argument
117 bool rex_b = (rex & REX_B) != 0; in DumpBaseReg()
119 DumpAddrReg(os, rex, reg_num); in DumpBaseReg()
122 static void DumpOpcodeReg(std::ostream& os, uint8_t rex, uint8_t reg, in DumpOpcodeReg() argument
124 bool rex_b = (rex & REX_B) != 0; in DumpOpcodeReg()
126 DumpReg0(os, rex, reg_num, byte_operand, size_override); in DumpOpcodeReg()
283 uint8_t rex = (supports_rex_ && (*instr >= 0x40) && (*instr <= 0x4F)) ? *instr : 0; in DumpInstruction() local
284 if (rex != 0) { in DumpInstruction()
368 if ((rex & REX_W) != 0) { in DumpInstruction()
951 rex |= (rex == 0 ? 0 : REX_W); in DumpInstruction()
1152 if ((rex & REX_W) != 0) { in DumpInstruction()
1286 uint8_t rex64 = supports_rex_ ? (rex | 0x40) : rex; in DumpInstruction()
1288 uint8_t rex_w = (supports_rex_ && target_specific) ? (rex | 0x48) : rex; in DumpInstruction()
1312 } else if ((rex & REX_W) != 0) { in DumpInstruction()
1320 DumpReg(args, rex, reg_or_opcode, byte_operand, prefix[2], dst_reg_file); in DumpInstruction()
1331 DumpReg(args, rex, reg_or_opcode, byte_operand, prefix[2], src_reg_file); in DumpInstruction()
1337 DumpReg(args, rex, 0 /* EAX */, byte_operand, prefix[2], GPR); in DumpInstruction()
1341 DumpReg(args, rex, 1 /* ECX */, true, prefix[2], GPR); in DumpInstruction()