[Bug middle-end/17055] New: ICE while folding int/float vectors
wilson at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 17 00:39:00 GMT 2004
A simple testcase compiled with -O -ffast-math aborts because we try to fold a
vector operation 0-0 to 0 by doing
fold_convert (type, integer_zero_node);
However, we don't allow conversions from scalar types to vector types, so this
does not work.
This fails for both integer and float vectors.
There are a number of places in fold.c where this same idiom is used. Many of
them are probably unreachable for vector types, but it isn't obvious which ones
are safe and which ones aren't.
--
Summary: ICE while folding int/float vectors
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wilson at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17055
More information about the Gcc-bugs
mailing list