Re: [PATCH, rs6000] Fix rs6000_expand_vector_set for little endian

2013-11-02 Thread David Edelsohn
On Thu, Oct 31, 2013 at 9:45 PM, Bill Schmidt wrote: > Hi, > > Brooks Moses reported a bug with code that sets a single element of a > vector to a given value and the rest of the vector to zero. This is > implemented in rs6000_expand_vector_set, which uses a vperm instruction > to place the nonze

[PATCH, rs6000] Fix rs6000_expand_vector_set for little endian

2013-10-31 Thread Bill Schmidt
Hi, Brooks Moses reported a bug with code that sets a single element of a vector to a given value and the rest of the vector to zero. This is implemented in rs6000_expand_vector_set, which uses a vperm instruction to place the nonzero value. As usual, we need to adjust the permute control vector