X86: validate 'int' instruction
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 14 Jan 2015 05:10:21 +0000 (05:10 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 14 Jan 2015 05:10:21 +0000 (05:10 +0000)
commit1679d0d3c27e82cf22837e101e10837a790b723e
tree739e73c1ea954153fbabe2eab350991404e1aa76
parent2a3852228003e2ced6b069c4d52719e08a03c3a5
X86: validate 'int' instruction

The int instruction takes as an operand an 8-bit immediate value.  Validate that
the input is valid rather than silently truncating the value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225941 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/X86/validate-inst-att.s [new file with mode: 0644]
test/MC/X86/validate-inst-intel.s [new file with mode: 0644]