]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2007-03-05 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2007 17:03:14 +0000 (17:03 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2007 17:03:14 +0000 (17:03 +0000)
PR tree-optimization/14052
* gcc.dg/tree-ssa/vrp33.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122559 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/vrp33.c [new file with mode: 0644]

index 70c78dc4d489dad1506c6b4a384ba4452194fa97..f7375012fdd98a9dcae5775b90a1e915a57ac4a8 100644 (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
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp33.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp33.c
new file mode 100644 (file)
index 0000000..13f60a6
--- /dev/null
@@ -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" } } */