This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/17055] New: ICE while folding int/float vectors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]