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 debug/44136] New: [4.5/4.6 Regression] ICE in expand_debug_expr with -mno-sse


/* { dg-do compile } */
/* { dg-options "-w -O2 -g" } */
/* { dg-options "-w -O2 -g -mno-sse" { target { { i?86-*-* x86_64-*-* && ilp32
} } } */

#define vector __attribute((vector_size(16)))
vector float a;

float
foo (float b)
{
  vector float c = {0, 0, 0, 0 };
  vector float d = {0, 0, 0, 0 };
  d += c;
  return ((float *)&c)[2];
}

float
bar (vector float a, int b, vector float c)
{
  vector float e = c * a;
  a = (vector float) {0, 0, 0, 0 };
  c = (vector float) {0, 0, 0, 0 };
  float d = ((float *)&a)[0];
  float f = ((float *)&c)[0];
  return d * f;
}

(from vector-2.c and vector-3.c testcases) ICEs in expand_debug_expr on i?86.
op0 has BLKmode, which the code asserts it does not.


-- 
           Summary: [4.5/4.6 Regression] ICE in expand_debug_expr with -mno-
                    sse
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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