Re: [PATCH] Fix UMOD rtx simplification (PR target/83930)

2018-01-19 Thread Richard Biener
On January 19, 2018 10:29:36 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >THis bug has been introduced 16.5 years ago. If >simplify_binary_operation_1 >is called with op1 (MEM) on which avoid_constant_pool_reference returns >something simpler, for UMOD simplification we check

[PATCH] Fix UMOD rtx simplification (PR target/83930)

2018-01-19 Thread Jakub Jelinek
Hi! THis bug has been introduced 16.5 years ago. If simplify_binary_operation_1 is called with op1 (MEM) on which avoid_constant_pool_reference returns something simpler, for UMOD simplification we check that trueop1 is CONST_INT and power of 2, but then we use INTVAL of the op1 (MEM). Fixed by