Home
last modified time | relevance | path

Searched refs:IndexReg16 (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Target/X86/MCTargetDesc/
DX86MCCodeEmitter.cpp430 unsigned IndexReg16 = R16Table[GetX86RegNum(IndexReg)]; in emitMemModRMByte() local
432 assert(IndexReg16 && "invalid 16-bit index register"); in emitMemModRMByte()
434 assert(((IndexReg16 ^ RMfield) & 2) && in emitMemModRMByte()
440 if (IndexReg16 & 2) in emitMemModRMByte()
441 RMfield = (RMfield & 1) | ((7 - IndexReg16) << 1); in emitMemModRMByte()
443 RMfield = (IndexReg16 & 1) | ((7 - RMfield) << 1); in emitMemModRMByte()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/MCTargetDesc/
DX86MCCodeEmitter.cpp464 unsigned IndexReg16 = R16Table[GetX86RegNum(IndexReg)]; in emitMemModRMByte() local
466 assert(IndexReg16 && "invalid 16-bit index register"); in emitMemModRMByte()
468 assert(((IndexReg16 ^ RMfield) & 2) && in emitMemModRMByte()
474 if (IndexReg16 & 2) in emitMemModRMByte()
475 RMfield = (RMfield & 1) | ((7 - IndexReg16) << 1); in emitMemModRMByte()
477 RMfield = (IndexReg16 & 1) | ((7 - RMfield) << 1); in emitMemModRMByte()