[X86] Fix pattern match for 32-to-64-bit zext in the presence of AssertSext
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Mon, 10 Nov 2014 20:40:21 +0000 (20:40 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Mon, 10 Nov 2014 20:40:21 +0000 (20:40 +0000)
commit1a66dc74684ddd1f536be10e1afde4f3cec68396
tree68fe35bf7aec026d72c28fb7ebca2d74239bd9d2
parentb3da08deb30e59c27a94b83c4690787807713182
[X86] Fix pattern match for 32-to-64-bit zext in the presence of AssertSext

This fixes an issue with matching trunc -> assertsext -> zext on x86-64, which would not zero the high 32-bits.
See PR20494 for details.

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

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