re PR tree-optimization/14052 (Combiner weakness)

2007-03-05  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/14052
	* gcc.dg/tree-ssa/vrp33.c: New testcase.

From-SVN: r122559
This commit is contained in:
Richard Guenther 2007-03-05 17:03:14 +00:00 committed by Richard Biener
parent 155d0548f1
commit b48a45922d
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-03-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/14052
* gcc.dg/tree-ssa/vrp33.c: New testcase.
2007-03-05 Richard Guenther <rguenther@suse.de>
PR tree-optimization/23777

View File

@ -0,0 +1,9 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */
/* This is from PR14052. */
int f2(int x) { return x == 1 || x == 3 || x == 1; }
/* { dg-final { scan-tree-dump "Folding predicate.*== 1 to 0" "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */