[GlobalIsel][X86] support G_TRUNC selection.
authorIgor Breger <igor.breger@intel.com>
Wed, 19 Apr 2017 11:34:59 +0000 (11:34 +0000)
committerIgor Breger <igor.breger@intel.com>
Wed, 19 Apr 2017 11:34:59 +0000 (11:34 +0000)
commit4fdf1e489ca5f9750a775e650fc1e5e42c8d400f
tree53270670bbb9cb3cbebed9ad1fc972923eaf126a
parent151cc0a15b20d1a56cb2a8a3629b534b4c3bb53b
[GlobalIsel][X86] support G_TRUNC selection.

Summary:
[GlobalIsel][X86] support G_TRUNC selection.
Add regbank-select and legalizer tests. Currently legalization of trunc i64 on 32bit platform not supported.

Reviewers: ab, zvi, rovka

Reviewed By: zvi

Subscribers: dberris, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D32115

llvm-svn: 300678
llvm/lib/Target/X86/X86InstructionSelector.cpp
llvm/lib/Target/X86/X86RegisterBankInfo.cpp
llvm/test/CodeGen/X86/GlobalISel/X86-regbankselect.mir
llvm/test/CodeGen/X86/GlobalISel/legalize-trunc.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/select-trunc.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/trunc.ll [new file with mode: 0644]