r239421 - in /trunk/gcc: ChangeLog match.pd tes...
ppalka@gcc.gnu.org
ppalka@gcc.gnu.org
Fri Aug 12 16:07:00 GMT 2016
Author: ppalka
Date: Fri Aug 12 16:07:40 2016
New Revision: 239421
URL: https://gcc.gnu.org/viewcvs?rev=239421&root=gcc&view=rev
Log:
Fix PR middle-end/71654 (missed shortening of a compare)
gcc/ChangeLog:
PR middle-end/71654
* match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
sign-changing cast from a shorter unsigned type to a wider
signed type.
gcc/testsuite/ChangeLog:
PR middle-end/71654
* gcc.dg/c-c++-common/pr71654.c: New test.
* gcc.dg/tree-ssa/vrp23: Add -fno-tree-forwprop to
dg-options.
* gcc.dg/tree-ssa/vrp24: Likewise.
Added:
trunk/gcc/testsuite/c-c++-common/pr71654.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/match.pd
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp23.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp24.c
More information about the Gcc-cvs
mailing list