This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] BIT_FIELD_REF on VECTOR_CST
On Mon, May 30, 2005 at 02:22:49PM -0600, Roger Sayle wrote:
> In fact, it should be possible to improve on your
> patch and lower a BIT_FIELD_REF of a VECTOR_CST to a BIT_FIELD_REF
> of a REAL_CST or INTEGER_CST even if the offset and length aren't
> perfectly aligned.
I'm not sure that's worthwhile. Better might be to go ahead
and add VECTOR_ELT_{INS,EXT} codes to insert and extract the
various elements, rather than overloading BIT_FIELD_REF.
r~