Re: [RFC] vector subscripts/BIT_FIELD_REF in Big Endian.

2013-08-12 Thread Bill Schmidt
On Mon, 2013-08-12 at 11:54 +0100, Tejas Belagod wrote: > >> What's interesting to me here is the bitpos - does this not need > >> BYTES_BIG_ENDIAN correction? This seems to be inconsistenct with what > >> happens > >> with reduction operations in the autovectorizer where the scalar result in >

Re: [RFC] vector subscripts/BIT_FIELD_REF in Big Endian.

2013-08-12 Thread Tejas Belagod
What's interesting to me here is the bitpos - does this not need BYTES_BIG_ENDIAN correction? This seems to be inconsistenct with what happens with reduction operations in the autovectorizer where the scalar result in the reduction epilogue gets extracted with a BIT_FIELD_REF but the bitpos ther

Re: [RFC] vector subscripts/BIT_FIELD_REF in Big Endian.

2013-08-09 Thread Bill Schmidt
On Mon, 2013-08-05 at 11:47 +0100, Tejas Belagod wrote: > Hi, > > I'm looking for some help understanding how BIT_FIELD_REFs work with > big-endian. > > Vector subscripts in this example: > > #define vector __attribute__((vector_size(sizeof(int)*4) )) > > typedef int vec vector; > > int foo(v