This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17055] New: ICE while folding int/float vectors
- From: "wilson at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2004 00:39:05 -0000
- Subject: [Bug middle-end/17055] New: ICE while folding int/float vectors
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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