Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-09 Thread David Edelsohn
On Thu, Jan 9, 2014 at 1:14 PM, Bill Schmidt wrote: > Thanks for the comments! Here is a second go-round at the patch with > improved documentation. I'm happy to change the wording if it can be > further improved. > > Thanks, > Bill > > 2014-01-09 Bill Schmidt > > * doc/invoke.texi: A

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-09 Thread Joseph S. Myers
On Thu, 9 Jan 2014, Bill Schmidt wrote: > +When -maltivec is used, rather than -maltivec=le or -maltivec=be, the > +element order for Altivec intrinsics such as vec_splat, vec_extract, > +and vec_insert will match array element order corresponding to the > +endianness of the target. That is, elem

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-09 Thread Bill Schmidt
Thanks for the comments! Here is a second go-round at the patch with improved documentation. I'm happy to change the wording if it can be further improved. Thanks, Bill 2014-01-09 Bill Schmidt * doc/invoke.texi: Add -maltivec={be,le} options, and document default element-ord

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-08 Thread Bill Schmidt
On Wed, 2014-01-08 at 16:46 -0500, David Edelsohn wrote: > On Tue, Jan 7, 2014 at 6:59 PM, Bill Schmidt > wrote: > > On Tue, 2014-01-07 at 22:18 +, Joseph S. Myers wrote: > >> On Tue, 7 Jan 2014, Bill Schmidt wrote: > >> > >> > Yes, sorry for not being more clear. This is indeed for interpret

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-08 Thread David Edelsohn
On Tue, Jan 7, 2014 at 6:59 PM, Bill Schmidt wrote: > On Tue, 2014-01-07 at 22:18 +, Joseph S. Myers wrote: >> On Tue, 7 Jan 2014, Bill Schmidt wrote: >> >> > Yes, sorry for not being more clear. This is indeed for interpretation >> > of element numbers in Altivec intrinsics such as vec_splat

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-07 Thread Bill Schmidt
On Tue, 2014-01-07 at 22:18 +, Joseph S. Myers wrote: > On Tue, 7 Jan 2014, Bill Schmidt wrote: > > > Yes, sorry for not being more clear. This is indeed for interpretation > > of element numbers in Altivec intrinsics such as vec_splat, vec_extract, > > vec_insert, and so forth. By default t

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-07 Thread Joseph S. Myers
On Tue, 7 Jan 2014, Bill Schmidt wrote: > Yes, sorry for not being more clear. This is indeed for interpretation > of element numbers in Altivec intrinsics such as vec_splat, vec_extract, > vec_insert, and so forth. By default these will match array element > order for the target endianness. Bu

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-07 Thread Bill Schmidt
On Tue, 2014-01-07 at 21:51 +, Joseph S. Myers wrote: > On Tue, 7 Jan 2014, Bill Schmidt wrote: > > > +@item -maltivec=be > > +@opindex maltivec=be > > +Generate Altivec instructions using big-endian element order, > > +regardless of whether the target is big- or little-endian. > > + > > +@i

Re: [PATCH,rs6000] Add -maltivec={le,be} options

2014-01-07 Thread Joseph S. Myers
On Tue, 7 Jan 2014, Bill Schmidt wrote: > +@item -maltivec=be > +@opindex maltivec=be > +Generate Altivec instructions using big-endian element order, > +regardless of whether the target is big- or little-endian. > + > +@item -maltivec=le > +@opindex maltivec=le > +Generate Altivec instructions us

[PATCH,rs6000] Add -maltivec={le,be} options

2014-01-07 Thread Bill Schmidt
Hi, This patch adds flavors of the -maltivec option that allow explicit specification of vector element order. This is independent of the target endianness in effect. The primary use of this is to allow specifying big-endian vector element order when targeting a little-endian processor, which ai