diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2013-05-06 23:14:59 +0200 |
---|---|---|
committer | Marc Glisse <glisse@gcc.gnu.org> | 2013-05-06 21:14:59 +0000 |
commit | 9a0ee7b0286f1de2f05a5e4e41f8c3436053c975 (patch) | |
tree | 7d9d8b97ec358bd6267025f8446e73231ebbc98e /gcc/tree.h | |
parent | 6698175d1591c25041f3979a5c01ef5f81e2f4ff (diff) | |
download | gcc-9a0ee7b0286f1de2f05a5e4e41f8c3436053c975.zip gcc-9a0ee7b0286f1de2f05a5e4e41f8c3436053c975.tar.gz gcc-9a0ee7b0286f1de2f05a5e4e41f8c3436053c975.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5310,6 +5310,11 @@ extern int integer_onep (const_tree); extern int integer_all_onesp (const_tree); +/* integer_minus_onep (tree x) is nonzero if X is an integer constant of + value -1. */ + +extern int integer_minus_onep (const_tree); + /* integer_pow2p (tree x) is nonzero is X is an integer constant with exactly one bit 1. */ |