First round of fixes for the x86 fixes for the x86 move accumulator from/to memory...
authorCraig Topper <craig.topper@gmail.com>
Sun, 25 Aug 2013 22:23:38 +0000 (22:23 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 25 Aug 2013 22:23:38 +0000 (22:23 +0000)
commita4959f3f6eb9b6ab3cbbe085a2797208682e96c6
tree0bb606cb8e2250fe925ca7af32b9b8ab1ad1a9ac
parentf27c35347aa9fdd36c4ed6268380e2574ccfc87f
First round of fixes for the x86 fixes for the x86 move accumulator from/to memory offset instructions.

-Assembly parser now properly check the size of the memory operation specified in intel syntax. So 'mov word ptr [5], al' is no longer accepted.
-x86-32 disassembly of these instructions no longer sign extends the 32-bit address immediate based on size.
-Intel syntax printing prints the ptr size and places brackets around the address immediate.

Known remaining issues with these instructions:
-Segment override prefix is not supported. PR16962 and PR16961.
-Immediate size should be changed by address size prefix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189201 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/Disassembler/X86Disassembler.cpp
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/InstPrinter/X86ATTInstPrinter.h
lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
lib/Target/X86/InstPrinter/X86IntelInstPrinter.h
lib/Target/X86/X86InstrInfo.td
test/MC/Disassembler/X86/intel-syntax-32.txt
test/MC/Disassembler/X86/intel-syntax.txt
test/MC/Disassembler/X86/x86-32.txt