From a7f24614b3c58d03f40d55fe195056dd8423f8f5 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 14 Nov 2014 09:30:08 +0000 Subject: match.pd: Implement more binary patterns exercised by fold_stmt. 2014-11-14 Richard Biener * match.pd: Implement more binary patterns exercised by fold_stmt. * fold-const.c (sing_bit_p): Export. (exact_inverse): Likewise. (fold_binary_loc): Remove patterns here. (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT. * fold-const.h (sing_bit_p): Declare. (exact_inverse): Likewise. * gcc.c-torture/execute/shiftopt-1.c: XFAIL invalid parts. From-SVN: r217545 --- gcc/fold-const.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/fold-const.h') diff --git a/gcc/fold-const.h b/gcc/fold-const.h index b440ca1..09ece67 100644 --- a/gcc/fold-const.h +++ b/gcc/fold-const.h @@ -167,5 +167,7 @@ extern tree make_range_step (location_t, enum tree_code, tree, tree, tree, extern tree build_range_check (location_t, tree, tree, int, tree, tree); extern bool merge_ranges (int *, tree *, tree *, int, tree, tree, int, tree, tree); +extern tree sign_bit_p (tree, const_tree); +extern tree exact_inverse (tree, tree); #endif // GCC_FOLD_CONST_H -- cgit v1.1