OSDN Git Service

[X86] Fix incorrect/inefficient pushw encodings for x86-64 targets
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 5 Jul 2015 10:25:41 +0000 (10:25 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 5 Jul 2015 10:25:41 +0000 (10:25 +0000)
commitbb803fd76e6204f45e425367b657fe39d655d215
treee1d1cc1ea5a1973207076125de670315aa46d7c3
parenta2a358341522f0ac90908805095a98aedae01236
[X86] Fix incorrect/inefficient pushw encodings for x86-64 targets

Correctly support assembling "pushw $imm8" on x86-64 targets.
Also some cleanup of the PUSH instructions (PUSH64i16 and PUSHi16 actually
represent the same instruction)

This fixes PR23996

Patch by: david.l.kreitzer@intel.com
Differential Revision: http://reviews.llvm.org/D10878

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
lib/Target/X86/X86InstrInfo.td
test/MC/ELF/relax-arith.s
test/MC/ELF/relax-arith2.s
test/MC/ELF/relax-arith4.s [new file with mode: 0644]