OSDN Git Service

[X86] Make sure we still emit zext for GR32 to GR64 when the source of the zext is...
authorCraig Topper <craig.topper@intel.com>
Mon, 18 Sep 2017 20:49:13 +0000 (20:49 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 18 Sep 2017 20:49:13 +0000 (20:49 +0000)
commit1ae3ba04b81267c591884b71a861143b4acca9ab
treece1d30d36275011f246336988c5ef9cd2b27773d
parent1f2266ac54a46fad83cc2367c3a6411e3727bebf
[X86] Make sure we still emit zext for GR32 to GR64 when the source of the zext is AssertZext

The AssertZext we might see in this case is only giving information about the lower 32 bits. It isn't providing information about the upper 32 bits. So we should emit a zext.

This fixes PR28540.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313563 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrCompiler.td
test/CodeGen/X86/TruncAssertZext.ll [new file with mode: 0644]