MC/X86 AsmParser: Handle absolute memory operands correctly. We were doing
authorDaniel Dunbar <daniel@zuster.org>
Sat, 30 Jan 2010 01:02:48 +0000 (01:02 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 30 Jan 2010 01:02:48 +0000 (01:02 +0000)
commitb834f5d13d824dc4da2ce0df2aa8dffb697b8974
treea6f35042b4ea7e7b7ff4c92a573391867796695b
parenta2f5e00347641d1b46ce4f65bf9378fecce9be14
MC/X86 AsmParser: Handle absolute memory operands correctly. We were doing
something totally broken and parsing them as immediates, but the .td file also
had the wrong match class so things sortof worked. Except, that is, that we
would parse
  movl $0, %eax
as
  movl 0, %eax
Feel free to guess how well that worked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/X86InstrInfo.td
test/MC/AsmParser/X86/x86_instructions.s
test/MC/AsmParser/labels.s