[PATCH] Fix simplify_truncation (PR middle-end/54862)

2012-10-10 Thread Jakub Jelinek
Hi! On 32-bit HWI warning there is a warning about signed (INTVAL) vs. unsigned ({,op_}precision) comparison (on 64-bit HWI that doesn't trigger, as INTVAL is 64-bit signed long, while precision is 32-bit unsigned). This patch fixes the warning and makes sure we don't try to optimize shifts by

Re: [PATCH] Fix simplify_truncation (PR middle-end/54862)

2012-10-10 Thread Richard Biener
On Wed, Oct 10, 2012 at 8:39 AM, Jakub Jelinek ja...@redhat.com wrote: Hi! On 32-bit HWI warning there is a warning about signed (INTVAL) vs. unsigned ({,op_}precision) comparison (on 64-bit HWI that doesn't trigger, as INTVAL is 64-bit signed long, while precision is 32-bit unsigned). This

Re: [PATCH] Fix simplify_truncation (PR middle-end/54862)

2012-10-10 Thread Richard Sandiford
Jakub Jelinek ja...@redhat.com writes: 2012-10-10 Jakub Jelinek ja...@redhat.com PR middle-end/54862 * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of INTVAL of second argument with precision resp. op_precision. OK. Sorry for the breakage, and thanks for