Re: [PATCH][RFC][2/2] Bitfield lowering

2011-06-27 Thread Richard Guenther
On Mon, 27 Jun 2011, Richard Henderson wrote: > On 06/23/2011 02:49 AM, Richard Guenther wrote: > > So, do you know of a target that can do insv with a memory > > target? I would expect extv on memory to be easily doable. > > Depends on what you mean by that. INSV is the traditional > md patter

Re: [PATCH][RFC][2/2] Bitfield lowering

2011-06-27 Thread Richard Henderson
On 06/23/2011 02:49 AM, Richard Guenther wrote: > So, do you know of a target that can do insv with a memory > target? I would expect extv on memory to be easily doable. Depends on what you mean by that. INSV is the traditional md pattern that performs unaligned stores. So, many targets can han

Re: [PATCH][RFC][2/2] Bitfield lowering

2011-06-23 Thread Hans-Peter Nilsson
On Thu, 23 Jun 2011, Richard Guenther wrote: > On Wed, Jun 22, 2011 at 10:24 PM, Hans-Peter Nilsson > wrote: > > 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 operat

Re: [PATCH][RFC][2/2] Bitfield lowering

2011-06-23 Thread Richard Guenther
On Wed, Jun 22, 2011 at 10:24 PM, Hans-Peter Nilsson wrote: > 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

Re: [PATCH][RFC][2/2] Bitfield lowering

2011-06-22 Thread Hans-Peter Nilsson
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, adjusti

[PATCH][RFC][2/2] Bitfield lowering

2011-06-16 Thread Richard Guenther
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 shiftin