Fixed the encoding of the x86 push instructions. Using a 32-bit immediate value
authorKevin Enderby <enderby@apple.com>
Mon, 3 May 2010 20:45:05 +0000 (20:45 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 3 May 2010 20:45:05 +0000 (20:45 +0000)
commit3c979b06c041544b97b13c5adac1a91d6cde6582
treec0f1edec0f5a24e5a24691945dbbc2c071faf5d9
parent5f84c0293f2150ac0f8fab8b7fb14f87161c8bf2
Fixed the encoding of the x86 push instructions.  Using a 32-bit immediate value
caused the a pushl instruction to be incorrectly encoding using only two bytes
of immediate, causing the following 2 instruction bytes to be part of the 32-bit
immediate value.  Also fixed the one byte form of push to be used when the
immediate would fit in a signed extended byte.  Lastly changed the names to not
include the 32 of PUSH32 since they actually push the size of the stack pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102951 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.td
test/MC/AsmParser/X86/x86_32-encoding.s