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
