Re: [PATCH, rs6000] Fix PR70963: Wrong code for V2DF/V2DI vec_cts with zero scale factor

2016-05-10 Thread Bill Schmidt
> On May 10, 2016, at 3:25 AM, Segher Boessenkool > wrote: > > Hi Bill, > > On Mon, May 09, 2016 at 10:00:31PM -0500, Bill Schmidt wrote: >> PR70963 reports a problem with vec_cts when used to convert vector double to >> vector long long. >> This is due to a register with an undefined value t

Re: [PATCH, rs6000] Fix PR70963: Wrong code for V2DF/V2DI vec_cts with zero scale factor

2016-05-10 Thread Segher Boessenkool
Hi Bill, On Mon, May 09, 2016 at 10:00:31PM -0500, Bill Schmidt wrote: > PR70963 reports a problem with vec_cts when used to convert vector double to > vector long long. > This is due to a register with an undefined value that is generated only when > the scale factor is > zero. This patch adds

[PATCH, rs6000] Fix PR70963: Wrong code for V2DF/V2DI vec_cts with zero scale factor

2016-05-09 Thread Bill Schmidt
Hi, PR70963 reports a problem with vec_cts when used to convert vector double to vector long long. This is due to a register with an undefined value that is generated only when the scale factor is zero. This patch adds logic to provide the correct value when the scale factor is zero. The prob