https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80173

            Bug ID: 80173
           Summary: ICE in store_bit_field_1, at expmed.c:787
           Product: gcc
           Version: 4.8.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aivchenk at gmail dot com
  Target Milestone: ---

> cat ../struct_asm.c 
/* { dg-do compile } */

typedef int v8 __attribute__ ((vector_size(8)));

struct U {
  v8 a;
  v8 b;
};

int
foo (int i)
{
  register struct U u asm ("xmm0") = {{-1, 0}, {-1, 0}};
  return u.b[i];
}
> gcc ../struct_asm.c                                                           
>                                                                            
../struct_asm.c: In function ‘foo’:
../struct_asm.c:13:21: internal compiler error: in store_bit_field_1, at
expmed.c:787
   register struct U u asm ("xmm0") = {{-1, 0}, {-1, 0}};

Reply via email to