tree.c (integer_all_onesp): Test that both components are all 1s.
authorMarc Glisse <marc.glisse@inria.fr>
Mon, 6 May 2013 21:14:59 +0000 (23:14 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Mon, 6 May 2013 21:14:59 +0000 (21:14 +0000)
commit9a0ee7b0286f1de2f05a5e4e41f8c3436053c975
tree7d9d8b97ec358bd6267025f8446e73231ebbc98e
parent6698175d1591c25041f3979a5c01ef5f81e2f4ff
tree.c (integer_all_onesp): Test that both components are all 1s.

2013-05-06  Marc Glisse  <marc.glisse@inria.fr>

* tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
components are all 1s.
(integer_minus_onep): New function.
* tree.h (integer_minus_onep): Declare it.
* fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
integer_minus_onep instead of integer_all_onesp.

From-SVN: r198649
gcc/ChangeLog
gcc/fold-const.c
gcc/tree.c
gcc/tree.h