Visibly fail if attempting to encode register AH,BH,CH,DH in a REX-prefixed instruction.
authorDouglas Katzman <dougk@google.com>
Wed, 11 Nov 2015 15:51:16 +0000 (15:51 +0000)
committerDouglas Katzman <dougk@google.com>
Wed, 11 Nov 2015 15:51:16 +0000 (15:51 +0000)
commit7fd5a38591282a61e6327a2945bc6df36f9165dd
tree8f46d04d60693bc21ebe073cadbaefdf3d1a2ad5
parent5e49f41b8d208ddcf4608730d1c28f976be5f1fa
Visibly fail if attempting to encode register AH,BH,CH,DH in a REX-prefixed instruction.

Differential Revision: http://reviews.llvm.org/D13316
Fixes PR25003

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
test/MC/X86/encoder-fail.s [new file with mode: 0644]