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 c/17561] New: ICE in fold_convert (fold-const.c) when compiling SSE2 code


When compiling expressions of the type

  b = (a-a)*a;

with a and b being defined as v2df and "-msse2", the compiler stops with the message

  sse2test.c: In function `main':
  sse2test.c:8: internal compiler error: in fold_convert, at fold-const.c:1917

This is the full example program:

----
typedef double v2df __attribute__((mode(V2DF)));

int main()
{
  v2df a, b;
  b = (a-a)*a;
  return 0;
}
----

and the command line was "gcc -msse2 sse2test.c -o sse2test".

-- 
           Summary: ICE in fold_convert (fold-const.c) when compiling SSE2
                    code
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sbo at mis dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17561


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