Re: [PATCH] Fix signed bitfield BIT_NOT_EXPR expansion (PR middle-end/52209)

2012-02-13 Thread Richard Guenther
On Sat, Feb 11, 2012 at 12:49 PM, Jakub Jelinek ja...@redhat.com wrote: Hi! In July Richard changed reduce_bit_field BIT_NOT_EXPR expansion from NOT unop to XOR with all the bits in the bitfield's precision set. Unfortunately that is correct for unsigned bitfields only, for signed bitfields,

[PATCH] Fix signed bitfield BIT_NOT_EXPR expansion (PR middle-end/52209)

2012-02-11 Thread Jakub Jelinek
Hi! In July Richard changed reduce_bit_field BIT_NOT_EXPR expansion from NOT unop to XOR with all the bits in the bitfield's precision set. Unfortunately that is correct for unsigned bitfields only, for signed bitfields, where op0 is already sign-extended to its mode before this, expanding this