Commit 6ecde111 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/40052 (missed optimizations on (extended) logical types: (x | 1) --> 1)

2011-04-28  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/40052
	PR tree-optimization/15347
	* gcc.dg/tree-ssa/vrp57.c: New testcase.
	* gcc.dg/pr15347.c: Likewise.

From-SVN: r173064
parent a6343f61
2011-04-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/40052
PR tree-optimization/15347
* gcc.dg/tree-ssa/vrp57.c: New testcase.
* gcc.dg/pr15347.c: Likewise.
2011-04-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48530
......
/* { dg-do link } */
extern void link_error (void);
int
main ()
{
if ("<12ers" + 1 == 0)
link_error ();
return 0;
}
/* PR40052 */
/* { dg-do compile } */
/* { dg-options "-O -ftree-vrp -fdump-tree-optimized" } */
int foo(_Bool b)
{
return b | 1;
}
int bar(_Bool b)
{
return b & -2;
}
/* { dg-final { scan-tree-dump "return 0;" "optimized" } } */
/* { dg-final { scan-tree-dump "return 1;" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
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