r243255 - in /trunk/gcc: ChangeLog match.pd tes...

bonzini@gcc.gnu.org bonzini@gcc.gnu.org
Mon Dec 5 13:19:00 GMT 2016


Author: bonzini
Date: Mon Dec  5 13:19:34 2016
New Revision: 243255

URL: https://gcc.gnu.org/viewcvs?rev=243255&root=gcc&view=rev
Log:
gcc:
* match.pd: Simplify X ? C : 0 where C is a power of 2 and
X tests a single bit.

gcc/testsuite:
* gcc.dg/fold-and-lshift.c, gcc.dg/fold-and-rshift-1.c,
gcc.dg/fold-and-rshift-2.c: New testcases.


Added:
    trunk/gcc/testsuite/gcc.dg/fold-and-lshift.c
    trunk/gcc/testsuite/gcc.dg/fold-and-rshift-1.c
    trunk/gcc/testsuite/gcc.dg/fold-and-rshift-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list