Add the extended XMM registers mappings for AVX-512.

After this we should have the entire AVX-512 register set
mapping in place.

llvm-svn: 340118
This commit is contained in:
Zachary Turner 2018-08-18 03:54:16 +00:00
parent bb3b7cff96
commit bc94ae437f
2 changed files with 34 additions and 0 deletions

View File

@ -276,6 +276,23 @@ CV_REGISTER(AMD64_YMM13, 381)
CV_REGISTER(AMD64_YMM14, 382)
CV_REGISTER(AMD64_YMM15, 383)
CV_REGISTER(AMD64_XMM16, 694)
CV_REGISTER(AMD64_XMM17, 695)
CV_REGISTER(AMD64_XMM18, 696)
CV_REGISTER(AMD64_XMM19, 697)
CV_REGISTER(AMD64_XMM20, 698)
CV_REGISTER(AMD64_XMM21, 699)
CV_REGISTER(AMD64_XMM22, 700)
CV_REGISTER(AMD64_XMM23, 701)
CV_REGISTER(AMD64_XMM24, 702)
CV_REGISTER(AMD64_XMM25, 703)
CV_REGISTER(AMD64_XMM26, 704)
CV_REGISTER(AMD64_XMM27, 705)
CV_REGISTER(AMD64_XMM28, 706)
CV_REGISTER(AMD64_XMM29, 707)
CV_REGISTER(AMD64_XMM30, 708)
CV_REGISTER(AMD64_XMM31, 709)
CV_REGISTER(AMD64_YMM16, 710)
CV_REGISTER(AMD64_YMM17, 711)
CV_REGISTER(AMD64_YMM18, 712)

View File

@ -251,6 +251,23 @@ void X86_MC::initLLVMToSEHAndCVRegMapping(MCRegisterInfo *MRI) {
{codeview::RegisterId::AMD64_K5, X86::K5},
{codeview::RegisterId::AMD64_K6, X86::K6},
{codeview::RegisterId::AMD64_K7, X86::K7},
{codeview::RegisterId::AMD64_XMM16, X86::XMM16},
{codeview::RegisterId::AMD64_XMM17, X86::XMM17},
{codeview::RegisterId::AMD64_XMM18, X86::XMM18},
{codeview::RegisterId::AMD64_XMM19, X86::XMM19},
{codeview::RegisterId::AMD64_XMM20, X86::XMM20},
{codeview::RegisterId::AMD64_XMM21, X86::XMM21},
{codeview::RegisterId::AMD64_XMM22, X86::XMM22},
{codeview::RegisterId::AMD64_XMM23, X86::XMM23},
{codeview::RegisterId::AMD64_XMM24, X86::XMM24},
{codeview::RegisterId::AMD64_XMM25, X86::XMM25},
{codeview::RegisterId::AMD64_XMM26, X86::XMM26},
{codeview::RegisterId::AMD64_XMM27, X86::XMM27},
{codeview::RegisterId::AMD64_XMM28, X86::XMM28},
{codeview::RegisterId::AMD64_XMM29, X86::XMM29},
{codeview::RegisterId::AMD64_XMM30, X86::XMM30},
{codeview::RegisterId::AMD64_XMM31, X86::XMM31},
};
for (unsigned I = 0; I < array_lengthof(RegMap); ++I)
MRI->mapLLVMRegToCVReg(RegMap[I].Reg, static_cast<int>(RegMap[I].CVReg));