Teach disassembler to handle illegal immediates on (v)cmpps/pd/ss/sd instructions...
authorCraig Topper <craig.topper@gmail.com>
Fri, 26 Dec 2014 06:36:28 +0000 (06:36 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 26 Dec 2014 06:36:28 +0000 (06:36 +0000)
commit654a66dbd362e8a570e8caea4c6a1e9e52c0c88b
tree522f12b7a274167ff49546a51bbf127727ab9680
parent50d894e4d3b2dd7827463b30c4f61fc4c1c4824b
Teach disassembler to handle illegal immediates on (v)cmpps/pd/ss/sd instructions. Instead of rejecting we'll just generate the _alt forms that don't try to alter the mnemonic. While I'm here, merge some common code in the Instruction printers for the condition code replacement and fix the mask on SSE to be 3-bits instead of 4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224846 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/Disassembler/X86Disassembler.cpp
lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
test/MC/Disassembler/X86/invalid-cmp-imm.txt [deleted file]
test/MC/Disassembler/X86/x86-32.txt