Re: [PATCH, rs6000] Generate correct constant permutes using xxpermdi

2013-11-22 Thread David Edelsohn
On Fri, Nov 22, 2013 at 10:41 AM, Bill Schmidt wrote: > Hi, > > Most of our constant vector permutes use the vperm instructions, but for > V2DImode and V2DFmode we use xxpermdi. This patch corrects the > generated xxpermdi to be correct for little endian, which fixes failures > of the test cases

[PATCH, rs6000] Generate correct constant permutes using xxpermdi

2013-11-22 Thread Bill Schmidt
Hi, Most of our constant vector permutes use the vperm instructions, but for V2DImode and V2DFmode we use xxpermdi. This patch corrects the generated xxpermdi to be correct for little endian, which fixes failures of the test cases gcc.dg/torture/vshuf-v2d[fi].c. Note that we can't fix this direc