Re: [PATCH, rs6000] Add support for vec_rlnm and vec_rlmi

2017-01-16 Thread Bill Schmidt
> On Jan 16, 2017, at 4:24 PM, Segher Boessenkool > wrote: > > Hi Bill, > > A few comments: > > On Mon, Jan 16, 2017 at 12:12:22PM -0600, Bill Schmidt wrote: >> * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic >> function entry. > > I had to

Re: [PATCH, rs6000] Add support for vec_rlnm and vec_rlmi

2017-01-16 Thread Segher Boessenkool
Hi Bill, A few comments: On Mon, Jan 16, 2017 at 12:12:22PM -0600, Bill Schmidt wrote: > * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic > function entry. I had to look up if "monomorphic" is an existing word in this context. Unfortunately it is, sigh (it clashes hard

[PATCH, rs6000] Add support for vec_rlnm and vec_rlmi

2017-01-16 Thread Bill Schmidt
Hi, ISA 3.0 introduces new instructions vrlwmi, vrldmi, vrlwnm, and vrldnm. This patch provides access to them via built-ins, including the vec_rlmi and vec_rlnm built-ins mandated by Appendix A of the ELFv2 ABI document. I also added a vec_vrlnm built-in, which is a more direct translation of