MC/X86: Subdivide immediates a bit more, so that we properly recognize immediates...
authorDaniel Dunbar <daniel@zuster.org>
Sat, 22 May 2010 21:02:33 +0000 (21:02 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 22 May 2010 21:02:33 +0000 (21:02 +0000)
commit62e4c671b6b0f13c04a20bb43c05bfe84984ef34
tree89eddc03327d26efb48cd8430d0a0cc0a69b21e5
parent54ddf3d9c756881021afcb869a6ec892a21aef5b
MC/X86: Subdivide immediates a bit more, so that we properly recognize immediates based on the width of the target instruction. For example:
  addw $0xFFFF, %ax
should match the same as
  addw $-1, %ax
but we used to match it to the longer encoding.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
lib/Target/X86/X86Instr64bit.td
lib/Target/X86/X86InstrInfo.td
test/MC/AsmParser/X86/x86_64-imm-widths.s [new file with mode: 0644]