Commit a1ebcd97 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/52589 (VRP missed optimization)

2012-06-29  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52589
	* gcc.dg/tree-ssa/vrp70.c: New testcase.

From-SVN: r189073
parent 8a8b3779
2012-06-29 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52589
* gcc.dg/tree-ssa/vrp70.c: New testcase.
2012-06-28 Janis Johnson <janisjo@codesourcery.com> 2012-06-28 Janis Johnson <janisjo@codesourcery.com>
* g++.dg/cpp0x/nullptr19.c: Remove exta directives on same line. * g++.dg/cpp0x/nullptr19.c: Remove exta directives on same line.
......
/* { dg-do compile } */
/* { dg-require-effective-target int32plus } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */
extern void link_error (void);
void
foo (unsigned int s)
{
if (s + 0x70000000 < 0xf0000000U)
{
if (s >= 0x80000000U && s < 0x90000000U)
link_error ();
}
}
void
bar (unsigned int s)
{
if (s + 0x70000000 >= 0xf0000000U)
{
if (s < 0x80000000U || s >= 0x90000000U)
link_error ();
}
}
/* { dg-final { scan-tree-dump-not "link_error" "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment