This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][RFC][2/2] Bitfield lowering
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Jun 2011 16:24:10 -0400 (EDT)
- Subject: Re: [PATCH][RFC][2/2] Bitfield lowering
- References: <alpine.LNX.2.00.1106161335200.810@zhemvz.fhfr.qr>
On Thu, 16 Jun 2011, Richard Guenther wrote:
> This implements lowering a subset of COMPONENT_REFs with DECL_BIT_FIELD
> FIELD_DECLs and BIT_FIELD_REFs - thus bitfield operations in general.
> It lowers those to memory loads/stores that the (non-strict-align) target
> is able to carry out, adjusting for the bit-field-ness by inserting
> proper shifting and masking operations (just like expand does).
>
> Comments welcome - I wanted to post this before London to get
> some input from people that won't attend.
What does it do to code for targets with some kind of bitfield
access insns? (insv, extv, various test insns taking a
zero_extract or sign_extract argument)
>From the above "just like expand" I guess it's expected to be a
no change, right?
brgds, H-P