Searched refs:RMfield (Results 1 – 2 of 2) sorted by relevance
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86MCCodeEmitter.cpp | 459 unsigned RMfield = R16Table[BaseRegNo]; in emitMemModRMByte() local 461 assert(RMfield && "invalid 16-bit base register"); in emitMemModRMByte() 468 assert(((IndexReg16 ^ RMfield) & 2) && in emitMemModRMByte() 475 RMfield = (RMfield & 1) | ((7 - IndexReg16) << 1); in emitMemModRMByte() 477 RMfield = (IndexReg16 & 1) | ((7 - RMfield) << 1); in emitMemModRMByte() 481 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte() 483 EmitByte(ModRMByte(0, RegOpcodeField, RMfield), CurByte, OS); in emitMemModRMByte() 487 EmitByte(ModRMByte(1, RegOpcodeField, RMfield), CurByte, OS); in emitMemModRMByte() 492 EmitByte(ModRMByte(2, RegOpcodeField, RMfield), CurByte, OS); in emitMemModRMByte()
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86MCCodeEmitter.cpp | 425 unsigned RMfield = R16Table[BaseRegNo]; in emitMemModRMByte() local 427 assert(RMfield && "invalid 16-bit base register"); in emitMemModRMByte() 434 assert(((IndexReg16 ^ RMfield) & 2) && in emitMemModRMByte() 441 RMfield = (RMfield & 1) | ((7 - IndexReg16) << 1); in emitMemModRMByte() 443 RMfield = (IndexReg16 & 1) | ((7 - RMfield) << 1); in emitMemModRMByte() 449 EmitByte(ModRMByte(0, RegOpcodeField, RMfield), CurByte, OS); in emitMemModRMByte() 453 EmitByte(ModRMByte(1, RegOpcodeField, RMfield), CurByte, OS); in emitMemModRMByte() 458 EmitByte(ModRMByte(2, RegOpcodeField, RMfield), CurByte, OS); in emitMemModRMByte()
|