This is the mail archive of the gcc-patches@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]

[committed] test case for PR/30904


I'm adding the test case for PR/30904 (which was failing on dataflow branch but is also a missed optimization on the tree level) to make sure we don't regress.

Paolo

2007-02-22 Paolo Bonzini <bonzini@gnu.org>

        PR tree-optimization/30904
        * gcc.dg/pr30904.c: New test.


/* { dg-do link } */ /* { dg-options "-O2 -fdump-tree-optimized" } */

extern int t;
extern void link_error(void);
int main (void)
{
      struct { unsigned int a : 7; } s;
      s.a = t;
      if (s.a >> 8)
          link_error ();
      if (s.a >> 9)
          link_error ();
}

/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */



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