Fix pr11194. When promoting and splitting integers we need to use
authorNadav Rotem <nadav.rotem@intel.com>
Fri, 21 Oct 2011 17:35:19 +0000 (17:35 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Fri, 21 Oct 2011 17:35:19 +0000 (17:35 +0000)
commita054bcb4cf26f9710bf6b7b256ba7313260a7335
treec977e2d760488c8233649ab9f03737a452a1dde7
parent7926db82686be283ec4cdb68989806c69f388cb1
Fix pr11194. When promoting and splitting integers we need to use
ZExtPromotedInteger and SExtPromotedInteger based on the operation we legalize.

SetCC return type needs to be legalized via PromoteTargetBoolean.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142660 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
test/CodeGen/X86/2011-20-21-zext-ui2fp.ll [new file with mode: 0644]