2014-11-14  Richard Biener  <rguenther@suse.de>

	* 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.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217545 138bc75d-0d04-0410-961f-82ee72b054a4
Fix typo in *<arith_shift_insn>_shiftsi

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217546 138bc75d-0d04-0410-961f-82ee72b054a4
[Vectorizer]Make reductions-via-shifts and vec_shr_optab endianness-neutral

        * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
        BYTES_BIG_ENDIAN.
        * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
        vect_create_epilog_for_reduction): Likewise.
        * doc/md.texi (vec_shr_m): Clarify direction of shifting.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217550 138bc75d-0d04-0410-961f-82ee72b054a4
Fix ChangeLog date

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217551 138bc75d-0d04-0410-961f-82ee72b054a4