Re: [PATCH], PR 71805, Fix PowerPC ISA 3.0 xxperm/xxpermr usage

2016-07-12 Thread Segher Boessenkool
On Tue, Jul 12, 2016 at 12:28:12AM -0400, Michael Meissner wrote: > In this patch, I have fixed the xxperm instructions to expect the second input > argument to be the same as the output argument instead of the first. I also > fixed the xxpermr instruction, which suffers from the same problem. I

[PATCH], PR 71805, Fix PowerPC ISA 3.0 xxperm/xxpermr usage

2016-07-11 Thread Michael Meissner
When I initially implemented the xxperm support in the ISA 3.0 extensions, I misread the manual. The xxperm (and xxpermr) instruction logically should have 4 arguments, like vperm/vpermr (ouput, 2 inputs that provide the bytes, and the permute register), but due to encoding issues, it only has 3 V