[RFA] Fix pr67830, another type narrowing problem
authorJeff Law <law@redhat.com>
Fri, 23 Oct 2015 19:16:53 +0000 (13:16 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 23 Oct 2015 19:16:53 +0000 (13:16 -0600)
commit0a8c1e23903c43a5869abef9bff30337f6122137
treede244e9c75eefeef6b1158112ed8ee8c63e19a8f
parent7e8efecbaf4fb902b5b092655640591d7531e4f7
[RFA] Fix pr67830, another type narrowing problem

PR tree-optimization/67830
* match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
Explicitly verify the mask has no bits outside the type of
the innermost operands.

PR tree-optimization/67830
* gcc.dg/pr67830.c: New test.

From-SVN: r229267
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67830.c [new file with mode: 0644]