Re: [PATCH] Fix up move_plus_up (PR rtl-optimization/69691)

2016-02-05 Thread Jeff Law
On 02/05/2016 11:17 AM, Jakub Jelinek wrote: Hi! As mentioned in the PR, move_plus_up on (subreg:SI (plus:DI (reg/f:DI 20 frame) (const_int 16 [0x10])) 0) returns (plus:SI (plus:SI (subreg:SI (reg/f:DI 20 frame) 0) (const_int 16 [0x10])) (const_int 16 [0x10])) which is wro

[PATCH] Fix up move_plus_up (PR rtl-optimization/69691)

2016-02-05 Thread Jakub Jelinek
Hi! As mentioned in the PR, move_plus_up on (subreg:SI (plus:DI (reg/f:DI 20 frame) (const_int 16 [0x10])) 0) returns (plus:SI (plus:SI (subreg:SI (reg/f:DI 20 frame) 0) (const_int 16 [0x10])) (const_int 16 [0x10])) which is wrong, the original added just 16, but the returned r