re PR tree-optimization/30904 (VRP does not track values of shifts and/or bitfields?)

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

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

From-SVN: r122290
This commit is contained in:
Paolo Bonzini 2007-02-24 16:07:41 +00:00 committed by Paolo Bonzini
parent 606830199c
commit f048ddccf0
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-02-23 Paolo Bonzini <bonzini@gnu.org>
PR tree-optimization/30904
* gcc.dg/pr30904.c: New test.
2007-02-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* gcc.test-framework/README: Correct command.

View File

@ -0,0 +1,18 @@
/* { 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" } } */