Fix a regression from r125393;
authorNadav Rotem <nadav.rotem@intel.com>
Sun, 13 Feb 2011 15:45:34 +0000 (15:45 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sun, 13 Feb 2011 15:45:34 +0000 (15:45 +0000)
commitbc53ca1b530aa57280c7a373ea518278abb6ae37
tree7884951e017c5629fb68a460aa38c93265eb011e
parent915eeb488786379250808d47668c43e010efe566
Fix a regression from r125393;

It caused a crash in MultiSource/Benchmarks/Bullet.
Opt hit an assertion with "opt -std-compile-opts" because
Constant::getAllOnesValue doesn't know how to handle floats.

This patch added a test to reproduce the problem and a check that the
destination vector is of integer type.

Thank you Benjamin!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125459 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp
test/Transforms/InstCombine/bitcast-vec-uniform.ll