simplify-rtx.c (simplify_const_binary_operation): Use the shift_truncation_mask hook...
authorBernd Schmidt <bernds@codesourcery.com>
Wed, 6 Jul 2011 13:36:16 +0000 (13:36 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 6 Jul 2011 13:36:16 +0000 (13:36 +0000)
commitff3e08afdd5814f51dbe59332df690474de5f050
treedac9f2b9f9f4e057938eba339861f1b99af29cc2
parenta369b6399c43d766cd7690753dbac32c4221354d
simplify-rtx.c (simplify_const_binary_operation): Use the shift_truncation_mask hook instead of performing modulo by width.

* simplify-rtx.c (simplify_const_binary_operation): Use the
shift_truncation_mask hook instead of performing modulo by
width.  Compare against mode precision, not bitsize.
* combine.c (combine_simplify_rtx, simplify_shift_const_1):
Use shift_truncation_mask instead of constructing the value
manually.

From-SVN: r175913
gcc/ChangeLog
gcc/combine.c
gcc/simplify-rtx.c