From: Richard Biener Date: Wed, 29 Jun 2016 13:48:39 +0000 (+0000) Subject: re PR tree-optimization/15256 ([tree-ssa] Optimize manual bitfield manipilation.) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1206d294ac3bbc2353a6f94e492423e44054059;p=gcc.git re PR tree-optimization/15256 ([tree-ssa] Optimize manual bitfield manipilation.) 2016-06-29 Richard Biener PR middle-end/15256 * gcc.dg/tree-ssa/forwprop-34.c: New testcase. From-SVN: r237852 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c8f96a98732..0c931e03822 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-06-29 Richard Biener + + PR middle-end/15256 + * gcc.dg/tree-ssa/forwprop-34.c: New testcase. + 2016-06-29 Matthew Wahab * gcc.target/arm/aapcs/neon-vect10.c: Require diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c new file mode 100644 index 00000000000..9aadce6a6a3 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-34.c @@ -0,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" } } */