Re: [PATCH, rs6000] Correct vsx_set and vsx_extract patterns for little endian

2013-11-20 Thread David Edelsohn
On Wed, Nov 20, 2013 at 2:00 PM, Bill Schmidt wrote: > Hi, > > This patch corrects the various vsx_set_* and vsx_extract_* patterns to > work correctly with little endian. For the most part this requires the > usual "subtract from N-1" modification, where N is the number of > elements. > > Extrac

Re: [PATCH, rs6000] Correct vsx_set and vsx_extract patterns for little endian

2013-11-20 Thread Bill Schmidt
On Wed, 2013-11-20 at 13:00 -0600, Bill Schmidt wrote: > Extracting element zero for big endian V2DI or V2DF mode is optimized > using the scalar register equivalence. Since we can similarly optimize > extraction of element one for big endian V2DI or V2DF mode, I added a

[PATCH, rs6000] Correct vsx_set and vsx_extract patterns for little endian

2013-11-20 Thread Bill Schmidt
Hi, This patch corrects the various vsx_set_* and vsx_extract_* patterns to work correctly with little endian. For the most part this requires the usual "subtract from N-1" modification, where N is the number of elements. Extracting element zero for big endian V2DI or V2DF mode is optimized usin