This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] test case for PR/30904
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Feb 2007 09:53:55 +0100
- Subject: [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" } } */