the following code is miscompiled:

extern void abort (void);

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

int
main (void)
{
  if (((int)(long long)(V2SI){ 2, 2 })!=2)
    abort ();
}


Note this is now blocking my tree combiner to be regression free.

-- 
           Summary: misscompiling comparision from vector to integer
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to