have tblgen detect when an instruction would have matched, but
authorChris Lattner <sabre@nondot.org>
Mon, 6 Sep 2010 20:08:02 +0000 (20:08 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Sep 2010 20:08:02 +0000 (20:08 +0000)
commitec6789f4f97ca1701c163132b6e3388366463090
tree40eb7ca0bc1b84596d749e001625afb88df3bac7
parent79ed3f77e8b87615b80054ca6e4e3ba5e07445bd
have tblgen detect when an instruction would have matched, but
failed because a subtarget feature was not enabled.  Use this to
remove a bunch of hacks from the X86AsmParser for rejecting things
like popfl in 64-bit mode.  Previously these hacks weren't needed,
but were important to get a message better than "invalid instruction"
when used in the wrong mode.

This also fixes bugs where pushal would not be rejected correctly in
32-bit mode (just pusha).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp