+2010-05-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/44136
+ * cfgexpand.c (expand_debug_expr): If non-memory op0
+ has BLKmode, return NULL.
+
2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
* config.gcc: Add support for --with-cpu option for bdver1.
if (bitpos < 0)
return NULL;
+ if (GET_MODE (op0) == BLKmode)
+ return NULL;
+
if ((bitpos % BITS_PER_UNIT) == 0
&& bitsize == GET_MODE_BITSIZE (mode1))
{
enum machine_mode opmode = GET_MODE (op0);
- gcc_assert (opmode != BLKmode);
-
if (opmode == VOIDmode)
opmode = mode1;
--- /dev/null
+/* PR debug/44136 */
+/* { 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;
+}