Re: [Qemu-devel] [PATCH v2 3/6] target-ppc: add vrldnmi and vrlwmi instructions

2016-10-28 Thread Richard Henderson
On 10/27/2016 06:30 PM, David Gibson wrote: How about something like this in target-ppc/cpu.h #define FUNC_MASK(name, ret_type, size, max_val) \ static inline ret_type name (uint##size##_t start,\ uint##size##_t end)

Re: [Qemu-devel] [PATCH v2 3/6] target-ppc: add vrldnmi and vrlwmi instructions

2016-10-27 Thread David Gibson
On Thu, Oct 27, 2016 at 02:03:01PM +0530, Nikunj A Dadhania wrote: > David Gibson writes: > >> diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c > >> index dca4798..b54cd7c 100644 > >> --- a/target-ppc/int_helper.c > >> +++ b/target-ppc/int_helper.c > >> @@ -1717,6 +1717,52 @@ void he

Re: [Qemu-devel] [PATCH v2 3/6] target-ppc: add vrldnmi and vrlwmi instructions

2016-10-27 Thread Nikunj A Dadhania
David Gibson writes: >> diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c >> index dca4798..b54cd7c 100644 >> --- a/target-ppc/int_helper.c >> +++ b/target-ppc/int_helper.c >> @@ -1717,6 +1717,52 @@ void helper_vrsqrtefp(CPUPPCState *env, ppc_avr_t *r, >> ppc_avr_t *b) >> } >>

Re: [Qemu-devel] [PATCH v2 3/6] target-ppc: add vrldnmi and vrlwmi instructions

2016-10-26 Thread David Gibson
On Wed, Oct 26, 2016 at 11:56:26AM +0530, Nikunj A Dadhania wrote: > From: "Gautham R. Shenoy" > > vrldmi: Vector Rotate Left Dword then Mask Insert > vrlwmi: Vector Rotate Left Word then Mask Insert > > Signed-off-by: Gautham R. Shenoy > Signed-off-by: Bharata B Rao > ( use extract[32,64] and

[Qemu-devel] [PATCH v2 3/6] target-ppc: add vrldnmi and vrlwmi instructions

2016-10-25 Thread Nikunj A Dadhania
From: "Gautham R. Shenoy" vrldmi: Vector Rotate Left Dword then Mask Insert vrlwmi: Vector Rotate Left Word then Mask Insert Signed-off-by: Gautham R. Shenoy Signed-off-by: Bharata B Rao ( use extract[32,64] and rol[32,64] ) Signed-off-by: Nikunj A Dadhania --- disas/ppc.c