[X86] Remove special validation for INT immediate operand from AsmParser. Instead...
authorCraig Topper <craig.topper@gmail.com>
Sun, 11 Oct 2015 18:27:24 +0000 (18:27 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 11 Oct 2015 18:27:24 +0000 (18:27 +0000)
commita9d6f4a14a48b56b03019cce3386532d4110256d
treec335bd45b1babd283bc023cde98b93ea342e0097
parent6bb2edf33ac4781689b8b059b5e8a8d571e77227
[X86] Remove special validation for INT immediate operand from AsmParser. Instead mark its operand type as u8imm which will cause it to fail to match. This is more consistent with other instruction behavior.

This also fixes a bug where negative immediates below -128 were not being reported as errors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249989 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/X86InstrSystem.td
test/CodeGen/X86/int-intrinsic.ll
test/MC/X86/validate-inst-att.s
test/MC/X86/validate-inst-intel.s