[X86] Error on using h-registers with REX prefix in the assembler instead of leaving...
authorCraig Topper <craig.topper@gmail.com>
Wed, 21 Oct 2020 03:59:27 +0000 (20:59 -0700)
committerCraig Topper <craig.topper@gmail.com>
Wed, 21 Oct 2020 04:35:44 +0000 (21:35 -0700)
commit79a69f558f9fa6728da7354d4b30a97f0c945a58
tree4f5cc7005e12588221631cb1de66a44e3b0eb121
parentd9f91a3d14526fbc1d8cc9b98dbd8a093acf37d0
[X86] Error on using h-registers with REX prefix in the assembler instead of leaving it to a fatal error in the encoder.

Using a fatal error is bad for user experience.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D89837
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/MC/X86/encoder-fail.s