CodeGen: Handle ConstantVector and undef in WinCOFF constant pools
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 15 Jul 2014 02:34:12 +0000 (02:34 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 15 Jul 2014 02:34:12 +0000 (02:34 +0000)
commitcdc1044944cded7cf9236c25e0f5bf36624061eb
tree18a4df681a04ad2e5abf5b3d557d737da0628569
parent3c0737454d1dac387d4aed46afaa0827095120b5
CodeGen: Handle ConstantVector and undef in WinCOFF constant pools

The constant pool entry code for WinCOFF assumed that vector constants
would be formed using ConstantDataVector, it did not expect to see a
ConstantVector.  Furthermore, it did not expect undef as one of the
elements of the vector.

ConstantVectors should be handled like ConstantDataVectors, treat Undef
as zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213038 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetObjectFile.cpp
test/CodeGen/X86/win_cst_pool.ll