This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Testcase for PR15256
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Jun 2016 15:47:55 +0200 (CEST)
- Subject: [PATCH] Testcase for PR15256
- Authentication-results: sourceware.org; auth=none
noticed we have this fixed since GCC 6.
Committed.
Richard.
2016-06-29 Richard Biener <rguenther@suse.de>
PR middle-end/15256
* gcc.dg/tree-ssa/forwprop-34.c: New testcase.
Index: gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c
===================================================================
*** gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c (revision 0)
--- gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c (working copy)
***************
*** 0 ****
--- 1,15 ----
+ /* { dg-do compile } */
+ /* { dg-options "-O -fdump-tree-cddce1" } */
+
+ unsigned int
+ foo (unsigned int eax)
+ {
+ unsigned int edx = eax & 1;
+ edx ^= 1;
+ eax &= -2;
+ eax |= edx;
+ return eax;
+ }
+
+ /* { dg-final { scan-tree-dump-times " = " 1 "cddce1" } } */
+ /* { dg-final { scan-tree-dump " = eax_\[0-9\]+\\(D\\) \\^ 1;" "cddce1" } } */