OSDN Git Service

Fix a bug in the scalarization of BUILD_VECTOR. BUILD_VECTOR elements may be wider...
authorNadav Rotem <nadav.rotem@intel.com>
Sun, 15 Jul 2012 20:39:08 +0000 (20:39 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sun, 15 Jul 2012 20:39:08 +0000 (20:39 +0000)
commit46646572f76513e39bcdd0e06c66668ec1caf5bc
tree69e68f064dc6bf83e13e6eba969feaaa65a89cc7
parentd896e242993fd04c013dda8987c232cdcab63dd4
Fix a bug in the scalarization of BUILD_VECTOR. BUILD_VECTOR elements may be wider than the output element type. Make sure to trunc them if needed.

Together with Michael Kuperstein <michael.m.kuperstein@intel.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160235 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
test/CodeGen/Generic/2012-07-15-BuildVectorPromote.ll [new file with mode: 0644]