On 07/05/11 21:08, Richard Henderson wrote:
> On 07/01/2011 10:29 AM, Bernd Schmidt wrote:
>> * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
>> * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
>> (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
>>
On 07/01/2011 10:29 AM, Bernd Schmidt wrote:
> * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
> * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
> (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
> (simplify_const_unary_operation, simplify_
We have a function mode_signbit_p, which tests whether a given rtx is
equal to the sign bit of a given mode. This patch adds some similar
helper functions and uses them to simplify tests. Also, in some
instances of zero- and sign-extending, I've changed some bit shifting to
uses of GET_MODE_MASK.