Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-29 Thread Richard Henderson
On 07/29/2016 10:26 AM, David Gibson wrote: Btw, your mailer seems to have screwed up and sent this as html only. "Sent from my phone" should have been the disclaimer. ;-) r~

Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-28 Thread David Gibson
On Fri, Jul 29, 2016 at 09:53:14AM +0530, Richard Henderson wrote: > On Jul 29, 2016 09:16, David Gibson > wrote: > > So, I noticed this and was also concerned, but I more or less > > convinced myself that it would still work, by the magic of 2's > > complement, as lo

Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-28 Thread David Gibson
On Thu, Jul 28, 2016 at 06:22:05PM +0530, Richard Henderson wrote: > On 07/28/2016 12:19 PM, Nikunj A Dadhania wrote: > > +r->element[i] = abs(a->element[i] - b->element[i]); \ > > +} \ > > +} > > + > > +/* VA

Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-28 Thread Nikunj A Dadhania
Richard Henderson writes: > On 07/28/2016 12:19 PM, Nikunj A Dadhania wrote: >> +r->element[i] = abs(a->element[i] - b->element[i]); \ >> +} \ >> +} >> + >> +/* VABSDU - Vector absolute difference unsigned >

Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-28 Thread Richard Henderson
On 07/28/2016 12:19 PM, Nikunj A Dadhania wrote: +r->element[i] = abs(a->element[i] - b->element[i]); \ +} \ +} + +/* VABSDU - Vector absolute difference unsigned + * name- instruction mnemonic suffix

[Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions

2016-07-27 Thread Nikunj A Dadhania
From: Sandipan Das Adds following instructions: vabsdub: Vector Absolute Difference Unsigned Byte vabsduh: Vector Absolute Difference Unsigned Halfword vabsduw: Vector Absolute Difference Unsigned Word Signed-off-by: Sandipan Das [ use ISA300 define and abs(). Drop etype ] Signed-off-by: Nikun