[x32] Fix function indirect calls
authorPavel Chupin <pavel.v.chupin@intel.com>
Wed, 17 Sep 2014 07:09:23 +0000 (07:09 +0000)
committerPavel Chupin <pavel.v.chupin@intel.com>
Wed, 17 Sep 2014 07:09:23 +0000 (07:09 +0000)
commit780f7e21681c3912a6fe0e282e470fb49972401a
tree29d2aafa8b65bcc93e9556f714253d4ca6e97bbd
parentcc0c4e7cace9bd5db12633cfdb749ef43d8c738d
[x32] Fix function indirect calls

Summary: Zero-extend register to 64-bit for callq/jmpq.

Test Plan: 3 tests added

Reviewers: nadav, dschuff

Subscribers: llvm-commits, zinovy.nis

Differential Revision: http://reviews.llvm.org/D5355

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/x32-function_pointer-1.ll [new file with mode: 0644]
test/CodeGen/X86/x32-function_pointer-2.ll [new file with mode: 0644]
test/CodeGen/X86/x32-function_pointer-3.ll [new file with mode: 0644]
test/CodeGen/X86/x86-64-call.ll