Re: [Qemu-devel] [PATCH v1 01/10] target-ppc: add xxspltib instruction

2016-08-11 Thread Nikunj A Dadhania
Richard Henderson writes: > On 08/10/2016 08:00 PM, Nikunj A Dadhania wrote: >> +#if defined(TARGET_PPC64) >> +#define pattern(x) (((x) & 0xff) * (~(target_ulong)0 / 0xff)) >> + >> +static void gen_xxspltib(DisasContext *ctx) > ... >> +tcg_gen_movi_i64(cpu_vsrh(xT(ctx->opcode)), pattern(uim8)

Re: [Qemu-devel] [PATCH v1 01/10] target-ppc: add xxspltib instruction

2016-08-11 Thread Richard Henderson
On 08/10/2016 08:00 PM, Nikunj A Dadhania wrote: +#if defined(TARGET_PPC64) +#define pattern(x) (((x) & 0xff) * (~(target_ulong)0 / 0xff)) + +static void gen_xxspltib(DisasContext *ctx) ... +tcg_gen_movi_i64(cpu_vsrh(xT(ctx->opcode)), pattern(uim8)); Is this function really not available

[Qemu-devel] [PATCH v1 01/10] target-ppc: add xxspltib instruction

2016-08-10 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 | 22 ++ target-ppc/translate/vsx-ops.inc.c | 7 +++ 3 fil