Use a 32-bit and with implicit zero-extension instead of a 64-bit and if it
authorDan Gohman <gohman@apple.com>
Mon, 11 Jan 2010 17:58:34 +0000 (17:58 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 11 Jan 2010 17:58:34 +0000 (17:58 +0000)
commite5dacc55ad0122eb4b8913955cf6339fa3ff2d6e
treec4926a017c57f7045906afdb09bd088fe0fea679
parent71c25b7d7bdf9b49dd70965c7486ce930b846aac
Use a 32-bit and with implicit zero-extension instead of a 64-bit and if it
has an immediate with at least 32 bits of leading zeros, to avoid needing to
materialize that immediate in a register first.

FileCheckize, tidy, and extend a testcase to cover this case.

This fixes rdar://7527390.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86Instr64bit.td
test/CodeGen/X86/x86-64-and-mask.ll