Re: [Qemu-devel] [PATCH 1/6] target-ppc: add xxspltib instruction

2016-08-08 Thread Nikunj A Dadhania
Richard Henderson writes: > On 08/07/2016 11:06 PM, Nikunj A Dadhania wrote: >> +#define pattern(x) (((x) & 0xff) * (~(target_ulong)0 / 0xff)) >> + >> +static void gen_xxspltib(DisasContext *ctx) >> +{ >> +unsigned char uim8 = IMM8(ctx->opcode); >> +if (xS(ctx->opcode)

Re: [Qemu-devel] [PATCH 1/6] target-ppc: add xxspltib instruction

2016-08-07 Thread Richard Henderson
On 08/07/2016 11:06 PM, Nikunj A Dadhania wrote: +#define pattern(x) (((x) & 0xff) * (~(target_ulong)0 / 0xff)) + +static void gen_xxspltib(DisasContext *ctx) +{ +unsigned char uim8 = IMM8(ctx->opcode); +if (xS(ctx->opcode) < 32) { +if (unlikely(!ctx->altivec_enabled)) { +

[Qemu-devel] [PATCH 1/6] target-ppc: add xxspltib instruction

2016-08-07 Thread Nikunj A Dadhania
xxspltib: VSX Vector Splat Immediate Byte Copy the immediate byte in each byte of target VSR Signed-off-by: Nikunj A Dadhania --- target-ppc/translate.c | 2 ++ target-ppc/translate/vsx-impl.inc.c | 20