Re: [Qemu-devel] [PATCH v2 1/2] target-ppc: add vextu[bhw]lx instructions

2016-11-25 Thread Richard Henderson
On 11/25/2016 08:13 AM, Nikunj A Dadhania wrote: I think I can use "Int128 u128" in that union and that should do the trick ! I will try that out. Yes, that's what I meant. r~

Re: [Qemu-devel] [PATCH v2 1/2] target-ppc: add vextu[bhw]lx instructions

2016-11-24 Thread Nikunj A Dadhania
Richard Henderson writes: > On 11/24/2016 12:32 PM, Nikunj A Dadhania wrote: >> +#if defined(HOST_WORDS_BIGENDIAN) >> +# if defined(CONFIG_INT128) >> +# define VEXTULX_DO(name, size) \ >> +target_ulong glue(helper_, name)(target_ulong a, ppc_avr_t *b) \ >>

Re: [Qemu-devel] [PATCH v2 1/2] target-ppc: add vextu[bhw]lx instructions

2016-11-24 Thread Richard Henderson
On 11/24/2016 12:32 PM, Nikunj A Dadhania wrote: +#if defined(HOST_WORDS_BIGENDIAN) +# if defined(CONFIG_INT128) +# define VEXTULX_DO(name, size) \ +target_ulong glue(helper_, name)(target_ulong a, ppc_avr_t *b) \ +{

[Qemu-devel] [PATCH v2 1/2] target-ppc: add vextu[bhw]lx instructions

2016-11-24 Thread Nikunj A Dadhania
From: Avinesh Kumar vextublx: Vector Extract Unsigned Byte Left vextuhlx: Vector Extract Unsigned Halfword Left vextuwlx: Vector Extract Unsigned Word Left Signed-off-by: Avinesh Kumar [ implement using int128_rshift ] Signed-off-by: Nikunj A Dadhania --- target-ppc/helper.h