re PR middle-end/17055 (ICE while folding int/float vectors)
authorRoger Sayle <roger@eyesopen.com>
Fri, 10 Sep 2004 02:39:18 +0000 (02:39 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 10 Sep 2004 02:39:18 +0000 (02:39 +0000)
commit049e524f68be57df307f11ea9d3d28afdc37d7c3
tree23084ccb47738efb8c8ceb2cc535f0fd0434593b
parent1b83d20963c6db039c6530949db4da9581f86ce9
re PR middle-end/17055 (ICE while folding int/float vectors)

PR middle-end/17055
* fold-const.c (build_zero_vector): New function to construct a
vector (either floating point or integer) of zeros.
(fold_convert): Internally, enable conversions of integer zero
to arbitrary vector types, using the new build_zero_vector.

* gcc.dg/pr17055-1.c: New test case.

From-SVN: r87272
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr17055-1.c [new file with mode: 0644]