[X86] Decode MPX BND registers.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 14 Jul 2016 14:53:21 +0000 (14:53 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 14 Jul 2016 14:53:21 +0000 (14:53 +0000)
commit85dc93c56b39f400dcf6992bd9effac3d4bf6a90
tree1758c03d379f6778e15d60c8543de32bed4542f9
parent4f7a5e20aee6e1b4a9ad354bb80bdb551b946041
[X86] Decode MPX BND registers.

We were able to assemble, but not disassemble.

Note that fixupRMValue was truncating EA_REG_BND0-3 because we hit
the uint8_t max.  The control registers were already squarely above
it, but I don't think they ever go in .r/m, only in .reg.

I also did notice an extra REX.W in our encoding, but I think that's
fine.

llvm-svn: 275427
llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h
llvm/test/MC/X86/mpx-encodings.s