[PATCH][ARM] Add support for ADDW and SUBW instructions

Andrew Stubbs ams@codesourcery.com
Mon Jun 6 13:33:00 GMT 2011


On 06/06/11 14:26, Dmitry Plotnikov wrote:
>         if (const_ok_for_arm (INTVAL (x))
> -	  || const_ok_for_arm (~INTVAL (x)))
> +	  || const_ok_for_arm (~INTVAL (x))
> +	  || (TARGET_THUMB2&&  outer == PLUS
> +	&&  (const_ok_for_op (INTVAL (x), outer))))

Sorry, I should have noticed before ...

This whole condition should be covered by a single call to 
const_ok_for_op. It already calls const_ok_for_arm internally.

Andrew



More information about the Gcc-patches mailing list